:root {
  --navy:      #0d1b2e;
  --navy-mid:  #162840;
  --navy-light:#1e3a5f;
  --gold:      #c9a443;
  --gold-light:#e0bc5a;
  --gold-faint:#f5e9c6;
  --gold-dim:  #8b6f2e;
  --cream:     #f5f7fa;
  --white:     #ffffff;
  --ink:       #1a2332;
  --ink-muted: #627d98;
  --ink-faint: #9aa5b4;
  --border:    #eaecef;
  --border-gold: #c9a443;
  --success:   #2a6644;
  --radius:    12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  padding: 0 0 4rem;
  line-height: 1.6;
}

/* ─── HEADER ─── */
.page-header {
  background: var(--navy);
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.header-rope {
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0px, var(--gold) 6px, transparent 6px, transparent 10px);
  position: absolute;
  bottom: 0; left: 0;
  opacity: 0.6;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
}

.logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(201,168,76,0.35));
}

.logo-text {
  text-align: left;
}

.logo-text .brand-name {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  line-height: 1.1;
  display: block;
}

.logo-text .brand-sub {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(201,168,76,0.65);
  letter-spacing: 0.22em;
  display: block;
  margin-top: 2px;
}

.page-header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  max-width: 400px;
  margin: 0 auto;
}

/* ─── PROGRESS ─── */
.progress-outer {
  background: var(--navy-mid);
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(13,27,42,0.4);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.progress-count {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}

.progress-track {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(201,168,76,0.5);
}

.step-dots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  justify-content: center;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  cursor: default;
}

.step-dot.done {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--navy);
}

.step-dot.done::after {
  content: '✓';
  font-size: 12px;
}

.step-dot.done span { display: none; }

.step-dot.active {
  background: var(--gold);
  border-color: var(--gold-light);
  color: var(--navy);
  box-shadow: 0 0 12px rgba(201,168,76,0.5);
}

/* ─── MAIN WRAP ─── */
.page-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem 0;
}

/* ─── SECTION CARDS ─── */
.form-section {
  display: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  animation: sectionIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(13,27,42,0.08);
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light), var(--gold-dim));
}

.form-section.active {
  display: block;
}

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.section-num {
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  border: 1.5px solid var(--gold-dim);
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ─── FIELDS ─── */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field-full { margin-bottom: 16px; }
.field-row:last-child, .field-full:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); font-weight: 300; }

.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5A6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

/* ─── PILLS ─── */
.field-group-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 10px;
  display: block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.pill-option { display: inline-flex; align-items: center; }
.pill-option input { display: none; }

.pill-option span {
  display: inline-block;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.pill-option input:checked + span {
  background: var(--navy);
  border-color: var(--gold);
  color: var(--gold-light);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(13,27,42,0.15);
}

.pill-option span:hover { border-color: var(--gold-dim); color: var(--navy); }

/* ─── CHECKBOXES ─── */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.check-item:hover { border-color: var(--gold-dim); }

.check-item input[type="checkbox"] { display: none; }

.check-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  background: white;
}

.check-item:has(input:checked) {
  background: var(--navy);
  border-color: var(--gold);
}

.check-item:has(input:checked) .check-box {
  background: var(--gold);
  border-color: var(--gold);
}

.check-item:has(input:checked) .check-label {
  color: var(--gold-light);
  font-weight: 600;
}

.check-box-inner {
  width: 8px;
  height: 8px;
  background: var(--navy);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.15s;
}

.check-item:has(input:checked) .check-box-inner { opacity: 1; }

.check-label { font-size: 13px; color: var(--ink-muted); transition: color 0.15s; }

/* ─── NAV BUTTONS ─── */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 12px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.btn-back:hover {
  border-color: var(--gold-dim);
  color: var(--navy);
}

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

.btn-next:active { transform: translateY(0); }

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.btn-next:hover .btn-arrow { transform: translateX(3px); }

/* ─── SUBMIT SECTION ─── */
.submit-section {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--gold-dim);
  position: relative;
  overflow: hidden;
}

.submit-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light), var(--gold-dim));
}

.submit-section p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}

.submit-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.5);
}

.submit-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.submit-btn:hover .submit-arrow { transform: translateX(3px); }

/* ─── FOOTER ─── */
.page-footer {
  text-align: center;
  padding-top: 2rem;
  font-size: 12px;
  color: var(--ink-faint);
}

.page-footer a { color: var(--gold-dim); text-decoration: none; }

/* ─── RETURN HOME BUTTON ─── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ─── DIVIDER ─── */
.field-divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
  opacity: 0.5;
}

/* ─── FIELD ERROR ─── */
.field-error {
  display: block;
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  body { padding-bottom: 2rem; }
  .form-section { padding: 1.5rem 1.25rem; }
  .page-header { padding: 2rem 1rem 2.5rem; }
  .logo-wrap { flex-direction: column; text-align: center; }
  .logo-text { text-align: center; }
  .step-dots { gap: 4px; }
  .step-dot { width: 24px; height: 24px; font-size: 10px; }
}
