/* ==========================================================================
   Free Consultation page
   Reuses shared components from healthcare.css (loaded alongside this file):
   .hc-buttn, .hc-container, .hc-hero*, .hc-problem*, .hc-cards/.hc-card*, .hc-cta*
   Only page-specific pieces (hero photo crop, form section, Gravity Forms styling,
   CTA contact-info variant) live here.
   ========================================================================== */

.fc-page { overflow-x: hidden; }
.fc-page section { position: relative; }

/* ---------- Hero (reuses .hc-hero shell and .hc-hero__bg-wrap mirror wrapper from
   healthcare.css; this page's source photo needs a different zoom/crop, so it gets its own
   bg rule). The mirror MUST live on the full-viewport wrapper, not on this offset/oversized
   image directly — mirroring the image itself would flip it around its own off-center
   midpoint instead of the viewport's. Verified by simulating the crop against the source
   photo: mirroring this element directly puts the man on the left, behind the hero text;
   mirroring the wrapper matches the Figma screenshot (man centered, woman at the right). */
.fc-hero__bg {
  position: absolute;
  left: -37.26%;
  top: -43.29%;
  width: 137.61%;
  height: 216%;
  max-width: none;
  object-fit: cover;
}

/* ---------- Problem section: heading is black-then-blue (opposite order from Healthcare's
   problem sections), otherwise identical to .hc-problem ---------- */

/* ---------- Form Section ---------- */
.fc-form-section {
  position: relative;
  overflow: hidden;
  padding: 89px 0;
  color: #fff;
  background: linear-gradient(134deg, #0272bb 0%, #0474aa 25%, #077895 50%, #0b7d78 78%, #108257 100%);
}
.fc-form-section__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.75;
  pointer-events: none;
}
.fc-form-section__vector {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 65%;
  max-width: 900px;
  height: auto;
  mix-blend-mode: plus-lighter;
  opacity: 0.6;
  pointer-events: none;
}
.fc-form-section__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}
.fc-form-section__head {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  width: 100%;
  max-width: 1452px;
  flex-wrap: wrap;
}
.fc-form-section__heading {
  font-family: 'Fustat', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 2.5vw + 17.5px, 50px);
  line-height: 1.15;
  margin: 0;
  flex: 0 0 auto;
  max-width: 440px;
}
.fc-form-section__subtext {
  font-family: 'Fustat', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 1.1vw + 13px, 30px);
  line-height: 1.27;
  margin: 0;
  max-width: 912px;
}

@media (min-width: 1027px) {
    .fc-form-section__subtext {
      flex: 1 1 320px;
    }
}

/* ---------- Gravity Forms — scoped to .fc-form-wrap so it doesn't leak onto any other
   form the site adds later. (Gravity Forms appends "_wrapper" to the form's own cssClass
   setting, so that class isn't selectable directly on .gform_wrapper — this scope wrapper
   is used instead.) ---------- */
.fc-form-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1010px;
}
.fc-form-wrap .gform_wrapper {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 25px;
  box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.25);
  padding: 48px 32px;
}
@media (min-width: 640px) {
  .fc-form-wrap .gform_wrapper { padding: 75px; }
}
.fc-form-wrap .gform_wrapper form { width: 100%; }
.fc-form-wrap .gform_wrapper .gform_fields {
  display: flex;
  flex-direction: column;
  gap: 33px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fc-form-wrap .gfield.fc-field {
  margin: 0 !important;
  width: 100%;
}
.fc-form-wrap .gfield.fc-field .gfield_label {
  font-family: 'Fustat', sans-serif !important;
  font-weight: 600 !important;
  font-size: clamp(16px, 0.63vw + 13.8px, 22px) !important;
  line-height: 30px !important;
  color: #464646 !important;
  margin: 0 0 4px !important;
}

.fc-form-wrap .gfield.fc-field .gform-field-label__text {
  padding-right: 5px;
}

.fc-form-wrap .gfield.fc-field .gfield_required { color: #0272bb; }
.fc-form-wrap .gfield.fc-field input[type="text"],
.fc-form-wrap .gfield.fc-field input[type="email"],
.fc-form-wrap .gfield.fc-field input[type="tel"],
.fc-form-wrap .gfield.fc-field select,
.fc-form-wrap .gfield.fc-field textarea {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid #636569 !important;
  border-radius: 10px !important;
  padding: 13px 20px !important;
  font-family: 'Fustat', sans-serif !important;
  font-size: 18px !important;
  color: #464646 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.fc-form-wrap .gfield.fc-field input[type="text"],
.fc-form-wrap .gfield.fc-field input[type="email"],
.fc-form-wrap .gfield.fc-field input[type="tel"] {
  height: 60px !important;
}
.fc-form-wrap .gfield.fc-field-textarea textarea {
  height: 214px !important;
  resize: vertical;
}

/* Select field styled to match the Figma split box: label area + separate dark chevron button */
.fc-form-wrap .gfield.fc-field-select .ginput_container_select {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.fc-form-wrap .gfield.fc-field-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: 'Fustat', sans-serif !important;
  font-weight: 800 !important;
  font-size: 18px !important;
  text-transform: uppercase;
  padding: 13px 74px 13px 20px !important;
  height: 60px !important;
  cursor: pointer;
}
.fc-form-wrap .gfield.fc-field-select .ginput_container_select::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 60px;
  background-color: #636569;
  border-radius: 0 10px 10px 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 15"><path fill="white" d="M12 15L0 3l2-2 10 10L22 1l2 2z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}

.fc-form-wrap .gform_footer {
  display: flex;
  justify-content: flex-end;
  margin: 33px 0 0;
  padding: 0;
}
.fc-form-wrap .validation_error {
  font-family: 'Fustat', sans-serif;
  color: #b3261e;
  border-color: #b3261e;
  border-radius: 10px;
}
.fc-form-wrap .gfield_description.validation_message {
  color: #b3261e;
  font-family: 'Fustat', sans-serif;
  font-size: 14px;
  margin-top: 4px;
}
.fc-form-wrap .gfield_error input,
.fc-form-wrap .gfield_error select,
.fc-form-wrap .gfield_error textarea {
  border-color: #b3261e !important;
}
.fc-form-wrap .gform_confirmation_message {
  font-family: 'Fustat', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  background: rgba(11, 125, 120, 0.85);
  border-radius: 25px;
  padding: 60px;
  text-align: center;
}

/* ---------- CTA contact-info variant (reuses .hc-cta__box/box-bg/pattern/vector/photo) ---------- */
/* No width override here anymore — the shared .hc-cta__content max-width (36%, in
   healthcare.css) is percentage-based specifically so it always clears the photo's
   left edge; overriding it with a fixed px value reintroduces the same overlap bug
   at any box width narrower than the literal Figma spec assumed. */
.hc-cta__contact-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.hc-cta__contact-list li {
  font-family: 'Fustat', sans-serif;
  font-size: clamp(17px, 0.73vw + 14.5px, 24px);
  line-height: 40px;
  color: #fff;
  /* The address line was wrapping to leave a single orphaned word/number stranded alone on
     its own line — text-wrap:pretty (or balance, where supported) redistributes the break
     instead of the browser's default greedy wrap. Progressive enhancement: unsupported
     browsers just keep the normal wrap, no breakage. */
  text-wrap: pretty;
}
.hc-cta__contact-list strong { font-weight: 800; }
.hc-cta__contact-list span { font-weight: 400; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .fc-form-section__head { flex-direction: column; gap: 24px; }
  .fc-form-section__heading { max-width: 100%; }
  /* Same fixed-padding problem as healthcare.css's sections — 89px/64px never shrank at
     any tier, which is a huge gap once the form itself is much narrower. */
  .fc-form-section { padding: 56px 0; }
  .fc-form-section__inner { gap: 40px; }
}

@media (max-width: 768px) {
  .fc-form-section { padding: 48px 0; }
  .fc-form-section__inner { gap: 32px; }
}

@media (max-width: 640px) {
  .fc-form-section { padding: 32px 0; }
  .fc-form-section__inner { gap: 28px; }
  .fc-form-wrap .gform_wrapper { border-radius: 16px; }
  .fc-form-wrap .gform_footer { justify-content: stretch; }
  .fc-form-wrap .gform_footer .hc-buttn { width: 100%; justify-content: center; }
}
