:root {
  --bg: #061521;
  --bg-2: #0b253d;
  --surface: #0d2b43;
  --surface-2: #123a57;
  --line: #294c64;
  --gold: #f2c94c;
  --gold-soft: #ffe38a;
  --text: #f5f7fa;
  --muted: #b8c5d1;
  --danger: #e46b6b;
  --success: #45b97c;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 12%, rgba(36, 104, 154, .18), transparent 28rem),
    linear-gradient(150deg, #061521 0%, #081b2a 52%, #0b253d 100%);
}
.site-header, .site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header { min-height: 88px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer { min-height: 70px; color: var(--muted); font-size: .78rem; border-top: 1px solid rgba(255,255,255,.07); }
.brand { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand-image { width: 180px; height: auto; }
.brand-text { display: grid; line-height: 1; }
.brand-text strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; font-weight: 600; }
.brand-text small { margin-top: 5px; color: var(--muted); font-size: .65rem; }
.secure-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .76rem; }
.secure-label span { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(242,201,76,.12); }
.app-shell { width: min(760px, calc(100% - 32px)); margin: 46px auto 64px; align-self: center; }
.panel {
  position: relative;
  background: linear-gradient(155deg, rgba(18,58,87,.96), rgba(9,34,54,.98));
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--gold), rgba(242,201,76,.12)); }
.panel-inner { padding: clamp(28px, 6vw, 56px); }
.eyebrow { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; letter-spacing: 0; margin: 0; }
h1 { max-width: 650px; font-size: clamp(2.25rem, 7vw, 4.1rem); line-height: .98; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.05; font-weight: 600; }
.lead { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: clamp(.98rem, 2vw, 1.08rem); line-height: 1.7; }
.statement { margin: 28px 0 0; padding: 18px 20px; border-left: 2px solid var(--gold); background: rgba(0,0,0,.12); color: var(--text); line-height: 1.6; }
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: .76rem; }
.meta-row span { display: flex; align-items: center; gap: 7px; }
.meta-row i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.progress-wrap { margin-bottom: 34px; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; margin-bottom: 10px; }
.progress { height: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .35s ease; }
.form-grid { display: grid; gap: 22px; margin-top: 30px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 9px; }
.field label, .group-label { color: var(--text); font-size: .88rem; font-weight: 600; line-height: 1.45; }
.required { color: var(--gold); }
.hint { color: var(--muted); font-size: .74rem; line-height: 1.45; }
input, select, textarea {
  width: 100%;
  min-height: 50px;
  color: var(--text);
  background: rgba(3,18,29,.54);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { min-height: 124px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,201,76,.1); }
select { color-scheme: dark; }
.options { display: grid; gap: 9px; }
.option { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px; background: rgba(3,18,29,.32); transition: .2s ease; }
.option:hover { border-color: #4f7188; }
.option:has(input:checked) { border-color: var(--gold); background: rgba(242,201,76,.08); }
.option input { width: 18px; min-height: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); }
.option span { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.option:has(input:checked) span { color: var(--text); }
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; }
.scale label { aspect-ratio: 1; min-height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: .75rem; cursor: pointer; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale label:has(input:checked) { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 700; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; }
.actions-right { margin-left: auto; display: flex; gap: 10px; }
.button { min-height: 48px; border-radius: 6px; padding: 12px 20px; border: 1px solid transparent; font-weight: 700; transition: transform .15s ease, opacity .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button-primary { background: var(--gold); color: var(--bg); }
.button-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button-quiet, .text-button { background: none; border: 0; color: var(--muted); padding: 8px 0; }
.button-quiet:hover, .text-button:hover { color: var(--text); }
.choice-stack { display: grid; gap: 12px; margin-top: 30px; }
.choice { width: 100%; padding: 18px; text-align: left; color: var(--text); background: rgba(3,18,29,.36); border: 1px solid var(--line); border-radius: 6px; }
.choice strong { display: block; margin-bottom: 5px; }
.choice small { color: var(--muted); line-height: 1.45; }
.choice-primary { border-color: rgba(242,201,76,.6); }
.choice-primary strong { color: var(--gold); }
.error-box, .notice { margin-top: 20px; padding: 14px 16px; border-radius: 6px; font-size: .82rem; line-height: 1.5; }
.error-box { color: #ffd0d0; background: rgba(228,107,107,.12); border: 1px solid rgba(228,107,107,.35); }
.notice { color: var(--muted); background: rgba(3,18,29,.3); border: 1px solid var(--line); }
.review { display: grid; gap: 12px; margin-top: 28px; }
.review-section { border: 1px solid var(--line); border-radius: 6px; padding: 18px; background: rgba(3,18,29,.25); }
.review-section h3 { margin: 0 0 8px; font-size: .85rem; color: var(--gold); }
.review-section p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.success-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: var(--bg); background: var(--gold); font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; }
.protocol { display: inline-block; margin-top: 24px; padding: 12px 15px; color: var(--gold-soft); border: 1px solid var(--line); border-radius: 6px; font-family: monospace; }
.loading { min-height: 340px; display: grid; place-items: center; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
dialog { width: min(520px, calc(100% - 32px)); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 30px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.72); }
dialog h2 { font-size: 2rem; }
dialog p { color: var(--muted); line-height: 1.65; }
.dialog-close { float: right; background: none; border: 0; color: var(--muted); font-size: 1.6rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .site-header { min-height: 72px; }
  .secure-label { display: none; }
  .brand-text strong { font-size: 1.2rem; }
  .app-shell { width: min(100% - 20px, 760px); margin: 22px auto 40px; }
  .panel-inner { padding: 28px 20px 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .scale { gap: 3px; }
  .scale label { min-height: 31px; font-size: .65rem; }
  .actions { align-items: stretch; }
  .actions-right { width: 100%; }
  .actions .button { flex: 1; }
  .site-footer { width: calc(100% - 30px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
