/* Soft Cobalt palette for the general quote landing page. */
body.general-page #landing {
  --ink: #19385e;
  --muted: #495b73;
  --wash: #f7f5ef;
  --mint: #edf4fb;
  --accent: #3563ac;
  --accent-dark: #24456f;
  --quote-header: #fefdf9;
  --quote-highlight: var(--accent);
  --quote-action: var(--accent);
  --quote-action-hover: #2a518e;
  --quote-track: #e4edf5;
  --quote-field-border: #7c8ca4;
  color: var(--ink);
}

body.general-page #landing .header-shell {
  background: var(--quote-header);
  color: var(--ink);
}

body.general-page #landing .header-shell .brand,
body.general-page #landing :is(h1, h2, h3) {
  color: var(--ink);
}

body.general-page #landing .header-shell nav a:hover {
  color: var(--accent);
}

body.general-page #landing :focus-visible {
  outline-color: var(--accent);
}

body.general-page #landing .general-hero {
  background: var(--paper);
}

.general-guidance {
  background: var(--wash);
}

body.general-page #landing progress {
  background: var(--quote-track);
}

body.general-page #landing progress::-webkit-progress-bar {
  background: var(--quote-track);
}

body.general-page #landing progress::-webkit-progress-value {
  background: var(--quote-highlight);
}

body.general-page #landing progress::-moz-progress-bar {
  background: var(--quote-highlight);
}

body.general-page #landing .inline-quote .field input {
  border-color: var(--quote-field-border);
}

body.general-page #landing .inline-quote .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

body.general-page #landing .inline-quote .field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

body.general-page #landing .inline-quote :is(input, select) {
  accent-color: var(--accent);
}

body.general-page #landing .inline-quote .choice:has(input:checked) {
  background: var(--mint);
  border-color: var(--accent);
}

body.general-page #landing :is(#quote-security, .final-disclosure a, #email-only) {
  color: var(--ink);
}

body.general-page #landing .button {
  background: var(--quote-action);
  border-color: var(--quote-action);
  color: #fff;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 10%, transparent);
}

body.general-page #landing .button:hover:not(:disabled) {
  background: var(--quote-action-hover);
  border-color: var(--quote-action-hover);
}

.general-page .brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.general-page .site-header .general-wordmark {
  width: auto;
  color: #29638d;
  font-size: clamp(13px, 1.65vw, 24px);
  line-height: 1.1;
  letter-spacing: -.055em;
  text-transform: none;
}

.general-page .site-header .general-wordmark span {
  color: #682fac;
}

@media (min-width: 741px) {
  .general-page .site-header .general-wordmark {
    white-space: nowrap;
  }
}

body.general-page .site-header {
  min-height: 66px;
}

@media (max-width: 740px) {
  body.general-page .site-header {
    min-height: 60px;
  }
}

@media (max-height: 720px) {
  body.general-page .site-header {
    min-height: 56px;
  }
}

.general-hero .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: start;
  gap: clamp(24px, 4.5vw, 48px);
  padding-bottom: clamp(36px, 5vw, 64px);
}

.general-hero .hero-copy #hero-title {
  text-wrap: balance;
}

.general-hero #flow-title .quote-state {
  text-decoration: underline var(--quote-highlight);
  text-decoration-thickness: .07em;
  text-underline-offset: .12em;
}

.general-hero .hero-copy:has(#flow:is([data-step="3"], [data-step="4"])) .hero-eyebrow {
  display: none;
}

.general-hero .hero-copy:has(#flow:is([data-step="3"], [data-step="4"])) #hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.general-hero .hero-copy #flow.inline-quote:is([data-step="3"], [data-step="4"]) {
  margin-top: 0;
}

.general-hero-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--accent-dark);
  color: #fff;
}

.general-hero-photo {
  position: relative;
  flex: none;
  aspect-ratio: 4 / 3;
}

.general-hero-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: clamp(65px, 9vw, 120px);
  background: linear-gradient(180deg, transparent, var(--accent-dark));
  content: "";
}

.general-family {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
}

.general-hero-details {
  padding: 0 clamp(20px, 2.6vw, 34px) clamp(24px, 3vw, 38px);
}

#landing .general-hero .general-hero-details h2 {
  color: inherit;
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 9px;
}

.general-hero-details p,
.general-call p {
  max-width: 54ch;
}

.general-hero-details p {
  color: #e4edf9;
}

.general-checklist {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 15px 0 0;
  list-style: none;
}

.general-checklist li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.general-checklist li::before {
  content: "✓" / "";
  display: inline-grid;
  flex: 0 0 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff26;
  color: #fff;
}

.general-section {
  padding-block: clamp(42px, 6vw, 82px);
}

.general-section .section-head {
  margin: 0 0 26px;
  text-align: left;
}

.general-section .section-head p {
  margin-top: 10px;
}

.general-band {
  background: var(--mint);
  border-block: 1px solid var(--line);
}

.general-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.general-card {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.general-card h3 {
  font-size: clamp(18px, 2vw, 23px);
  margin-bottom: 10px;
}

.general-card p {
  font-size: 15px;
}

.general-plan-grid .general-card {
  display: flex;
  flex-direction: column;
}

.general-text-action {
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 14px 0 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.general-resource {
  display: block;
  text-decoration: none;
}

.general-resource:hover h3,
.general-resource:focus-visible h3 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.general-steps {
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.general-steps li::marker {
  color: var(--accent);
  font-weight: 800;
}

.general-steps h3 {
  margin-top: 8px;
}

.general-call {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  flex-wrap: wrap;
  padding-block: clamp(32px, 5vw, 56px);
}

.general-call h2 {
  font-size: clamp(25px, 3.5vw, 38px);
  margin-bottom: 10px;
}

.general-questions .faqs {
  max-width: 820px;
}

@media (max-width: 960px) {
  .general-hero .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .general-hero-side {
    width: 100%;
  }
}

@media (max-width: 740px) {
  .general-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 961px) {
  .general-hero .hero {
    width: min(1232px, calc(100% - 64px));
  }

  .general-hero .hero:has(#flow[data-step="1"]) {
    padding-bottom: clamp(28px, 2.5vw, 40px);
  }

  .general-hero .hero:has(#flow[data-step="1"]) > :is(.hero-copy, .general-hero-side) {
    align-self: stretch;
  }

  .general-hero .hero-copy:has(#flow[data-step="1"]),
  .general-hero #flow.inline-quote[data-step="1"] {
    display: flex;
    flex-direction: column;
  }

  .general-hero #flow.inline-quote[data-step="1"] {
    flex: 1;
  }

  .general-hero #flow[data-step="1"] .flow-footer {
    margin-top: auto;
    padding-top: 22px;
  }

  .general-hero .hero:has(#flow[data-step="1"]) .general-hero-photo {
    flex: 1 0 auto;
    aspect-ratio: 5 / 4;
  }

  .general-hero .hero:has(#flow:is([data-step="3"], [data-step="4"])) .general-hero-side {
    align-self: stretch;
  }

  .general-hero .hero:has(#flow:is([data-step="3"], [data-step="4"])) .general-hero-photo {
    aspect-ratio: 5 / 7;
  }

  .general-hero .hero:has(#flow:is([data-step="3"], [data-step="4"])) .general-family {
    object-position: 75% center;
  }

  .general-hero .hero:has(#flow:is([data-step="3"], [data-step="4"])) .general-hero-details {
    flex: 1;
    padding-top: 12px;
  }

  .general-hero .hero-copy:has(#flow[data-step="4"]) {
    align-self: stretch;
  }

  .general-hero #flow.inline-quote[data-step="4"] {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    min-height: 100%;
  }
}

@media (min-width: 1200px) and (min-height: 721px) {
  .general-hero .hero-copy:has(#flow[data-step="1"]) #hero-title {
    font-size: clamp(50px, 4vw, 54px);
  }
}

.general-page .footer-top > div {
  flex-wrap: wrap;
  gap: 8px 20px;
}

.general-page .footer-assistance a {
  overflow-wrap: anywhere;
}

body.general-page #landing .site-header nav .header-call,
body.general-page #landing .general-call .button {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: none;
}

body.general-page #landing .site-header nav .header-call {
  display: inline-flex;
  white-space: nowrap;
}

body.general-page #landing .site-header nav .header-call:hover,
body.general-page #landing .general-call .button:hover {
  background: var(--mint);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.general-page .inline-quote .household-choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.general-page .inline-quote .household-choices .choice {
  min-height: 86px;
  padding-block: 14px;
}

.general-page .inline-quote .household-choices .choice-label {
  font-size: 13px;
}

@media (min-width: 961px) and (max-height: 900px) {
  .general-hero .hero:has(#flow[data-step="2"]) {
    padding-top: 18px;
  }

  .general-hero .hero-copy:has(#flow[data-step="2"]) #hero-title {
    font-size: clamp(34px, 3.5vw, 42px);
    margin-bottom: 12px;
  }
}

@media (max-height: 900px) {
  .general-hero .hero-copy #flow.inline-quote[data-step="2"] {
    margin-top: 12px;
  }

  .general-hero .hero-copy #flow.inline-quote:is([data-step="2"], [data-step="3"]) {
    padding-block: 17px;
  }

  .general-hero #flow:is([data-step="2"], [data-step="3"]) #progress {
    margin: 4px 0 9px;
  }

  #landing .general-hero #flow:is([data-step="2"], [data-step="3"]) #flow-title {
    font-size: clamp(25px, 2.4vw, 30px);
    margin-bottom: 5px;
  }

  .general-hero #flow:is([data-step="2"], [data-step="3"]) .intro {
    margin-bottom: 10px;
  }

  .general-hero #flow:is([data-step="2"], [data-step="3"]) fieldset {
    margin-block: 10px;
  }

  .general-hero #flow:is([data-step="2"], [data-step="3"]) legend {
    margin-bottom: 8px;
  }

  .general-hero #flow[data-step="2"] .household-choices .choice {
    min-height: 64px;
    padding-block: 8px;
    gap: 4px;
  }

  .general-hero #flow[data-step="2"] .household-icon {
    width: 24px;
    height: 24px;
  }

  .general-hero #flow[data-step="2"] .private-income-field {
    margin-bottom: 0;
  }

  .general-hero #flow[data-step="2"] #income-label,
  .general-hero #flow[data-step="2"] .private-income-field .field-hint {
    margin-block: 6px;
  }

  .general-hero #flow[data-step="2"] .private-income-picker summary {
    min-height: 46px;
    padding-block: 8px;
  }

  .general-hero #flow:is([data-step="2"], [data-step="3"]) .flow-controls {
    gap: 3px;
    margin-top: 11px;
  }

  .general-hero #flow:is([data-step="2"], [data-step="3"]) #next {
    min-height: 48px;
    padding-block: 9px;
  }

  .general-hero #flow[data-step="2"] .flow-footer {
    position: absolute;
    right: clamp(18px, 2.2vw, 30px);
    bottom: 28px;
    margin-top: 0;
  }

  .general-hero #flow[data-step="3"] .field {
    margin-block: 6px 10px;
  }

  .general-hero #flow[data-step="3"] .field input {
    min-height: 48px;
    height: 48px;
    padding-block: 10px;
  }

  .general-hero #flow[data-step="3"] .dob .field {
    margin: 0;
  }

  .general-hero #flow[data-step="3"] .calculated-age {
    margin-top: 8px;
  }

  .general-hero #flow[data-step="3"] .sms-optin {
    margin: 12px 0 0;
    padding: 12px;
  }
}
