/* =================================================
   ABPT CARE — CONTACT PAGE
   Scope: page-template-page-contact-php ONLY
================================================= */

/* =================================================
   CONTACT PAGE — WARM FLOW BASE
================================================= */

body.page-template-page-contact-php {
 background:
  radial-gradient(
    1200px 600px at 50% -12%,
    var(--shadow-brand-strong),
    transparent 60%
  ),
  radial-gradient(
    900px 500px at 85% 65%,
    var(--shadow-brand),
    transparent 55%
  ),
  var(--surface-muted);
}

@layer pages {

  /* =================================================
     HERO (HARD LOCK)
  ================================================= */

  body.page-template-page-contact-php .hero-section {
     min-height: clamp(720px, 95vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    isolation: isolate; /* prevents overlay bleed */
  }

  body.page-template-page-contact-php .hero-overlay {
    position: absolute;
    inset: 0;

    background:
  linear-gradient(
    180deg,
    var(--hero-overlay-start),
    var(--hero-overlay-end)
  );

    z-index: 0;
  }

  body.page-template-page-contact-php .hero-content {
    position: relative;
    z-index: 1;
 transform: translateY(-4%);
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    color: var(--surface-base);
  }

  body.page-template-page-contact-php .hero-title {
    font-size: 2.6rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--surface-base);
    margin-bottom: 1.75rem; 
  }

  body.page-template-page-contact-php .hero-subtitle,
  body.page-template-page-contact-php .hero-subtitle-box {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    color: var(--surface-base);
     max-width: 700px;
  margin: 0 auto;
  }

  /* =================================================
   CONTACT INTRO — FOCUSED & INTENTIONAL
================================================= */

body.page-template-page-contact-php .contact-intro {
  padding: 4.25rem 0 4.75rem;
  position: relative;
  z-index: 2;
}

body.page-template-page-contact-php .contact-intro .container {
  max-width: 780px; /* tighter reading width */
  margin-inline: auto;
  text-align: center;
}

/* Heading — confident, not decorative */
body.page-template-page-contact-php .contact-intro h2 {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 1.75rem;

  color: var(--color-dark);
  letter-spacing: -0.01em;
}

/* Content block — reduced glow, more structure */
body.page-template-page-contact-php .contact-intro .intro-text {
  position: relative;

  background: var(--surface-base);
border: var(--border-soft);
  padding: 2.5rem 2.75rem;

  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);

  box-shadow: var(--shadow-soft);
}

/* Quote mark — quieter, anchored */
body.page-template-page-contact-php .contact-intro .intro-text::before {
  content: "“";
  position: absolute;
  top: -0.6rem;
  left: 1.4rem;

  font-size: 3.2rem;
  font-family: serif;
  line-height: 1;

  color: var(--color-primary) ;
  opacity: 0.14;
}

/* Paragraph rhythm — less float */
body.page-template-page-contact-php .contact-intro .intro-text p {
  margin-bottom: 0.85rem;
}

body.page-template-page-contact-php .contact-intro .intro-text p:last-child {
  margin-bottom: 0;
}

/* Mobile — preserve focus */
@media (max-width: 640px) {
  body.page-template-page-contact-php .contact-intro h2 {
    font-size: 1.65rem;
  }

  body.page-template-page-contact-php .contact-intro .intro-text {
    padding: 2.1rem 1.75rem;
    font-size: 1rem;
  }
}


  /* =================================================
     CONTACT SECTION
  ================================================= */

  body.page-template-page-contact-php .contact-section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
  }

  body.page-template-page-contact-php .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: stretch;

    max-width: 1400px;
    margin-inline: auto;
  }

  /* =================================================
     CONTACT DETAILS
  ================================================= */

   body.page-template-page-contact-php .contact-details::before {
    content: "";
    position: absolute;
    inset: -40%;

    background: radial-gradient(
      circle at top center,
      var(--shadow-brand),
      transparent 60%
    );

    pointer-events: none;
  }


  body.page-template-page-contact-php .contact-details p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: var(--color-text);
  }

  body.page-template-page-contact-php .contact-details a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
  }

  body.page-template-page-contact-php .contact-details a:hover {
    color: var(--color-primary-dark);
  }
/* =================================================
   CONTACT DETAILS — WARM, FRIENDLY CARD
================================================= */

body.page-template-page-contact-php .contact-details {
  background: var(--surface-base);
  border: var(--border-soft);
  border-radius: 26px; /* match Gravity card */
  padding: 3.75rem 3.25rem;
 display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-medium);

  position: relative;
  overflow: hidden;
}


/* Soft inner glow */
body.page-template-page-contact-php .contact-details::after {
  content: "";
  position: absolute;
  inset: 0;

  background: none;

  pointer-events: none;
}

/* Title */
body.page-template-page-contact-php .contact-details h2 {
  font-size: 2.05rem;
  font-weight: 700;
  margin-bottom: 2.25rem;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

/* Individual contact blocks */
body.page-template-page-contact-php .contact-details p {
  margin-bottom: 1.75rem;
  padding-left: 2.75rem;
  position: relative;

  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Remove last spacing */
body.page-template-page-contact-php .contact-details p:last-child {
  margin-bottom: 0;
}

/* Labels */
body.page-template-page-contact-php .contact-details strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  color: var(--color-text);
opacity: .6;
}

/* Links */
body.page-template-page-contact-php .contact-details a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

body.page-template-page-contact-php .contact-details a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}
body.page-template-page-contact-php .contact-map {
  margin-top: 2rem;
  border-radius: 16px; /* matches Gravity Forms inputs */
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

body.page-template-page-contact-php .contact-map iframe {
  display: block;
}


body.page-template-page-contact-php .contact-location-card {
  margin-top: 2rem;
}

body.page-template-page-contact-php .contact-map-mini {
   margin-top: 1.5rem;
  border-radius: 26px; /* match Gravity form */
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  flex: 1;
  display: flex;
}
body.page-template-page-contact-php .contact-map-mini:hover {
  filter: grayscale(0%);
}
body.page-template-page-contact-php .contact-map-mini iframe {
   width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 18px;
}

body.page-template-page-contact-php .contact-address {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* =================================================
   ICONS (CSS-ONLY, NO LIBRARIES)
================================================= */

/* Phone */
body.page-template-page-contact-php .contact-details p:nth-of-type(1)::before {
  content: "📞";
}

/* Email */
body.page-template-page-contact-php .contact-details p:nth-of-type(2)::before {
  content: "✉️";
}

/* Address */
body.page-template-page-contact-php .contact-details p:nth-of-type(3)::before {
  content: "📍";
}

/* Icon base */
body.page-template-page-contact-php .contact-details p::before {
  position: absolute;
  left: 0;
  top: 0.15rem;

  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.85;
}
  /* =================================================
     CONTACT FORM CARD (WRAPPER ONLY)
  ================================================= */

  body.page-template-page-contact-php .contact-form {
    background: var(--surface-base);
    border-radius: 26px;
    padding: 3.5rem 3rem;

    box-shadow: var(--shadow-medium);
  }

  /* =================================================
     MOBILE
  ================================================= */

  @media (max-width: 768px) {
    body.page-template-page-contact-php .contact-grid {
      grid-template-columns: 1fr;
    }

    body.page-template-page-contact-php .contact-section {
      padding: 3.5rem 0;
    }

    body.page-template-page-contact-php .hero-title {
      /* increase space */font-size: 2.1rem;
    }
     body.page-template-page-contact-php .contact-details {
    padding: 3rem 2.25rem;
  }

    body.page-template-page-contact-php .contact-details p {
    padding-left: 2.5rem;
  }
  }
}

/* =================================================
   GRAVITY FORMS — CONTACT PAGE (UNLAYERED OVERRIDES)
   IMPORTANT: Must be OUTSIDE @layer so it beats GF CSS
================================================= */

body.page-template-page-contact-php .contact-form .gform_wrapper,
body.page-template-page-contact-php .contact-form .gform_wrapper.gravity-theme {
  margin: 0 !important;
}

/* Hide GF title if it appears */
body.page-template-page-contact-php .contact-form .gform_title {
  display: none !important;
}

/* Spacing */
body.page-template-page-contact-php .contact-form .gform_fields,
body.page-template-page-contact-php .contact-form .gfield {
  row-gap: 0 !important;
}

body.page-template-page-contact-php .contact-form .gfield {
  margin-bottom: 1.35rem !important;
}

/* Labels */
body.page-template-page-contact-php .contact-form .gfield_label {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.35rem !important;
  color: var(--color-dark) !important;
}

/* Inputs (cover multiple GF structures) */
body.page-template-page-contact-php .contact-form .ginput_container input[type="text"],
body.page-template-page-contact-php .contact-form .ginput_container input[type="email"],
body.page-template-page-contact-php .contact-form .ginput_container input[type="tel"],
body.page-template-page-contact-php .contact-form .ginput_container input[type="url"],
body.page-template-page-contact-php .contact-form .ginput_container input[type="number"],
body.page-template-page-contact-php .contact-form .ginput_container select,
body.page-template-page-contact-php .contact-form .ginput_container textarea {
  width: 100% !important;
  padding: 0.9rem 1rem !important;

  font-size: 0.95rem !important;
  font-family: inherit !important;

  border-radius: 16px !important;
  border: var(--border-soft) !important;
  background: var(--surface-base) !important;

  box-shadow: none !important;

  transition:
    border-color .25s ease,
    box-shadow .25s ease !important;
}

body.page-template-page-contact-php .contact-form .ginput_container textarea {
  min-height: 140px !important;
  resize: vertical !important;
}

/* Focus ring */
body.page-template-page-contact-php .contact-form .ginput_container input:focus,
body.page-template-page-contact-php .contact-form .ginput_container textarea:focus,
body.page-template-page-contact-php .contact-form .ginput_container select:focus {
  outline: none !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px var(--shadow-brand) !important;
}

/* Validation */
body.page-template-page-contact-php .contact-form .gfield_error .ginput_container input,
body.page-template-page-contact-php .contact-form .gfield_error .ginput_container textarea,
body.page-template-page-contact-php .contact-form .gfield_error .ginput_container select {
  border-color: var(--color-primary-dark) !important;
box-shadow: 0 0 0 3px var(--shadow-brand-strong) !important;
}

body.page-template-page-contact-php .contact-form .validation_message,
body.page-template-page-contact-php .contact-form .gform_validation_errors {
  color: var(--color-primary-dark) !important;
}

/* Submit */
body.page-template-page-contact-php .contact-form .gform_footer {
  margin-top: 1.75rem !important;
}

body.page-template-page-contact-php .contact-form .gform_footer input[type="submit"],
body.page-template-page-contact-php .contact-form .gform_footer button,
body.page-template-page-contact-php .contact-form button,
body.page-template-page-contact-php .contact-form input[type="submit"] {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  ) !important;

  color: var(--surface-base) !important;
  border: none !important;

  border-radius: 999px !important;
  padding: 0.9rem 2.4rem !important;

  font-size: 0.95rem !important;
  font-weight: 600 !important;

  cursor: pointer !important;

  box-shadow: var(--shadow-brand-strong) !important;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease !important;
}

body.page-template-page-contact-php .contact-form .gform_footer input[type="submit"]:hover,
body.page-template-page-contact-php .contact-form .gform_footer button:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.05) !important;
  box-shadow: var(--shadow-brand-strong) !important;
}

/* AJAX spinner */
body.page-template-page-contact-php .contact-form .gform_ajax_spinner {
  margin-left: 0.75rem !important;
}

/* Confirmation */
body.page-template-page-contact-php .contact-form .gform_confirmation_message {
  padding: 1.5rem 1.75rem !important;
  background: var(--surface-muted) !important;
border: var(--border-soft) !important;

  font-weight: 500 !important;
  color: var(--color-dark) !important;
}
