* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f2f4f7;
  color: #1f2b3a;
}

.shell {
  min-height: 100vh;
}

.topbar {
  height: 74px;
  background: #fff;
  border-bottom: 1px solid #e5e9f0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 38px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-image {
  min-width: 320px;
}

.site-logo {
  display: block;
  width: 100%;
  max-width: 430px;
  max-height: 54px;
  height: auto;
  object-fit: contain;
}

.toplink,
.resetLink {
  border: 0;
  background: transparent;
  color: #5f6978;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.toplink {
  justify-self: start;
}

.rightlinks {
  justify-self: end;
  display: flex;
  gap: 22px;
  color: #6b7280;
  font-size: 15px;
  font-weight: 800;
  align-items: center;
}

.page {
  max-width: 1040px;
  min-height: 620px;
  margin: 26px auto 0;
  background: #fff;
  padding: 32px 34px 38px;
}

.progressWrap {
  margin-bottom: 28px;
}

.progressTrack {
  height: 16px;
  background: #e0e4ea;
  border-radius: 999px;
  overflow: hidden;
}

.progressBar {
  height: 100%;
  width: 5%;
  background: #10236e;
  border-radius: 999px;
  transition: width .2s ease;
}

.progressText {
  text-align: center;
  color: #10236e;
  font-size: 17px;
  font-weight: 900;
  margin: 14px 0 0;
}

.subtitle {
  font-size: 13px;
  color: #647084;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.title {
  font-size: 34px;
  line-height: 1.18;
  font-weight: 900;
  margin: 0 0 24px;
  color: #1e2a3a;
  text-align: left;
}

.helper {
  font-size: 15px;
  color: #667085;
  margin: -8px 0 18px;
}

.screenNote {
  background: #f6f9fd;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 17px;
  color: #52606d;
  font-weight: 700;
  font-size: 14px;
}

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

.grid.small {
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
}

.grid.years {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 790px;
  margin: 0 auto;
}

.choice {
  min-height: 66px;
  border: 1px solid #cfe1f6;
  background: #f2f9ff;
  color: #1268b3;
  font-size: 16px;
  font-weight: 900;
  border-radius: 5px;
  cursor: pointer;
  padding: 13px 10px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-align: center;
}

.choice:hover,
.makeCard:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(16, 35, 110, .12);
}

.choice.selected,
.makeCard.selected {
  background: #dff0ff;
  border-color: #1683ff;
  color: #10236e;
}

.yearChoice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 18px;
  background: #fff;
  color: #07236f;
  border-color: #d3dce8;
  text-align: left;
}

.yearRadio {
  width: 20px;
  height: 20px;
  border: 1px solid #9aa8ba;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 auto;
}

.yearChoice.selected .yearRadio {
  border: 6px solid #2a69c9;
}

.showMoreYears {
  border: 0;
  background: transparent;
  color: #1268b3;
  font-weight: 900;
  font-size: 16px;
  display: block;
  margin: 22px auto 0;
  padding: 8px 14px;
  cursor: pointer;
}

.showMoreYears span {
  display: inline-block;
  margin-left: 8px;
  font-size: 24px;
  line-height: 1;
  vertical-align: -2px;
}

.choice .sub {
  display: block;
  font-size: 12px;
  opacity: .82;
  margin-top: 4px;
}

.makeGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}

.makeCard {
  min-height: 112px;
  border: 1px solid #d8e5f4;
  background: #fff;
  color: #1d3558;
  border-radius: 6px;
  cursor: pointer;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 900;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.makeLogo {
  width: 92px;
  height: 44px;
  border-radius: 0;
  background: transparent;
  color: #10236e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  border: 0;
}

.makeLogo img {
  max-width: 92px;
  max-height: 44px;
  object-fit: contain;
}

.makeLogoFallback {
  display: none;
}

.makeLogo.logoFailed img {
  display: none;
}

.makeLogo.logoFailed .makeLogoFallback,
.makeLogo:not(.hasImage) {
  display: flex;
}

.makeCard.selected .makeLogo {
  color: #10236e;
}

.makeName {
  font-size: 15px;
  line-height: 1.15;
}

.otherMakePanel {
  margin-top: 18px;
  max-width: 420px;
}

.otherMakePanel label,
.field label {
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
}

.otherMakePanel select,
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  font-size: 17px;
  border: 1px solid #cfd7e2;
  border-radius: 5px;
  background: #fff;
}

.otherMakePanel select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(16, 35, 110, .16);
  border-color: #10236e;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}

.field {
  margin-bottom: 16px;
  max-width: 410px;
}

.field.full {
  max-width: none;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #ef4565;
  background: #fffafb;
}

.fieldHint {
  color: #6b7788;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 7px;
}

.optionalBadge {
  color: #6b7788;
  font-size: 13px;
  font-weight: 800;
  margin-left: 5px;
}

.commentField {
  max-width: 640px;
}

.error {
  font-size: 13px;
  color: #ef4565;
  margin-top: 7px;
}

.hint {
  font-size: 13px;
  color: #7c8592;
  margin-top: 6px;
}

.btnrow {
  margin-top: 26px;
  display: block;
  gap: 12px;
  width: 100%;
  max-width: 805px;
}

.cta {
  border: 0;
  border-radius: 14px;
  padding: 19px 24px;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  min-height: 64px;
  width: 100%;
  box-shadow: 0 3px 8px rgba(16, 35, 110, .08);
}

.cta.primary {
  background: #ff7428;
  color: #fff;
}

.cta.green {
  background: #18b866;
  color: #fff;
}

.almostDone {
  color: #07236f;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  margin: -4px 0 24px;
}

.cta.outline {
  background: #fff;
  color: #10236e;
  border: 2px solid #10236e;
}

.cta:disabled {
  background: #ddd !important;
  color: #9aa0a6 !important;
  cursor: not-allowed !important;
}

.zip {
  max-width: 270px;
  font-size: 31px;
  letter-spacing: 0;
  font-weight: 800;
}

.twoCol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.site-footer {
  max-width: 1040px;
  margin: 0 auto 24px;
  background: #fff;
  border-top: 1px solid #eceff3;
  padding: 20px 34px;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
}

.trust {
  font-size: 16px;
  font-weight: 800;
}

.footer-badges {
  display: flex;
  gap: 10px;
}

.mini-badge {
  background: #0a6e97;
  color: #fff;
  border-radius: 6px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 900;
}

.debugBox {
  margin-top: 26px;
  background: #f7f8fb;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  padding: 14px;
}

.debugBox summary {
  cursor: pointer;
  font-weight: 900;
  color: #66707d;
}

.debugBox pre {
  white-space: pre-wrap;
  overflow: auto;
  font-size: 12px;
  max-height: 360px;
}

.summaryCard {
  background: #f7fbff;
  border: 1px solid #d6e7f7;
  border-radius: 8px;
  padding: 18px;
  max-width: 760px;
}

.summaryCard table {
  width: 100%;
  border-collapse: collapse;
}

.summaryCard td {
  border-bottom: 1px solid #e4edf6;
  padding: 8px 6px;
  font-size: 14px;
}

.summaryCard td:first-child {
  font-weight: 900;
  color: #52606d;
  width: 42%;
}

.birthdateFields {
  box-sizing: border-box;
  width: 315px;
  max-width: 100%;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 26px;
  border: 1px solid #d7d7d7;
  border-radius: 5px;
  background: #f7f7f7;
  overflow: hidden;
}

.birthdateFields input {
  box-sizing: border-box !important;
  width: 48px !important;
  min-width: 0 !important;
  height: 100% !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: #1f2933 !important;
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.birthdateFields input.year {
  width: 82px !important;
  text-align: left !important;
}

.birthdateFields input::placeholder {
  color: #b9bec5 !important;
  opacity: 1 !important;
}

.dateDivider {
  color: #0876bd !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.emptyState {
  padding: 18px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  font-weight: 700;
}

@media (max-width: 860px) {
  .topbar {
    height: 70px;
    padding: 0 14px;
  }

  .rightlinks {
    display: none;
  }

  .toplink span {
    display: none;
  }

  .brand-image {
    min-width: 190px;
  }

  .site-logo {
    max-width: 230px;
    max-height: 42px;
  }

  .page,
  .site-footer {
    margin: 0;
    padding: 20px 15px;
    max-width: none;
  }

  .title {
    font-size: 27px;
  }

  .choice {
    font-size: 15px;
    min-height: 62px;
  }

  .twoCol {
    grid-template-columns: 1fr;
  }

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

  .grid.small,
  .grid.years {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

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