@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --green: #12B76A;
  --green-light: #D1FAE5;
  --green-dark: #0A8A4E;
  --bg: #0F1923;
  --card: #192433;
  --card-border: #243447;
  --text: #F0FAF4;
  --text-muted: #8BA4B8;
  --accent: #FFD700;
  --error: #FF6B6B;
  --radius: 16px;
  --radius-sm: 10px;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 40px;
}

.header {
  background: linear-gradient(135deg, #0A1520 0%, #12B76A18 100%);
  border-bottom: 1px solid var(--card-border);
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
}
.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.logo-pill svg { width: 16px; height: 16px; }
.header h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}
.header h1 span { color: var(--green); }
.header p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.5;
}

.progress-wrap { padding: 16px 20px 0; }
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.progress-bar {
  height: 4px;
  background: var(--card-border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 0%;
}

.form-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.q-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}
.q-card.active { border-color: var(--green); }
.q-card.has-error { border-color: var(--error); }

.q-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.q-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}
.q-required { color: var(--error); margin-left: 2px; }
.q-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.error-msg {
  font-size: 12px;
  color: var(--error);
  margin-top: 10px;
  display: none;
}
.q-card.has-error .error-msg { display: block; }

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

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.option:active { transform: scale(0.98); }
.option.selected {
  background: #12B76A12;
  border-color: var(--green);
}

.option-box {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--card-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.option.selected .option-box {
  background: var(--green);
  border-color: var(--green);
}
.option-box-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--card-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.option.selected .option-box-check {
  background: var(--green);
  border-color: var(--green);
}
.check-svg { display: none; }
.option.selected .check-svg { display: block; }
.dot-svg { display: none; }
.option.selected .dot-svg { display: block; }

.option-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.submit-wrap {
  padding: 0 20px;
  margin-top: 4px;
}
.btn-submit {
  width: 100%;
  background: var(--green);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-submit:active { transform: scale(0.98); background: var(--green-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid #ffffff44;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.success-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 24px;
  text-align: center;
}
.success-screen.show { display: flex; }
.success-icon {
  width: 80px; height: 80px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.success-icon svg { width: 40px; height: 40px; }
.success-screen h2 {
  font-size: 24px; font-weight: 800;
  margin-bottom: 12px;
}
.success-screen h2 span { color: var(--green); }
.success-screen p {
  font-size: 15px; color: var(--text-muted);
  max-width: 280px; line-height: 1.6;
}

.footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 12px 20px 0;
  opacity: 0.7;
}
