@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/Quicksand-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/Quicksand-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/Quicksand-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue-025: #eff7fb;
  --blue-050: #e3f2fd;
  --blue-100: #bbdefb;
  --blue-700: #1976d2;
  --blue-800: #1565c0;
  --grey-050: #fafafa;
  --grey-100: #f5f5f5;
  --grey-200: #eeeeee;
  --grey-300: #e0e0e0;
  --grey-500: #adadad;
  --grey-600: #757575;
  --grey-700: #616161;
  --grey-900: #212121;
  --red-050: #ffebee;
  --red-700: #d32f2f;
  --teal-050: #e0f2f1;
  --teal-700: #00796b;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(33, 33, 33, 0.08), 0 2px 6px rgba(33, 33, 33, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Quicksand", sans-serif;
  color: var(--grey-900);
  background: var(--grey-050);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(187, 222, 251, 0.45), transparent 34rem),
    var(--grey-050);
}

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

button,
select {
  cursor: pointer;
}

a {
  color: var(--blue-700);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-800);
}

[hidden] {
  display: none !important;
}

.site-header {
  position: relative;
  z-index: 2;
  height: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
}

.header-content {
  display: flex;
  align-items: center;
  width: min(100% - 48px, 1120px);
  height: 100%;
  margin: 0 auto;
}

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

.brand img {
  display: block;
  width: auto;
  height: 34px;
}

.page-shell {
  flex: 1;
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 64px 0 80px;
}

.intro {
  margin-bottom: 32px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.12;
}

h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.2;
}

.intro-text {
  max-width: 650px;
  margin: 16px auto 0;
  color: var(--grey-700);
  font-size: 19px;
  line-height: 1.6;
}

.form-card {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.step-indicator {
  display: grid;
  grid-template-columns: 32px auto minmax(32px, 1fr) 32px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 36px;
  color: var(--grey-600);
  font-size: 14px;
  font-weight: 600;
}

.step {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--grey-100);
  border: 1px solid var(--grey-300);
  border-radius: 50%;
}

.step.is-active {
  color: var(--white);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.step-line {
  height: 1px;
  background: var(--grey-300);
}

.section-description {
  margin: 12px 0 30px;
  color: var(--grey-700);
  line-height: 1.6;
}

.field {
  margin-bottom: 24px;
}

.field-small {
  max-width: 280px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.optional {
  color: var(--grey-600);
  font-weight: 400;
}

input,
select,
textarea {
  width: 100%;
  color: var(--grey-900);
  background: var(--white);
  border: 1px solid var(--grey-500);
  border-radius: 10px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input,
select {
  min-height: 48px;
  padding: 10px 12px;
}

textarea {
  min-height: 112px;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--grey-700);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.16);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--red-700);
}

.field-hint {
  margin: 7px 0 0;
  color: var(--grey-600);
  font-size: 13px;
  line-height: 1.45;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -4px 0 20px;
  color: var(--grey-600);
  font-size: 13px;
}

.or-divider::before,
.or-divider::after {
  flex: 1;
  height: 1px;
  background: var(--grey-300);
  content: "";
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-note {
  margin: 4px 0 24px;
  color: var(--grey-700);
  font-size: 14px;
  line-height: 1.55;
}

.button {
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 24px;
  font-weight: 700;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.button:focus-visible {
  outline: 3px solid rgba(25, 118, 210, 0.28);
  outline-offset: 2px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button-primary {
  color: var(--white);
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.button-primary:hover:not(:disabled) {
  background: var(--blue-800);
  border-color: var(--blue-800);
}

.button-secondary {
  color: var(--grey-900);
  background: var(--white);
  border-color: var(--grey-500);
}

.button-secondary:hover:not(:disabled) {
  background: var(--grey-100);
  border-color: var(--grey-700);
}

.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.message {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.message-error {
  color: var(--red-700);
  background: var(--red-050);
  border: 1px solid #ef9a9a;
}

.review-list {
  margin: 0;
  border-top: 1px solid var(--grey-300);
}

.review-list > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 1.4fr);
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-300);
}

.review-list dt {
  color: var(--grey-600);
  font-size: 14px;
  font-weight: 600;
}

.review-list dd {
  margin: 0;
  font-weight: 600;
  white-space: pre-wrap;
}

.declaration {
  margin-top: 24px;
  padding: 18px;
  background: var(--blue-025);
  border: 1px solid var(--blue-100);
  border-radius: 10px;
}

.declaration p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.success-panel {
  text-align: center;
}

.success-panel > p {
  line-height: 1.65;
}

.success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-050);
  border-radius: 50%;
}

.success-icon svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.case-reference {
  display: inline-block;
  margin: 8px 0 20px;
  padding: 10px 14px;
  background: var(--grey-100);
  border-radius: 8px;
}

.success-note {
  margin: 0;
  color: var(--grey-700);
  font-size: 14px;
}

.site-footer {
  padding: 28px 20px;
  color: var(--grey-700);
  background: var(--white);
  border-top: 1px solid var(--grey-300);
  text-align: center;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.site-footer a {
  color: var(--grey-900);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin: 12px 0 0;
  font-size: 13px;
}

@media (max-width: 620px) {
  body {
    background: var(--white);
  }

  .site-header {
    height: 56px;
  }

  .header-content {
    width: min(100% - 32px, 1120px);
  }

  .brand img {
    height: 28px;
  }

  .page-shell {
    width: 100%;
    padding: 36px 16px 56px;
  }

  .intro {
    margin-bottom: 28px;
  }

  .intro-text {
    font-size: 17px;
  }

  .form-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .step-indicator {
    grid-template-columns: 30px auto minmax(16px, 1fr) 30px auto;
    gap: 6px;
    margin-bottom: 30px;
    font-size: 12px;
  }

  .step {
    width: 30px;
    height: 30px;
  }

  .review-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .button-row {
    flex-direction: column-reverse;
  }

  .button-row .button,
  form > .button {
    width: 100%;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
