/* ===== Plan Finder — scoped to #finder ===== */
#finder { --brand:#1f3b73; --ring:#e5ebf6; --muted:#5a6886; --ink:#0f172a; }
#finder .wrap{ max-width:1140px; margin:32px auto; padding:0 16px; }
@media (max-width:575.98px){ #finder .wrap{ padding:0 12px; } }

/* Override shared .cardx-head with finder-specific styling */
.cardx-head{ padding:16px 18px; border-bottom:1px solid var(--ring); background:linear-gradient(180deg,#fff,#fafcff); border-radius:16px 16px 0 0; }

.steps{ display:flex; gap:10px; flex-wrap:wrap; margin:8px 0 0; }
.step{ padding:6px 10px; border:1px solid var(--ring); border-radius:999px; background:#fff; font-weight:800; }

.pill{ display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid var(--ring); border-radius:999px; background:#fff; font-weight:800; }
.plan-price{ font-weight:900; }
.rec-card i{ font-size:1.05rem; color:#1f3b73; margin-top:2px; }

/* Finder-specific form overrides */
#finder .form-control,
#finder .form-select{ border-radius:12px; }
#finder .btn-primary{ background:var(--brand); border-color:var(--brand); font-weight:800; border-radius:12px; }
#finder .finder-consent-note{
    font-size:15px;
    line-height:1.45;
    color:#374151;
    background:#f8fbff;
    border:1px solid #dbe7f5;
    border-radius:12px;
    padding:10px 12px;
}

/* ===== Top instruction banner ===== */
.finder-banner{
    margin-bottom:16px;
    background:linear-gradient(135deg,#1f3b73,#182f5b);
    color:#fff;
    border-radius:16px;
    padding:14px 16px;
    box-shadow:0 14px 32px rgba(15,23,42,.25);
    border:1px solid rgba(255,255,255,.14);
    position:relative;
    overflow:hidden;
}
.finder-banner::before{
    content:'';
    position:absolute;
    inset:-40%;
    background:
        radial-gradient(circle at 0 0, rgba(255,255,255,.08) 0, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(124,194,255,.12) 0, transparent 55%);
    opacity:.6;
    pointer-events:none;
}
.finder-banner-inner{
    position:relative; z-index:1;
    display:flex; flex-wrap:wrap; gap:14px;
    align-items:flex-start; justify-content:space-between;
}
.finder-banner-icon{
    flex:0 0 auto; width:40px; height:40px;
    border-radius:14px; background:rgba(15,23,42,.6);
    display:grid; place-items:center; font-size:20px;
}
.finder-banner-main{ flex:1 1 260px; min-width:0; }
.finder-banner-title{ font-weight:800; letter-spacing:-.02em; margin:0 0 4px; font-size:16px; }
.finder-banner-text{ margin:0; font-size:13px; opacity:.95; }
.finder-banner-side{ flex:0 0 auto; min-width:200px; text-align:right; font-size:12px; opacity:.95; }
.finder-banner-side strong{ font-size:13px; }
.finder-banner a:link,
.finder-banner a:visited,
.finder-banner a:hover,
.finder-banner a:active,
.finder-banner a:focus{ color:#f9fafb !important; text-decoration:underline; text-decoration-style:dotted; }
.finder-banner a:hover,
.finder-banner a:focus{ text-decoration-style:solid; }
@media(max-width:768px){ .finder-banner-side{ text-align:left; } }
/* ==================== NEW GRID & SECTION STYLES ==================== */
.form-section {
  margin-bottom: 2.5rem;
}
.form-section-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink);
}
.form-section-header p {
  margin: 0;
  font-size: 0.95rem;
}

.grid-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.pill {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 2px solid var(--ring);
  border-radius: 9999px;
  background: #fff;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
  margin: 0;
}
.pill:hover {
  border-color: var(--brand);
  background: #f8fbff;
  transform: translateY(-1px);
}
.pill input:checked + span,
.pill input:checked {
  color: var(--brand);
}

/* Better form spacing */
#finder .row.g-4 > * {
  margin-bottom: 0;
}
#finder .form-label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
/* ====================== ENHANCED PREFERENCE PILLS WITH VISIBLE CHECKBOX ====================== */
.preference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.preference-pill {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--ring);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  min-height: 100%;
}

.preference-pill:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(31, 59, 115, 0.12);
  transform: translateY(-3px);
}

.preference-pill .form-check-input {
  margin-top: 4px;
  accent-color: var(--brand);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}

.pill-content {
  flex: 1;
  min-width: 0;
}

.pill-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}

.pill-description {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #475569;
  background: #f0f6ff;           /* Light blue highlight */
  padding: 10px 12px;
  border-radius: 10px;
  border-top: 1px solid #dbe7f5;
  margin-top: 4px;
}

/* Checked State */
.preference-pill input:checked {
  border-color: var(--brand);
}

.preference-pill input:checked ~ .pill-content .pill-title {
  color: var(--brand);
}

.preference-pill input:checked .pill-description {
  background: #e0ecff;
}
.info-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.15rem;
  padding: 2px 4px;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
}

.info-btn:hover {
  color: var(--brand);
}

.preference-pill {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--ring);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
}

.preference-pill:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(31, 59, 115, 0.12);
  transform: translateY(-3px);
}

.pill-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.pill-description {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #475569;
  background: #f0f6ff;
  padding: 10px 12px;
  border-radius: 10px;
}