:root {
  --ink: #122536;
  --ink-soft: #52616d;
  --navy: #0b2238;
  --navy-2: #153b55;
  --teal: #0c706a;
  --teal-dark: #075a56;
  --teal-soft: #dcefeb;
  --gold: #d8ac61;
  --canvas: #f2f3ef;
  --surface: #ffffff;
  --surface-soft: #f7f9f7;
  --line: #d9e1df;
  --line-strong: #c5d0ce;
  --danger: #a63b3b;
  --danger-soft: #fff0ee;
  --success: #216b52;
  --shadow: 0 24px 64px rgba(11, 34, 56, 0.10);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --focus: 0 0 0 4px rgba(12, 112, 106, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

.site-header {
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(197, 208, 206, 0.8);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand__text span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.header-security {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
}

.header-security svg {
  width: 18px;
  height: 18px;
}

.mobile-progress {
  display: none;
  height: 3px;
  background: #e4e9e6;
}

.mobile-progress__bar {
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 260ms ease;
}

.page-orb {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -190px;
  top: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 112, 106, 0.10), rgba(12, 112, 106, 0));
  pointer-events: none;
}

.app-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 48px auto 64px;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.progress-panel {
  position: sticky;
  top: 28px;
  overflow: hidden;
  padding: 30px 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, var(--navy), #102d46 72%, #16475b);
  color: #fff;
  box-shadow: var(--shadow);
}

.progress-panel::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -92px;
  bottom: -98px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.035);
}

.progress-panel__eyebrow {
  margin: 0 0 8px;
  color: #9ed2ca;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.progress-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.progress-panel__intro {
  margin: 12px 0 26px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.step-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list__item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  min-height: 60px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 180ms ease;
}

.step-list__item:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 25px;
  left: 15px;
  top: 34px;
  background: rgba(255, 255, 255, 0.17);
}

.step-list__number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  transition: 180ms ease;
}

.step-list__copy {
  display: grid;
  align-content: start;
  padding-top: 3px;
  line-height: 1.3;
}

.step-list__copy strong {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

.step-list__copy span {
  margin-top: 4px;
  font-size: 11px;
}

.step-list__item.is-active,
.step-list__item.is-complete {
  color: #fff;
}

.step-list__item.is-active .step-list__number {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 0 5px rgba(216, 172, 97, 0.12);
}

.step-list__item.is-complete .step-list__number {
  border-color: #86cfc2;
  background: rgba(134, 207, 194, 0.16);
  color: #bce9df;
}

.privacy-note {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.privacy-note strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 12px;
}

.form-stage {
  min-width: 0;
}

.form-alert {
  display: none;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #efc3bd;
  border-radius: var(--radius-md);
  background: var(--danger-soft);
  color: #7d2c2c;
  font-size: 14px;
  font-weight: 650;
}

.form-alert.is-visible {
  display: flex;
  align-items: center;
  gap: 10px;
}

#page1,
#page2,
#page3,
#page4,
#page5,
#page6,
#page7 {
  display: none;
  overflow: hidden;
  border: 1px solid rgba(217, 225, 223, 0.88);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

#page1.is-visible,
#page2.is-visible,
#page3.is-visible,
#page4.is-visible,
#page5.is-visible,
#page6.is-visible,
#page7.is-visible {
  display: block;
  animation: page-in 260ms ease-out;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.container,
.page-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px 52px 46px;
}

.page-heading,
.py-5.text-center {
  margin: 0 0 34px;
  padding: 0;
  text-align: left;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.page-heading h1,
.page-heading h2,
.py-5.text-center h2,
#page6 h1,
#page7 h1 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

.page-heading p,
.section-intro {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  padding: 64px 58px 48px;
  background:
    radial-gradient(circle at 86% 12%, rgba(12, 112, 106, 0.12), transparent 31%),
    linear-gradient(145deg, #fff 48%, #f0f6f3 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -165px;
  top: -135px;
  border: 1px solid rgba(12, 112, 106, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(12, 112, 106, 0.035), 0 0 0 84px rgba(12, 112, 106, 0.025);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 670px;
}

.hero h1 {
  max-width: 630px;
  margin: 12px 0 22px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero__lead {
  max-width: 620px;
  margin: 0;
  color: #415362;
  font-size: 17px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.hero__time {
  color: var(--ink-soft);
  font-size: 13px;
}

.trust-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 48px;
}

.trust-card {
  padding: 17px 16px;
  border: 1px solid rgba(197, 208, 206, 0.8);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.trust-card__icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.trust-card__icon svg {
  width: 16px;
  height: 16px;
}

.trust-card strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}

.trust-card span {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.field-group {
  margin-bottom: 24px;
}

label.form-label,
.form-group > label,
#page5 .form-group > label {
  display: block;
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

label b {
  font-weight: inherit;
}

.required-mark {
  color: var(--danger);
}

.field-help {
  display: block;
  margin: -3px 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
}

.form-control,
.form-select {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-select {
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352616d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-control:hover,
.form-select:hover {
  border-color: #9caaa7;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--teal);
  box-shadow: var(--focus);
}

.form-control[aria-invalid="true"],
.form-select[aria-invalid="true"] {
  border-color: var(--danger);
  background-color: #fffafa;
}

.field-error {
  display: block;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 650;
}

#page2 br,
#page3 br,
#page4 br,
#page5 br {
  display: block;
  content: "";
  margin: 0 0 22px;
}

.info-callout {
  margin: 4px 0 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 13px;
}

.lead {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.identity-callout {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid #cfe0dc;
  border-radius: 14px;
  background: #f0f7f5;
}

.identity-callout__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.identity-callout strong {
  display: block;
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 14px;
}

.identity-callout p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.d-flex.justify-content-between,
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.d-grid,
.mb-5 {
  margin: 0;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 21px;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(12, 112, 106, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: var(--teal-dark);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.62;
}

.btn__arrow {
  font-size: 17px;
  line-height: 1;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.review-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.review-item span {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jumbotron {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid #d8dfed;
  border-radius: 14px;
  background: #f5f7fb;
}

.jumbotron .container {
  padding: 0;
}

.jumbotron h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0;
}

.jumbotron p {
  margin: 0 0 14px;
  font-size: 13px;
}

#exampleFormControlTextarea1 {
  height: 230px;
  min-height: 230px;
  resize: vertical;
  background: #f8f9f8;
  color: #495964;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.65;
}

.form-check {
  position: relative;
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 11px;
  align-items: start;
}

.form-check-input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  accent-color: var(--teal);
}

.form-check-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.result-page {
  min-height: 570px;
  display: grid;
  place-items: center;
  padding: 52px;
  text-align: center;
}

.result-page__inner {
  max-width: 560px;
}

.result-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.result-icon--error {
  background: var(--danger-soft);
  color: var(--danger);
}

.result-icon svg {
  width: 34px;
  height: 34px;
}

.result-page p {
  color: var(--ink-soft);
}

.report-code {
  display: inline-flex;
  margin: 12px auto 8px;
  padding: 13px 20px;
  border: 1px dashed #85aaa3;
  border-radius: 12px;
  background: #f0f7f5;
  color: var(--navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.site-footer {
  width: min(1240px, calc(100% - 40px));
  margin: -30px auto 28px;
  display: flex;
  justify-content: flex-end;
  color: #66737d;
  font-size: 11px;
}

@media (max-width: 900px) {
  .mobile-progress { display: block; }

  .app-shell {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 28px));
    margin-top: 26px;
  }

  .progress-panel { display: none; }

  .container,
  .page-content { padding: 40px 34px; }

  .hero {
    min-height: auto;
    padding: 52px 38px 38px;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    width: calc(100% - 28px);
    min-height: 68px;
  }

  .brand__text span { display: none; }
  .header-security span { display: none; }

  .app-shell {
    width: calc(100% - 20px);
    margin: 14px auto 40px;
  }

  #page1,
  #page2,
  #page3,
  #page4,
  #page5,
  #page6,
  #page7 { border-radius: 20px; }

  .container,
  .page-content { padding: 32px 22px 28px; }

  .hero { padding: 38px 23px 28px; }
  .hero h1 { font-size: 40px; }
  .hero__lead { font-size: 15px; }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__actions .btn { width: 100%; }

  .trust-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .trust-card { display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
  .trust-card__icon { grid-row: 1 / span 2; margin: 0; }

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

  .d-flex.justify-content-between,
  .form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .d-flex.justify-content-between .d-grid,
  .form-actions .btn { width: 100%; }
  .d-flex.justify-content-between .btn { width: 100%; }

  .result-page { min-height: 500px; padding: 36px 22px; }
  .site-footer { width: calc(100% - 28px); justify-content: center; text-align: center; }
}

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