/* =============================================
   COUTURE LAB QUIZ - STYLES
   ============================================= */

/* ----- CSS Variables / Theme ----- */
:root {
  --cream: #FAF8F5;
  --warm-white: #FFFEF9;
  --charcoal: #2C2C2C;
  --soft-black: #1A1A1A;
  --gold: #C9A962;
  --gold-light: #E8D5A8;
  --rose: #D4A5A5;
  --sage: #A8B5A0;
  --lavender: #C4B7D4;
  --muted-blue: #8FA3B5;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
}

/* ----- Quiz Container ----- */
.quiz-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ----- Progress Bar ----- */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0,0,0,0.05);
  z-index: 100;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.6s var(--transition-smooth);
}

/* ----- Header ----- */
.quiz-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.logo span {
  font-weight: 500;
}

.step-indicator {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  opacity: 0.5;
}

/* ----- Slides ----- */
.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 40px 60px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.7s var(--transition-smooth);
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.slide.exit-up {
  opacity: 0;
  transform: translateY(-50px);
}

.slide-content {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

/* ----- Welcome Slide ----- */
.welcome-slide .slide-content {
  max-width: 800px;
}

.welcome-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.welcome-title em {
  font-style: italic;
  color: var(--gold);
}

.welcome-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--charcoal);
  opacity: 0.7;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Questions ----- */
.question-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.question-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--soft-black);
}

.question-description {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--charcoal);
  opacity: 0.6;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ----- Option Cards ----- */
.options-grid {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.option-card {
  position: relative;
  padding: 20px 28px;
  background: var(--warm-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  text-align: left;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--transition-smooth);
}

.option-card:hover {
  border-color: rgba(201, 169, 98, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.option-card:hover::before {
  transform: scaleY(1);
}

.option-card.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--warm-white) 0%, rgba(201, 169, 98, 0.05) 100%);
}

.option-card.selected::before {
  transform: scaleY(1);
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--transition-smooth);
}

.option-card:hover .option-letter,
.option-card.selected .option-letter {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
}

.option-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--soft-black);
  line-height: 1.4;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 48px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
}

.btn-primary {
  background: var(--soft-black);
  color: white;
}

.btn-primary:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

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

.btn-icon {
  transition: transform 0.3s var(--transition-smooth);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* ----- Navigation ----- */
.nav-controls {
  position: fixed;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 40px;
  z-index: 50;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--warm-white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.nav-btn:hover:not(:disabled) {
  background: var(--soft-black);
  color: white;
  border-color: var(--soft-black);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-btn svg {
  width: 18px;
  height: 18px;
}

/* ----- Results Slide ----- */
.results-slide {
  overflow-y: auto;
  justify-content: flex-start;
  padding-top: 120px;
  padding-bottom: 80px;
}

.results-slide .slide-content {
  max-width: 900px;
  text-align: left;
}

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

.results-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  margin-bottom: 16px;
}

.results-subtitle {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.7;
}

/* ----- Plan Summary ----- */
.plan-summary {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  padding: 32px;
  background: var(--warm-white);
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
}

.summary-item {
  text-align: center;
}

.summary-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.summary-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
}

/* ----- Week Tables ----- */
.week-section {
  margin-bottom: 40px;
}

.week-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--soft-black);
}

.phase-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.workout-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--warm-white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

.workout-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.02);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.workout-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  vertical-align: top;
}

.workout-table tr:last-child td {
  border-bottom: none;
}

.workout-table td:first-child {
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  width: 80px;
}

.workout-table a {
  color: var(--soft-black);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-light);
  transition: all 0.3s ease;
}

.workout-table a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.optional-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(201, 169, 98, 0.1);
  color: var(--gold);
  border-radius: 2px;
  margin-left: 8px;
}

/* ----- CTA Section ----- */
.cta-section {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.cta-text {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ----- Email Section ----- */
.email-section {
  margin-bottom: 50px;
}

.email-form-container {
  background: var(--warm-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
}

.email-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--soft-black);
}

.email-subtitle {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--charcoal);
  opacity: 0.6;
  margin: 0 0 28px;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  padding: 18px 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 2px;
  background: white;
  color: var(--soft-black);
  transition: all 0.4s var(--transition-smooth);
}

.email-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

.email-input::placeholder {
  font-family: 'Cormorant Garamond', serif;
  color: #aaa;
  font-style: italic;
}

.email-btn {
  white-space: nowrap;
  padding: 18px 32px;
}

.email-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.email-status {
  margin-top: 16px;
  min-height: 24px;
}

.status-success {
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 400;
}

.status-error {
  color: #C97262;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .email-form {
    flex-direction: column;
  }
  
  .email-btn {
    width: 100%;
    justify-content: center;
  }
  
  .email-form-container {
    padding: 28px 20px;
  }
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid rgba(0,0,0,0.15);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: white;
  border-color: var(--charcoal);
  transform: translateY(-2px);
}

/* ----- Loading Slide ----- */
.loading-slide .slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-spinner {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(201, 169, 98, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--soft-black);
  margin: 0;
}

.loading-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--charcoal);
  opacity: 0.7;
  margin: 0;
}

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

/* ----- Keyboard Hint ----- */
.keyboard-hint {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

.keyboard-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(0,0,0,0.05);
  border-radius: 3px;
  font-family: inherit;
  margin: 0 2px;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .quiz-header {
    padding: 20px 24px;
  }

  .slide {
    padding: 80px 24px 80px;
  }

  .plan-summary {
    flex-direction: column;
    gap: 20px;
  }

  .keyboard-hint {
    display: none;
  }

  .workout-table {
    font-size: 0.875rem;
  }

  .workout-table th,
  .workout-table td {
    padding: 12px 14px;
  }

  .option-card {
    padding: 16px 20px;
  }
}

/* ----- Print Styles ----- */
@media print {
  .quiz-header,
  .nav-controls,
  .progress-container,
  .cta-section,
  .keyboard-hint {
    display: none !important;
  }

  .results-slide {
    padding: 20px !important;
  }

  .slide {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}