/* ========== General Reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========== General ========== */
.contact-page {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  color: #11184A;
  padding: 10px 20px;
  margin-top: 60px; /* prevents overlap with header */
}

.contact-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 20px; /* align with other pages */
  box-sizing: border-box;
}

.contact-header h1 {
  font-size: 2.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-header p {
  color: #444;
  font-size: 18px;
  line-height: 1.6;
}

/* ========== Layout ========== */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  padding: 0 20px; /* horizontal padding same as other pages */
}

/* LEFT & RIGHT COLUMN */
.contact-left,
.contact-right {
  flex: 1 1 48%;
  min-width: 300px;
  box-sizing: border-box;
}

.contact-list {
  text-align: center;
}

/* CARDS */
.details-card,
.contact-right {
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.details-card {
  background: #fce570; /* pale yellow */
}

.details-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.details-card p {
  color: #333;
  margin-bottom: 25px;
}

.contact-list .contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

/* ICON WRAP */
.icon-wrap {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.icon-wrap img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

/* TEXT */
.contact-text .small {
  font-size: 15px;
  color: #11184A;
  display: block;
  text-align: left;
}

.contact-text a,
.contact-text p {
  color: #11184A;
  text-align: left;
  text-decoration: none;
}

/* MAP */
.map-card {
  margin-top: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.map-card iframe {
  width: 100%;
  height: 250px;
  border: none;
  display: block;
}

/* RIGHT COLUMN (FORM) */
.contact-right {
  background-color: #fce570;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #11184A;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  background-color: #fff;
  color: #11184A;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #e0b341;
  outline: none;
}

.contact-form textarea {
  height: 150px;
  resize: none;
}

/* BUTTON */
.btn-send {
  background: #11184A;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-send:hover {
  background: #11185A;
  color: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .contact-container {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  /* Full width columns */
  .contact-left,
  .contact-right {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* Reorder: form first */
  .contact-right {
    order: -1;
  }

  .contact-header h1 {
    font-size: 36px;
  }

  .contact-header p {
    font-size: 16px;
  }

  .details-card,
  .contact-right {
    padding: 30px;
  }

  .map-card iframe {
    height: 220px;
  }
}

@media (max-width: 600px) {
  /* Mobile padding same as other pages */
  .contact-page {
    padding: 60px 20px;
  }

  .contact-header {
    padding: 0 20px; /* ensure title aligned */
  }

  .contact-header h1 {
    font-size: 36px;
  }

  .contact-header p {
    font-size: 14px;
  }

  .details-card,
  .contact-right {
    padding: 20px;
    width: 100%;
  }

  .contact-list .contact-row {
    gap: 15px;
  }

  .icon-wrap {
    width: 40px;
    height: 40px;
  }

  .icon-wrap img {
    width: 60%;
    height: 60%;
  }

  .map-card iframe {
    height: 180px;
  }

  .btn-send {
    padding: 12px;
    font-size: 15px;
  }

  /* Make contact form full width to remove right-side gap */
  .contact-form {
    width: 100%;
    margin: 0;
    padding: 0;
  }
}
.toast-message {
  visibility: hidden;
  min-width: 250px;
  max-width: 500px;
  background-color: #fff;
  color: #11184A;
  text-align: center;
  border-radius: 8px;
  border: 2px solid #11184A;
  padding: 16px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  font-size: 1rem;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
  pointer-events: none;
}

.toast-message.show {
  visibility: visible;
  opacity: 1;
  bottom: 60px;
}
