/* ============================================================================
   MedicareManny.com - Plan Finder
   Ported from the Claude Design high-fidelity mockup into the site's tokens
   (styles.css: green/white/black, DM Serif Display / DM Sans, senior sizing).
   Mobile-first, high-contrast, reduced-motion aware, print-friendly.
   ========================================================================== */

.pf-page main { background: var(--white); }

/* ---- app shell ---------------------------------------------------------- */
.pf-app {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 44px 20px 64px;
}
.pf-inner { width: 100%; max-width: 760px; }

/* ---- progress ----------------------------------------------------------- */
.pf-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.pf-progress-track { flex: 1; height: 8px; border-radius: 999px; background: var(--green-lt); overflow: hidden; }
.pf-progress-fill { height: 100%; border-radius: 999px; background: var(--green); width: 0%; transition: width .35s ease; }
.pf-progress-label { font-size: 15px; color: var(--gray-500); white-space: nowrap; font-weight: 500; }

/* ---- cards -------------------------------------------------------------- */
.pf-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 40px 40px 36px;
  box-shadow: 0 2px 4px rgba(0,0,0,.02), 0 14px 40px rgba(0,0,0,.05);
}
.pf-kicker {
  font-size: 14px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--green-dk); margin-bottom: 14px;
}
.pf-question {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400; font-size: clamp(28px, 4.4vw, 34px); line-height: 1.18;
  margin: 0 0 10px; color: var(--black);
}
.pf-help { font-size: 18px; color: var(--gray-700); margin: 0 0 28px; line-height: 1.5; }

/* ---- options ------------------------------------------------------------ */
.pf-options { display: flex; flex-direction: column; gap: 14px; }
.pf-option {
  width: 100%; background: var(--white);
  border: 2px solid var(--border); border-radius: 14px;
  padding: 18px 20px; cursor: pointer; font: inherit;
  transition: border-color .15s, background .15s;
  min-height: 64px; display: flex; align-items: center; gap: 16px; text-align: left;
}
.pf-option:hover { border-color: var(--green); background: var(--green-lt); }
.pf-option:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.pf-option.is-selected { border-color: var(--green); background: var(--green-lt); }
.pf-radio {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  border: 2.5px solid #C7CDC8; display: inline-flex; align-items: center; justify-content: center;
}
.pf-option.is-selected .pf-radio { border-color: var(--green); background: var(--green); color: var(--white); }
.pf-opt-label { font-weight: 600; font-size: 19px; color: var(--black); }
.pf-opt-sub { font-size: 15px; color: var(--gray-500); margin-top: 3px; line-height: 1.45; }

/* ---- nav row ------------------------------------------------------------ */
.pf-nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 30px;
}
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 14px 26px;
  font-family: 'DM Sans', sans-serif; font-size: 18px; font-weight: 700;
  border-radius: 16px; border: 2px solid var(--green); cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.pf-btn-primary { background: var(--green); color: var(--white); box-shadow: 0 8px 20px rgba(76,175,80,.3); }
.pf-btn-primary:hover { background: var(--green-dk); transform: translateY(-1px); }
.pf-btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.pf-btn-ghost { background: none; border: none; color: var(--gray-700); font-weight: 500; font-size: 17px; padding: 8px 4px; min-height: 0; }
.pf-btn-ghost:hover { color: var(--green-dk); }
.pf-btn:focus-visible, .pf-btn-ghost:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.pf-step-label { font-size: 15px; color: #9AA09B; margin-left: auto; }

/* ---- results ------------------------------------------------------------ */
.pf-results-header { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(28px,4.6vw,36px); line-height: 1.15; margin: 0 0 8px; color: var(--black); }
.pf-results-sub { font-size: 18px; color: var(--gray-700); margin: 0 0 30px; line-height: 1.5; }
.pf-focus-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 26px; }
.pf-focus {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 18px;
  padding: 24px 26px; box-shadow: 0 2px 4px rgba(0,0,0,.02), 0 8px 22px rgba(0,0,0,.04);
  display: flex; align-items: flex-start; gap: 14px;
}
.pf-focus.is-dsnp { background: var(--green-lt); border: 2px solid var(--green); box-shadow: 0 8px 22px rgba(76,175,80,.16); }
.pf-focus-icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--green-lt);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.pf-focus.is-dsnp .pf-focus-icon { background: var(--green); }
.pf-focus-title { font-weight: 700; font-size: 20px; margin-bottom: 4px; color: var(--black); }
.pf-focus.is-dsnp .pf-focus-title { color: var(--green-deep); }
.pf-focus-note { font-size: 17px; line-height: 1.5; color: var(--gray-700); }
.pf-focus.is-dsnp .pf-focus-note { color: var(--green-dk); }

/* ---- payoff card -------------------------------------------------------- */
.pf-payoff {
  background: var(--green-deep); border-radius: 18px; padding: 34px 36px; color: var(--white);
  box-shadow: 0 14px 40px rgba(46,125,50,.28);
}
.pf-payoff-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 27px; line-height: 1.2; margin-bottom: 12px; }
.pf-payoff-text { font-size: 19px; line-height: 1.55; margin: 0 0 24px; color: var(--green-lt); }
.pf-payoff-btn {
  background: var(--white); color: var(--green-deep); border: none;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 20px;
  padding: 16px 34px; border-radius: 16px; cursor: pointer; min-height: 64px;
  transition: background .15s;
}
.pf-payoff-btn:hover { background: var(--green-lt); }
.pf-payoff-btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---- trust line --------------------------------------------------------- */
.pf-trust {
  text-align: center; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border);
}
.pf-trust-line { font-size: 16px; color: var(--gray-700); line-height: 1.55; max-width: 600px; margin: 0 auto; }
.pf-trust-disc { font-size: 13px; color: #9AA09B; margin-top: 8px; }
.pf-startover-row { text-align: center; margin-top: 24px; }
.pf-startover { background: none; border: none; color: var(--green-dk); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.pf-startover:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---- talk to manny (lead form) ----------------------------------------- */
.pf-talk-title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 32px; line-height: 1.15; margin: 0 0 6px; color: var(--black); }
.pf-talk-sub { font-size: 18px; color: var(--gray-700); margin: 0 0 20px; }
.pf-trust-box { background: var(--off); border: 1px solid var(--border); border-radius: 12px; padding: 15px 18px; margin-bottom: 26px; }
.pf-trust-box .pf-trust-line { text-align: left; margin: 0; }
.pf-trust-box .pf-trust-disc { text-align: left; margin-top: 6px; }

.pf-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pf-field { flex: 1; min-width: 200px; }
.pf-field.pf-narrow { min-width: 160px; flex: 1; }
.pf-field.pf-wide { flex: 1.4; min-width: 200px; }
.pf-label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 7px; color: var(--gray-900); }
.pf-input, .pf-textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; font-family: 'DM Sans', sans-serif;
  font-size: 18px; color: var(--black); border: 1.5px solid var(--border); border-radius: 14px; background: var(--off);
}
.pf-textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.pf-input:focus, .pf-textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-lt); }

.pf-contact-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pf-pill {
  background: var(--white); color: var(--black); border: 2px solid var(--border);
  font: inherit; font-weight: 600; font-size: 17px; padding: 12px 20px; border-radius: 12px;
  cursor: pointer; min-height: 56px;
}
.pf-pill:hover { border-color: var(--green); }
.pf-pill.is-selected { background: var(--green); color: var(--white); border-color: var(--green); }
.pf-pill:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.pf-reach-header { font-size: 15px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.pf-written { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-written-btn {
  flex: 1; min-width: 150px; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green-lt); color: var(--green-deep); text-decoration: none; font-weight: 700; font-size: 18px;
  min-height: 64px; border-radius: 14px; border: 1.5px solid #C8E6C9;
}
.pf-written-btn:hover { background: #C8E6C9; color: var(--green-deep); text-decoration: none; }
.pf-written-btn i { width: 22px; height: 22px; }
.pf-call-secondary { margin-bottom: 28px; }
.pf-call-secondary a { display: inline-flex; align-items: center; gap: 8px; color: var(--gray-700); text-decoration: none; font-size: 16px; font-weight: 500; }
.pf-call-secondary i { width: 18px; height: 18px; }

/* consent */
.pf-consent {
  display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left;
  background: var(--off); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 18px 20px; cursor: pointer; font: inherit; transition: background .15s, border-color .15s;
}
.pf-consent.is-checked { background: var(--green-lt); border-color: var(--green); }
.pf-consent-box {
  width: 28px; height: 28px; flex: none; border-radius: 7px; border: 2px solid #C7CDC8; background: var(--white);
  color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
.pf-consent.is-checked .pf-consent-box { border-color: var(--green); background: var(--green); }
.pf-consent-text { font-size: 14px; line-height: 1.55; color: var(--gray-700); }
.pf-consent:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.pf-submit-row { display: flex; gap: 16px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.pf-error { margin-top: 14px; padding: 12px 14px; background: #FDECEA; border: 1.5px solid #E57373; border-radius: 10px; color: #B71C1C; font-size: 15px; font-weight: 600; }

/* ---- confirmation ------------------------------------------------------- */
.pf-done { text-align: center; padding: 60px 24px; }
.pf-done-badge {
  width: 88px; height: 88px; border-radius: 50%; background: var(--green-lt);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; font-size: 44px;
}
.pf-done-title { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 34px; line-height: 1.2; margin: 0 auto 12px; max-width: 520px; color: var(--black); }
.pf-done-sub { font-size: 19px; color: var(--gray-700); margin: 0 auto 30px; max-width: 460px; line-height: 1.5; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 720px) {
  .pf-card { padding: 26px 20px 22px; }
  .pf-written-btn { min-width: 100%; }
  .pf-btn { padding: 14px 18px; font-size: 17px; }
}

/* ---- reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pf-progress-fill, .pf-option, .pf-btn, .pf-payoff-btn, .pf-written-btn, .pf-consent { transition: none; }
}

/* ---- print -------------------------------------------------------------- */
@media print {
  .site-header, .pf-progress, .pf-nav, .pf-payoff, .pf-startover-row, .footer, .header-cta, .language-toggle { display: none !important; }
  .pf-card, .pf-focus { border: 1px solid #999; box-shadow: none; }
}
