:root {
  --sp-teal: #19d8d4;
  --sp-blue: #159fe3;
  --sp-black: #07101a;
  --sp-charcoal: #0d1b28;
  --sp-panel: #152536;
  --sp-text: #172033;
  --sp-muted: #647084;
  --sp-border: #dce3ec;
  --sp-soft: #f6f8fb;
  --sp-white: #ffffff;
  --shadow: 0 18px 60px rgba(7,9,13,.18);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--sp-text);
  min-height: 100vh;
  background:
    linear-gradient(rgba(7,16,26,.48), rgba(7,16,26,.62)),
    linear-gradient(135deg, #101f2f 0%, #203647 48%, #07101a 100%);
}
.page-shell { width: min(1120px, calc(100% - 36px)); margin: 26px auto; }
.portal-card {
  background: var(--sp-white);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.portal-header {
  padding: 20px 38px 22px;
  background:
    linear-gradient(100deg, rgba(9,22,34,.98), rgba(20,38,55,.96)),
    radial-gradient(circle at 92% 14%, rgba(20,215,211,.12), transparent 32%);
  color: #fff;
  border-bottom: 3px solid var(--sp-teal);
}
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo-shell { display: flex; align-items: center; max-width: 320px; }
.brand-logo { display: block; width: min(300px, 68vw); height: auto; }
.eyebrow {
  margin: 18px 0 7px;
  color: var(--sp-teal);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 900;
}
h1 {
  font-size: clamp(1.95rem, 3.4vw, 3.05rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0;
  color: #fff;
  max-width: 660px;
}
.intro { font-size: 1rem; line-height: 1.52; color: #d9e2ee; max-width: 820px; margin: 12px 0 0; }
.status-box {
  margin-top: 14px;
  padding: 11px 13px;
  border-left: 4px solid var(--sp-teal);
  background: rgba(255,255,255,.09);
  color: #e6edf7;
  border-radius: 0 10px 10px 0;
  font-size: .92rem;
}
.progress-wrap { padding: 24px 42px 6px; background: #fff; }
.progress-label { display: flex; justify-content: space-between; gap: 16px; font-weight: 900; color: #3d485b; margin-bottom: 10px; font-size: .95rem; }
.progress { height: 7px; border-radius: 999px; background: #e8edf4; overflow: hidden; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--sp-teal), var(--sp-blue)); transition: width .2s ease; }
form { padding: 16px 42px 34px; background: #fff; }
.step { display: none; animation: fade .18s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: .35; transform: translateY(5px); } to { opacity: 1; transform: none; } }
h2 { font-size: 1.65rem; letter-spacing: -.03em; margin: 16px 0 8px; color: #121824; }
h3 { margin: 24px 0 10px; color: #121824; font-size: 1.05rem; }
.section-help { margin: 0 0 16px; color: var(--sp-muted); line-height: 1.5; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }
label { display: block; font-weight: 800; color: #233047; }
input, select, textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  border: 1px solid #ccd6e2;
  border-radius: 10px;
  font: inherit;
  color: #142033;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--sp-teal); box-shadow: 0 0 0 3px rgba(25,216,212,.15); }
textarea { resize: vertical; }
.choice-grid, .service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice-card, .service-grid label, .checkbox-line {
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  padding: 15px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.choice-card:hover, .service-grid label:hover, .checkbox-line:hover { border-color: #84e5e2; }
.choice-card:has(input:checked), .service-grid label:has(input:checked), .checkbox-line:has(input:checked) {
  border-color: var(--sp-teal);
  background: #f4ffff;
  box-shadow: 0 8px 20px rgba(25,216,212,.10);
}
.choice-card input, .service-grid input, .checkbox-line input { width: auto; margin: 5px 0 0; }
.choice-card strong { display: block; font-size: 1.08rem; color: #101827; }
.choice-card small { color: #607087; display: block; margin-top: 4px; }
.conditional-block, .site-card, .legal-box, .signature-section, .bot-protection-block {
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}
.site-card { margin-bottom: 14px; background: #fbfcfe; }
.site-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.legal-box { background: var(--sp-soft); line-height: 1.6; color: #34435f; margin-bottom: 16px; }
.signature-label { margin: 0 0 10px; }
.signature-pad-wrap {
  position: relative;
  background: #fff;
  border: 1px solid #ccd6e2;
  border-radius: 14px;
  overflow: hidden;
}
.signature-canvas { width: 100%; height: 215px; display: block; touch-action: none; }
.signature-line { position: absolute; left: 34px; right: 34px; bottom: 44px; height: 1px; background: #dfe6f0; pointer-events: none; }
.signature-actions { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.signature-help { color: #617087; }
.turnstile-wrap { margin-top: 16px; padding: 16px; border: 1px dashed #12aaa7; border-radius: 14px; background: #f5ffff; }
.form-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; border-top: 1px solid #edf2f7; padding-top: 24px; }
.button { border: 1px solid #cbd5e1; background: #fff; color: #121824; padding: 13px 22px; border-radius: 11px; cursor: pointer; font-weight: 900; font-size: 1rem; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: #080b10; color: #fff; border-color: #080b10; box-shadow: 0 10px 24px rgba(7,9,13,.16); }
.button.primary:hover { background: #141b26; }
.button.danger { color: #9a1c1c; border-color: #f0c7c7; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.hidden { display: none !important; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.result-box { margin: 18px 42px 32px; padding: 18px; border-radius: 14px; white-space: pre-wrap; overflow-x: auto; color: #fff; background: #063f2f; }
.result-box.error { background: #5a1111; }
.privacy-note { padding: 0 42px 34px; margin: 0; color: #6b768d; font-size: .9rem; background: #fff; }
@media (max-width: 760px) {
  .page-shell { width: 100%; margin: 0; }
  .portal-card { border-radius: 0; border-left: 0; border-right: 0; }
  .portal-header, .progress-wrap, form { padding-left: 22px; padding-right: 22px; }
  .grid.two, .choice-grid, .service-grid { grid-template-columns: 1fr; }
  .brand-logo { width: min(280px, 82vw); }
  .form-actions { flex-direction: column; }
  .button { width: 100%; }
}
