/* ============================================================================
   MedicareManny.com - Enrollment Period Finder
   Layered ON TOP of styles.css. Reuses the same design tokens (green/white/
   black, DM Serif Display / DM Sans, senior-friendly sizing). No new palette.
   Mobile-first, high-contrast, reduced-motion aware, print-friendly.
   ========================================================================== */

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

/* ---- intro / hero for the tool ------------------------------------------ */

.finder-hero {
  padding: 48px 6% 8px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.finder-hero .section-kicker { color: var(--green-dk); }
.finder-hero h1 { margin: 6px auto 14px; max-width: 760px; }
.finder-hero .finder-lede {
  font-size: 20px; color: var(--gray-700);
  max-width: 680px; margin: 0 auto 10px; line-height: 1.55;
}
.finder-reviewed {
  font-size: 14px; color: var(--gray-500);
  margin-top: 8px;
}

/* Non-governmental banner - explicit, calm, always visible. */
.finder-nongov {
  max-width: 820px;
  margin: 18px auto 0;
  background: var(--green-lt);
  border: 1.5px solid var(--green);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--green-deep);
  line-height: 1.5;
  text-align: center;
}

/* ---- app shell ---------------------------------------------------------- */

.finder-app {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 0 6% 8px;
}

.finder-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ---- progress ----------------------------------------------------------- */

.finder-progress { margin-bottom: 22px; }
.finder-progress-track {
  height: 10px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}
.finder-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 999px;
  transition: width .25s ease;
}
.finder-progress-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 600;
}

/* ---- question ----------------------------------------------------------- */

.finder-step-question {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 8px;
}
.finder-step-help {
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Choice buttons - large tap targets. */
.finder-options { display: grid; gap: 12px; }
.finder-option {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 16px 20px;
  text-align: left;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.finder-option:hover { border-color: var(--green); background: var(--green-lt); }
.finder-option:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.finder-option.is-selected {
  border-color: var(--green);
  background: var(--green-lt);
  color: var(--green-deep);
}
.finder-option .finder-option-mark {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: inline-flex; align-items: center; justify-content: center;
}
.finder-option.is-selected .finder-option-mark {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}
.finder-option-sub {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Date input */
.finder-date-field { margin-bottom: 8px; }
.finder-date-field label {
  display: block;
  font-size: 16px; font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.finder-date-field input {
  width: 100%;
  padding: 16px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
}
.finder-date-field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-lt);
}
.finder-field-hint { font-size: 14px; color: var(--gray-500); margin-top: 8px; line-height: 1.5; }
.finder-privacy-inline {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green-dk); font-weight: 600;
}

/* Validation */
.finder-error {
  margin-top: 12px;
  padding: 12px 14px;
  background: #FDECEA;
  border: 1.5px solid #E57373;
  border-radius: 10px;
  color: #B71C1C;
  font-size: 15px;
  font-weight: 600;
}

/* ---- nav row ------------------------------------------------------------ */

.finder-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.finder-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px; font-weight: 700;
  border-radius: 14px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.finder-btn-primary {
  background: var(--green); color: var(--white);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}
.finder-btn-primary:hover { background: var(--green-dk); transform: translateY(-1px); }
.finder-btn-primary:disabled {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
}
.finder-btn-ghost { background: var(--white); color: var(--green-dk); }
.finder-btn-ghost:hover { background: var(--green-lt); }
.finder-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.finder-reset-row { margin-top: 16px; text-align: center; }
.finder-reset {
  background: none; border: none;
  color: var(--gray-500);
  font-size: 15px; font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px;
}
.finder-reset:hover { color: var(--green-dk); }
.finder-reset:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---- results ------------------------------------------------------------ */

.finder-results-intro { margin-bottom: 8px; }
.finder-results-intro h2 { margin-bottom: 8px; }
.finder-results-note {
  font-size: 15px; color: var(--gray-700);
  line-height: 1.55; margin-bottom: 4px;
}

.result-card {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 18px;
  background: var(--off);
}
.result-card.is-likely { border-left: 6px solid var(--green); }
.result-card.is-possible { border-left: 6px solid var(--accent-blue); }
.result-card.is-special, .result-card.is-insufficient {
  border-left: 6px solid #C9A227;
}

.result-badge {
  display: inline-block;
  font-size: 13px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.result-badge.is-likely { background: var(--green); color: var(--white); }
.result-badge.is-possible { background: #E3F2FD; color: #0D47A1; }
.result-badge.is-special, .result-badge.is-insufficient {
  background: #FFF6DA; color: #7A5B00;
}

.result-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px; line-height: 1.2;
  margin-bottom: 6px; color: var(--black);
}
.result-window {
  font-size: 18px; font-weight: 700; color: var(--green-deep);
  margin-bottom: 12px;
}
.result-section { margin-top: 14px; }
.result-section h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.result-section p, .result-section li {
  font-size: 16px; color: var(--gray-900); line-height: 1.55;
}
.result-section ul { margin: 0 0 0 20px; }
.result-sources a { font-weight: 700; word-break: break-word; }
.result-disclaimer {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: 10px;
  font-size: 14px; color: var(--gray-700); line-height: 1.5;
}

/* ---- contact funnel (written-first) ------------------------------------- */

.contact-funnel {
  margin-top: 26px;
  border: 2px solid var(--green);
  border-radius: 18px;
  padding: 26px;
  background: var(--green-lt);
}
.contact-funnel h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px; margin-bottom: 6px; color: var(--black);
}
.contact-funnel p.contact-lede {
  font-size: 16px; color: var(--gray-700); margin-bottom: 18px; line-height: 1.5;
}
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: block; }
.contact-form .field-label {
  display: block; font-size: 15px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 6px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  color: var(--black);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
}
.contact-form textarea { min-height: 90px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(76,175,80,.18);
}
.contact-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--gray-700); line-height: 1.5;
}
.contact-consent input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }

.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 6px;
}
.contact-channel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border: 2px solid var(--green);
  border-radius: 14px;
  background: var(--white);
  color: var(--green-dk);
  font-size: 16px; font-weight: 700;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background .15s, transform .1s;
}
.contact-channel:hover { background: var(--green); color: var(--white); text-decoration: none; transform: translateY(-2px); }
.contact-channel:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 2px; }
.contact-channel i { width: 26px; height: 26px; }
.contact-channel[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.contact-phone-secondary {
  margin-top: 16px; text-align: center;
  font-size: 15px; color: var(--gray-700);
}
.contact-phone-secondary a { font-weight: 700; }

.contact-confirm {
  margin-top: 16px;
  padding: 16px;
  background: var(--white);
  border: 1.5px solid var(--green);
  border-radius: 12px;
  color: var(--green-deep);
  font-size: 16px; font-weight: 600; line-height: 1.5;
}

/* ---- educational / SEO content ------------------------------------------ */

.finder-education {
  max-width: 820px;
  margin: 8px auto 0;
  padding: 40px 6% 8px;
}
.finder-education h2 { text-align: center; margin-bottom: 6px; }
.finder-education .section-intro { text-align: center; }
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-top: 14px;
  background: var(--white);
}
.faq-item h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 19px; font-weight: 800; line-height: 1.3;
  margin-bottom: 8px; color: var(--black);
}
.faq-item p { font-size: 16px; color: var(--gray-700); line-height: 1.6; }
.faq-item .faq-source { font-size: 14px; margin-top: 8px; }

.finder-periods-list {
  max-width: 820px; margin: 20px auto 0; padding: 0 6%;
  display: grid; gap: 10px;
}
.period-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--off);
  font-size: 16px;
}
.period-row strong { color: var(--black); }
.period-row span { color: var(--gray-700); text-align: right; }

/* ---- breadcrumbs -------------------------------------------------------- */

.finder-breadcrumbs {
  max-width: 820px; margin: 0 auto; padding: 16px 6% 0;
  font-size: 14px; color: var(--gray-500);
}
.finder-breadcrumbs a { color: var(--green-dk); font-weight: 600; }
.finder-breadcrumbs span { margin: 0 6px; }

/* ---- responsive --------------------------------------------------------- */

@media (max-width: 720px) {
  .finder-card { padding: 22px 18px 20px; }
  .contact-channels { grid-template-columns: 1fr; }
  .finder-btn { padding: 14px 18px; font-size: 16px; }
  .period-row { flex-direction: column; gap: 4px; }
  .period-row span { text-align: left; }
}

/* ---- reduced motion ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .finder-progress-fill, .finder-option, .finder-btn, .contact-channel { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- print (result is print-friendly) ----------------------------------- */

@media print {
  .site-header, .finder-progress, .finder-nav, .finder-reset-row,
  .contact-funnel, .footer, .finder-nongov, .header-cta, .language-toggle {
    display: none !important;
  }
  .finder-card, .result-card { border: 1px solid #999; box-shadow: none; }
  body { font-size: 13pt; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
}
