/* ═══════════════════════════════════════════════════
   COMPONENTS — Header, Hero, Card, Form, Buttons,
                Toast, Save banner, Progress
═══════════════════════════════════════════════════ */

/* ── HEADER ── */
.site-header {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
}
.site-header--narrow { max-width: 400px; }
.site-header--wide   { max-width: 900px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-emblem {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold);
}
.logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .12em;
}
.logo-name span { color: var(--gold); }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge {
  font-size: 11px;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}
.ghost-link {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}
.ghost-link:hover { color: var(--gold); }

/* ── HERO ── */
.hero {
  width: 100%;
  max-width: 680px;
  text-align: center;
  margin-bottom: 36px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--border);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* ── PROGRESS BAR ── */
.progress {
  width: 100%;
  max-width: 680px;
  margin-bottom: 26px;
}
.progress-steps { display: flex; align-items: center; }
.p-step         { display: flex; align-items: center; gap: 7px; }

.p-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition);
  flex-shrink: 0;
  background: var(--dark);
}
.p-dot.is-active { border-color: var(--gold); background: var(--gold); color: var(--black); }
.p-dot.is-done   { border-color: var(--gold); background: transparent; color: var(--gold); }

.p-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}
.p-label.is-active { color: var(--gold); }

.p-connector {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 7px;
  position: relative;
  min-width: 16px;
}
.p-connector-fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  width: 0%;
  transition: width var(--transition-slow);
}

/* ── CARD ── */
.card {
  width: 100%;
  max-width: 680px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.card--padded { padding: 36px; }

/* ── FORM ELEMENTS ── */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.field--spaced { margin-bottom: 22px; }
.field--cta    { margin-top: 30px; margin-bottom: 0; }

.field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.field-required { color: var(--gold); margin-left: 2px; }

.field-input {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: var(--transition);
  width: 100%;
}
.field-input:focus   { border-color: var(--gold); background: rgba(201,168,76,.04); }
.field-input::placeholder { color: var(--muted); }
.field-input.is-error     { border-color: var(--red); }

.field-select { appearance: none; -webkit-appearance: none; }
.select-wrap  { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  pointer-events: none;
  font-size: 13px;
}
.select-wrap select option { background: #1a1814; }

.field-error { font-size: 11px; color: var(--red); display: none; }
.field-error.is-visible { display: block; }

/* PILLS */
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 9px 17px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255,255,255,.02);
  user-select: none;
}
.pill:hover { border-color: rgba(201,168,76,.4); color: var(--white); }
.pill.is-selected { border-color: var(--gold); background: var(--gold-dim); color: var(--gold); font-weight: 600; }

/* ── BUTTONS ── */
.btn-primary {
  width: 100%;
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  padding: 15px 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--black);
  transition: var(--transition);
}
.btn-primary:hover    { background: var(--gold-bright); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,168,76,.25); }
.btn-primary:active   { transform: translateY(0); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary--narrow  { max-width: 240px; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: var(--transition);
}
.btn-secondary:hover { border-color: rgba(201,168,76,.4); color: var(--text); }

.btn-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-row .btn-secondary { flex-shrink: 0; }
.btn-row .btn-primary   { flex: 1; }

/* ── TOAST ── */
.toast {
  position: fixed;
  top: 18px; right: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 32px 13px 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 310px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px) scale(.97);
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.toast-icon  { width: 28px; height: 28px; background: var(--gold-dim); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.toast-title { font-size: 11px; font-weight: 700; color: var(--gold); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .07em; }
.toast-body  { font-size: 11px; color: var(--text); line-height: 1.4; }
.toast-close { position: absolute; top: 6px; right: 8px; background: none; border: none; color: var(--muted); font-size: 13px; padding: 3px; }

/* ── SAVE BANNER ── */
.save-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 150;
  opacity: 0;
  transition: all .35s;
  pointer-events: none;
  white-space: nowrap;
}
.save-banner.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all; }
.save-banner-check { color: var(--green); }
.save-banner-text  { font-size: 13px; color: var(--text); }
.save-banner-text strong { color: var(--gold); }

.action-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 5px 11px;
  font-size: 11px;
  color: var(--muted);
  transition: var(--transition);
}
.action-btn:hover          { border-color: var(--gold); color: var(--gold); }
.action-btn.is-danger:hover { border-color: var(--red); color: var(--red); }

/* ── TOOLTIP ── */
.has-tooltip { position: relative; }
.tooltip-content {
  visibility: hidden;
  opacity: 0;
  background: var(--dark);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--radius);
  position: absolute;
  bottom: 130%; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity .2s;
  z-index: 99;
  pointer-events: none;
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
}
.has-tooltip:hover .tooltip-content { visibility: visible; opacity: 1; }
