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

/* === BASE === */
:root {
  --navy: #1a2332;
  --white: #ffffff;
  --light-gray: #e8edf3;
  --teal: #4a9b8e;
  --teal-hover: #3d8577;
  --gray-blue: #b0bec5;
  --dark-gray-blue: #5a6a7a;
  --error: #ff6b6b;
  --input-bg: #243044;
  --input-border: #3a4a5c;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--navy);
  color: var(--light-gray);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
  line-height: 1.5;
}

/* === LAYOUT === */
.quiz-container {
  max-width: 540px;
  width: 100%;
}

/* === SCREENS === */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.screen.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

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

/* === WELCOME SCREEN === */
.screen img {
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  margin-top: 24px;
}

h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.screen > p {
  font-size: 17px;
  color: var(--light-gray);
  max-width: 460px;
}

/* === QUIZ HEADER === */
.quiz-header {
  width: 100%;
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--gray-blue);
  text-decoration: none;
  margin-bottom: 12px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.back-link:hover {
  color: var(--white);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--input-border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-label {
  display: block;
  font-size: 13px;
  color: var(--gray-blue);
  margin-top: 8px;
}

/* === QUESTION TEXT === */
h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

.question-text {
  text-align: center;
  margin-bottom: 4px;
}

/* === ANSWER BUTTONS === */
.answers {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-btn {
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  background: transparent;
  border: 2px solid var(--teal);
  border-radius: 12px;
  color: var(--light-gray);
  font-size: 17px;
  font-family: inherit;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.answer-btn:active,
.answer-btn.selected {
  background: var(--teal);
  color: var(--white);
  transform: scale(0.98);
}

/* === FORM ELEMENTS === */
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-blue);
}

input[type="text"],
input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--white);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--teal);
}

input::placeholder {
  color: var(--dark-gray-blue);
}

/* === CTA BUTTONS === */
.cta-btn {
  width: 100%;
  height: 56px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, opacity 0.2s;
}

.cta-btn:hover {
  background: var(--teal-hover);
}

.cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === MESSAGES === */
.error-message {
  font-size: 14px;
  color: var(--error);
  text-align: left;
}

.consent-text {
  font-size: 14px;
  color: var(--dark-gray-blue);
  text-align: center;
}

.disclaimer {
  font-size: 12px;
  color: var(--dark-gray-blue);
  text-align: center;
  margin-top: 12px;
}

/* === SUCCESS / CONFIRM SCREEN === */
.success-icon {
  font-size: 64px;
  color: var(--teal);
  line-height: 1;
  margin-top: 32px;
}

/* === TERMINAL CONFIRM SCREEN === */
.confirm-headline {
  font-size: 18px;
  color: var(--teal);
  font-weight: 600;
}

.confirm-steps {
  text-align: left;
  width: 100%;
  background: var(--input-bg);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.confirm-steps p {
  font-size: 16px;
  color: var(--light-gray);
  line-height: 1.5;
}

.confirm-steps strong {
  color: var(--white);
}

.deliverability-tips {
  text-align: left;
  width: 100%;
}

.tips-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-blue);
  margin-bottom: 8px;
}

.deliverability-tips ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.deliverability-tips li {
  font-size: 14px;
  color: var(--dark-gray-blue);
  padding-left: 16px;
  position: relative;
}

.deliverability-tips li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--gray-blue);
}

/* === RESULTS PAGE STYLES === */
.results-container {
  max-width: 540px;
  width: 100%;
}

.results-header {
  text-align: center;
  margin-bottom: 24px;
}

.segment-badge {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.rationale-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.rationale-list li {
  padding: 16px;
  background: var(--input-bg);
  border-radius: 10px;
  border-left: 3px solid var(--teal);
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
}

.affirmation {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  text-align: center;
  padding: 20px 0;
  line-height: 1.5;
}

/* === VIDEO === */
.video-wrapper {
  width: 100%;
  position: relative;
  padding-top: 56.25%;
  background: var(--input-bg);
  border-radius: 10px;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray-blue);
  font-size: 16px;
}

/* === WHAT'S NEXT SECTION === */
.whats-next {
  text-align: left;
  width: 100%;
}

.whats-next h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.whats-next ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
}

/* === FTC DISCLOSURE === */
.ftc-disclosure {
  font-size: 14px;
  color: var(--dark-gray-blue);
  max-width: 480px;
  text-align: center;
  line-height: 1.5;
}

/* === RESULTS PAGE === */
.results-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.results-section {
  width: 100%;
  padding: 8px 0;
}

.results-section h1 {
  margin-bottom: 12px;
}

.results-section h2 {
  margin-bottom: 12px;
}

.results-intro {
  font-size: 17px;
  color: var(--light-gray);
  margin-bottom: 16px;
}

.results-section p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--light-gray);
}

.results-cta {
  text-align: center;
  padding: 24px 0 8px;
}

.results-cta .cta-btn {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  line-height: 56px;
  max-width: 320px;
}

.cta-subtext {
  font-size: 15px;
  color: var(--gray-blue);
  margin-top: 12px;
}

.results-page footer {
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--input-border);
}
