*{box-sizing:border-box}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:#111;
  background:#fff;
}
.container{
  max-width:1200px;
  margin:0 auto;
  padding:24px;
}
.header{
  border-bottom:1px solid #eee;
}
.logo{
  height:36px;
}
.hero{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:16px;
  margin-top:32px;
}
.lede{
  font-size:1.1rem;
  color:#444;
}
.card{
  background:#f8fafc;
  border-radius:14px;
  padding:20px;
  margin-bottom:20px;
}
.card h3{
  margin-top:0;
}
.tiers{
  margin-top:56px;
}
.tier-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}
.tier{
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:20px;
}
.tier .price{
  font-weight:600;
}
button{
  background:#2563eb;
  color:#fff;
  border:none;
  border-radius:10px;
  padding:10px 16px;
  cursor:pointer;
}
.contact{
  margin-top:64px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.contact form input,
.contact form textarea{
  width:100%;
  padding:10px;
  margin-bottom:12px;
  border-radius:10px;
  border:1px solid #d1d5db;
}
.footer{
  margin-top:64px;
  padding:32px 0;
  border-top:1px solid #eee;
  text-align:center;
  font-size:13px;
  color:#555;
}

/* --- Enhanced Tier Styling --- */
.tiers { margin-top: 72px; }
.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.tier {
  background: #f8fafc;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tier:nth-child(1){ border-top:4px solid #94a3b8;}
.tier:nth-child(2){ border-top:4px solid #60a5fa;}
.tier:nth-child(3){ border-top:4px solid #6366f1;}
.tier:nth-child(4){ border-top:4px solid #22c55e;}

.tier h4 { margin: 0 0 8px; font-size: 20px; }
.tier .price { font-size: 16px; color:#334155; margin-bottom:12px;}
.tier p { margin: 0 0 16px; font-size:18px; font-weight:600; }

.tier button {
  margin-top: auto;
  background:#2563eb;
  border-radius:12px;
  padding:12px;
}

/* --- Hero spacing fix --- */
.header { padding: 12px 0; }
.hero { margin-top: 0; padding-top: 32px; padding-bottom: 64px; }

/* --- MDHIN Inclusive Network Section --- */
.info-model {
  margin-top: 72px;
}
.info-model h2 {
  margin-bottom: 12px;
}
.info-model .lede {
  max-width: 720px;
  margin-bottom: 32px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 24px;
}
.info-card {
  background:#f7fafc;
  border:1px solid #e5eef5;
  border-radius:14px;
  padding:24px;
}


/* --- Inclusive Network Model 2x2 --- */
.model { margin-top: 56px; }
.section-head { margin-bottom: 18px; }
.section-head .muted { margin: 6px 0 0; color:#64748b; }
.model-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:24px;
}
.model-card{
  background:#f7fafc;
  border:1px solid #e5eef5;
  border-radius:16px;
  padding:24px 26px;
}
.model-card h3{ margin:0 0 8px; font-size:18px; font-weight:600; }
.model-card p{ margin:0; color:#334155; line-height:1.65; }

/* --- Contact form rows --- */
.row3{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:12px;
}
@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; }
  .tier-grid, .model-grid{ grid-template-columns:1fr; }
  .contact{ grid-template-columns:1fr; }
  .row3{ grid-template-columns:1fr; }
}


/* --- Form styling (match approved clean style) --- */
.form-card{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
label{
  display:block;
  font-size:13px;
  font-weight:600;
  color:#334155;
  margin:10px 0 6px;
}
.row2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.turnstile{ margin: 14px 0 10px; }
.form-status{ margin-top:12px; font-size:14px; }
.form-status.ok{ color:#0f766e; }
.form-status.err{ color:#b91c1c; }
.btn-primary{ width:100%; }

/* --- Tier details --- */
.tier-sub{
  font-size:14px !important;
  font-weight:400 !important;
  color:#475569;
  margin-top:-6px !important;
}
.tier-includes{ margin-top:4px !important; }
.pill{
  display:inline-block;
  font-size:12px;
  font-weight:600;
  padding:6px 10px;
  border-radius:999px;
  background:#e0e7ff;
  color:#1e3a8a;
  margin-right:8px;
}
.pill-ghost{
  background:#e2e8f0;
  color:#0f172a;
}
.tier-notes{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}
.tier-notes .note{
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:16px 18px;
}
.tier-notes .note h3{
  margin:0 0 6px;
  font-size:14px;
  font-weight:700;
  color:#0f172a;
}
.tier-notes .note p{
  margin:0;
  font-size:13px;
  line-height:1.55;
  color:#334155;
}
.tier-notes .fineprint{
  grid-column: 1 / -1;
  background: transparent;
  border: none;
  padding: 0;
}
.tier-notes .fineprint p{
  font-size:12px;
  color:#64748b;
}

/* Header gap control */
.header{ padding: 10px 0 !important; }
.hero{ padding-top: 20px !important; }


/* --- Logo sizing --- */
.logo { height: 64px; width: auto; display:block; }
.header { padding: 10px 0 !important; }

/* --- Tier select link button --- */
.select-tier{
  display:inline-block;
  text-align:center;
  text-decoration:none;
  color:white;
}

/* --- Register page helpers --- */
.page-head{ margin: 18px 0 22px; }
.small{ font-size:12px; }
.prose h1{ margin-top: 22px; }
.prose h2{ margin-top: 18px; font-size: 18px; }
.prose p{ line-height:1.7; }

/* ensure row3 exists for register */
.row3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:12px;
}
.checkbox{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:12px;
  font-size:14px;
  color:#334155;
}
.checkbox input{ margin-top:3px; }

/* FORCE 2x2 tier grid */
.tier-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}

/* Tier cards */
.tier-card{
  background:#fff;
  border-radius:16px;
  padding:24px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

/* Primary button */
.btn-primary{
  display:inline-block;
  margin-top:16px;
  padding:12px 18px;
  background:#2563eb;
  color:#fff;
  border-radius:12px;
  text-decoration:none;
  font-weight:600;
}

/* Registration grid */
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
}


/* ===== PLAN GRID FIX ===== */
.plans-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 760px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan-link,
.select-plan-right {
  display: none !important;
}

/* ===== REGISTRATION FORM FIX ===== */
* { box-sizing: border-box; }

.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.form-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-grid.three {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.field,
input,
select {
  min-width: 0;
  width: 100%;
}


/* ===== TOP NAV ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.topbar-inner{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0;
}
.brand-left,.brand-right{display:flex; align-items:center;}
.logo{height:38px; width:auto; display:block;}
.mdhin-logo{height:34px;}
.topnav{
  display:flex;
  gap:12px;
  flex: 1;
  justify-content:center;
  flex-wrap:wrap;
}
.topnav a{
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  padding:8px 10px;
  border-radius:10px;
  color: rgba(0,0,0,0.78);
}
.topnav a:hover{
  background: rgba(0,0,0,0.05);
}
@media (max-width: 520px){
  .topbar-inner{flex-wrap:wrap; justify-content:space-between;}
  .topnav{justify-content:flex-start; width:100%; overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px;}
  .topnav a{white-space:nowrap;}
}


/* Basic section spacing */
.section{padding: 26px 0;}
.section h2{margin: 0 0 8px 0;}
.muted{color: rgba(0,0,0,0.62);}



/* ===== TOP NAV (COMPACT + PRIMARY CTA) ===== */
.topbar-inner{
  padding:6px 0;                 /* tighter height */
}

.logo{height:34px;}              /* slightly smaller logos */
.mdhin-logo{height:30px;}

.topnav{
  gap:10px;
}

.topnav a{
  font-size:13.5px;
  padding:6px 10px;
}

/* Primary emphasis for Find your plan */
.topnav a.primary{
  background:#0f172a;            /* subtle dark emphasis */
  color:#fff;
}

.topnav a.primary:hover{
  background:#020617;
}


/* ===== Enrollment form (softer, rounded) ===== */
.form-card{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.form-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 760px){
  .form-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .span-2{ grid-column: span 2; }
  .span-3{ grid-column: span 3; }
}
label{ font-weight: 600; font-size: 13px; color: rgba(0,0,0,0.72); }
input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
  outline: none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(0,0,0,0.25);
  background: #fff;
}
.helper-row{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
}
.provider-search-form{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap:wrap;
  margin: 10px 0 8px 0;
}
.provider-search-form input{
  flex: 1;
  min-width: 240px;
}
.provider-notes{
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: rgba(0,0,0,0.02);
}
.tier.popular{ position: relative; }
.badge{
  position:absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.06);
}
.plan-cta-tight{ margin-top: 12px; }
.plan-cta-tight .btn{ padding: 10px 14px; border-radius: 14px; }


/* ===== Plan grid (2x2) ===== */
.plan-grid{ display:grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px){ .plan-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }


/* ===== Reduce whitespace between hero and Select a Plan ===== */
.hero-section{
  margin-bottom: 24px !important;
  padding-bottom: 24px !important;
}
#plans,
.tiers,
.select-plan{
  margin-top: 0 !important;
}


/* ===== Further tighten hero -> plans spacing ===== */
.hero-section{
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
}
.hero-section + *{
  margin-top: 0 !important;
}
.select-plan,
.tiers,
#plans{
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* ===== Provider search: smaller input + spacing to button (visual fix only) ===== */
.provider-search input[type="text"],
#providerSearch input[type="text"],
input[type="text"][placeholder*="ZIP"],
input[type="text"][placeholder*="zip"]{
  max-width: 520px;
  width: 100%;
  border-radius: 10px;
  padding: 10px 12px;
}

.provider-search button,
#providerSearch button,
#providerSearch .btn,
#providerSearch input[type="submit"],
#providerSearch .search-btn{
  margin-top: 10px;
}

/* If input + button are inline, stack nicely */
.provider-search form,
#providerSearch form{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}


/* ===== Provider search form (exact selectors) ===== */
.provider-search-form{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}

.provider-search-form #providerQuery{
  max-width:520px;
  width:100%;
  border-radius:10px;
  padding:10px 12px;
}

.provider-search-form #providerSearchBtn{
  margin-top:0; /* gap handles spacing */
}


/* ===== Provider search: match Contact form styling (visual only) ===== */
.provider-search-form{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  max-width:520px; /* keep it compact */
}

.provider-search-form #providerQuery{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid #d1d5db;
  box-sizing:border-box;
}

.provider-search-form #providerSearchBtn{
  border-radius:10px;
  padding:10px 16px;
}


/* ===== Tier card feature list (added per request; no other layout changes) ===== */
.tier-features{
  margin: 12px 0 14px;
  padding-left: 0;
  list-style: none;
  font-size: 0.9rem;
  color: #1f2937;
}
.tier-features li{
  margin-bottom: 6px;
  line-height: 1.35;
}


/* Tier checklist */

.tier-checklist {
  margin: 12px 0 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.tier-checklist li {
  margin-bottom: 6px;
}


/* --- Provider search cards (added 20260203v3) --- */
.notice {
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  background: rgba(0,0,0,0.02);
  margin-top: 12px;
}
.notice.error {
  border-color: rgba(176,0,32,0.25);
  background: rgba(176,0,32,0.05);
}
.notice .muted { color: rgba(0,0,0,0.65); font-size: 14px; }
.provider-card {
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fff;
  margin-top: 12px;
}
.provider-card__name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.provider-card__meta {
  font-size: 14px;
  color: rgba(0,0,0,0.72);
  margin-top: 2px;
}


/* =========================================================
   FIX: Constrain Enrollment / Join page width (CORRECTED)
   ========================================================= */

.page-join .container,
.page-join .section,
.page-join .form-wrap,
.page-join .form-card {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Prevent full-bleed stretching */
.page-join {
  background: #fff;
}

/* Tighten vertical spacing at top */
.page-join .page-head,
.page-join h1 {
  margin-top: 12px;
}

/* =========================================================
   FIX: Remove legacy Enroll / Eligibility link (global)
   ========================================================= */
.topnav a[href*="Eligibility"],
.topnav a[href*="Enroll"] {
  display: none !important;
}


/* =========================================================
   FORCE HIDE legacy enrollment link shown above join form
   (link text: "Enroll Tiers Eligibility")
   ========================================================= */

/* Hide any standalone legacy link immediately under header on join page */
.page-join .container > a,
.page-join a[href*="eligibility"],
.page-join a[href*="Eligibility"] {
  display: none !important;
}

/* =========================================================
   Ensure join page aligns with site container rhythm
   ========================================================= */
.page-join .container,
.page-join .section,
.page-join .form-wrap,
.page-join .form-card {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   v20 JOIN PAGE FIXES
   ========================================================= */

/* Ensure the topbar spans full width; keep content centered */
.page-join .topbar { width: 100%; }
.page-join .topbar .topbar-inner { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Hide any legacy Enroll/Eligibility links that may be injected */
.page-join a[href*="eligibility"],
.page-join a[href*="Eligibility"],
.page-join a[href*="enroll"],
.page-join a[href*="Enroll"] {
  display: none !important;
}
