:root {
  --navy: #011133;
  --navy-soft: #071b43;
  --navy-card: #0a2251;
  --gold: #d9b86c;
  --gold-soft: #f0dba6;
  --white: #ffffff;
  --cream: #f8f2e5;
  --muted: #bdc8dc;
  --line: rgba(255, 255, 255, 0.13);
  --line-gold: rgba(217, 184, 108, 0.34);
  --danger: #ffb6b6;
  --success: #b5f5c7;
  --warning: #ffe2a6;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 184, 108, 0.15), transparent 24%),
    radial-gradient(circle at 92% 14%, rgba(255, 255, 255, 0.07), transparent 22%),
    var(--navy);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,255,255,.45) 1px, transparent 1.4px);
  background-position: 0 0, 46px 59px;
  background-size: 116px 116px, 163px 163px;
}

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

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

[hidden] {
  display: none !important;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 1240px);
  margin: 0 auto;
  padding: 28px 0 70px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 184, 108, 0.55);
  border-radius: 14px;
  color: var(--gold);
  background: rgba(217, 184, 108, 0.08);
}

.ghost-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

.ghost-button,
.secondary-button {
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.primary-button {
  border: 0;
  color: var(--navy);
  background: var(--gold);
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.ghost-button:disabled,
.primary-button:disabled,
.secondary-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.hero {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(217, 184, 108, 0.12), transparent 55%),
    rgba(7, 27, 67, 0.92);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.onboarding-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.progress-card,
.form-card,
.status-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 27, 67, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.progress-card {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 24px;
}

.progress-card h2 {
  margin: 0 0 7px;
  font-size: 20px;
}

.progress-copy {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width 0.3s ease;
}

.steps-nav {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.step-nav {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.step-nav .number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-weight: 900;
}

.step-nav strong,
.step-nav small {
  display: block;
}

.step-nav strong {
  color: inherit;
  font-size: 13px;
}

.step-nav small {
  margin-top: 3px;
  color: #8090ae;
  font-size: 11px;
}

.step-nav.active {
  border-color: var(--line-gold);
  color: var(--white);
  background: rgba(217, 184, 108, 0.08);
}

.step-nav.active .number,
.step-nav.complete .number {
  color: var(--navy);
  background: var(--gold);
}

.form-card {
  min-width: 0;
  padding: 32px;
}

.form-step {
  animation: fadeIn 0.28s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-kicker {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-step h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.step-description {
  max-width: 720px;
  margin: 11px 0 27px;
  color: var(--muted);
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input,
select {
  height: 52px;
  padding: 0 15px;
}

textarea {
  min-height: 150px;
  padding: 14px 15px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(189, 200, 220, 0.55);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(217, 184, 108, 0.75);
  box-shadow: 0 0 0 4px rgba(217, 184, 108, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

select option {
  color: #111;
}

.help {
  margin: 7px 0 0;
  color: #8d9ab6;
  font-size: 12px;
  line-height: 1.55;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.upload-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px dashed var(--line-gold);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.upload-card input {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.upload-prompt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.upload-prompt strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

.upload-preview {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.upload-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(1, 17, 51, 0.86);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.review-card {
  display: grid;
  gap: 14px;
}

.review-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.035);
}

.review-section h3 {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.review-item {
  min-width: 0;
}

.review-item span,
.review-item strong {
  display: block;
}

.review-item span {
  color: var(--muted);
  font-size: 11px;
}

.review-item strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.check-row input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-footer-right {
  display: flex;
  gap: 10px;
}

.save-note {
  color: #8090ae;
  font-size: 12px;
}

.message {
  display: none;
  margin-top: 17px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.message.is-error {
  display: block;
  color: var(--danger);
  border: 1px solid rgba(255, 120, 120, 0.22);
  background: rgba(255, 90, 90, 0.1);
}

.message.is-success {
  display: block;
  color: var(--success);
  border: 1px solid rgba(90, 230, 135, 0.22);
  background: rgba(70, 220, 120, 0.1);
}

.status-card {
  margin-top: 22px;
  padding: 34px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.status-badge.pending {
  color: var(--warning);
  background: rgba(255, 190, 80, 0.12);
}

.status-badge.approved {
  color: var(--success);
  background: rgba(70, 220, 120, 0.12);
}

.status-badge.rejected {
  color: var(--danger);
  background: rgba(255, 90, 90, 0.12);
}

.status-card h2 {
  margin: 18px 0 8px;
  font-size: 31px;
}

.status-card p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .onboarding-layout {
    grid-template-columns: 1fr;
  }

  .progress-card {
    position: static;
  }

  .steps-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .step-nav {
    display: block;
    min-height: auto;
    padding: 10px;
    text-align: center;
  }

  .step-nav .number {
    margin: 0 auto;
  }

  .step-nav strong,
  .step-nav small {
    display: none;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
  }

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

  .hero,
  .form-card,
  .status-card {
    padding: 24px 18px;
  }

  .form-grid,
  .upload-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .save-note {
    text-align: center;
  }
}
