@font-face {
  font-family: "Heading Now";
  src: url("/assets/heading-now.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/poppins-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/poppins-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --pink: #ea98af;
  --bone: #f4eae9;
  --coral: #e97a6f;
  --blue: #1e4f70;
  --brown: #bf6c58;
  --green: #5ca370;
  --ink: #242124;
  --muted: #69636a;
  --line: #dccdcc;
  --error: #a63a3a;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(234, 152, 175, 0.22), transparent 26rem),
    linear-gradient(145deg, #fff 0%, var(--bone) 100%);
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(16px, 4vw, 52px);
}

.form-card {
  overflow: hidden;
  border: 1px solid rgba(30, 79, 112, 0.12);
  border-radius: 32px;
  background: var(--pink);
  box-shadow: 0 24px 80px rgba(74, 49, 57, 0.14);
}

.brand-header {
  padding: clamp(24px, 6vw, 48px) clamp(24px, 7vw, 56px) 34px;
  color: var(--blue);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  margin-bottom: 30px;
}

.logo-surface {
  display: grid;
  place-items: center;
  width: 74px;
  height: 92px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bone);
}

.logo-surface img {
  display: block;
  width: 58px;
  height: auto;
  max-height: 76px;
}

.slogan {
  color: var(--white);
  font-size: clamp(1rem, 3.8vw, 1.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 4px;
  font-family: "Heading Now", Impact, sans-serif;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.brand-header > p {
  max-width: 39rem;
  margin-bottom: 0;
  font-size: clamp(0.96rem, 2.8vw, 1.05rem);
}

.form-surface, .success-surface {
  border-radius: 32px 32px 0 0;
  background: var(--white);
}

.form-surface {
  padding: clamp(24px, 6vw, 48px) clamp(24px, 7vw, 56px) clamp(30px, 7vw, 58px);
}

.progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: none;
  color: #827b80;
  cursor: pointer;
}

.progress-step:disabled { cursor: default; }

.progress-step span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--bone);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
}

.progress-step strong { font-size: 0.86rem; font-weight: 600; white-space: nowrap; }
.progress-step.is-active { color: var(--blue); }
.progress-step.is-active span { background: var(--blue); color: var(--white); }
.progress-line { height: 1px; background: var(--line); }

.section-heading { margin-bottom: 30px; }

.section-heading h2, .success-surface h2 {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
}

.section-heading p { margin-bottom: 0; color: var(--muted); }

.field { margin-bottom: 23px; }

.field label, .choice-field legend {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
}

.field label > span, .choice-field legend span { color: var(--brown); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="date"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdfd;
  color: var(--ink);
  font-size: 1rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 79, 112, 0.12);
}

.field input[aria-invalid="true"] { border-color: var(--error); }

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  color: var(--error);
  font-size: 0.78rem;
}

.field-error:empty { display: none; }

.choice-field {
  min-width: 0;
  padding: 0;
  border: 0;
}

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.choice-card {
  display: flex !important;
  align-items: center;
  min-height: 54px;
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdfd;
  color: var(--ink) !important;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--blue);
  background: rgba(30, 79, 112, 0.06);
  box-shadow: 0 0 0 2px rgba(30, 79, 112, 0.08);
}

.choice-card input { width: 18px; height: 18px; margin: 0 10px 0 0; accent-color: var(--blue); }
.choice-card input:focus-visible { outline: 3px solid rgba(30, 79, 112, 0.24); outline-offset: 3px; border-radius: 50%; }
.field .choice-card > span { color: var(--ink); font-size: 0.9rem; font-weight: 400; }

.input-prefix {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdfd;
}

.input-prefix:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 79, 112, 0.12); }
.input-prefix > span { padding-left: 14px; color: var(--muted); }
.input-prefix input { min-width: 0; border: 0 !important; box-shadow: none !important; }

.form-alert {
  margin-bottom: 24px;
  padding: 13px 15px;
  border: 1px solid rgba(166, 58, 58, 0.28);
  border-radius: 12px;
  background: rgba(166, 58, 58, 0.08);
  color: #7f2d2d;
  font-size: 0.88rem;
}

.button {
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(30, 79, 112, 0.3); outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: 0.68; }
.button-primary { border: 1px solid var(--blue); background: var(--blue); color: var(--white); box-shadow: 0 8px 22px rgba(30, 79, 112, 0.17); }
.button-secondary { border: 1px solid var(--line); background: var(--white); color: var(--blue); }
.button-wide { width: 100%; margin-top: 2px; }
.button-row { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 12px; margin-top: 30px; }

.success-surface {
  display: grid;
  min-height: 410px;
  padding: 66px 28px 72px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 74px;
  height: 74px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(92, 163, 112, 0.15);
  color: var(--green);
}

.success-surface h2 { font-size: 2rem; }
.success-surface > p { margin-bottom: 24px; color: var(--muted); font-size: 1.03rem; }
.success-note { max-width: 27rem; padding: 14px 18px; border-radius: 14px; background: var(--bone); color: var(--blue); font-size: 0.88rem; }

[hidden] { display: none !important; }

@media (max-width: 560px) {
  .page-shell { padding: 0; }
  .form-card { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .brand-header { padding: 24px 24px 28px; }
  .brand-lockup { min-height: 70px; margin-bottom: 24px; }
  .logo-surface { width: 58px; height: 70px; border-radius: 13px; }
  .logo-surface img { width: 44px; max-height: 58px; }
  h1 { font-size: 2.55rem; }
  .form-surface, .success-surface { border-radius: 28px 28px 0 0; }
  .form-surface { min-height: 575px; padding: 26px 24px 36px; }
  .progress { gap: 9px; margin-bottom: 30px; }
  .progress-step { gap: 7px; }
  .progress-step strong { font-size: 0.79rem; }
  .progress-step span { width: 24px; height: 24px; }
  .choice-grid { grid-template-columns: 1fr; }
  .button-row { grid-template-columns: 1fr; }
  .button-secondary { order: 2; }
}

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