/* Tax Calculator / Quiz Styles */

.calculator-main {
  min-height: 100vh;
  padding: 6rem 1.5rem 4rem;
}

.calculator-container {
  max-width: 640px;
  margin: 0 auto;
}

/* Progress */
.progress-bar {
  height: 4px;
  background: var(--color-surface-elevated);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

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

.progress-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Quiz steps */
.quiz-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.quiz-step.active {
  display: block;
}

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

.quiz-step h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.step-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Option buttons */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.options-grid.options-vertical {
  grid-template-columns: 1fr;
}

.option-btn {
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  background: var(--color-surface-elevated);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.option-btn.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-muted);
  color: var(--color-accent);
}

/* Results teaser */
.results-teaser {
  text-align: center;
}

.results-teaser h1 {
  margin-bottom: 1rem;
}

.results-teaser h1 strong {
  color: var(--color-accent);
}

.teaser-path {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.teaser-message {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.teaser-cta {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.email-capture-form {
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.email-capture-form input[type="email"],
.email-capture-form input[type="text"],
.email-capture-form input[type="tel"] {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
}

.email-capture-form input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.7;
}

.email-capture-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-checkbox-inline {
  margin: 0.5rem 0;
}

.form-checkbox-inline .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: left;
}

.form-checkbox-inline .checkbox-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  cursor: pointer;
}

@media (max-width: 480px) {
  .form-checkbox-inline .checkbox-label {
    gap: 0.625rem;
    font-size: 0.8rem;
  }
  .form-checkbox-inline .checkbox-label input[type="checkbox"] {
    margin-top: 0.15rem;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
  }
}

.email-capture-form .form-small-print {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  opacity: 0.9;
  line-height: 1.4;
  margin: 0.5rem 0 0;
}

/* Full results */
.results-full {
  animation: fadeIn 0.4s ease;
}

.results-full h1 {
  margin-bottom: 1.5rem;
}

.result-path,
.result-estimate {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.result-path h3,
.result-estimate h3 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.path-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent);
}

.estimate-range {
  font-size: 1.1rem;
  line-height: 1.6;
}

.result-next-steps {
  margin-bottom: 1.5rem;
}

.result-next-steps h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.result-next-steps ol {
  margin-left: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.result-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.result-actions .btn {
  margin-bottom: 0;
}

.results-full .btn {
  margin-bottom: 1.5rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  opacity: 0.9;
}

/* Quiz nav */
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.nav-spacer {
  flex: 1;
}

@media (max-width: 480px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}
