* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f7fb;
  color: #131722;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e5e8ef;
}
.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f4fd6, #3478f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.brand-name { font-size: 16px; font-weight: 700; }
.brand-sub { font-size: 12px; color: #6d7483; }
.topnav { display: flex; gap: 18px; font-size: 14px; color: #445065; }

.footer {
  border-top: 1px solid #e5e8ef;
  margin-top: 48px;
  background: #fff;
}
.footer-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6d7483;
  font-size: 14px;
}

.hero { padding: 54px 0; }
.hero-card {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 24px;
  padding: 28px;
}

.page-section { padding: 34px 0 24px; }
.page-title-wrap { margin-bottom: 20px; }
.page-title-wrap h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
}
.page-title-wrap p { margin: 0; color: #5e6777; }

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #0f4fd6;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 28px;
}
.wizard-step {
  padding: 14px 18px;
  border-radius: 14px;
  background: #e8edf7;
  color: #4d5b73;
  font-weight: 600;
}
.wizard-step.active { background: #0f4fd6; color: #fff; }
.wizard-step.done { background: #d7e7ff; color: #0f4fd6; }

.two-col-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid #e4e9f2;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .05);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-grid.three-up {
  grid-template-columns: repeat(3, 1fr);
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #344054;
}
.form-group input,
.form-group select {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #d6deeb;
  background: #fbfcfe;
  padding: 0 14px;
  font-size: 15px;
}
.form-error {
  margin-top: 6px;
  font-size: 13px;
  color: #d92d20;
}

.segmented-options {
  display: flex;
  gap: 12px;
}
.segment-option {
  flex: 1;
  min-height: 48px;
  border: 1px solid #d6deeb;
  border-radius: 12px;
  background: #fbfcfe;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.segment-option input { display: none; }
.segment-option.is-active {
  border-color: #0f4fd6;
  background: #f3f8ff;
}

.notice-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #fff9e8;
  border: 1px solid #ffe39a;
  color: #7a5b00;
}
.form-actions {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}
.btn-primary { background: #e53935; color: #fff; }
.btn-secondary { background: #eef2f8; color: #334155; }
.btn-block { width: 100%; margin-top: 12px; }

.summary-box {
  margin-top: 16px;
  border-radius: 16px;
  background: #f7f9fd;
  border: 1px solid #e5ebf5;
  padding: 14px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e7edf7;
}
.summary-row:last-child { border-bottom: none; }

.feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
}
.feature-list li { margin: 8px 0; }

.section-card + .section-card { margin-top: 18px; }
.section-heading {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.sum-assured-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
  border: 1px solid #dce8ff;
}
.label-sm {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}
.sum-assured-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
}
.sum-assured-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  color: #526075;
  font-size: 14px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.plan-card input { display: none; }
.plan-card-inner {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dce3ee;
  background: #fafcff;
  min-height: 150px;
  cursor: pointer;
}
.plan-card input:checked + .plan-card-inner {
  border-color: #0f4fd6;
  box-shadow: 0 0 0 4px rgba(15,79,214,.08);
  background: #f3f8ff;
}
.plan-card-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.plan-card-desc { font-size: 14px; color: #5f6b7f; max-width: 85%; }
.plan-card-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #dbe8ff;
  color: #0f4fd6;
  font-weight: 800;
  font-size: 12px;
}

.rider-list { display: grid; gap: 14px; }
.rider-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #dfe6f0;
  background: #fff;
}
.rider-title { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.rider-desc { font-size: 14px; color: #667085; }
.rider-badge {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff2ef;
  color: #e53935;
  font-weight: 800;
  font-size: 13px;
}

.sticky-card { position: sticky; top: 94px; }
.pricing-preview {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
}
.pricing-label { font-size: 13px; color: rgba(255,255,255,.7); }
.pricing-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
}
.pricing-note {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}

.result-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  margin-bottom: 24px;
}
.hero-metric {
  min-width: 240px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}
.hero-metric span {
  display: block;
  color: rgba(255,255,255,.72);
  margin-bottom: 8px;
}
.hero-metric strong { font-size: 30px; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.summary-item {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e6ebf3;
}
.summary-item span {
  display: block;
  color: #667085;
  font-size: 13px;
  margin-bottom: 6px;
}
.summary-item strong { font-size: 18px; }

@media (max-width: 992px) {
  .two-col-layout,
  .form-grid,
  .hero-stats,
  .wizard-steps,
  .plan-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner,
  .footer-inner,
  .sum-assured-banner,
  .result-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-card { position: static; }
  .topnav { display: none; }
}
.step1-layout {
  align-items: start;
}

.step1-form-card {
  padding: 26px;
}

.contract-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
  border: 1px solid #dce8ff;
  margin-bottom: 22px;
}

.contract-hero-label {
  font-size: 13px;
  font-weight: 700;
  color: #667085;
}

.contract-hero-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.contract-hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.contract-hero-chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dce8ff;
  font-size: 13px;
  font-weight: 700;
  color: #35518a;
}

.plan-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.plan-inline-card input {
  display: none;
}

.plan-inline-card-inner {
  border: 1px solid #dce3ee;
  border-radius: 16px;
  background: #fafcff;
  padding: 16px;
  cursor: pointer;
  min-height: 110px;
  transition: .2s ease;
}

.plan-inline-card input:checked + .plan-inline-card-inner {
  border-color: #0f4fd6;
  background: #f3f8ff;
  box-shadow: 0 0 0 4px rgba(15,79,214,.08);
}

.plan-inline-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-inline-desc {
  font-size: 13px;
  color: #667085;
}

.people-section-head {
  margin: 28px 0 16px;
}

.section-subtext {
  color: #667085;
  font-size: 14px;
}

.person-block {
  border: 1px solid #e5e8ef;
  border-radius: 18px;
  padding: 18px;
  background: #fbfcfe;
}

.person-block + .person-block {
  margin-top: 16px;
}

.person-block-main {
  background: linear-gradient(135deg, #fcfdff, #f7faff);
  border-color: #dbe7ff;
}

.person-block-dependent {
  background: #ffffff;
}

.person-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.person-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.person-badge.main {
  background: #eaf1ff;
  color: #0f4fd6;
}

.person-badge.dependent {
  background: #fff2ef;
  color: #e53935;
}

.person-note {
  font-size: 13px;
  color: #667085;
}

.dependents-wrap {
  margin-top: 16px;
}

@media (max-width: 992px) {
  .contract-hero,
  .person-block-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .plan-inline-grid {
    grid-template-columns: 1fr;
  }
}
.dependents-toggle-list {
  margin-top: 16px;
}

.dependent-toggle-btn {
  margin-top: 12px;
  margin-bottom: 10px;
}

.dependent-collapsible {
  display: none;
}

.dependent-collapsible.is-open {
  display: block;
}

.form-grid.four-up {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .form-grid.four-up {
    grid-template-columns: 1fr;
  }
}
.step2-layout {
  align-items: start;
}

.step2-card {
  overflow: hidden;
}

.insured-summary-list {
  display: grid;
  gap: 12px;
}

.insured-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e5e8ef;
  border-radius: 16px;
  background: #fbfcfe;
}

.insured-summary-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.insured-summary-name {
  font-size: 16px;
  font-weight: 800;
}

.insured-summary-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #667085;
  font-size: 13px;
}

.insured-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  width: fit-content;
}

.insured-role-badge.main {
  background: #eaf1ff;
  color: #0f4fd6;
}

.insured-role-badge.dependent {
  background: #fff2ef;
  color: #e53935;
}

.plan-pro-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.plan-pro-card input {
  display: none;
}

.plan-pro-card-inner {
  min-height: 170px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dce3ee;
  background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
  cursor: pointer;
  transition: .2s ease;
}

.plan-pro-card input:checked + .plan-pro-card-inner {
  border-color: #0f4fd6;
  box-shadow: 0 0 0 4px rgba(15,79,214,.08);
  background: linear-gradient(180deg, #f4f8ff 0%, #eef5ff 100%);
}

.plan-pro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.plan-pro-title {
  font-size: 18px;
  font-weight: 800;
}

.plan-pro-multiplier {
  min-width: 48px;
  min-height: 32px;
  border-radius: 999px;
  background: #dce8ff;
  color: #0f4fd6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.plan-pro-desc {
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.plan-pro-footer {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  color: #0f4fd6;
}

.rider-pro-list {
  display: grid;
  gap: 14px;
}

.rider-pro-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid #e5e8ef;
  border-radius: 16px;
  background: #fff;
  transition: .2s ease;
}

.rider-pro-card:hover {
  background: #fbfcfe;
}

.rider-pro-check {
  padding-top: 3px;
}

.rider-pro-check input {
  width: 20px;
  height: 20px;
}

.rider-pro-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 6px;
}

.rider-pro-title {
  font-size: 16px;
  font-weight: 800;
}

.rider-pro-desc {
  font-size: 14px;
  color: #667085;
  line-height: 1.55;
}

.rider-pro-badge {
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff2ef;
  color: #e53935;
  font-size: 12px;
  font-weight: 800;
}

.step2-sidebar-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.sidebar-sub {
  color: #667085;
  margin: 0 0 16px;
}

.sidebar-hero-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.sidebar-hero-label {
  color: #667085;
  font-size: 13px;
  margin-bottom: 14px;
}

.pricing-preview-pro {
  margin-top: 18px;
}

@media (max-width: 992px) {
  .insured-summary-item,
  .rider-pro-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .plan-pro-grid {
    grid-template-columns: 1fr;
  }
}
.result-pro-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  margin-bottom: 22px;
}

.result-pro-hero-left h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
}

.result-pro-hero-left p {
  margin: 0;
  color: rgba(255,255,255,.75);
  max-width: 760px;
}

.result-pro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.result-pro-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.result-pro-hero-right {
  min-width: 260px;
  display: flex;
  align-items: center;
}

.hero-metric-card {
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.hero-metric-card span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  margin-bottom: 8px;
}

.hero-metric-card strong {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.result-top-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-bottom: 18px;
}

.people-result-cards {
  display: grid;
  gap: 14px;
}

.people-result-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e5e8ef;
  background: #fbfcfe;
}

.people-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.people-result-name {
  font-size: 18px;
  font-weight: 800;
}

.people-result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.people-result-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8edf5;
}

.people-result-item span {
  display: block;
  color: #667085;
  font-size: 12px;
  margin-bottom: 5px;
}

.people-result-item strong {
  font-size: 15px;
  font-weight: 800;
}

.result-table-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.result-table-wrap {
  overflow-x: auto;
}

.result-table-pro th {
  white-space: nowrap;
}

.result-table-pro td {
  white-space: nowrap;
}

.col-highlight {
  background: #f8fbff;
}

.col-highlight-2 {
  background: #fff8f4;
}

.result-table-pro td.col-highlight,
.result-table-pro th.col-highlight {
  color: #0f4fd6;
  font-weight: 700;
}

.result-table-pro td.col-highlight-2,
.result-table-pro th.col-highlight-2 {
  color: #d94841;
  font-weight: 700;
}

.table-row-key {
  background: linear-gradient(90deg, rgba(15,79,214,.04), rgba(217,72,65,.03));
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eaf1ff;
  color: #0f4fd6;
  font-size: 11px;
  font-weight: 800;
}

.mini-badge-dark {
  background: #fff2ef;
  color: #d94841;
}

.result-note-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #fff9e8;
  border: 1px solid #ffe39a;
  color: #7a5b00;
}

.result-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 992px) {
  .result-pro-hero,
  .result-table-head,
  .people-result-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-top-grid,
  .people-result-grid {
    grid-template-columns: 1fr;
  }

  .result-pro-hero-right {
    min-width: 100%;
  }
}
/* =========================================
   MOBILE V2 LUXURY
   ========================================= */
@media (max-width: 768px) {
  :root {
    --m-gap: 14px;
    --m-radius: 20px;
    --m-radius-sm: 16px;
    --m-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
    --m-shadow-card: 0 8px 24px rgba(31, 41, 55, 0.06);
    --m-border: 1px solid rgba(148, 163, 184, 0.18);
  }

  body {
    background:
      radial-gradient(circle at top center, rgba(59, 130, 246, 0.05), transparent 32%),
      linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
  }

  .page-section {
    padding: 14px 0 30px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* top intro */
  .page-title-wrap {
    margin-bottom: 14px;
  }

  .page-title-wrap .eyebrow {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
  }

  .page-title-wrap h1 {
    margin: 12px 0 8px;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #0f172a;
  }

  .page-title-wrap p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #667085;
    max-width: 92%;
  }

  /* wizard - luxury mobile */
  .wizard-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0 18px;
  }

  .wizard-step {
    min-height: 54px;
    padding: 0 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(226, 232, 240, 0.55);
    color: #475467;
    backdrop-filter: blur(10px);
  }

  .wizard-step.active {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
  }

  .wizard-step.done {
    background: linear-gradient(135deg, #eff6ff 0%, #eaf2ff 100%);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.1);
  }

  /* layouts */
  .two-col-layout,
  .step1-layout,
  .step2-layout,
  .result-top-grid,
  .summary-grid,
  .people-result-grid,
  .plan-inline-grid,
  .plan-pro-grid,
  .form-grid,
  .form-grid.three-up,
  .form-grid.four-up {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .main-col,
  .side-col {
    width: 100%;
  }

  .side-col {
    order: 2;
  }

  .main-col {
    order: 1;
  }

  /* cards */
  .card,
  .form-card,
  .section-card,
  .product-summary-card,
  .sticky-card,
  .step1-form-card,
  .step2-card,
  .people-result-card,
  .person-block {
    border-radius: 24px;
    border: var(--m-border);
    box-shadow: var(--m-shadow-card);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
  }

  .step1-form-card,
  .step2-card,
  .section-card,
  .product-summary-card,
  .sticky-card {
    padding: 18px;
  }

  .section-heading {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #0f172a;
  }

  .section-subtext,
  .person-note,
  .sidebar-sub {
    font-size: 14px;
    line-height: 1.55;
    color: #667085;
  }

  /* contract hero */
  .contract-hero {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border-radius: 22px;
    background:
      radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32%),
      linear-gradient(135deg, #f9fbff 0%, #eef4ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: var(--m-shadow-soft);
    gap: 14px;
    margin-bottom: 18px;
  }

  .contract-hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -45% auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
    pointer-events: none;
  }

  .contract-hero-main,
  .contract-hero-side {
    width: 100%;
    position: relative;
    z-index: 1;
  }

  .contract-hero-label {
    font-size: 12px;
    font-weight: 800;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .contract-hero-value {
    margin-top: 8px;
    font-size: 25px;
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 900;
    color: #0f172a;
    word-break: break-word;
  }

  .contract-hero-side {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .contract-hero-chip {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(59, 130, 246, 0.14);
    color: #35518a;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.06);
  }

  /* forms */
  .form-group {
    min-width: 0;
  }

  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: #334155;
    font-weight: 700;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 15px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(248, 250, 252, 0.85);
    box-sizing: border-box;
    font-size: 16px;
    color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow:
      0 0 0 4px rgba(37, 99, 235, 0.08),
      inset 0 1px 0 rgba(255,255,255,.8);
    background: #fff;
  }

  .form-error {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: #c2410c;
  }

  /* plan cards */
  .plan-inline-card-inner,
  .plan-pro-card-inner {
    min-height: unset;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  }

  .plan-inline-card input:checked + .plan-inline-card-inner,
  .plan-pro-card input:checked + .plan-pro-card-inner {
    background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
    border-color: rgba(37, 99, 235, 0.42);
    box-shadow:
      0 0 0 4px rgba(37, 99, 235, 0.08),
      0 12px 28px rgba(37, 99, 235, 0.10);
  }

  .plan-inline-title,
  .plan-pro-title {
    font-size: 19px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .plan-inline-desc,
  .plan-pro-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #667085;
  }

  /* people */
  .people-section-head {
    margin: 24px 0 14px;
  }

  .person-block {
    padding: 16px;
    border-radius: 22px;
  }

  .person-block-main {
    background:
      radial-gradient(circle at top right, rgba(59, 130, 246, 0.07), transparent 30%),
      linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
    border-color: rgba(59, 130, 246, 0.14);
  }

  .person-block-dependent {
    background: rgba(255, 255, 255, 0.92);
  }

  .person-block-head {
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-start;
  }

  .person-badge,
  .insured-role-badge,
  .summary-tag,
  .mini-badge,
  .mini-badge-dark,
  .result-pro-tag,
  .rider-pro-badge,
  .contract-hero-chip {
    backdrop-filter: blur(10px);
  }

  .person-badge {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
  }

  .person-badge.main {
    background: rgba(29, 78, 216, 0.08);
    color: #1d4ed8;
  }

  .person-badge.dependent {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
  }

  .dependent-toggle-btn {
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    justify-content: flex-start;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: rgba(226, 232, 240, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  }

  .dependent-toggle-btn:hover,
  .dependent-toggle-btn:active {
    transform: none;
  }

  /* sidebar cards */
  .product-summary-card,
  .step2-sidebar-card {
    padding: 18px;
  }

  .summary-tag {
    display: inline-flex;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    background: rgba(29, 78, 216, 0.08);
    color: #1d4ed8;
  }

  .summary-box {
    margin-top: 14px;
  }

  .summary-row {
    padding: 11px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.28);
    gap: 10px;
  }

  .summary-row:last-child {
    border-bottom: none;
  }

  .summary-row span {
    color: #667085;
    font-size: 14px;
  }

  .summary-row strong {
    font-size: 15px;
    color: #0f172a;
  }

  .sidebar-hero-value {
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 900;
  }

  .sidebar-hero-label {
    margin-bottom: 14px;
    font-size: 13px;
    color: #667085;
  }

  /* insured summary step2 */
  .insured-summary-item {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    gap: 10px;
  }

  .insured-summary-name,
  .people-result-name {
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .insured-summary-right {
    gap: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: #667085;
  }

  /* rider */
  .rider-pro-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  }

  .rider-pro-title {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 900;
  }

  .rider-pro-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #667085;
  }

  .rider-pro-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    font-size: 12px;
    font-weight: 900;
  }

  /* result */
  .result-pro-hero {
    padding: 18px;
    border-radius: 24px;
    background:
      radial-gradient(circle at top right, rgba(59, 130, 246, 0.10), transparent 32%),
      linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
    gap: 14px;
    margin-bottom: 16px;
  }

  .result-pro-hero-left h2 {
    font-size: 27px;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .result-pro-hero-left p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.6;
  }

  .result-pro-tags {
    gap: 8px;
    margin-top: 12px;
  }

  .result-pro-tag {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    font-size: 11px;
    font-weight: 900;
  }

  .hero-metric-card {
    padding: 16px;
    border-radius: 18px;
  }

  .hero-metric-card strong {
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .people-result-card {
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  }

  .people-result-item {
    padding: 12px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.16);
  }

  .people-result-item span {
    display: block;
    margin-bottom: 4px;
    color: #667085;
    font-size: 12px;
  }

  .people-result-item strong {
    font-size: 15px;
    font-weight: 900;
  }

  .result-table-head {
    margin-bottom: 14px;
    gap: 12px;
  }

  .scenario-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .scenario-tab {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(226, 232, 240, 0.5);
  }

  .scenario-tab.active {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
  }

  .result-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -2px;
    margin-right: -2px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .result-table {
    min-width: 760px;
    border-radius: 18px;
    overflow: hidden;
  }

  .result-note-box,
  .notice-box {
    padding: 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
  }

  /* buttons */
  .btn,
  .btn.btn-block,
  .form-actions .btn,
  .result-actions .btn {
    width: 100%;
    min-height: 54px;
    justify-content: center;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.01em;
  }

  .form-actions,
  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* spacing between major blocks */
  .card + .card,
  .section-card + .section-card,
  .person-block + .person-block {
    margin-top: 14px;
  }
}
/* =========================================
   MOBILE MINI WIZARD + HIDE SIDEBAR + PURPLE TONE
   ========================================= */
@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at top center, rgba(139, 92, 246, 0.08), transparent 34%),
      linear-gradient(180deg, #faf7ff 0%, #f6f2ff 100%);
  }

  /* title eyebrow tm */
  .page-title-wrap .eyebrow {
    background: rgba(139, 92, 246, 0.10);
    color: #7c3aed;
  }

  /* wizard mobile mini */
  .wizard-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 16px;
  }

  .wizard-step {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 999px;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    background: rgba(237, 233, 254, 0.85);
    color: #6b7280;
    border: 1px solid rgba(139, 92, 246, 0.08);
    box-shadow: none;
  }

  .wizard-step.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.20);
  }

  .wizard-step.done {
    background: rgba(243, 232, 255, 0.95);
    color: #7c3aed;
    border-color: rgba(139, 92, 246, 0.12);
  }

  /* n summary card mobile */
  .side-col,
  .product-summary-card,
  .step2-sidebar-card {
    display: none !important;
  }

  /* layout mobile ch cn main */
  .two-col-layout,
  .step1-layout,
  .step2-layout {
    display: block;
  }

  .main-col 
    width: 100%;
  }

  /* card tone tm */
  .card,
  .form-card,
  .section-card,
  .step1-form-card,
  .step2-card,
  .people-result-card,
  .person-block {
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(167, 139, 250, 0.14);
    box-shadow: 0 10px 28px rgba(91, 33, 182, 0.06);
  }

  /* contract hero tm hy vng */
  .contract-hero {
    background:
      radial-gradient(circle at top right, rgba(168, 85, 247, 0.12), transparent 32%),
      linear-gradient(135deg, #fcfaff 0%, #f3edff 100%);
    border: 1px solid rgba(139, 92, 246, 0.14);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.08);
  }

  .contract-hero-chip {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(139, 92, 246, 0.16);
    color: #6d28d9;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.06);
  }

  /* plan selected tm */
  .plan-inline-card input:checked + .plan-inline-card-inner,
  .plan-pro-card input:checked + .plan-pro-card-inner {
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: rgba(139, 92, 246, 0.36);
    box-shadow:
      0 0 0 4px rgba(139, 92, 246, 0.08),
      0 12px 26px rgba(124, 58, 237, 0.10);
  }

  /* badge tm */
  .person-badge.main,
  .insured-role-badge.main,
  .summary-tag {
    background: rgba(139, 92, 246, 0.10);
    color: #7c3aed;
  }

  .person-badge.dependent,
  .insured-role-badge.dependent {
    background: rgba(236, 72, 153, 0.08);
    color: #db2777;
  }

  /* buttons tm */
  .btn.btn-primary,
  .result-actions .btn.btn-primary,
  .form-actions .btn.btn-primary,
  .btn.btn-block {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 26px rgba(124, 58, 237, 0.18);
  }

  .dependent-toggle-btn,
  .btn.btn-secondary,
  .form-actions .btn.btn-secondary,
  .result-actions .btn.btn-secondary,
  .scenario-tab {
    background: rgba(237, 233, 254, 0.82);
    border: 1px solid rgba(139, 92, 246, 0.10);
    color: #5b21b6;
  }

  .scenario-tab.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.18);
  }

  /* inputs focus tm */
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: rgba(139, 92, 246, 0.40);
    box-shadow:
      0 0 0 4px rgba(139, 92, 246, 0.08),
      inset 0 1px 0 rgba(255,255,255,.8);
  }

  /* notice tm vng du hn */
  .notice-box,
  .result-note-box {
    background: linear-gradient(180deg, #fffaf0 0%, #fff7e8 100%);
    border: 1px solid rgba(245, 158, 11, 0.24);
    color: #8a5a00;
  }

  /* hero result tm */
  .result-pro-hero {
    background:
      radial-gradient(circle at top right, rgba(168, 85, 247, 0.14), transparent 32%),
      linear-gradient(135deg, #2e1065 0%, #4c1d95 100%);
    box-shadow: 0 18px 34px rgba(76, 29, 149, 0.18);
  }

  .result-pro-tag {
    background: rgba(255,255,255,.10);
  }

  .mini-badge {
    background: rgba(139, 92, 246, 0.10);
    color: #7c3aed;
  }

  .mini-badge-dark {
    background: rgba(236, 72, 153, 0.10);
    color: #db2777;
  }
}
/* =========================================
   STEP1 MOBILE ULTRA-COMPACT + DATE FIX
   ========================================= */
@media (max-width: 768px) {
  /* thu gọn spacing step1 */
  .step1-form-card {
    padding: 16px;
  }

  .section-heading {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .people-section-head {
    margin: 18px 0 10px;
  }

  .page-title-wrap h1 {
    font-size: 26px;
    margin: 10px 0 6px;
  }

  .page-title-wrap p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* contract hero compact hơn 20-25% */
  .contract-hero {
    padding: 14px;
    gap: 10px;
    margin-bottom: 14px;
    border-radius: 18px;
  }

  .contract-hero-label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .contract-hero-value {
    font-size: 21px;
    margin-top: 4px;
  }

  .contract-hero-side {
    gap: 6px;
  }

  .contract-hero-chip {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  /* person block compact */
  .person-block {
    padding: 14px;
    border-radius: 18px;
  }

  .person-block-head {
    margin-bottom: 10px;
    gap: 6px;
  }

  .person-note {
    font-size: 13px;
    line-height: 1.4;
  }

  .person-badge {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  /* form gọn hơn */
  .form-grid,
  .form-grid.three-up,
  .form-grid.four-up {
    gap: 10px;
  }

  .form-group label {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 16px;
  }

  /* Fix riêng cho ô ngày sinh trên iPhone/Safari */
  .form-group input[type="date"] {
    width: 100%;
    min-width: 0;
    display: block;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(248, 250, 252, 0.92);
    padding: 0 14px;
    line-height: 48px;
  }

  .form-group input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    min-height: 48px;
  }

  .form-group input[type="date"]::-webkit-datetime-edit {
    padding: 0;
    color: #0f172a;
  }

  .form-group input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  .form-group input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 1;
    cursor: pointer;
    margin-left: 8px;
  }

  /* iOS hay làm ô date bị tràn, đoạn này ép lại */
  .person-block .form-group input[type="date"] {
    max-width: 100%;
  }

  /* dependent button compact hơn */
  .dependent-toggle-btn {
    min-height: 50px;
    padding: 0 16px;
    font-size: 16px;
    border-radius: 16px;
    margin-top: 8px;
    margin-bottom: 6px;
  }

  /* notice gọn */
  .notice-box {
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 14px;
  }

  /* actions gọn */
  .form-actions {
    gap: 8px;
  }

  .form-actions .btn {
    min-height: 50px;
    border-radius: 16px;
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  .date-input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
    line-height: 48px;
    padding: 0 14px;
  }

  .date-input::-webkit-date-and-time-value {
    text-align: left;
    min-height: 48px;
  }

  .date-input::-webkit-datetime-edit {
    padding: 0;
  }

  .date-input::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  .date-input::-webkit-calendar-picker-indicator {
    opacity: 1;
    margin-left: 8px;
  }
}
/* CARD COMPACT */
.person-card.compact {
  padding: 14px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
}

/* TITLE nhỏ lại */
.person-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #7c3aed; /* tím */
}

/* INPUT gọn */
.form-group input,
.form-group select {
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
  padding: 0 12px;
}

/* ROW 2 CỘT */
.form-row {
  display: flex;
  gap: 8px;
}

.form-row input,
.form-row select {
  flex: 1;
}

/* DATE FIX */
.date-input {
  width: 100%;
}

/* BUTTON ADD gọn */
.btn-add-dep {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: #f3f0ff;
  color: #6d28d9;
  font-weight: 600;
  border: none;
  margin-bottom: 8px;
}

/* NOTE BOX nhỏ lại */
.note-box {
  padding: 12px;
  font-size: 13px;
  border-radius: 12px;
}
/* FIX DATE INPUT MOBILE */
input[type="date"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: block;
  box-sizing: border-box;
}

/* Fix riêng iPhone Safari */
@media (max-width: 768px) {
  input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    height: 46px;
    padding: 0 12px;
  }

  input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
    width: 100%;
  }

  input[type="date"]::-webkit-datetime-edit {
    width: 100%;
  }

  input[type="date"]::-webkit-calendar-picker-indicator {
    margin-left: auto;
  }
}