:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f9fbfd;
  --text: #111111;
  --muted: #6a7280;
  --border: #e7ecf2;
  --primary: #04AFFF;
  --primary-soft: rgba(4, 175, 255, 0.09);
  --accent: #04AFFF;
  --error: #c94f4f;
  --shadow: 0 24px 70px rgba(6, 24, 37, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}

.progress-bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--surface-soft);
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #39c7ff);
  transition: width 0.35s ease;
}

.app-card {
  width: min(100%, 800px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 36px 44px 44px;
  box-shadow: var(--shadow);
}

.step-counter {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.screen {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-card {
  width: 100%;
  animation: fadeSlide 0.35s ease both;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.back-button:hover {
  transform: translateY(-1px);
  border-color: #d5dde7;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
  color: var(--text);
}

.back-button:active {
  transform: translateY(1px) scale(0.995);
}

.back-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(4, 175, 255, 0.12);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.question-title {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f1722;
}

.question-description {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-field {
  width: 100%;
  border: 1px solid #e9eef4;
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 16px 18px;
  outline: none;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.input-field::placeholder {
  color: #9aa4b2;
}

.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(4, 175, 255, 0.12);
  transform: translateY(-1px);
}

.choice-list {
  display: grid;
  gap: 14px;
}

.choice-option,
.primary-btn,
.secondary-btn,
.icon-btn {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.choice-option:hover,
.primary-btn:hover,
.secondary-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.06);
}

.choice-option.is-selected {
  border-color: var(--accent);
  background: var(--primary-soft);
  color: var(--text);
}

.primary-btn {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  min-width: 130px;
  box-shadow: 0 8px 20px rgba(4, 175, 255, 0.18);
}

.primary-btn:hover {
  background: #039edb;
}

.primary-btn:active {
  transform: translateY(1px) scale(0.995);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
}

.primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-btn {
  background: transparent;
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 8px;
}

.actions.single {
  justify-content: flex-end;
}

.icon-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--muted);
}

.field-error {
  margin: 8px 0 0;
  color: var(--error);
  font-size: 0.95rem;
  display: none;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 8px;
}

.consent-row input {
  margin-top: 4px;
  accent-color: var(--accent);
}

.consent-link {
  color: var(--accent);
  text-decoration: none;
}

.consent-row input:checked {
  accent-color: var(--accent);
}

.thanks-card,
.disqualified-card {
  text-align: center;
  padding: 8px 0;
}

.thanks-card h1,
.disqualified-card h1 {
  font-size: clamp(1.8rem, 2.7vw, 2.4rem);
  margin: 0 0 12px;
}

.thanks-card p,
.disqualified-card p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 20px;
}

.inline-note {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .app-card {
    padding: 24px 20px 28px;
    border-radius: 24px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .question-title {
    font-size: 1.45rem;
  }

  .actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}
