:root {
  --cream: #f8dca8;
  --orange: #fdac3e;
  --slate: #5f6e7b;
  --slate-dark: #3f4b55;
  --ink: #26313a;
  --paper: #fffdf9;
  --white: #ffffff;
  --border: #dfe4e7;
  --muted: #71808c;
  --success: #277a52;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(63, 75, 85, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(248, 220, 168, 0.6), transparent 30rem),
    #f5f7f8;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--slate-dark);
}

.app-shell {
  width: min(940px, calc(100% - 28px));
  margin: 24px auto 56px;
}

.brand-header {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.brand-strip {
  height: 9px;
  background: linear-gradient(
    90deg,
    var(--slate) 0 42%,
    var(--orange) 42% 75%,
    var(--cream) 75% 100%
  );
}

.brand-content {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.brand-logo {
  width: min(290px, 42%);
  height: auto;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--slate);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 8px;
  color: var(--slate-dark);
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  line-height: 1.08;
}

h2 {
  margin-bottom: 6px;
  color: var(--slate-dark);
  font-size: 1.22rem;
}

h3 {
  color: var(--slate-dark);
  font-size: 1rem;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.status-row,
.progress-head,
.step-actions,
.form-actions,
.success-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-row {
  flex-wrap: wrap;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: #fbfcfc;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(95, 110, 123, 0.22);
  border-radius: 999px;
  background: rgba(248, 220, 168, 0.42);
  color: var(--slate-dark);
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.card {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 8px 28px rgba(63, 75, 85, 0.05);
}

.notice {
  border-left: 5px solid var(--orange);
  background: #fffaf2;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f1;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--orange);
  transition: width 180ms ease;
}

.progress-copy,
.helper,
.field-note,
.footer-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.step-chip {
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--slate-dark);
  padding: 8px 11px;
  font-size: 0.82rem;
}

.step-chip[aria-current="step"] {
  border-color: var(--slate);
  background: var(--slate);
  color: var(--white);
}

.form-section {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  padding: 22px;
  box-shadow: 0 8px 28px rgba(63, 75, 85, 0.05);
}

.form-section[hidden] {
  display: none;
}

.section-intro {
  margin-bottom: 18px;
}

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

.fields {
  display: grid;
  gap: 16px;
}

.fields.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: block;
}

.field-label,
legend {
  display: block;
  margin-bottom: 7px;
  color: var(--slate-dark);
  font-size: 0.9rem;
  font-weight: 750;
}

.required {
  color: #c46c00;
}

.control {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd6da;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea.control {
  min-height: 112px;
  resize: vertical;
}

.control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(253, 172, 62, 0.18);
}

.control.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.10);
}

fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.choice,
.agreement {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcfc;
  padding: 10px 11px;
}

.choice input,
.agreement input {
  margin-top: 4px;
  accent-color: var(--orange);
}

.agreements {
  display: grid;
  gap: 9px;
}

.btn {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--slate-dark);
  padding: 9px 14px;
  font-weight: 750;
}

.btn:hover {
  filter: brightness(0.985);
}

.btn-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #3d2b11;
}

.btn-secondary {
  border-color: var(--slate);
  background: var(--slate);
  color: var(--white);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.form-actions {
  margin-top: 18px;
}

.form-message {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 0.86rem;
}

.submit-panel {
  border: 1px solid rgba(253, 172, 62, 0.45);
  background: #fffaf2;
}

.submit-panel strong {
  color: var(--slate-dark);
}

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

.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--orange);
  color: #3d2b11;
  font-size: 1.8rem;
  font-weight: 900;
}

.confirmation-code {
  display: inline-block;
  margin-top: 8px;
  border-radius: 10px;
  background: #f0f3f4;
  padding: 8px 10px;
  color: var(--slate-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  word-break: break-all;
}

.profile-photo-preview {
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  border: 1px dashed #b9c3c9;
  border-radius: 14px;
  background: #fafbfb;
  color: var(--muted);
}

.profile-photo-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.footer-note {
  margin-top: 18px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 16px, 940px);
    margin-top: 8px;
  }

  .brand-content {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .brand-logo {
    width: min(300px, 100%);
  }

  .status-row {
    padding: 14px 18px;
  }

  .fields.two,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .form-section {
    padding: 16px;
  }

  .step-actions,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .step-actions .btn,
  .form-actions .btn {
    width: 100%;
  }
}

.short-grid{display:grid;gap:16px}
.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.choice-card{display:flex;align-items:flex-start;gap:9px;border:1px solid var(--border);border-radius:12px;background:#fbfcfc;padding:10px 11px}
.choice-card input{margin-top:4px;accent-color:var(--orange)}
.selection-note,.counter{margin-top:7px;color:var(--muted);font-size:.8rem}.counter{text-align:right}
.apply-note{border-left:5px solid var(--orange);background:#fffaf2}
.submit-full{width:100%}
@media(max-width:680px){.check-grid{grid-template-columns:1fr}}
