/* ============================================================
   XerographiX Contact Form — style.css
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #08090f;
  --bg2:         #0e0f1a;
  --surface:     #131524;
  --surface2:    #1a1c30;
  --border:      rgba(255,255,255,0.08);
  --border-h:    rgba(255,255,255,0.18);

  --accent:      #7c5cfc;
  --accent2:     #a78bfa;
  --accent-glow: rgba(124,92,252,0.35);

  --minto:       #a78bfa;
  --ridelane:    #34d399;
  --lingua:      #60a5fa;
  --lacrosse:    #fb923c;

  --text:        #f0f0f8;
  --text2:       #9ca3c8;
  --text3:       #555878;

  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   22px;

  --shadow:      0 8px 40px rgba(0,0,0,0.5);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);

  --font-sans:   'Inter', 'Noto Sans JP', sans-serif;
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background Glows ────────────────────────────────────── */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
  animation: glowDrift 12s ease-in-out infinite alternate;
}
.bg-glow-1 { width: 600px; height: 600px; background: #7c5cfc; top: -150px; left: -100px; animation-delay: 0s; }
.bg-glow-2 { width: 500px; height: 500px; background: #34d399; top: 40%; right: -150px; animation-delay: 4s; }
.bg-glow-3 { width: 400px; height: 400px; background: #60a5fa; bottom: 0; left: 30%; animation-delay: 8s; }

@keyframes glowDrift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.1); }
}

/* ── Particles Canvas ─────────────────────────────────────── */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.4;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,9,15,0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: 0.02em;
  user-select: none;
}
.logo-x  { color: var(--accent); }
.logo-main { color: var(--text); }

.header-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  color: var(--text2); text-decoration: none; font-size: 0.9rem;
  font-weight: 500; transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 18px; border-radius: 30px;
  font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.nav-cta:hover {
  background: var(--accent2);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  padding: 148px 24px 80px;
  text-align: center;
}
.hero-content { max-width: 780px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,92,252,0.15);
  border: 1px solid rgba(124,92,252,0.3);
  color: var(--accent2); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 30px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent2) 0%, #60a5fa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: var(--text2); font-size: 1.02rem;
  margin-bottom: 48px; line-height: 1.85;
}
.pc-only { display: inline; }

/* App Chips */
.app-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-bottom: 48px;
}
.app-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 0.92rem; font-weight: 600;
  padding: 10px 20px; border-radius: 40px; cursor: pointer;
  transition: all var(--transition);
}
.app-chip:hover, .app-chip.active {
  border-color: transparent; transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.chip-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.8rem;
}
.chip-minto    { background: rgba(167,139,250,0.25); color: var(--minto); }
.chip-ridelane { background: rgba(52,211,153,0.25);  color: var(--ridelane); }
.chip-lingua   { background: rgba(96,165,250,0.25);  color: var(--lingua); }
.chip-lacrosse { background: rgba(251,146,60,0.25);  color: var(--lacrosse); }

.app-chip[data-app="MiNTO"]:hover,   .app-chip[data-app="MiNTO"].active   { background: rgba(167,139,250,0.15); border-color: var(--minto); }
.app-chip[data-app="Ridelane"]:hover, .app-chip[data-app="Ridelane"].active { background: rgba(52,211,153,0.15); border-color: var(--ridelane); }
.app-chip[data-app="LinguaAI"]:hover, .app-chip[data-app="LinguaAI"].active { background: rgba(96,165,250,0.15); border-color: var(--lingua); }
.app-chip[data-app="ラクロス"]:hover, .app-chip[data-app="ラクロス"].active { background: rgba(251,146,60,0.15); border-color: var(--lacrosse); }

/* Scroll CTA */
.scroll-cta {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text2); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; transition: color var(--transition);
  animation: bounce 2.2s ease-in-out infinite;
}
.scroll-cta:hover { color: var(--accent2); }
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ── Stats Bar ───────────────────────────────────────────── */
.stats-bar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 36px;
}
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--accent2); }
.stat-label { font-size: 0.78rem; color: var(--text3); font-weight: 500; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ── Form Section ────────────────────────────────────────── */
.form-section {
  position: relative; z-index: 1;
  padding: 80px 24px 120px;
}
.form-wrapper {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 340px 1fr; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Left Panel */
.form-left {
  background: linear-gradient(160deg, #16183a 0%, #0e0f22 100%);
  border-right: 1px solid var(--border);
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
}
.form-left::before {
  content: '';
  position: absolute; top: -80px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(124,92,252,0.2), transparent 70%);
  pointer-events: none;
}
.form-left-inner { position: relative; z-index: 1; }

.form-section-title {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.form-section-sub { color: var(--text2); font-size: 0.88rem; margin-bottom: 32px; line-height: 1.7; }

/* Selected App Display */
.selected-app-display { margin-bottom: 24px; }
.sad-label { font-size: 0.72rem; color: var(--text3); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.sad-card {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(124,92,252,0.12);
  border: 1px solid rgba(124,92,252,0.3);
  padding: 10px 16px; border-radius: 10px;
  font-weight: 700; font-size: 1rem;
}
.sad-icon { font-size: 1.2rem; }

/* App Info Cards */
.app-info-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.app-info-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  transition: all var(--transition); cursor: default;
}
.app-info-card.highlight, .app-info-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--border-h);
}
.aic-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.dot-minto    { background: var(--minto);    color: var(--minto); }
.dot-ridelane { background: var(--ridelane); color: var(--ridelane); }
.dot-lingua   { background: var(--lingua);   color: var(--lingua); }
.dot-lacrosse { background: var(--lacrosse); color: var(--lacrosse); }

.app-info-card strong { font-size: 0.9rem; font-weight: 700; color: var(--text); display: block; }
.app-info-card p { font-size: 0.76rem; color: var(--text3); margin: 0; }

.form-note {
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--text3); font-size: 0.76rem; line-height: 1.6;
  margin-top: auto;
}
.form-note i { margin-top: 3px; color: var(--accent); }

/* Right Panel */
.form-right {
  padding: 48px 48px 48px;
  background: var(--surface);
}

/* ── Step Bar ────────────────────────────────────────────── */
.step-bar {
  display: flex; align-items: center;
  margin-bottom: 40px;
  padding: 0 4px;
}
.step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 100px;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 700;
  background: var(--surface2); color: var(--text3);
  border: 2px solid var(--border);
  transition: all var(--transition);
}
.step-label { font-size: 0.72rem; font-weight: 600; color: var(--text3); text-align: center; transition: color var(--transition); }
.step.active .step-num {
  background: var(--accent); color: #fff;
  border-color: var(--accent); box-shadow: 0 0 18px var(--accent-glow);
}
.step.active .step-label { color: var(--accent2); }
.step.done .step-num {
  background: rgba(52,211,153,0.2); color: #34d399;
  border-color: #34d399;
}
.step.done .step-label { color: #34d399; }
.step-line {
  flex: 1; height: 2px;
  background: var(--border); margin-bottom: 20px;
  transition: background var(--transition);
}
.step-line.done { background: rgba(52,211,153,0.4); }

/* ── Form Steps ──────────────────────────────────────────── */
.form-step { display: flex; flex-direction: column; gap: 22px; }
.form-step.hidden { display: none; }

/* Field Group */
.field-group { display: flex; flex-direction: column; gap: 8px; }
.field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.field-label {
  font-size: 0.82rem; font-weight: 700; color: var(--text2);
  display: flex; align-items: center; gap: 7px; letter-spacing: 0.02em;
}
.field-label.required::after {
  content: '必須';
  font-size: 0.65rem; background: rgba(239,68,68,0.2); color: #f87171;
  padding: 2px 6px; border-radius: 4px; font-weight: 700; letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 13px 16px;
  outline: none;
  transition: all var(--transition);
  -webkit-appearance: none;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder { color: var(--text3); }
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--accent);
  background: rgba(124,92,252,0.07);
  box-shadow: 0 0 0 4px rgba(124,92,252,0.12);
}
input.error, textarea.error { border-color: #f87171 !important; }
textarea { resize: vertical; min-height: 130px; }

/* Custom Select */
.custom-select-wrapper { position: relative; }
.custom-select-wrapper select {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 13px 40px 13px 16px;
  outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: all var(--transition);
}
.custom-select-wrapper select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124,92,252,0.12);
}
.select-arrow {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text3); pointer-events: none; font-size: 0.8rem;
  transition: transform var(--transition);
}
.custom-select-wrapper select:focus + .select-arrow { transform: translateY(-50%) rotate(180deg); }
.custom-select-wrapper select option { background: #1a1c30; }

/* Category Grid */
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.cat-btn {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text2);
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 600;
  padding: 14px 8px; cursor: pointer;
  transition: all var(--transition);
}
.cat-btn i { font-size: 1.1rem; }
.cat-btn:hover {
  border-color: var(--accent2); color: var(--accent2);
  background: rgba(124,92,252,0.1); transform: translateY(-2px);
}
.cat-btn.selected {
  border-color: var(--accent); color: #fff;
  background: var(--accent); box-shadow: 0 4px 16px var(--accent-glow);
}

/* OS Toggle */
.os-toggle {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.os-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text2);
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600;
  padding: 9px 16px; cursor: pointer;
  transition: all var(--transition);
}
.os-btn.active {
  background: rgba(124,92,252,0.18); border-color: var(--accent);
  color: var(--accent2);
}

/* Char Counter */
.char-counter {
  font-size: 0.76rem; color: var(--text3); text-align: right;
  margin-top: 4px;
}
.char-counter.warn { color: #fb923c; }
.char-counter.error { color: #f87171; }

/* Consent */
.consent-box { padding: 16px; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.consent-label {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; font-size: 0.88rem; color: var(--text2);
  user-select: none;
}
.consent-label input[type="checkbox"] { display: none; }
.custom-checkbox {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid var(--border); border-radius: 5px;
  background: var(--surface2); position: relative;
  transition: all var(--transition);
}
.consent-label input:checked + .custom-checkbox {
  background: var(--accent); border-color: var(--accent);
}
.consent-label input:checked + .custom-checkbox::after {
  content: '✓'; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: #fff; font-size: 0.75rem; font-weight: 700;
}
.link-inline { color: var(--accent2); text-decoration: none; }
.link-inline:hover { text-decoration: underline; }

/* Summary Box */
.summary-box {
  background: rgba(124,92,252,0.07);
  border: 1px solid rgba(124,92,252,0.2);
  border-radius: var(--radius); padding: 20px;
}
.summary-title {
  font-size: 0.8rem; font-weight: 700; color: var(--accent2);
  display: flex; align-items: center; gap: 7px;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.summary-grid {
  display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px;
  font-size: 0.84rem;
}
.summary-key { color: var(--text3); font-weight: 600; }
.summary-val { color: var(--text); word-break: break-word; }

/* Field Error */
.field-error {
  font-size: 0.76rem; color: #f87171;
  min-height: 16px; display: block;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }

.btn-next, .btn-submit {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700;
  padding: 14px 28px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: all var(--transition);
  margin-left: auto;
}
.btn-next:hover, .btn-submit:hover {
  background: var(--accent2);
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-submit {
  padding: 15px 36px; font-size: 1rem;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
}
.btn-submit:hover { background: linear-gradient(135deg, var(--accent2), #93c5fd); }

.btn-back {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--text2);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  padding: 14px 20px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); cursor: pointer;
  transition: all var(--transition);
}
.btn-back:hover { border-color: var(--border-h); color: var(--text); }

.hidden { display: none !important; }

/* ── Success State ───────────────────────────────────────── */
.success-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 60px 20px; gap: 20px;
  min-height: 400px;
}
.success-icon-wrap {
  position: relative; width: 80px; height: 80px;
  display: grid; place-items: center;
}
.success-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid #34d399;
  animation: ringPulse 1.5s ease-out forwards;
}
@keyframes ringPulse {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}
.success-check {
  font-size: 2rem; color: #34d399;
  animation: checkPop 0.4s 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes checkPop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.success-title { font-size: 1.8rem; font-weight: 800; color: var(--text); }
.success-message { color: var(--text2); font-size: 0.95rem; line-height: 1.8; }
.success-ref {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 24px;
  font-size: 0.82rem; color: var(--text3);
}
.success-ref strong { color: var(--accent2); }
.btn-reset {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; border: 1.5px solid var(--border);
  color: var(--text2); font-family: var(--font-sans);
  font-size: 0.9rem; font-weight: 600;
  padding: 13px 26px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition); margin-top: 10px;
}
.btn-reset:hover {
  border-color: var(--accent); color: var(--accent2);
  box-shadow: 0 0 14px var(--accent-glow);
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 1.1rem; font-weight: 800; }
.footer-copy { font-size: 0.78rem; color: var(--text3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 0.78rem; color: var(--text3); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent2); }
.footer-version { width: 100%; margin: 2px 0 0; text-align: right; font-size: 0.72rem; color: var(--text3); opacity: 0.72; }

/* ── Toast Notification ──────────────────────────────────── */
.toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 9999;
  display: flex; align-items: center; gap: 12px;
  background: #1e2038; border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 14px 20px;
  box-shadow: var(--shadow-card); font-size: 0.88rem; color: var(--text);
  transform: translateX(110%); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: #34d399; }
.toast.error   { border-left-color: #f87171; }
.toast i { font-size: 1.1rem; }
.toast.success i { color: #34d399; }
.toast.error   i { color: #f87171; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .form-wrapper { grid-template-columns: 1fr; }
  .form-left { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 24px; }
  .app-info-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .app-info-card { padding: 10px 12px; }
  .form-right { padding: 32px 24px; }
  .stat-item { padding: 4px 20px; }
}
@media (max-width: 640px) {
  .hero { padding: 120px 16px 60px; }
  .pc-only { display: none; }
  .app-chips { gap: 10px; }
  .app-chip { padding: 8px 14px; font-size: 0.85rem; }
  .step { min-width: auto; }
  .step-label { font-size: 0.62rem; }
  .field-row { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .form-right { padding: 24px 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-version { text-align: center; }
  .stats-bar { gap: 0; }
  .stat-item { padding: 4px 12px; }
  .stat-divider { display: none; }
  .header-nav { gap: 16px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-next, .btn-submit, .btn-back { margin-left: 0; }
}
@media (max-width: 400px) {
  .logo { font-size: 1.1rem; }
  .hero-title { font-size: 2rem; }
  .step-bar { gap: 0; }
}

/* ── Privacy Policy Modal ────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(5, 6, 14, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1; pointer-events: auto;
}
.modal-box {
  background: #13152a;
  border: 1px solid rgba(124,92,252,0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  width: 100%; max-width: 680px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
  overflow: hidden;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

/* Modal Header */
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(124,92,252,0.12) 0%, transparent 60%);
}
.modal-header-left {
  display: flex; align-items: center; gap: 14px;
}
.modal-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(124,92,252,0.2);
  border: 1px solid rgba(124,92,252,0.35);
  display: grid; place-items: center;
  font-size: 1.1rem; color: var(--accent2);
  flex-shrink: 0;
}
.modal-title {
  font-size: 1.25rem; font-weight: 800;
  letter-spacing: -0.01em; color: var(--text);
}
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text2); font-size: 1rem;
  cursor: pointer; display: grid; place-items: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.35);
  color: #f87171;
}

/* Modal Body (scrollable) */
.modal-body {
  overflow-y: auto; padding: 28px 28px 8px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,92,252,0.4) transparent;
}
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(124,92,252,0.4); border-radius: 4px;
}

.modal-lead {
  font-size: 0.9rem; color: var(--text2); line-height: 1.85;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Modal Sections */
.modal-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.modal-section:last-of-type { border-bottom: none; }

.modal-section h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; font-weight: 700; color: var(--text);
  margin-bottom: 10px;
}
.modal-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 800;
  flex-shrink: 0;
}
.modal-section p {
  font-size: 0.86rem; color: var(--text2); line-height: 1.85;
  margin-bottom: 8px;
}
.modal-section ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.modal-section ul li {
  font-size: 0.84rem; color: var(--text2);
  padding-left: 18px; position: relative; line-height: 1.7;
}
.modal-section ul li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--accent2); font-size: 0.7rem;
  top: 4px;
}

.modal-contact-box {
  margin-top: 10px;
  padding: 14px 18px;
  background: rgba(124,92,252,0.08);
  border: 1px solid rgba(124,92,252,0.2);
  border-radius: var(--radius-sm);
}
.modal-contact-box p { margin-bottom: 4px; font-size: 0.84rem; }

.modal-date {
  font-size: 0.76rem; color: var(--text3);
  text-align: right; padding: 12px 0 16px;
}

/* Modal Footer */
.modal-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
  flex-shrink: 0;
}
.btn-modal-close {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 700;
  padding: 11px 28px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-modal-close:hover {
  background: var(--accent2);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

/* Modal Responsive */
@media (max-width: 640px) {
  .modal-box { max-height: 94vh; border-radius: var(--radius); }
  .modal-header { padding: 18px 20px 16px; }
  .modal-body { padding: 20px 20px 8px; }
  .modal-footer { padding: 14px 20px 20px; }
  .modal-title { font-size: 1.05rem; }
}
