:root {
  --brand-dark: #101828;
  --brand-mid: #1f2a37;
  --brand-accent: #7b2cbf;
  --brand-accent-light: #9d4edd;
  --brand-cta: #0b1f6a;
  --brand-soft: #f4f6fb;
  --brand-border: #e6e8f0;
  --text-muted-custom: #667085;
}

* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--brand-soft);
  background-image:
    radial-gradient(ellipse at 80% 0%, rgba(123,44,191,0.10) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(11,31,106,0.06) 0%, transparent 50%);
  min-height: 100vh;
  color: var(--brand-dark);
}

/* ── Sidebar / header strip ── */
.sidebar-strip {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--brand-accent) 0%, var(--brand-cta) 100%);
}

.logo-olsen {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 50;
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}
.logo-olsen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

/* ── Page wrapper ── */
.page-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px 40px;
}

/* ── Brand header ── */
.brand-header {
  margin-bottom: 48px;
}
.brand-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 10px;
}
.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--brand-accent);
  line-height: 1.1;
  margin: 0 0 10px;
}
.brand-subtitle {
  font-size: 15px;
  color: var(--text-muted-custom);
  font-weight: 300;
  max-width: 420px;
  line-height: 1.6;
}

/* ── Card ── */
.form-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--brand-border);
  box-shadow: 0 8px 40px rgba(16,24,40,0.08), 0 1px 4px rgba(16,24,40,0.05);
  overflow: hidden;
}

/* ── Step pills ── */
.step-nav {
  display: flex;
  gap: 0;
  background: var(--brand-accent);
  padding: 20px 28px;
  align-items: center;
}
.step-pill {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 6px 14px;
  border-radius: 20px;
  transition: all .3s;
  white-space: nowrap;
}
.step-pill.active {
  background: rgba(255,255,255,0.92);
  color: var(--brand-accent);
}
.step-pill.done {
  color: rgba(255,255,255,0.6);
}
.step-sep {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.18);
  margin: 0 4px;
}

/* ── Form body ── */
.form-body {
  padding: 36px 36px 28px;
}

/* ── Section labels ── */
.section-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-accent);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.divider {
  border: none;
  border-top: 1px solid var(--brand-border);
  margin: 28px 0;
}

/* ── Type selector cards ── */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.type-card {
  border: 1.5px solid var(--brand-border);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
}
.type-card:hover {
  border-color: var(--brand-accent);
  background: #fbf9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(123,44,191,0.12);
}
.type-card.selected {
  border-color: var(--brand-accent);
  background: linear-gradient(135deg, #ffffff 0%, #f4edff 100%);
  box-shadow: 0 6px 24px rgba(123,44,191,0.18);
}
.type-card .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background .2s;
}
.type-card.selected .icon-wrap {
  background: var(--brand-accent);
  color: #fff;
}
.type-card .label-text {
  font-weight: 500;
  font-size: 14px;
  color: var(--brand-dark);
}
.type-card .desc-text {
  font-size: 11.5px;
  color: var(--text-muted-custom);
  margin-top: 2px;
}

/* ── Inputs ── */
.form-control, .form-select {
  border-radius: 10px;
  border: 1.5px solid var(--brand-border);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--brand-dark);
  padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s;
  background: #fcfcfc;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(123,44,191,0.14);
  background: #fff;
  outline: none;
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted-custom);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

/* ── Radio / checkbox custom ── */
.choice-group { display: flex; flex-direction: column; gap: 8px; }
.choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--brand-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all .2s;
  font-size: 14px;
}
.choice-item:hover { border-color: var(--brand-accent); background: #f8f9fa; }
.choice-item input[type="radio"],
.choice-item input[type="checkbox"] { accent-color: var(--brand-accent); width: 16px; height: 16px; }

/* ── Identification reveal ── */
.id-fields {
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 18px;
  margin-top: 12px;
  border: 1px solid var(--brand-border);
}

/* ── File upload ── */
.file-zone {
  border: 2px dashed var(--brand-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fcfcfc;
}
.file-zone:hover { border-color: var(--brand-accent); background: #f8f9fa; }
.file-zone i { font-size: 28px; color: var(--brand-accent); margin-bottom: 8px; }
.file-zone p { font-size: 13px; color: var(--text-muted-custom); margin: 0; }

/* ── Consent ── */
.consent-box {
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--brand-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted-custom);
  line-height: 1.5;
}
.consent-item input[type="checkbox"] { accent-color: var(--brand-accent); margin-top: 2px; }

/* ── Buttons ── */
.btn-submit {
  background: linear-gradient(135deg, var(--brand-cta) 0%, #162f98 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .03em;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(11,31,106,0.22);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11,31,106,0.28);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-reset {
  background: transparent;
  color: var(--text-muted-custom);
  border: 1.5px solid var(--brand-border);
  border-radius: 12px;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
}
.btn-reset:hover { border-color: var(--brand-dark); color: var(--brand-dark); }

/* ── Feedback ── */
.feedback-ok {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.feedback-err {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

/* ── Animate in ── */
.slide-in {
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ── */
.form-footer {
  padding: 16px 36px 28px;
  border-top: 1px solid var(--brand-border);
}

@media (max-width: 580px) {
  .page-wrapper { padding: 32px 16px 60px 22px; }
  .form-body { padding: 24px 20px 16px; }
  .form-footer { padding: 12px 20px 24px; }
  .type-grid { grid-template-columns: 1fr; }
  .step-nav { overflow-x: auto; gap: 0; }
  .logo-olsen {
    top: 12px;
    left: 12px;
    width: 73px;
    height: 73px;
  }
}
