/* S4 Tutoria — design tokens */
:root {
  --bg: #070F1C;
  --bg-card: #0e1a30;
  --bg-card-2: #122544;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(239, 134, 50, 0.45);
  --text: #f4f4f4;
  --text-muted: #a3bac6;
  --accent: #EF8632;
  --accent-hover: #D86F1E;
  --accent-border: #BE5C12;
  --gold: #D4A855;
  --danger: #ef4444;
  --shadow: 0 4px 16px rgba(239, 134, 50, 0.35);

  --font-sans: 'Montserrat', 'Sora', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.5;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top, rgba(239, 134, 50, 0.08), transparent 55%),
    radial-gradient(ellipse at bottom, rgba(212, 168, 85, 0.05), transparent 55%),
    var(--bg);
}

.header {
  padding: 28px 24px 12px;
  display: flex;
  justify-content: center;
}
.logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Step machine */
.step { display: none; padding: 28px 20px 60px; flex: 1; }
.step.is-active { display: block; }

.container {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.container-wide { max-width: 960px; }

/* Typography */
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 16px;
}
.h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.accent { color: var(--accent); }
.subtitle {
  color: var(--text-muted);
  font-size: clamp(15px, 2.2vw, 18px);
  margin: 0 0 32px;
  max-width: 580px;
}

/* Topic grid */
.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}
@media (min-width: 640px) {
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

.topic-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
}
.topic-btn:hover {
  background: var(--bg-card-2);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.topic-btn .bullet {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 0 0 16px;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.back-btn:hover { color: var(--accent); }

/* Form */
.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-top: 8px;
}
@media (min-width: 640px) { .form { padding: 32px; } }

.fieldset { margin-bottom: 28px; }
.fieldset:last-of-type { margin-bottom: 18px; }

.section-title {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  background: #050a14;
}
.field textarea { min-height: 90px; resize: vertical; }

/* Radio group */
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .12s, background .12s;
}
.radio-option:hover { border-color: var(--border-strong); }
.radio-option input { margin-top: 3px; accent-color: var(--accent); }
.radio-option.is-selected {
  border-color: var(--accent);
  background: rgba(239, 134, 50, 0.08);
}

/* CTA */
.cta-btn {
  display: block;
  width: 100%;
  background: var(--accent);
  border: 2px solid var(--accent-border);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 22px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .15s, transform .1s;
}
.cta-btn:hover { background: var(--accent-hover); }
.cta-btn:active { transform: scale(0.99); }
.cta-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.form-hint {
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  margin: 12px 0 0;
}
.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Booking */
.booking-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  overflow: hidden;
}

/* Footer */
.footer {
  padding: 20px 24px 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
