/*
 * /find-your-provider redesign (PAWC-335), from the Figma "Find a Provider" frame.
 *
 * Everything is prefixed fyp- and scoped under .provider-page-container so it can't reach other
 * pages through style.css's shared classes. Breakpoints follow style.css (768 / 992), the same
 * ones .provider-page-container switches its own padding at.
 */

.provider-page-container {
  --fyp-heading: #111827;
  --fyp-text: #4b5875;
  --fyp-text-strong: #3f4a63;
  --fyp-green: var(--bg-base-green, #10393e);
  --fyp-sage: var(--button-primary-bg, #5c7a5a);
  --fyp-sage-light: #cfdccf;
  --fyp-surface-sage: #e8eee7;
  --fyp-surface-note: #d5e0d5;
  --fyp-surface-row: #f6f8f5;
  --fyp-border: #e1e6e0;
  --fyp-border-pill: #d6ded5;
  --fyp-border-step: #dfe3df;
  --fyp-radius-xl: 22px;
  --fyp-radius-lg: 16px;
  --fyp-radius-md: 12px;
  /* Height of the fixed .modern-navbar (style.css) plus a little air, so a step heading
     reached from the guide doesn't land under it. Update if the navbar's height changes. */
  --fyp-anchor-offset: 96px;
}

/* Figma lays the whole page - directory included - in an 1100px column. */
.fyp-page {
  max-width: 1100px;
  margin-inline: auto;
}

/* The free-consult toggle (PAWC-319) joins the filter bar from xxl up, where the directory used
   to be 1360px wide. In the 1100px column it squeezes the dropdowns until their labels are cut,
   so keep it in the banner below the bar, which toggles the same filter, as narrower screens do.
   !important to beat Bootstrap's d-xxl-block. */
.fyp-page #filterFreeConsultCol {
  display: none !important;
}

.fyp-icon {
  flex-shrink: 0;
}

/* DM Serif ships only weight 400; inside the 500-weight headings the browser would fake a bold.
   (style.css already sets its family and italic with !important.) */
.provider-page-container .dm-style-text {
  font-weight: 400;
}

/* ---------- Hero ---------- */

.fyp-hero {
  padding-top: 4px;
  margin-bottom: 28px;
}

.fyp-hero .fyp-hero-title {
  margin: 0 0 16px;
  color: var(--fyp-heading);
  font-family: var(--font-intel);
  font-size: 40px;
  font-weight: 500;
  line-height: 50px;
  letter-spacing: -0.5px;
}

.fyp-hero-subtitle {
  margin: 0 0 20px;
  color: var(--fyp-text);
  font-family: var(--font-intel);
  font-size: 17px;
  line-height: 26px;
}

.fyp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fyp-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--fyp-border);
  border-radius: 999px;
  background: #fff;
  color: var(--fyp-sage);
  font-family: var(--font-intel);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Shared section pieces ---------- */

.fyp-section {
  margin-top: 120px;
}

.fyp-badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 13px;
  border: 0;
  background: #e6ebe7;
  color: var(--fyp-green);
  font-size: 12px;
  letter-spacing: 0;
  line-height: 16px;
}

.fyp-h2 {
  margin: 0 0 22px;
  color: var(--fyp-heading);
  font-family: var(--font-intel);
  font-size: 36px;
  font-weight: 500;
  line-height: 46px;
  letter-spacing: -0.4px;
}

.fyp-h3 {
  margin: 0 0 22px;
  color: var(--fyp-heading);
  font-family: var(--font-intel);
  font-size: 26px;
  font-weight: 500;
  line-height: 34px;
  letter-spacing: -0.3px;
}

.fyp-step-eyebrow {
  margin: 0 0 22px;
  color: var(--fyp-sage);
  font-family: var(--font-intel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.fyp-step-text {
  margin: 0 0 20px;
  color: var(--fyp-text-strong);
  font-family: var(--font-intel);
  font-size: 15px;
  line-height: 24px;
}

.fyp-step {
  scroll-margin-top: var(--fyp-anchor-offset);
}

/* The steps take focus only from the guide's jump links (tabindex="-1"), so a ring around the
   whole block would just be noise. */
.fyp-step:focus {
  outline: none;
}

.fyp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fyp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-intel);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.fyp-pills-light .fyp-pill {
  border: 1px solid var(--fyp-border-pill);
  background: #fff;
  color: var(--fyp-green);
}

.fyp-pills-outline .fyp-pill {
  padding-left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* Chips that filter the directory (chip.php). Same look as the labels, plus link states. */
.fyp-pill-link {
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.fyp-pill-link:focus-visible {
  outline: 2px solid var(--fyp-sage);
  outline-offset: 2px;
}

.fyp-pills-light .fyp-pill-link:hover,
.fyp-pills-light .fyp-pill-link:focus-visible {
  border-color: var(--fyp-sage);
  background: var(--fyp-surface-row);
  color: var(--fyp-green);
}

.fyp-pills-outline .fyp-pill-link:hover,
.fyp-pills-outline .fyp-pill-link:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.fyp-pills-outline .fyp-pill-link:focus-visible {
  outline-color: #fff;
}

/* Where a chip or a plan row takes the visitor (find-provider.js, bindGuideFilters): the search
   bar, clear of the fixed navbar - the same offset the step jumps use. */
.fyp-page .provider-search-section {
  scroll-margin-top: var(--fyp-anchor-offset);
}

.fyp-step-network .fyp-step-text a {
  color: var(--fyp-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fyp-step-network .fyp-step-text a:hover,
.fyp-step-network .fyp-step-text a:focus-visible {
  color: var(--fyp-sage);
}

/* ---------- Guide ---------- */

.fyp-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 60px;
  align-items: start;
}

.fyp-guide-intro {
  margin: 0 0 32px;
  color: var(--fyp-text);
  font-family: var(--font-intel);
  font-size: 16.5px;
  line-height: 27px;
}

.fyp-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fyp-step-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 53px;
  padding: 8px 0;
  border-top: 1px solid var(--fyp-border-step);
  color: var(--fyp-green);
  font-family: var(--font-intel);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.fyp-steps li + li {
  margin-top: 2px;
}

.fyp-step-link:hover .fyp-step-label,
.fyp-step-link:focus-visible .fyp-step-label {
  text-decoration: underline;
}

.fyp-step-number {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fyp-green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.fyp-step-label {
  flex: 1;
}

.fyp-step-link .fyp-icon {
  color: var(--fyp-sage);
}

.fyp-guide-media {
  overflow: hidden;
  border-radius: var(--fyp-radius-xl);
}

.fyp-guide-image {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Step 01: therapist or psychiatrist ---------- */

.fyp-step-dark {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  margin-top: 72px;
  padding: 56px 59px 56px 59px;
  border-radius: var(--fyp-radius-xl);
  background: var(--fyp-green);
}

.fyp-step-dark .fyp-step-eyebrow {
  margin-top: 4px;
  color: var(--fyp-sage-light);
}

.fyp-step-dark .fyp-h3 {
  font-size: 28px;
  line-height: 36px;
  color: #fff;
}

.fyp-step-dark-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-intel);
  font-size: 15px;
  line-height: 24px;
}

.fyp-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.fyp-role {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--fyp-radius-lg);
  background: rgba(255, 255, 255, 0.06);
}

.fyp-role-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--font-intel);
  font-size: 16.5px;
  font-weight: 600;
}

.fyp-role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fyp-sage);
  color: #fff;
}

.fyp-role-text {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-intel);
  font-size: 15px;
  line-height: 23px;
}

.fyp-role-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-intel);
  font-size: 14px;
  line-height: 22px;
}

.fyp-both {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--fyp-surface-note);
  color: var(--fyp-green);
  font-family: var(--font-intel);
  font-size: 15px;
  font-weight: 500;
  line-height: 23px;
}

.fyp-both-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--fyp-green);
  color: #fff;
}

.fyp-step-dark-services {
  margin: 24px 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-intel);
  font-size: 15px;
  line-height: 24px;
}

.fyp-step-dark-services a {
  color: var(--fyp-sage-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fyp-step-dark-services a:hover,
.fyp-step-dark-services a:focus-visible {
  color: #fff;
}

/* ---------- Steps 02 and 03 ---------- */

.fyp-step-pair {
  display: grid;
  grid-template-columns: minmax(0, 600fr) minmax(0, 480fr);
  gap: 20px;
  margin-top: 20px;
}

.fyp-step-concern,
.fyp-step-network {
  padding: 48px 40px 44px;
  border-radius: var(--fyp-radius-xl);
}

.fyp-step-concern {
  background: var(--fyp-surface-sage);
}

/* Figma's sage (#5c7a5a) is 4.06:1 on this card; one shade darker clears 4.5:1. */
.fyp-step-concern .fyp-step-eyebrow {
  color: #4e6a4c;
}

.fyp-step-network {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--fyp-border);
  background: #fff;
}

.fyp-divider {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid #d3dcd2;
  opacity: 1;
}

.fyp-insurers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: auto 0 0;
  padding: 24px 0 0;
  list-style: none;
}

.fyp-insurer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--fyp-border);
  border-radius: var(--fyp-radius-md);
  background: var(--fyp-surface-row);
  color: var(--fyp-green);
  font-family: var(--font-intel);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fyp-insurer:hover,
.fyp-insurer:focus-visible {
  border-color: var(--fyp-sage);
  background: #fff;
  color: var(--fyp-green);
}

.fyp-insurer .fyp-icon {
  color: var(--fyp-sage);
}

/* ---------- CTA ---------- */

.fyp-cta {
  display: grid;
  grid-template-columns: minmax(0, 455fr) minmax(0, 498fr);
  align-items: center;
  max-width: 1278px;
  margin: 110px auto 0;
  padding: 80px 131px 80px 194px;
  border-radius: var(--fyp-radius-xl);
  background: linear-gradient(90deg, #6a8462 0%, #4a6a58 40%, #10393e 100%);
}

.fyp-cta-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-intel);
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
  letter-spacing: -0.3px;
}

.fyp-cta-title .dm-style-text {
  display: block;
}

.fyp-cta-body p {
  margin: 0 0 20px;
  color: #fff;
  font-family: var(--font-intel);
  font-size: 16.5px;
  line-height: 26px;
}

.fyp-cta-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--fyp-green);
  color: #fff;
  font-family: var(--font-intel);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.fyp-cta-button:hover,
.fyp-cta-button:focus-visible {
  background: #0b2a2e;
  color: #fff;
}

/* ---------- FAQ ---------- */

.fyp-faq {
  display: grid;
  grid-template-columns: 396px minmax(0, 1fr);
  max-width: 984px;
  margin: 120px auto 40px;
}

.fyp-faq-title {
  margin: 0;
  color: var(--fyp-heading);
  font-size: 36px;
  line-height: 44px;
}

.fyp-faq-list .accordion-item {
  margin-bottom: 13px;
  overflow: hidden;
  border: 0;
  border-radius: var(--fyp-radius-md);
  background: #fff;
}

.fyp-faq-list .accordion-item:last-child {
  margin-bottom: 0;
}

.fyp-faq-list .accordion-header {
  margin: 0;
}

.customfaq-button.fyp-faq-list button.accordion-button,
.customfaq-button.fyp-faq-list button.accordion-button.collapsed,
.customfaq-button.fyp-faq-list .accordion-button:not(.collapsed) {
  padding: 20px;
  color: var(--fyp-heading);
  font-size: 15.5px;
  line-height: 22px;
}

.fyp-faq-list .accordion-button::after {
  width: 17px;
  height: 17px;
  background-size: 17px;
}

.customfaq-button.fyp-faq-list .accordion-body {
  padding: 0 20px 22px;
  color: var(--fyp-text);
  font-size: 14px;
  line-height: 21px;
}

/* ---------- Tablet ---------- */

@media (max-width: 1199px) {
  .fyp-cta {
    padding: 64px 56px;
    column-gap: 48px;
  }

  /* A fixed 520px photo leaves the guide copy too narrow here; share the row instead. */
  .fyp-guide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 40px;
  }

  /* Below 1200 the intro column leaves the two role cards too narrow; stack the panel. */
  .fyp-step-dark {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 992px) {
  .fyp-section {
    margin-top: 80px;
  }

  .fyp-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .fyp-guide-media {
    max-width: 520px;
  }

  .fyp-step-dark {
    margin-top: 56px;
    padding: 40px;
  }

  .fyp-step-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .fyp-insurers {
    margin-top: 0;
  }

  /* Stacked, the copy runs across the light start of the gradient, where white text falls
     under 4.5:1; start it one stop darker. */
  .fyp-cta {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
    margin-top: 80px;
    background: linear-gradient(160deg, #4a6a58 0%, #10393e 100%);
  }

  .fyp-faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 80px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
  .provider-page-container {
    --fyp-anchor-offset: 88px;
  }

  .fyp-hero {
    margin-bottom: 20px;
  }

  .fyp-hero .fyp-hero-title {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -0.3px;
  }

  .fyp-hero-subtitle {
    font-size: 15px;
    line-height: 23px;
  }

  .fyp-trust {
    gap: 8px;
  }

  .fyp-trust-item {
    height: auto;
    min-height: 30px;
    padding: 5px 12px 5px 10px;
    font-size: 12.5px;
    white-space: normal;
  }

  .fyp-section {
    margin-top: 64px;
  }

  .fyp-h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .fyp-h3,
  .fyp-step-dark .fyp-h3 {
    font-size: 24px;
    line-height: 32px;
  }

  .fyp-guide-intro {
    font-size: 15px;
    line-height: 24px;
    margin-bottom: 24px;
  }

  .fyp-guide-media {
    max-width: none;
  }

  .fyp-step-dark {
    margin-top: 48px;
    padding: 32px 20px;
  }

  .fyp-roles {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .fyp-role {
    padding: 20px;
  }

  .fyp-both {
    align-items: flex-start;
    padding: 16px;
  }

  .fyp-step-pair {
    gap: 16px;
    margin-top: 16px;
  }

  .fyp-step-concern,
  .fyp-step-network {
    padding: 32px 20px;
  }

  .fyp-cta {
    margin-top: 64px;
    padding: 40px 24px;
    text-align: center;
  }

  .fyp-cta-title {
    font-size: 28px;
    line-height: 36px;
  }

  .fyp-cta-body p {
    font-size: 15px;
    line-height: 24px;
  }

  .fyp-faq {
    margin: 64px 0 24px;
  }

  .fyp-faq-heading {
    text-align: center;
  }

  .fyp-faq-title {
    font-size: 32px;
    line-height: 40px;
  }
}
