*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #140800;
  --card: #1e0e04;
  --card-hover: #2a1608;
  --accent: #ff7f30;
  --accent-soft: rgba(255, 127, 48, 0.12);
  --text: #ffffff;
  --text-secondary: #a89484;
  --border: #3a2416;
  --border-hover: #4a3020;
  --input-bg: #0e0500;
  --red: #e85d4a;
  --yellow: #e8a94a;
  --green: #4ae88b;
}

body {
  font-family: "Space Grotesk", sans-serif;
  /* background: var(--bg); */
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  -webkit-font-smoothing: antialiased;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  max-width: 640px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* ── Typography ── */
.tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1.title {
  font-family: "Sora", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

h1.title span {
  color: var(--accent);
}

h2.section-title {
  font-family: "Sora", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

h2.result-title {
  font-family: "Sora", sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

h2.question-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 28px;
}

h3.cta-title {
  font-family: "Sora", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 12px;
}

.small-text {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 20px;
  opacity: 0.6;
}

/* ── Pillars row ── */
.pillars-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 28px 0 36px;
  flex-wrap: wrap;
}

.pillar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}

.pillar-label .icon {
  font-size: 20px;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--accent);
  color: #140800;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ── Intro ── */
.intro-center {
  text-align: center;
  padding: 56px 40px;
}

/* ── Intake Form ── */
.intake-center {
  text-align: center;
  margin-bottom: 32px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.02em;
}

.field-input,
.field-select {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

.field-input:focus,
.field-select:focus {
  border-color: var(--accent);
}

.field-input.error,
.field-select.error {
  border-color: var(--red);
}

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a89484' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.field-select option {
  background: var(--card);
}

.field-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
}

.row-2col {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.row-2col > div {
  flex: 1 1 200px;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.privacy-note {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 20px;
  opacity: 0.5;
  text-align: center;
}

/* ── Quiz Questions ── */
.progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s ease;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-top: 8px;
}

.quiz-pillar {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quiz-counter {
  font-size: 13px;
  color: var(--text-secondary);
}

.quiz-counter .dim {
  opacity: 0.4;
}

.question-body {
  transition: all 0.3s ease;
}

.question-body.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.55;
  transition: all 0.2s ease;
  width: 100%;
}

.option-btn:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
}

.option-btn.selected {
  background: var(--accent-soft);
  border-color: rgba(255, 127, 48, 0.3);
  color: var(--text);
}

.radio-circle {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.option-btn.selected .radio-circle {
  border-color: var(--accent);
}

.radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: none;
}

.option-btn.selected .radio-dot {
  display: block;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

/* ── Results ── */
.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-score {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.results-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

.pillar-result {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  position: relative;
}

.pillar-result.weakest {
  background: var(--accent-soft);
  border-color: rgba(255, 127, 48, 0.25);
}

.start-here {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: #140800;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  display: none;
}

.pillar-result.weakest .start-here {
  display: block;
}

.pillar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pillar-name {
  font-weight: 600;
  font-size: 15px;
}

.pillar-score {
  font-size: 14px;
  font-weight: 600;
}

.bar-track {
  background: var(--border);
  border-radius: 100px;
  height: 8px;
  margin-bottom: 14px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease;
}

.pillar-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.cta-box {
  background: var(--accent-soft);
  border: 1px solid rgba(255, 127, 48, 0.2);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto 20px;
}

.cta-desc strong {
  color: var(--accent);
}

.retake-row {
  text-align: center;
}

/* ── GDPR Consent ── */
.gdpr-row {
  margin-top: 8px;
}

.gdpr-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.gdpr-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gdpr-custom-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border-hover);
  border-radius: 5px;
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.gdpr-custom-check::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid transparent;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

.gdpr-checkbox:checked + .gdpr-custom-check {
  background: var(--accent);
  border-color: var(--accent);
}

.gdpr-checkbox:checked + .gdpr-custom-check::after {
  border-color: #140800;
}

.gdpr-label:hover .gdpr-custom-check {
  border-color: var(--accent);
}

.gdpr-custom-check.error {
  border-color: var(--red);
}

.gdpr-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 500px) {
  body {
    padding: 20px 12px;
  }

  .card {
    padding: 24px 18px;
  }

  .intro-center {
    padding: 36px 20px;
  }

  h1.title {
    font-size: 26px;
  }

  h2.result-title {
    font-size: 24px;
  }

  h2.question-text {
    font-size: 19px;
  }

  .pillars-row {
    gap: 16px;
  }
}
