:root {
  --navy: #243038;
  --navy-deep: #1b242b;
  --navy-mid: #0076c8;
  --cyan: #0076c8;
  --cyan-dark: #00a0dc;
  --paper: #f3f5f7;
  --white: #ffffff;
  --ink: #243038;
  --muted: #66727c;
  --line: #e1e6eb;
  --danger: #b42318;
  --gold: #c9a227;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Source Sans 3", "Segoe UI", sans-serif;
  --link: #00a0dc;
  --button: #0076c8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan-dark);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 20;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.skip-link-second:focus {
  top: 3rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 1.25rem));
  margin-inline: auto;
}

.site-header {
  background: var(--navy);
  color: var(--white);
}

.hero {
  padding: 1.7rem 0 2rem;
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 174, 240, 0.22), transparent 42%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  font-weight: 700;
}

.lede {
  margin: 0;
  max-width: 42rem;
  color: #d5e4f2;
  font-size: 1.02rem;
}

.lede strong {
  color: var(--white);
}

.quote-panel {
  margin-top: -1.4rem;
  padding-bottom: 1.5rem;
}

#quote-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid var(--line);
  container-type: inline-size;
}

.form-intro h2 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--navy);
}

.form-intro p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.household {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}

.household h3 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--navy);
}

.household-lede {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.7rem;
  cursor: pointer;
  width: fit-content;
}

.check-row input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--navy);
}

.dependents-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.9rem 0 0.5rem;
}

.dependents-head span {
  font-weight: 600;
  color: var(--navy);
}

.dependent-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.dependent-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.btn-secondary,
.btn-remove {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.btn-secondary {
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 0.9rem;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #f5fbfe;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
  text-align: left;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-remove:hover,
.btn-remove:focus-visible {
  color: var(--danger);
}

[hidden] {
  display: none !important;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}

.field em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

.field input {
  font: inherit;
  font-weight: 400;
  border: 1px solid #c5d3e0;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: var(--white);
}

.field input:focus {
  outline: 3px solid rgba(0, 174, 240, 0.35);
  border-color: var(--cyan);
}

.field.required span::after {
  content: " *";
  color: var(--danger);
}

.form-error {
  margin: 0.85rem 0 0;
  color: var(--danger);
  font-weight: 600;
}

.form-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-actions .btn-primary {
  width: 100%;
}

.dentist-toggle {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.dentist-toggle-state {
  flex: none;
  font-family: var(--sans, "IBM Plex Sans", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan-dark, var(--navy));
}

.dentist-toggle[aria-expanded="true"] .dentist-toggle-state::before {
  content: "Hide";
}

.dentist-toggle[aria-expanded="false"] .dentist-toggle-state::before {
  content: "Show";
}

.rate-footnote {
  margin: -0.35rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
}

.btn-primary,
.btn-enroll {
  appearance: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-primary {
  background: var(--cyan);
  color: var(--navy-deep);
  padding: 0.85rem 1.3rem;
  font-size: 1.02rem;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #2bc0ff;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.results {
  padding: 0.5rem 0 2.5rem;
  container-type: inline-size;
  container-name: plans;
}

.results-head {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.results-head h2 {
  margin: 0;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.5rem;
}

.results-meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.chip.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.status-banner {
  background: #e8f7fd;
  border: 1px solid #b7e4f6;
  color: var(--navy);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.status-banner.warn {
  background: #fff6e5;
  border-color: #f0d7a0;
}

.empty-filter {
  color: var(--muted);
}

.compare-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.06);
}

.plan-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
}

.plan-card-top > div {
  min-width: 0;
}

.carrier-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  object-position: right center;
}

.inn-note {
  margin: 0 0 0.75rem;
  padding: 0.62rem 0.75rem;
  background: #e8f7ee;
  border: 1px solid #b7e4c7;
  border-radius: 10px;
  color: #0d5c38;
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 600;
}

.loading-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.4rem 0 1rem;
  padding: 1rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #d5e3ee;
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-kicker {
  margin: 0.15rem 0 0;
  font-weight: 700;
  color: var(--navy);
}

.loading-tip {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 2.6em;
}

.network-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.network-logo {
  height: 28px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.plan-name {
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.type-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
}

.type-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.type-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.type-icon.dental {
  background: #e4f4ec;
  color: #0d5c38;
}

.type-icon.vision {
  background: #ece7fb;
  color: #3b2d78;
}

.type-icon.hearing {
  background: #fff1e4;
  color: #9a4a12;
}

.premium {
  margin: 0.7rem 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.premium small {
  display: inline;
  margin-left: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.oon-note {
  margin: 0 0 0.75rem;
  padding: 0.62rem 0.75rem;
  background: #fff6e5;
  border: 1px solid #f0d7a0;
  border-radius: 10px;
  color: var(--navy);
  font-size: 0.86rem;
  line-height: 1.4;
  font-weight: 600;
}

.quote-needed {
  color: var(--cyan-dark);
  font-size: 1.05rem;
}

.facts {
  margin: 0 0 1rem;
  display: grid;
  border-top: 1px solid var(--line);
}

.facts div {
  display: grid;
  grid-template-columns: 6.4rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.48rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.35;
  align-items: start;
}

.facts dt {
  color: var(--muted);
  font-weight: 600;
}

.facts dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-enroll {
  width: 100%;
  margin-top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 0.72rem 0.9rem;
  line-height: 1.25;
  white-space: normal;
}

.btn-enroll:hover,
.btn-enroll:focus-visible {
  background: var(--navy-mid);
}

.live-flag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.68rem;
  background: #0d5c38;
  color: white;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  vertical-align: middle;
}

.dentist-panel {
  padding: 0 0 1.5rem;
  container-type: inline-size;
  container-name: dentists;
}

.dentist-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.15rem 1.35rem;
  border: 1px solid var(--line);
}

.dentist-actions {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.dentist-actions .btn-secondary {
  width: 100%;
  padding: 0.85rem 1.3rem;
  font-size: 1.02rem;
}

.dentist-results {
  margin-top: 1rem;
}

.dentist-status {
  margin: 0 0 0.85rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.dentist-list {
  display: grid;
  gap: 0.85rem;
}

.dentist-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  background: #fbfdff;
  cursor: pointer;
}

.dentist-card:hover,
.dentist-card:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 174, 240, 0.18);
}

.dentist-card.is-selected {
  border-color: var(--navy);
  background: #eef8ff;
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.12);
}

.btn-select {
  appearance: none;
  border: 1px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.dentist-card.is-selected .btn-select {
  background: var(--navy);
  color: var(--white);
}

.picked-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
}

.picked-bar p {
  margin: 0;
}

.picked-bar .btn-remove {
  color: var(--cyan);
  text-decoration: none;
}

.dentist-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.dentist-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
}

.dentist-office {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-weight: 400;
}

.dentist-address,
.dentist-meta {
  margin: 0.45rem 0 0;
  color: var(--ink);
  font-size: 0.92rem;
}

.dentist-meta {
  color: var(--muted);
}

.accepting {
  color: #0d5c38;
  font-weight: 600;
}

.plan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.plan-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: #e4f4ec;
  color: #0d5c38;
}

.plan-chip.out {
  background: #f4f0e8;
  color: #6b5423;
}

.quoted-match {
  margin: 0.55rem 0 0;
  color: var(--navy);
  font-size: 0.88rem;
}

.dentist-directories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
  font-size: 0.88rem;
}

.dentist-directories a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dir-live,
.dir-outbound {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

.dir-live {
  background: #e4f4ec;
  color: #0d5c38;
}

.dir-outbound {
  background: #eef3f8;
  color: #3d5673;
}

.zip-networks {
  margin: 0.85rem 0 0.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid #d5e2ee;
  border-radius: 12px;
  background: #f7fbfe;
}

.zip-networks-label {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.zip-network-group {
  margin-top: 0.45rem;
}

.zip-network-group strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.9rem;
}

.dentist-notes {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

#dentist-more {
  margin-top: 0.85rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dentist-actions {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .dependent-row {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 0.75rem;
  }

  .btn-remove {
    padding: 0.7rem 0.15rem;
    white-space: nowrap;
  }

  #quote-form {
    padding: 1.5rem 1.5rem 1.6rem;
  }

  .compare-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .dentist-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .results-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .compare-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container plans (max-width: 639px) {
  .compare-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container plans (min-width: 640px) and (max-width: 979px) {
  .compare-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container plans (min-width: 980px) {
  .compare-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .results-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

@container dentists (min-width: 640px) {
  .dentist-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dentist-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@container (min-width: 520px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.topbar-title {
  margin: 0;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.quoter {
  padding: 1.25rem 0 0.5rem;
}

#quote-form {
  border-radius: 8px;
  box-shadow: none;
}

#quote-form h1 {
  margin: 0 0 1rem;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

.form-actions {
  align-items: flex-start;
}

.form-actions .btn-primary {
  width: auto;
  min-width: 9.5rem;
  border-radius: 4px;
  background: var(--button);
  color: var(--white);
  font-weight: 600;
  padding: 0.62rem 1.2rem;
}

.form-actions .btn-primary:hover,
.form-actions .btn-primary:focus-visible {
  background: #0063aa;
}

.field input {
  border-radius: 4px;
  border-color: #c5d0d8;
}

.field input:focus {
  outline: 2px solid rgba(0, 160, 220, 0.35);
  border-color: var(--link);
}

.btn-secondary {
  border-radius: 4px;
  border-color: #b7c6d2;
  color: #2d6288;
}

.results {
  padding: 0.4rem 0 2.5rem;
}

.providers h2 {
  margin: 0.85rem 0 0.15rem;
  font-size: 1rem;
  font-weight: 600;
  color: #3d6d8c;
}

.text-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.provider-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0 0.1rem;
  font-weight: 600;
  color: var(--navy);
}

.provider-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--button);
}

#edit-dentist {
  margin-left: 1.5rem;
}

.chip {
  border-radius: 4px;
  font-weight: 600;
  color: #2d6288;
}

.chip.is-active {
  background: var(--button);
  border-color: var(--button);
  color: var(--white);
}

.compare-cards {
  gap: 0.75rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  border-radius: 6px;
  box-shadow: none;
  padding: 0;
  overflow: hidden;
}

.plan-top,
.plan-body,
.plan-action {
  padding: 0.95rem 1.15rem;
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.plan-name {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--link);
}

.plan-kind {
  margin: 0.2rem 0 0;
}

.plan-kind .type-icons {
  gap: 0.35rem;
}

.plan-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem 1.5rem;
  align-items: start;
  padding-top: 0.2rem;
}

.premium-caption {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.benefit-list {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.benefit-list div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.benefit-list dt {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.benefit-list dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.your-dentist {
  background: #f3f8fc;
  border-top: 1px solid #e1ebf3;
  border-bottom: 1px solid #e1ebf3;
  padding: 0.7rem 1.15rem 0.85rem;
}

.your-dentist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.your-dentist-head::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #5c6b76;
  border-bottom: 2px solid #5c6b76;
  transform: rotate(45deg);
  margin-top: -0.2rem;
  flex: none;
}

.your-dentist-head[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.your-dentist-body {
  padding-top: 0.15rem;
}

.your-dentist-title,
.net-count,
.dentist-called,
.dentist-status {
  margin: 0;
}

.your-dentist-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--link);
  font-weight: 700;
}

.provider-mark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 3px;
  background: var(--link);
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--link);
}

.net-count {
  font-weight: 700;
}

.your-dentist.is-in .net-count,
.dentist-status.is-in {
  color: #0d7a45;
}

.your-dentist.is-out .net-count {
  color: #c62828;
}

.dentist-called {
  margin-top: 0.55rem;
  font-weight: 700;
  color: var(--navy);
}

.dentist-status {
  margin-top: 0.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.dentist-status.is-out {
  color: #c62828;
  font-weight: 600;
}

.plan-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.premium {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.rate-footnote {
  margin: 0;
  font-weight: 500;
}

.btn-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 4px;
  background: var(--button);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.btn-continue:hover,
.btn-continue:focus-visible {
  background: #0063aa;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 39, 49, 0.45);
}

.modal-dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 6px;
  padding: 0;
  box-shadow: 0 16px 48px rgba(16, 24, 40, 0.2);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: none;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid #e6ebf0;
  background: var(--white);
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.modal-scroll {
  overflow: auto;
  padding: 0.15rem 1.25rem 1.1rem;
}

.modal-head h2 {
  margin: 0;
  color: var(--link);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
}

.modal-x,
.staged-x {
  appearance: none;
  border: 0;
  background: none;
  color: #8b98a3;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}

.modal-copy {
  margin: 0.85rem 0 1rem;
  color: #3c4a55;
  font-size: 1rem;
}

.modal-search {
  position: relative;
}

.modal-search input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  border: 2px solid #7eb6e4;
  border-radius: 4px;
  padding: 0.7rem 4.5rem 0.7rem 0.75rem;
  color: var(--ink);
}

.modal-search input:focus {
  outline: none;
  border-color: var(--link);
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
}

.provider-results {
  margin-top: 0.35rem;
}

.provider-row,
.staged-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.15rem;
  border-bottom: 1px solid #e6ebf0;
}

.provider-name {
  margin: 0;
  font-weight: 700;
  color: #222;
}

.provider-name span {
  font-weight: 500;
  color: #6b7280;
}

.provider-address {
  margin: 0.15rem 0 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.btn-add {
  appearance: none;
  background: var(--white);
  border: 1px solid #9db4c6;
  color: #3d6f99;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
}

.btn-add:hover,
.btn-add:focus-visible {
  border-color: var(--button);
  color: var(--button);
}

.more-link {
  margin-top: 0.65rem;
}

.staged {
  margin-top: 0.85rem;
}

.staged-card {
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid #e6ebf0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-done {
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: var(--button);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  cursor: pointer;
}

.btn-done:hover,
.btn-done:focus-visible {
  background: #0063aa;
}

.modal-loading {
  margin-top: 0.8rem;
  border: 0;
  padding: 0.4rem 0;
  box-shadow: none;
}

@media (min-width: 760px) {
  .plan-body {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 640px) {
  .benefit-list div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .form-actions .btn-primary,
  .btn-continue {
    width: 100%;
  }
}

.container {
  width: min(1180px, calc(100% - 1.5rem));
}

.census {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0 1.2rem;
}

.census #quote-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.census-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.census-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  color: var(--link);
  font-size: 1.05rem;
  font-weight: 700;
}

.census-title svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.census-kicker {
  margin: -0.35rem 0 0.7rem;
  font-weight: 700;
  color: var(--navy);
}

.stepper {
  display: flex;
  align-items: stretch;
}

.stepper input {
  width: 100%;
  border-radius: 4px 0 0 4px;
  background: #fff;
}

.stepper button {
  width: 2.5rem;
  flex: none;
  border: 1px solid #c5d0d8;
  border-left: 0;
  background: #fff;
  color: #3d4c58;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.stepper button:last-child {
  border-radius: 0 4px 4px 0;
}

.stepper button:hover,
.stepper button:focus-visible {
  background: #f4f8fb;
}

.stepper button:disabled {
  color: #b7c2cb;
  cursor: not-allowed;
}

.applicant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.outline-btn {
  appearance: none;
  background: #fff;
  border: 1px solid #b7c9d6;
  color: #2f6f9a;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  padding: 0.48rem 0.95rem;
  cursor: pointer;
}

.outline-btn:hover,
.outline-btn:focus-visible {
  border-color: var(--button);
  color: var(--button);
}

.outline-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#spouse-field .btn-remove {
  margin: -0.2rem 0 0.7rem;
}

.shop {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  padding-top: 1.15rem;
  align-items: start;
}

.filters {
  display: grid;
  gap: 1.15rem;
}

.filter-block h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.slider-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--navy);
}

.slider-row strong {
  font-weight: 700;
}

.filters input[type="range"] {
  width: 100%;
  accent-color: var(--button);
  margin: 0;
}

.filters input[type="range"]:disabled {
  opacity: 0.45;
}

.filters .filter-bar {
  flex-wrap: wrap;
}

.side-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.28rem 0;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.side-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  accent-color: var(--button);
  flex: none;
}

.edit-dentists {
  margin-top: 0.35rem;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: none;
}

.share-note {
  margin: 0 0 0.75rem;
  color: #0d7a45;
  font-weight: 600;
}

.compare-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.3rem;
  color: var(--link);
  font-weight: 700;
  cursor: pointer;
}

.compare-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--button);
}

.compare-bar {
  position: sticky;
  bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.85rem;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid #d5e3ee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.compare-bar strong {
  color: var(--navy);
}

.compare-bar p {
  margin: 0.15rem 0 0;
  color: #c62828;
  font-weight: 700;
}

.compare-page {
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.compare-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.compare-page .compare-cards {
  margin-top: 0.85rem;
}

.plan-count {
  margin: 0;
  font-weight: 700;
  color: #3d4a54;
}

.results-where {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sort-label {
  flex: none;
}

#plan-sort {
  appearance: none;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233d4c58' d='M1 1.2 6 6.2 11 1.2'/%3E%3C/svg%3E")
    no-repeat right 0.7rem center;
  border: 1px solid #c5d0d8;
  border-radius: 4px;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
}

.plan-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.75rem;
}

.stat-value {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.1;
}

.stat-value.is-na {
  font-size: 1.45rem;
  color: #5c6b76;
}

.stat-caption {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.your-dentist.is-mixed .net-count,
.your-dentist.is-unknown .net-count {
  color: var(--navy);
}

.network-line {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.network-line.is-in {
  color: #0d7a45;
}

.network-line.is-out {
  color: #c62828;
  font-weight: 600;
}

.btn-add:disabled {
  color: #8aa0b3;
  border-color: #d5dee6;
  cursor: default;
}

.staged {
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 860px) {
  .census-grid {
    grid-template-columns: minmax(240px, 340px) minmax(280px, 1fr);
    gap: 0;
  }

  .census-col + .census-col {
    border-left: 1px solid #e6ebf0;
    padding-left: 2rem;
    margin-left: 2rem;
  }
}

@media (min-width: 980px) {
  .shop {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 1.75rem;
  }

  .filters {
    position: sticky;
    top: 0.75rem;
  }
}

@media (max-width: 640px) {
  .stat-value {
    font-size: 1.5rem;
  }

  .results-toolbar,
  .toolbar-actions,
  .compare-toolbar,
  .compare-bar {
    flex-direction: column;
    align-items: stretch;
  }

  #plan-sort {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .compare-page .compare-cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}
