:root {
  --blue: #123eff;
  --blue-dark: #0b2bd8;
  --navy: #0b173d;
  --orange: #ff5a1f;
  --orange-dark: #df4310;
  --ink: #10182d;
  --muted: #68738a;
  --line: #dfe5ef;
  --soft: #f5f7fb;
  --success: #168257;
  --danger: #b42338;
  --shadow: 0 28px 80px rgba(21, 38, 83, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }

.language-bar {
  position: absolute;
  top: 28px;
  right: max(20px, calc((100% - 1120px) / 2));
  z-index: 20;
  display: flex;
  justify-content: flex-end;
}
.language-switch { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.language-switch a { min-width: 39px; padding: 8px 10px; border-radius: 8px; color: var(--muted); text-align: center; text-decoration: none; font-size: 11px; font-weight: 850; }
.language-switch a.active { color: #fff; background: var(--navy); }

.page-intro { position: relative; padding: 82px 20px 48px; background: linear-gradient(135deg, #f0f4ff, #fff 55%, #fff2ed); }
.page-intro-inner { width: min(1120px, 100%); margin: 0 auto; }
.page-eyebrow, .eyebrow { margin: 0 0 14px; color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.page-intro h1 { max-width: 880px; margin: 0 0 18px; font-size: clamp(34px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.055em; }
.page-intro-inner > p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.calculator-shell {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 64px auto 80px;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  overflow: hidden;
  border: 1px solid rgba(18, 62, 255, .1);
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}
.calculator-shell::before {
  content: "";
  position: absolute;
  left: -90px;
  top: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 90, 31, .18);
  pointer-events: none;
}
.intro-panel {
  position: relative;
  padding: clamp(38px, 5vw, 58px);
  color: #fff;
  background: radial-gradient(circle at 0 0, rgba(255, 90, 31, .3), transparent 34%), linear-gradient(145deg, var(--navy), var(--blue));
}
.intro-panel .eyebrow { color: #ffc7b1; }
.intro-panel h1 { margin: 0 0 20px; color: #fff; font-size: clamp(34px, 3.2vw, 50px); line-height: 1.03; letter-spacing: -.05em; }
.intro-panel .lead { margin: 0; color: rgba(255,255,255,.74); font-size: 15px; line-height: 1.7; }
.trust-card { margin-top: 28px; padding: 14px 15px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; color: rgba(255,255,255,.86); background: rgba(255,255,255,.08); font-size: 12px; line-height: 1.5; }
.pulse { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #6ce6a8; box-shadow: 0 0 0 5px rgba(108,230,168,.13); }
.benefit-list { margin: 30px 0 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.benefit-list li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 750; }
.benefit-list li span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.14); font-size: 12px; }

.calculator-card { min-width: 0; padding: clamp(32px, 5vw, 54px); background: #fff; }
.progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.step-kicker { display: block; margin-bottom: 7px; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.progress-head h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.12; letter-spacing: -.04em; }
.progress-count { flex: 0 0 auto; padding: 8px 11px; border-radius: 10px; color: var(--blue); background: #edf1ff; font-size: 11px; font-weight: 900; }
.progress-track { height: 5px; margin: 20px 0 30px; overflow: hidden; border-radius: 20px; background: #edf0f5; }
.progress-track span { width: 25%; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #ff8a5f); transition: width .3s ease; }
.app-message { margin-bottom: 18px; padding: 13px 15px; border-radius: 13px; color: var(--danger); background: #fff0f0; font-size: 13px; }
.step-content { min-height: 310px; }

.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.device-card {
  position: relative;
  min-height: 170px;
  padding: 24px 16px 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.device-card:hover, .device-card:focus-visible { transform: translateY(-3px); border-color: rgba(255,90,31,.5); background: #fffaf8; box-shadow: 0 16px 34px rgba(27,43,80,.1); outline: none; }
.device-card strong { margin-top: 14px; font-size: 16px; }
.device-card small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.card-arrow { position: absolute; right: 12px; bottom: 11px; color: var(--orange); font-weight: 900; }
.device-icon { position: relative; width: 42px; height: 58px; display: block; border: 3px solid var(--navy); border-radius: 9px; }
.device-icon::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); transform: translateX(-50%); }
.device-icon.tablet { width: 54px; height: 62px; border-radius: 7px; }
.device-icon.laptop { width: 67px; height: 43px; border-radius: 5px 5px 2px 2px; }
.device-icon.laptop::before { content: ""; position: absolute; left: -8px; right: -8px; bottom: -8px; height: 5px; border-radius: 1px 1px 6px 6px; background: var(--navy); }
.device-icon.laptop::after { display: none; }

.selection-summary { margin-bottom: 22px; padding: 15px 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; border: 1px solid #dfe5ff; border-radius: 15px; background: #f5f7ff; }
.selection-summary span { padding: 6px 9px; border-radius: 8px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 850; }
.selection-summary strong { font-size: 13px; }
.selection-summary small { width: 100%; color: var(--muted); font-size: 10px; }
.field-label { display: block; margin: 17px 0 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
.field-select, .form-grid input, .form-grid textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #d8dfea;
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-select:focus, .form-grid input:focus, .form-grid textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,90,31,.11); }

.question-list { display: grid; gap: 13px; }
.question-card { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.question-card legend { padding: 0 8px 0 0; display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; font-weight: 850; }
.question-card legend span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: #edf1ff; font-size: 10px; }
.option-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.option-card { position: relative; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card span { min-height: 47px; padding: 10px 12px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; color: #465168; background: var(--soft); font-size: 11px; line-height: 1.35; transition: .18s ease; }
.option-card input:checked + span { border-color: var(--orange); color: var(--orange-dark); background: #fff3ee; box-shadow: inset 0 0 0 1px var(--orange); font-weight: 800; }
.option-card input:focus-visible + span { outline: 3px solid rgba(18,62,255,.18); }

.step-actions { margin-top: 26px; display: flex; justify-content: space-between; gap: 12px; }
.button { min-height: 50px; padding: 12px 20px; border: 0; border-radius: 14px; font-weight: 850; transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--orange), #ff7544); box-shadow: 0 12px 25px rgba(255,90,31,.23); }
.button.secondary { color: var(--ink); border: 1px solid var(--line); background: #fff; }
.button.text { color: var(--blue); background: transparent; }
.step-actions .primary { margin-left: auto; min-width: 180px; }

.result-card { position: relative; overflow: hidden; padding: 25px; border: 1px solid rgba(255,90,31,.2); border-radius: 22px; background: linear-gradient(135deg, #fff2ec, #fff 66%); }
.result-card::after { content: ""; position: absolute; right: -38px; top: -42px; width: 120px; height: 120px; border-radius: 50%; background: rgba(18,62,255,.08); }
.result-topline { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.confidence { padding: 7px 9px; border-radius: 9px; color: var(--success); background: #e9f8f1; letter-spacing: 0; text-transform: none; }
.confidence.review { color: #8a6100; background: #fff3cd; }
.result-range { position: relative; z-index: 1; margin: 15px 0 20px; color: var(--orange-dark); font-size: clamp(32px, 5vw, 48px); font-weight: 900; line-height: 1; letter-spacing: -.055em; }
.result-range small { font-size: 16px; letter-spacing: 0; }
.result-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.result-meta div { padding: 13px; border: 1px solid rgba(18,62,255,.08); border-radius: 13px; background: rgba(255,255,255,.72); }
.result-meta span, .result-meta strong { display: block; }
.result-meta span { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.result-meta strong { font-size: 12px; }
.updated-line { margin: 15px 0 0; color: var(--muted); font-size: 9px; }
.result-disclaimer { margin: 16px 0 0; padding-top: 15px; border-top: 1px solid rgba(255,90,31,.15); color: var(--muted); font-size: 11px; line-height: 1.5; }
.lead-card { margin-top: 18px; padding: 23px; border: 1px solid var(--line); border-radius: 20px; }
.lead-card h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.03em; }
.lead-card > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 10px; font-weight: 800; }
.form-grid textarea { min-height: 54px; resize: vertical; }
.consent-row { margin-top: 14px; display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.consent-row input { margin-top: 2px; accent-color: var(--orange); }
.form-actions { margin-top: 17px; display: flex; align-items: center; gap: 10px; }
.success-state, .empty-state, .loading-state { min-height: 270px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-state > span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--success); font-size: 25px; }
.success-state h3, .empty-state h3 { max-width: 460px; margin: 18px 0; }
.loading-state p, .empty-state p { color: var(--muted); font-size: 12px; }
.loader { width: 36px; height: 36px; border: 3px solid #e5e9f2; border-top-color: var(--orange); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.site-footer { padding: 28px 20px; display: flex; justify-content: space-between; gap: 30px; color: rgba(255,255,255,.55); background: var(--navy); font-size: 10px; }
.site-footer span { max-width: 620px; }
.is-embed { background: transparent; }
.is-embed .calculator-shell { width: 100%; margin: 0; box-shadow: none; }

/* One-screen calculator */
.form-head { margin-bottom: 27px; }
.form-head h2 { margin: 0 0 9px; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -.04em; }
.form-head p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.all-in-one-form { display: grid; gap: 22px; }
.calculator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.calculator-grid label { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.calculator-grid label > span { color: var(--ink); font-size: 11px; font-weight: 850; }
.calculator-grid select,
.calculator-grid input,
.calculator-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid #d8dfea;
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.calculator-grid select:focus,
.calculator-grid input:focus,
.calculator-grid textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,90,31,.11); }
.calculator-grid textarea { min-height: 104px; resize: vertical; }
.wide-field { grid-column: 1 / -1; }
.form-section-title { margin: 2px 0 -7px; padding-top: 19px; border-top: 1px solid #edf0f5; }
.form-section-title strong, .form-section-title small { display: block; }
.form-section-title strong { font-size: 16px; letter-spacing: -.02em; }
.form-section-title small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.contacts-title { margin-top: 0; }
.estimate-panel {
  padding: 23px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 18px;
  border: 1px solid rgba(255,90,31,.22);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff4ee, #fff 68%);
}
.estimate-panel > div:first-child > span, .estimate-main > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.estimate-panel strong { display: block; color: var(--orange-dark); font-size: clamp(19px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.035em; }
.estimate-panel .estimate-loading { color: var(--blue); font-size: 15px; letter-spacing: 0; }
.estimate-panel .estimate-error { max-width: 440px; color: var(--danger); font-size: 14px; letter-spacing: 0; }
.estimate-details { display: grid; justify-items: end; gap: 6px; color: var(--muted); font-size: 9px; }
.estimate-details b { color: var(--ink); }
.estimate-panel > small { grid-column: 1 / -1; margin-top: 6px; color: var(--muted); font-size: 9px; }
.final-submit { width: 100%; min-height: 54px; margin-top: -3px; font-size: 14px; }
.all-in-one-form .consent-row { margin-top: -5px; }

@media (max-width: 920px) {
  .calculator-shell { grid-template-columns: 1fr; }
  .intro-panel { padding: 38px; }
  .intro-panel h1 { max-width: 620px; }
  .intro-panel .lead { max-width: 650px; }
  .benefit-list { grid-template-columns: repeat(3, 1fr); }
  .benefit-list li { align-items: flex-start; }
  .calculator-card { padding: 38px; }
}

@media (max-width: 680px) {
  .language-bar { top: 14px; right: 14px; }
  .page-intro { padding: 72px 16px 35px; }
  .page-intro h1 { font-size: 36px; }
  .page-intro-inner > p:last-child { font-size: 15px; }
  .calculator-shell { width: calc(100% - 24px); margin: 30px auto 48px; border-radius: 24px; }
  .intro-panel { padding: 31px 24px; }
  .intro-panel h1 { font-size: 34px; }
  .trust-card { margin-top: 20px; }
  .benefit-list { grid-template-columns: 1fr; gap: 9px; margin-top: 22px; }
  .calculator-card { padding: 29px 20px 24px; }
  .progress-head h2 { font-size: 27px; }
  .progress-track { margin-bottom: 24px; }
  .device-grid { grid-template-columns: 1fr; }
  .device-card { min-height: 104px; padding: 16px 48px 16px 20px; flex-direction: row; justify-content: flex-start; gap: 16px; text-align: left; }
  .device-card strong { margin: 0; }
  .device-card small { display: none; }
  .device-icon { transform: scale(.74); margin: -8px; }
  .option-grid, .result-meta, .form-grid { grid-template-columns: 1fr; }
  .question-card { padding: 15px; }
  .step-actions { position: sticky; bottom: 0; z-index: 10; margin: 22px -20px -24px; padding: 13px 20px 16px; background: rgba(255,255,255,.96); box-shadow: 0 -10px 25px rgba(22,34,68,.08); backdrop-filter: blur(8px); }
  .step-actions .button { min-width: 0; }
  .step-actions .primary { flex: 1; }
  .form-actions { align-items: stretch; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .is-embed .calculator-shell { width: 100%; margin: 0; border-radius: 22px; }
  .calculator-grid { grid-template-columns: 1fr; gap: 13px; }
  .wide-field { grid-column: auto; }
  .estimate-panel { grid-template-columns: 1fr; padding: 20px; }
  .estimate-details { justify-items: start; margin-top: 5px; }
  .form-head { margin-bottom: 22px; }
  .form-head h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Typography aligned with the Restart website (2026-09-14). */
body { font-size: 16px; line-height: 1.6; }
.page-intro h1, .intro-panel h1 {
  font-size: 27.2px; line-height: 1.3; font-weight: 700; letter-spacing: normal;
}
.form-head h2, .progress-head h2 {
  font-size: 29px; line-height: 1.3; font-weight: 700; letter-spacing: normal;
}
.page-intro-inner > p:last-child, .intro-panel .lead, .form-head p {
  font-size: 16px; line-height: 1.6; font-weight: 400;
}
.page-eyebrow, .eyebrow {
  font-size: 12.8px; line-height: 1.4; font-weight: 700; letter-spacing: .05em;
}
.trust-card, .benefit-list { font-size: 14px; line-height: 1.6; }
.calculator-grid label > span {
  font-size: 14px; line-height: 1.5; font-weight: 700;
}
.calculator-grid input, .calculator-grid select, .calculator-grid textarea {
  font-size: 16px; line-height: 1.5; font-weight: 400;
}
.form-section-title strong {
  font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: normal;
}
.form-section-title small { font-size: 14px; line-height: 1.6; }
.estimate-panel > div:first-child > span, .estimate-main > span {
  font-size: 12.8px; line-height: 1.4; font-weight: 700; letter-spacing: .05em;
}
.estimate-panel strong {
  font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: normal;
}
.estimate-panel .estimate-loading, .estimate-panel .estimate-error {
  font-size: 16px; line-height: 1.5;
}
.estimate-details, .estimate-panel > small, .consent-row {
  font-size: 13px; line-height: 1.6;
}
.final-submit, .button {
  font-size: 16px; line-height: 1.5; font-weight: 700; letter-spacing: .03em;
}
.site-footer { font-size: 13px; line-height: 1.6; }
@media (max-width: 680px) {
  .intro-panel h1, .page-intro h1, .form-head h2, .progress-head h2 {
    font-size: 26px;
  }
  .estimate-panel strong { font-size: 24px; }
}

/* Keep the readable mobile form within the host iframe height limit. */
@media (max-width: 680px) {
  .intro-panel { padding: 24px 20px; }
  .intro-panel h1 { margin-bottom: 14px; }
  .trust-card { margin-top: 14px; padding: 10px 12px; }
  .benefit-list { margin-top: 14px; gap: 6px; }
  .calculator-card { padding: 24px 16px; }
  .form-head { margin-bottom: 16px; }
  .all-in-one-form { gap: 14px; }
  .calculator-grid { gap: 10px; }
  .calculator-grid label { gap: 5px; }
  .calculator-grid input, .calculator-grid select { min-height: 46px; padding: 10px 12px; }
  .calculator-grid textarea { min-height: 80px; padding: 10px 12px; }
  .form-section-title { padding-top: 12px; }
  .estimate-panel { padding: 14px; }
}

@media (max-width: 380px) {
  .intro-panel { padding: 20px 16px; }
  .intro-panel h1, .form-head h2 { font-size: 24px; }
  .intro-panel .lead, .form-head p { font-size: 14px; line-height: 1.5; }
  .trust-card, .benefit-list { font-size: 13px; line-height: 1.5; }
  .calculator-card { padding: 20px 12px; }
  .form-section-title small { font-size: 13px; line-height: 1.5; }
  .all-in-one-form { gap: 12px; }
}
