/* ================================
   CONTACT PAGE STYLES
   ================================ */

/* Main wrapper for contact section */
.contact-section {
  padding: 110px 4px;
  max-width: 100%;
  margin: 0 auto;
}

/* Grid layout: 2 columns (Form + Map) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* equal width */
  gap: 80px;
  /* spacing between columns */
  align-items: stretch;
  /* make form + map equal height */
}

/* ================================
   CONTACT FORM
   ================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Heading text "Contact us" */
.heading {
  font-size: 2.5rem;
}

/* Intro paragraph under heading */
.contact-form p {
  font-size: 18px;
  margin-bottom: 5px;
  color: #555;
}

/* Force WPForms form to full width */
/* .contact-form form {
  width: 500px;
} */

/* Space between WPForms fields */
.contact-form .wpforms-field {
  margin-bottom: 20px;
  padding: 0%;
}

/* WPForms field labels */
.contact-form label.wpforms-field-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  color: #1a3c47;
  width: 100px;

}

/* Inputs + textarea base style */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  transition: border 0.3s ease;
}

/* Input focus state */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #1a3c47;
  outline: none;
}

/* Textarea default height + resizable */
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Checkbox spacing */
.contact-form input[type="checkbox"] {
  margin-right: 8px;
}

/* Submit button styling */
.contact-form .wpforms-submit {
  background: #1a3c47;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 100px;
  /* pill-shaped button */
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* Submit hover */
.contact-form .wpforms-submit:hover {
  background: #15535e;
}

/* ================================
   MAP
   ================================ */
.contact-map {
  width: 100%;
  height: 100%;
  /* match form height automatically */
  border-radius: 10px;
  overflow: hidden;
  /* hide overflow corners */
}

/* Embedded Google Map */
.contact-map iframe {
  width: 100%;
  height: 100%;
  /* fill container */
  border: none;
  display: block;
  border-radius: 10px;
}

/* ================================
   INFO SECTION (Email + Phone)
   ================================ */

/* 2-column grid for email + phone cards */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  text-align: center;
  margin: 0 auto;
}

/* Each info card (email / phone) */
.contact-info-card {
  background: transparent;
  padding: 0;
  margin-bottom: 10%;
}

/* Icon styling */
.info-icon {
  font-size: 48px;
  color: #1a3c47;
  margin-bottom: 24px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.info-icon:hover {
  color: #f4a261;
  transform: scale(1.1);
}


/* Card title (Email / Phone) */
.contact-info-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

/* Card description */
.contact-info-card p {
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  color: #000;
  margin-bottom: 12px;
}

/* Email/Phone links */
.contact-info-card a {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Link hover underline */
.contact-info-card a:hover {
  text-decoration: underline;
  color: #146782;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {

  /* Reduce padding for smaller screens */
  .contact-section {
    padding: 64px 24px;
  }

  /* Stack form + map vertically */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Smaller map height on mobile */
  .contact-map {
    min-height: 400px;
  }

  /* Info section padding */
  .contact-info {
    padding: 64px 24px;
  }

  /* Stack email + phone cards */
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* WPForms form ID-specific override */
.contact-form #wpforms-132 {
  padding: 0%;
  width: 100%;
}

/* Ensure form heading + text align with fields */
.contact-form {
  max-width: 500px;
  /* ✅ keeps form neat */
  margin: 0;
  /* remove extra spacing */
}

.contact-form .heading,
.contact-form p {
  text-align: center;
  /* ✅ align heading + description */
  margin-left: 0;
}

/* Form labels aligned to inputs */
.contact-form label.wpforms-field-label {
  display: block;
  text-align: left;
  /* ✅ align label text left */
  margin-bottom: 6px;
  font-weight: 600;
  color: #1a3c47;
}

/* Inputs stretch full width */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin: 0;
}

/* Submit button centered under inputs */
.contact-form .wpforms-submit-container {
  text-align: left;
  /* ✅ align button with inputs */
}

.contact-form .wpforms-submit {
  display: inline-block;
}



/* Make the grid single-column when map is removed */
.contact-grid--single {
  display: flex;
  justify-content: center;
}

/* Center the form */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

/* Center layout when map is removed */
.contact-grid--single {
  display: flex;
  justify-content: center;
}

/* Center the form & add card design */
.contact-form--card {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 26px rgba(0,0,0,0.12);
}

/* Optional: light background behind entire section */
.contact-section {
  background: #f7f9fb;
}

/* =====================================================
   CONTACT PAGE — MOBILE FINAL FIX (ANDROID + iOS SAFE)
   ✔ Desktop untouched
   ✔ Chrome emulator + real OnePlus consistent
===================================================== */
@media screen and (max-width: 768px) {

  /* =========================
     Section spacing
  ========================== */
  .contact-section {
    padding: 32px 16px;
    background: #f7f9fb;
  }

  /* =========================
     Stack layout
  ========================== */
  .contact-grid {
    display: block;
  }

  /* =========================
     Form card (controls width)
  ========================== */
  .contact-form.contact-form--card {
    width: 100%;
    max-width: 360px;          /* 🔑 controls field width */
    margin: 0 auto;
    padding: 24px 8px 24px 8px;
    border-radius: 12px;
    box-shadow: none;
  }

  /* =========================
     Heading + text
  ========================== */
  .contact-form .heading {
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
  }

  .contact-form p {
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
  }

  /* =========================
     WPForms container
  ========================== */
  .contact-form .wpforms-container-full {
    width: 100%;
    max-width: 100%;
  }

  /* =========================
     Inputs & textarea
     (NO fixed px widths)
  ========================== */
  .contact-form .wpforms-field input,
  .contact-form .wpforms-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 12px 14px;
  }

  .contact-form textarea {
    min-height: 120px;
  }

  /* =========================
     Submit button
  ========================== */
  .contact-form .wpforms-submit-container {
    text-align: center;
    margin-top: 20px;
  }

  .contact-form .wpforms-submit {
    width: 100%;
    max-width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-radius: 100px;
    display: block;
  }

  /* =========================
     reCAPTCHA spacing
  ========================== */
  .contact-form .g-recaptcha {
    margin: 16px auto 20px;
  }

}
