/* ===== Section spacing (same as the home page) ===== */
.cp-section { padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 48px) !important; }
/* Loan Officers follows Contact directly, so it only needs space below */
.lo-section { padding: 0 clamp(20px, 4vw, 48px) clamp(60px, 8vw, 100px) !important; }
.final-cta-section { padding: 0 24px clamp(60px, 8vw, 100px) !important; }
/* This hero has no buttons, so the text needs no bottom margin */
.faq-hero-copy { margin-bottom: 0 !important; }

/* Send Message: stays teal (orange is for Apply Now) with the home page button shape and hover */
.cp-form-card .contact-submit {
  min-height: 56px; border-radius: 999px; font-size: 16px; font-weight: var(--fw-heading);
  transition: background-color .25s ease, transform .25s ease !important;
}
@media (hover: hover) {
  .cp-form-card .contact-submit:hover { transform: translateY(-2px) !important; }
}

/* ===== Sync with the rest of the site ===== */
/* Get in touch: same look as "We're here to help" on the loan pages
   (large line icon, bold title, teal value, thin solid dividers) */
.cp-card, .cp-card:nth-child(odd) {
  align-items: center; text-align: center; gap: 4px; margin: 0 8px; padding: 20px 16px;
  border-radius: 20px; background: transparent; transition: background-color 200ms ease;
}
.cp-card:hover { background: #EAF7FC; transform: none; box-shadow: none; }
.cp-card + .cp-card::before {
  left: -8px; top: 20%; bottom: 20%; width: 1px; background: rgba(27,96,131,.15);
}
.cp-card-icon { width: 48px; height: 48px; margin: 0 0 12px; border-radius: 0; background: transparent; color: var(--deep-teal); transition: transform 300ms ease; }
.cp-card-icon img { display: block; width: 44px; height: 44px; }
.cp-card:hover .cp-card-icon { transform: translateY(-3px); }
.cp-card-label { color: var(--charcoal-navy); font-size: 17px; font-weight: var(--fw-heading); line-height: var(--lh-ui); }
.cp-card-value { color: var(--deep-teal); font-size: 15px; font-weight: 600; line-height: var(--lh-body); }
a.cp-card-value:hover { color: var(--deep-teal); }

/* Follow us: round buttons, same shape as the footer social icons */
.cp-social { border-radius: 50%; }

/* Form fields: outlined, same style as the FAQ search box */
.cp-form-card .form-field input, .cp-form-card .form-field textarea {
  background: #FFFFFF; border: 1.5px solid rgba(27,96,131,.22);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cp-form-card .form-field input:hover, .cp-form-card .form-field textarea:hover { border-color: rgba(27,96,131,.4); }
.cp-form-card .form-field input:focus, .cp-form-card .form-field textarea:focus {
  background: #FFFFFF; border-color: var(--bright-blue); box-shadow: 0 0 0 4px rgba(45,174,224,.14);
}

/* Map and form: same 24px gap as side-by-side cards on the home page */
.cp-split { gap: 24px; }


/* Final call-to-action heading: same size as the home page */
@media (min-width: 641px) { .final-cta-content h2 { font-size: clamp(32px, 3.8vw, 48px); } }

@media (prefers-reduced-motion: reduce) { .cp-card-icon { transition: none; } .cp-card:hover .cp-card-icon { transform: none; } }


/* ===== Tablet ===== */
@media (max-width: 960px) {
  .faq-hero { min-height: 0 !important; height: auto !important; }
  .faq-hero-content { width: 80% !important; padding-top: 56px !important; padding-bottom: 56px !important; }
  .final-cta-section { padding: 0 20px 60px !important; }
}

/* ===== Phones ===== */
@media (max-width: 640px) {
  .faq-hero-wrap { padding: 12px 12px 0 !important; }
  .faq-hero-content { width: 100% !important; padding: 40px 22px !important; }
  .faq-hero-copy { margin-top: 18px !important; }
  .cp-section { padding: 60px 16px !important; }
  .lo-section { padding: 0 16px 60px !important; }
  .cp-head h2, .lo-heading h2 { font-size: clamp(28px, 8vw, 36px); }
  .cp-head { margin-bottom: 28px; }
  .cp-map-card { min-height: 280px; }
  /* Get in touch on phones: stacked list with the icon on the left (same as the loan pages) */
  .cp-cards { margin-bottom: 40px; }
  .cp-card, .cp-card:nth-child(odd) {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px;
    align-items: center; margin: 0; padding: 14px 8px; text-align: left;
  }
  .cp-card:first-child { padding-top: 14px; }
  .cp-card-icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .cp-card-icon img { width: 34px; height: 34px; }
  .cp-card + .cp-card::before, .cp-card:nth-child(odd)::before {
    left: 8px; right: 8px; top: 0; bottom: auto; width: auto; height: 1px; background: rgba(27,96,131,.15);
  }
  .lo-heading { margin-bottom: 24px; }
  .final-cta-section { padding: 0 12px 60px !important; }
  .final-cta-container { padding: 40px 22px !important; }
  .final-cta-actions { width: 100%; }
}
/* ===== Loan officer cards: same style as the rest of the site =====
   Card = testimonial card (soft light-blue panel, 20px corners, background change on hover).
   Contact rows = brand teal line icons like "We're here to help" (no Facebook blue / green / light blue). */
.lo-grid { gap: 24px; }
.lo-card {
  gap: 20px; padding: 28px; border-radius: 20px; background: #F4F9FB;
  box-shadow: none !important;
  /* Fade-up on scroll (staggered by --reveal-delay) plus the hover background change. */
  transition: background-color 300ms ease, opacity 700ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1) !important;
  transition-delay: 0ms, var(--reveal-delay, 0ms), var(--reveal-delay, 0ms) !important;
}
.lo-card:hover { background: #EAF3F8; transform: none; box-shadow: none; }
.lo-top { gap: 16px; }
.lo-avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #FFFFFF; }
/* No photo yet: same soft blue placeholder as the Our Team page */
.lo-avatar.lo-avatar--placeholder { background: linear-gradient(160deg, #D6ECF5 0%, #B9DCEB 100%); }
.lo-name { font-size: 17px; font-weight: 700; letter-spacing: 0; }
.lo-role { margin-top: 6px; font-size: 14px; color: var(--muted-blue-gray); }

.lo-contacts {
  display: grid; gap: 12px; padding: 20px 0 0;
  border-top: 1px solid rgba(27,96,131,.10);
}
.lo-contact, .lo-contact + .lo-contact {
  display: flex; align-items: center; gap: 12px; padding: 0;
  color: var(--charcoal-navy); font-size: 15px; font-weight: 600; text-decoration: none;
}
.lo-contact + .lo-contact::before { display: none !important; }
.lo-contact svg, .lo-contact--mail svg, .lo-contact--phone svg, .lo-contact--msg svg {
  flex: 0 0 20px; width: 20px; height: 20px; color: var(--deep-teal);
}
.lo-contact:hover { color: var(--deep-teal); }
.lo-contact:hover span { text-decoration: underline; text-underline-offset: 3px; }
.lo-contact:focus-visible { outline: 3px solid rgba(45,174,224,.55); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 640px) {
  .lo-grid { gap: 16px; }
  .lo-card { padding: 22px; }
  .lo-avatar { flex-basis: 56px; width: 56px; height: 56px; }
  .lo-contacts { padding-top: 16px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .lo-card { transition: none !important; } }

/* Help hero: text + cut-out photo (same layout as the FAQ and Skilled-OFW heroes) */
.faq-hero--media .faq-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: stretch; height: auto !important; min-height: 600px !important; }
.faq-hero--media .faq-hero-content { align-self: center; width: auto !important; max-width: none !important; padding: clamp(40px, 5vw, 72px) clamp(24px, 3vw, 40px) clamp(40px, 5vw, 72px) clamp(32px, 4.5vw, 68px) !important; }
.faq-hero-media { position: relative; z-index: 1; align-self: stretch; opacity: 0; animation: faqHeroRiseIn 900ms cubic-bezier(.22,1,.36,1) 700ms both; }
.faq-hero-media img {
  position: absolute; right: clamp(32px, 6vw, 96px); bottom: 0; display: block;
  width: 100%; height: calc(100% - 24px); object-fit: contain; object-position: right bottom;
  filter: drop-shadow(0 18px 30px rgba(32, 37, 47, 0.12));
}
@media (max-width: 960px) {
  .faq-hero--media .faq-hero { grid-template-columns: minmax(0, 1fr); min-height: 0 !important; }
  .faq-hero--media .faq-hero-content { padding: 44px 32px 20px !important; }
  .faq-hero-media { height: 360px; }
  .faq-hero-media img { right: 0; height: 100%; object-position: center bottom; }
}
@media (max-width: 640px) {
  .faq-hero--media .faq-hero-content { padding: 40px 22px 40px !important; }
  .faq-hero-media { display: none; } /* hero image hidden on phones */
}
@media (prefers-reduced-motion: reduce) { .faq-hero-media { animation: none !important; opacity: 1 !important; } }
