/* Independent CFI Program page */

.cfi-page {
  --cfi-blue: #61b8ff;
  --cfi-text: #333;
  --cfi-muted: #696969;
  --cfi-border: #f0f0f0;
  --cfi-bg: #f8f8f8;
  --cfi-dark: #141414;
  color: var(--cfi-text);
}

.cfi-page .cfi-eyebrow {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cfi-blue);
  margin-bottom: 16px;
}

.cfi-page .cfi-h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--cfi-text);
  margin: 0 0 16px;
}

.cfi-page .cfi-lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  color: var(--cfi-muted);
  margin: 0;
}

.cfi-page .cfi-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cfi-page .cfi-check img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 4px;
}

.cfi-page .cfi-check span {
  font-size: 16px;
  line-height: 28px;
  color: var(--cfi-muted);
}

.cfi-page .cfi-check--light span {
  color: #fff;
}

.cfi-page .btn-cfi-ghost {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 5px;
  padding: 17px 30px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
}

.cfi-page .btn-cfi-ghost:hover,
.cfi-page .btn-cfi-ghost:focus {
  background: #fff;
  color: var(--cfi-text);
}

.cfi-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/*
 * Hero — Figma 389:207 Banner Content
 * Visible gap nav → first text: 120px
 * gap: 20px | banner padding-bottom: 150px
 *
 * Site header stays absolute/overlay (light nav text on dark hero).
 * padding-top = ~header height + Figma 120px so the gap is not under the nav.
 */
.cfi-hero.section {
  position: relative;
  float: none;
  clear: both;
  padding-top: calc(90px + 120px) !important;
  padding-right: 0 !important;
  padding-bottom: 150px !important;
  padding-left: 0 !important;
  margin-bottom: -66px;
  background-image: url("../images/N6701R-3.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.cfi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 23, 0.68);
}

.cfi-hero .cfi-wrap {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
}

.cfi-hero .cfi-eyebrow {
  margin-bottom: 0;
}

.cfi-hero__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 64px;
  color: #fff;
  margin: 0;
}

.cfi-hero__tagline {
  font-size: 24px;
  font-weight: 600;
  color: var(--cfi-blue);
  margin: 0;
}

.cfi-hero__desc {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  color: #fff;
}

/* Figma: three content-width checks, single line, centered as a group */
.cfi-hero__checks {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 0;
  width: max-content;
  max-width: 100%;
}

.cfi-hero__checks .cfi-check {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.cfi-hero__checks .cfi-check img {
  margin-top: 0;
}

.cfi-hero__checks .cfi-check span {
  font-size: 16px;
  line-height: 28px;
  white-space: nowrap;
}

.cfi-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding-top: 0;
}

.cfi-hero__actions .btn {
  min-height: 52px;
  padding: 17px 30px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
}

.cfi-hero__actions .btn-primary,
.cfi-hero__actions .btn-primary:hover,
.cfi-hero__actions .btn-primary:focus,
.cfi-cta__actions .btn-primary,
.cfi-cta__actions .btn-primary:hover,
.cfi-cta__actions .btn-primary:focus {
  color: #0b1e2b !important;
}

.cfi-hero__note {
  font-size: 14px;
  font-weight: 500;
  color: #d5d5d5;
  margin: 0;
}

/* Feature cards — Figma 389:255 */
.cfi-features {
  position: relative;
  z-index: 2;
  padding-bottom: 44px;
}

.cfi-features__grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.cfi-feature-card {
  flex: 1 0 0;
  min-width: 0;
  background: #fff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 10px 15px rgba(51, 51, 51, 0.08);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  box-sizing: border-box;
}

.cfi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 44px;
  padding: 0 12px;
  background: #61b8ff;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.cfi-badge--lg {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 20px;
}

.cfi-feature-card p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  color: #333;
  width: 100%;
}

/* Numbers */
.cfi-numbers {
  padding: 70px 0 110px;
}

.cfi-numbers .cfi-section-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.cfi-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.cfi-chip {
  background: rgba(97, 184, 255, 0.15);
  color: var(--cfi-blue);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.cfi-compare-card {
  background: #fff;
  border: 1px solid var(--cfi-border);
  padding: 40px;
  height: 100%;
}

.cfi-compare-card--featured {
  border: 4px solid var(--cfi-blue);
}

.cfi-compare-card__tag {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cfi-blue);
  margin: 0 0 8px;
}

.cfi-compare-card__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  margin: 0 0 12px;
}

.cfi-compare-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cfi-border);
  font-size: 16px;
  line-height: 28px;
}

.cfi-compare-row span:first-child {
  color: var(--cfi-muted);
}

.cfi-compare-row span:last-child {
  font-weight: 600;
  color: var(--cfi-text);
  white-space: nowrap;
}

.cfi-compare-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 20px;
}

.cfi-compare-total span {
  font-size: 16px;
  font-weight: 600;
}

.cfi-compare-total strong {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--cfi-text);
}

.cfi-compare-card--featured .cfi-compare-total strong {
  color: var(--cfi-blue);
}

.cfi-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--cfi-blue);
  color: #fff;
  padding: 30px 40px;
  margin-top: 20px;
}

.cfi-summary-bar__figures {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.cfi-summary-bar__figures small {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cfi-summary-bar__figures strong {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.cfi-summary-bar__delta {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.cfi-disclaimer {
  max-width: 950px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 24px;
  color: var(--cfi-muted);
}

/* Recruitment */
.cfi-recruitment {
  background: var(--cfi-bg);
  padding: 110px 0;
}

.cfi-recruitment__photo {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.cfi-recruitment__copy {
  padding-left: 20px;
}

.cfi-recruitment__copy .cfi-h2 {
  font-size: 40px;
  line-height: 52px;
}

.cfi-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 28px;
}

/* Benefits */
.cfi-benefits {
  padding: 110px 0;
}

.cfi-benefits .cfi-section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.cfi-benefit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.cfi-benefit-card {
  background: #fff;
  border: 1px solid var(--cfi-border);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cfi-benefit-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  margin: 0;
  color: var(--cfi-text);
}

.cfi-benefit-card p {
  font-size: 16px;
  line-height: 26px;
  color: var(--cfi-muted);
  margin: 0;
}

@media (max-width: 1199.98px) {
  .cfi-benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .cfi-benefit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .cfi-benefit-grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing */
.cfi-pricing {
  background: var(--cfi-bg);
  padding: 110px 0;
}

.cfi-pricing .cfi-section-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.cfi-price-card {
  background: #fff;
  border: 1px solid var(--cfi-border);
  padding: 40px;
  text-align: center;
  height: 100%;
}

.cfi-price-card--featured {
  border: 4px solid var(--cfi-blue);
}

.cfi-price-card__label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cfi-blue);
  margin: 0 0 12px;
}

.cfi-price-card__amount {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--cfi-text);
  margin: 0 0 12px;
}

.cfi-price-card--featured .cfi-price-card__amount {
  color: var(--cfi-blue);
}

.cfi-price-card__amount small {
  font-size: 18px;
  font-weight: 500;
  color: var(--cfi-muted);
}

.cfi-price-card__note {
  font-size: 16px;
  line-height: 26px;
  color: var(--cfi-muted);
  margin: 0;
}

.cfi-pricing__fine {
  text-align: center;
  font-size: 14px;
  line-height: 24px;
  color: var(--cfi-muted);
  margin: 40px 0 0;
}

/* Requirements */
.cfi-requirements {
  padding: 110px 0;
}

.cfi-requirements .cfi-h2 {
  font-size: 42px;
  line-height: 1.2;
}

.cfi-req-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--cfi-border);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.cfi-req-item p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: var(--cfi-text);
}

/* FAQ */
.cfi-faq {
  padding: 110px 0;
}

.cfi-faq .cfi-section-head {
  margin-bottom: 40px;
}

.cfi-faq .mx-accordion .card {
  border: none;
  box-shadow: 0 15px 50px rgba(51, 51, 51, 0.1);
  margin-bottom: 16px;
  overflow: hidden;
}

.cfi-faq .mx-accordion .card-header {
  padding: 0;
  background: transparent;
  border: none;
}

.cfi-faq .mx-accordion .acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 26px;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  color: var(--cfi-muted);
  text-decoration: none;
}

.cfi-faq .mx-accordion .acc-btn:not(.collapsed) {
  background: var(--cfi-blue);
  color: #fff;
}

.cfi-faq .mx-accordion .acc-btn::after {
  content: "+";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: inherit;
}

.cfi-faq .mx-accordion .acc-btn:not(.collapsed)::after {
  content: "−";
}

.cfi-faq .mx-accordion .card-body {
  padding: 22px 26px;
  font-size: 16px;
  line-height: 28px;
  color: var(--cfi-muted);
}

/* CTA */
.cfi-cta {
  background: var(--cfi-dark);
  padding: 100px 0;
  text-align: center;
}

.cfi-cta .cfi-eyebrow {
  color: #fff;
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 3px;
}

.cfi-cta__title {
  font-size: 34px;
  font-weight: 600;
  line-height: 44px;
  color: #fff;
  margin: 0 0 16px;
}

.cfi-cta__body {
  max-width: 820px;
  margin: 0 auto 36px;
  font-size: 16px;
  line-height: 28px;
  color: #ababab;
}

.cfi-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cfi-cta__actions .btn {
  min-height: 52px;
  padding: 17px 30px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  text-transform: uppercase;
}

/* Contact */
.cfi-contact {
  padding: 110px 0;
}

.cfi-contact__label {
  font-size: 16px;
  font-weight: 600;
  color: var(--cfi-text);
  margin: 0 0 6px;
}

.cfi-contact__value {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 28px;
  color: var(--cfi-text);
}

.cfi-contact__value a {
  color: var(--cfi-blue);
  text-decoration: none;
}

.cfi-contact__value a:hover {
  text-decoration: underline;
}

.cfi-contact__map {
  width: 100%;
  height: 400px;
  border: 0;
  background: #f0f0f0;
}

@media (max-width: 991.98px) {
  .cfi-hero.section {
    padding-top: calc(90px + 120px) !important;
    padding-bottom: 150px !important;
    margin-bottom: -40px;
  }

  .cfi-hero__checks {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 14px;
  }

  .cfi-hero__checks .cfi-check {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 360px;
    white-space: normal;
    text-align: left;
    gap: 12px;
  }

  .cfi-hero__checks .cfi-check span {
    flex: 1 1 auto;
    white-space: normal;
    text-align: left;
    font-size: 16px;
    line-height: 24px;
  }

  .cfi-hero__checks .cfi-check img {
    margin-top: 2px;
  }

  .cfi-hero__title {
    font-size: 36px;
    line-height: 44px;
  }

  .cfi-features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .cfi-page .cfi-h2,
  .cfi-requirements .cfi-h2 {
    font-size: 32px;
    line-height: 1.25;
  }

  .cfi-recruitment__copy {
    padding-left: 0;
    margin-top: 40px;
  }

  .cfi-summary-bar {
    padding: 24px;
  }

  .cfi-summary-bar__delta {
    font-size: 22px;
  }

  .cfi-compare-total strong {
    font-size: 36px;
  }
}

@media (max-width: 767.98px) {
  .cfi-checklist {
    grid-template-columns: 1fr;
  }

  .cfi-hero__checks {
    gap: 12px;
    padding: 0 4px;
  }

  .cfi-hero__checks .cfi-check {
    max-width: 100%;
  }

  .cfi-hero__tagline {
    font-size: 20px;
  }

  .cfi-hero__desc {
    font-size: 16px;
    line-height: 24px;
  }

  .cfi-hero.section {
    margin-bottom: -24px;
    padding-top: calc(90px + 120px) !important;
    padding-bottom: 150px !important;
  }

  .cfi-hero__title {
    font-size: 32px;
    line-height: 38px;
  }

  .cfi-features__grid {
    grid-template-columns: 1fr;
  }
}
