/* =====================================================================
   Explore Plans — FedHMO (FEHB) Plan Match Questionnaire
   Self-contained: bundles the CareFirst brand variables + the wizard
   component styles this questionnaire needs (FedHMO has no
   care-navigator.css). Everything here is scoped so it cannot disturb
   the rest of explore-plans.html (plan cards, carousel, cost table).
   ===================================================================== */

:root {
  /* Primary */
  --cf-process-blue: #0099cc; /* CareFirst Blue */
  --cf-dark-blue: #003359;
  --cf-interactive-blue: #086ea1;
  --cf-note-blue: #e0f3fb;

  /* Text */
  --cf-soft-black: #303030;
  --cf-black: #000000;
  --cf-dark-grey: #707070;
  --cf-white: #ffffff;

  /* Grey palette / backgrounds */
  --cf-bg-grey: #f6f6f6;
  --cf-highlight-grey: #f2f2f2;
  --cf-border-grey: #e6e6e6;

  /* Accent */
  --cf-green: #126d2d;
  --cf-red: #ce1d3b;
  --cf-yellow: #ffcc33;
}

/* ---------------------------------------------------------------------
   Wizard + result cards
   --------------------------------------------------------------------- */
#planMatch {
  margin-bottom: 2.5rem;
}

#planMatchWizard .card,
#planMatchResultSection .card {
  border-color: var(--cf-border-grey);
}

#planMatchWizard legend,
#pmQuestionText {
  font-weight: 600;
  color: var(--cf-dark-blue);
}

#pmStage,
#pmStepLabel {
  color: var(--cf-dark-grey) !important;
}

#planMatch .card-header,
#planMatchResultSection .card-header {
  background-color: var(--cf-white);
}

/* Progress bar */
#pmProgressBar {
  background-color: var(--cf-process-blue) !important;
}

/* ---------------------------------------------------------------------
   Buttons (scoped to the questionnaire)
   --------------------------------------------------------------------- */
#planMatch .btn-primary:disabled {
  background-color: hsl(195, 100%, 25%) !important;
  border-color: hsl(195, 100%, 25%);
}

#planMatch .btn-outline-secondary {
  color: var(--cf-dark-grey);
  border-color: var(--cf-dark-grey);
}

#planMatch .btn-outline-secondary:hover,
#planMatch .btn-outline-secondary:focus {
  background-color: var(--cf-dark-grey);
  border-color: var(--cf-dark-grey);
  color: var(--cf-white);
}

/* ---------------------------------------------------------------------
   Alerts (brand-remapped, scoped to the questionnaire + results)
   --------------------------------------------------------------------- */
#planMatch .alert-info,
#planMatchResultSection .alert-info {
  background-color: var(--cf-note-blue);
  color: var(--cf-black) !important;
}

#planMatch .alert-warning,
#planMatchResultSection .alert-warning {
  background-color: #fff6dc;
  color: var(--cf-soft-black);
}

/* ---------------------------------------------------------------------
   Answer options rendered as large, tappable cards
   --------------------------------------------------------------------- */
#planMatch .answer-card {
  border: 1px solid var(--cf-border-grey);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  background-color: var(--cf-white);
  color: var(--cf-soft-black);
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

#planMatch .answer-card:hover,
#planMatch .answer-card:focus-within {
  border-color: var(--cf-note-blue);
  box-shadow: 0 0 0 0.15rem rgba(0, 153, 204, 0.2);
}

#planMatch .answer-card.selected {
  background-color: var(--cf-note-blue);
}

#planMatch .answer-card input {
  margin-top: 0.25rem;
}

/* ---------------------------------------------------------------------
   Mobile touch-target sizing (WCAG 2.5.5 / 44x44 minimum)
   --------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  #planMatch .answer-card {
    padding: 0.875rem;
  }
  #planMatch .btn {
    min-height: 44px;
  }
}
