/* Men's TRT Solutions - Global Styles */
:root {
  --primary: #1a56db;
  --primary-dark: #1e40af;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Quiz Styles */
.quiz-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.quiz-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.quiz-progress {
  height: 4px;
  background: var(--border);
  margin-top: 15px;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

.quiz-content {
  flex: 1;
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.quiz-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

.quiz-question {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--secondary);
}

.quiz-subtext {
  text-align: center;
  color: var(--text-light);
  margin-top: -20px;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

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

.quiz-option {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg);
}

.quiz-option:hover {
  border-color: var(--primary);
  background: rgba(26, 86, 219, 0.05);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(26, 86, 219, 0.1);
}

.quiz-option-emoji {
  font-size: 1.5rem;
  margin-right: 15px;
}

.quiz-option-text {
  font-size: 1.05rem;
  font-weight: 500;
}

.quiz-option input {
  display: none;
}

/* Checkbox options */
.quiz-checkbox {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.quiz-checkbox:hover {
  border-color: var(--primary);
}

.quiz-checkbox.selected {
  border-color: var(--primary);
  background: rgba(26, 86, 219, 0.1);
}

.quiz-checkbox input {
  display: none;
}

.checkbox-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 6px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.quiz-checkbox.selected .checkbox-mark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-mark svg {
  display: none;
  width: 14px;
  height: 14px;
  color: white;
}

.quiz-checkbox.selected .checkbox-mark svg {
  display: block;
}

/* Continue Button */
.quiz-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 32px;
  margin-top: 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-continue:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.quiz-continue svg {
  margin-left: 8px;
  width: 20px;
  height: 20px;
}

/* Testimonial */
.quiz-testimonial {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  font-style: italic;
  border-left: 4px solid var(--primary);
}

.quiz-testimonial-author {
  font-weight: 600;
  font-style: normal;
  margin-top: 10px;
  color: var(--primary);
}

/* Why We Ask */
.why-ask {
  background: var(--bg-light);
  padding: 16px;
  border-radius: 10px;
  margin-top: 20px;
}

.why-ask-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 8px;
}

.why-ask-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Loading Step */
.loading-step {
  text-align: center;
  padding: 60px 20px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 30px;
}

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

.loading-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.loading-items {
  text-align: left;
  max-width: 300px;
  margin: 30px auto;
}

.loading-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  color: var(--text-light);
}

.loading-item.complete {
  color: var(--success);
}

.loading-item svg {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

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

.results-badge {
  display: inline-block;
  background: var(--success);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.results-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary);
}

.results-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.results-image {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background: var(--bg-light);
  border-radius: 10px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Offer Section */
.offer-box {
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
  color: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
}

.offer-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.offer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.offer-price {
  margin: 20px 0;
}

.offer-price-old {
  text-decoration: line-through;
  opacity: 0.6;
  font-size: 1.2rem;
}

.offer-price-new {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.offer-price-note {
  font-size: 0.9rem;
  opacity: 0.8;
}

.offer-features {
  text-align: left;
  margin: 25px 0;
}

.offer-feature {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.offer-feature svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  margin-right: 10px;
  flex-shrink: 0;
}

.offer-cta {
  display: block;
  width: 100%;
  padding: 18px 32px;
  background: var(--accent);
  color: var(--secondary);
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.offer-cta:hover {
  background: #fbbf24;
  transform: translateY(-2px);
}

.offer-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.9;
}

.offer-guarantee svg {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Footer */
.quiz-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

.quiz-footer a {
  color: var(--text-light);
}

/* Responsive */
@media (max-width: 480px) {
  .quiz-question {
    font-size: 1.25rem;
  }
  
  .quiz-option {
    padding: 14px 16px;
  }
  
  .results-stats {
    grid-template-columns: 1fr;
  }
  
  .offer-box {
    padding: 20px;
  }
}
