/* ======================================
   BetterMe Pilates Quiz Clone - Styles
   ====================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #F9F7F2;
  --bg-card: rgba(255, 255, 255, 0.55);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --bg-card-selected: rgba(60, 33, 23, 0.08);
  --text-dark: #3C2117;
  --text-body: #5A4A42;
  --text-muted: #9B8E87;
  --text-white: #FFFFFF;
  --accent-brown: #3C2117;
  --accent-brown-hover: #2A170F;
  --progress-fill: #C4725A;
  --progress-bg: #E8E0D8;
  --border-color: rgba(60, 33, 23, 0.12);
  --border-selected: #3C2117;
  --shadow-card: 0 2px 12px rgba(60, 33, 23, 0.06);
  --shadow-btn: 0 4px 20px rgba(60, 33, 23, 0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 480px;
  --transition: 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Header / Navbar ---- */
.quiz-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-primary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.header-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-dark);
  font-size: 18px;
}

.header-back:hover {
  background: var(--bg-card);
}

.header-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.step-counter {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.04em;
}

.header-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.header-menu {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-dark);
}

/* ---- Progress Bar ---- */
.progress-container {
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg-primary);
  padding: 8px 16px 8px;
  display: flex;
  gap: 4px;
}

.progress-segment {
  flex: 1;
  height: 4px;
  background: var(--progress-bg);
  border-radius: var(--radius-full);
  overflow: hidden;
  transition: var(--transition);
}

.progress-segment .fill {
  height: 100%;
  background: var(--progress-fill);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.5s ease;
}

.progress-segment.completed .fill {
  width: 100%;
}

.progress-segment.active .fill {
  width: 50%;
}

/* ---- Quiz Container ---- */
.quiz-container {
  padding-top: 90px;
  padding-bottom: 100px;
  min-height: 100vh;
}

/* ---- Step ---- */
.quiz-step {
  display: none;
  padding: 24px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  animation: fadeSlideIn 0.4s ease;
}

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

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

/* ---- Step Title ---- */
.step-title {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-align: center;
}

.step-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ---- Landing Image ---- */
.landing-image-container {
  margin: 28px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.landing-main-image {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(60, 33, 23, 0.15);
  object-fit: cover;
  border: 1px solid rgba(60, 33, 23, 0.08);
}

/* ---- Landing Trust Box ---- */
.landing-trust-box {
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border: 1px dashed var(--progress-fill);
}

.trust-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.trust-time {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Authority Screen ---- */
.authority-screen {
  text-align: center;
  padding: 40px 10px;
}

.authority-badge {
  display: inline-block;
  background: #E8F5E9;
  color: #2E7D32;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 24px;
}

.authority-title {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.authority-text {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 32px;
}

.authority-image-box {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.authority-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* ---- Validation Screen ---- */
.validation-screen {
  text-align: left;
  padding: 40px 10px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.validation-title {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-weight: 700;
}

.validation-subtitle {
  font-size: 22px;
  color: var(--text-body);
  line-height: 1.4;
  font-weight: 400;
}

.validation-subtitle b, 
.validation-subtitle strong {
  font-weight: 800;
  color: var(--text-dark);
}

.validation-image-container {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.validation-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

/* ---- Option Cards (Single Select) ---- */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.option-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(60, 33, 23, 0.25);
}

.option-card.selected {
  background: var(--bg-card-selected);
  border-color: var(--border-selected);
}

.option-icon {
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
}

.option-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.4;
}

.option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}

.option-card.selected .option-radio {
  border-color: var(--accent-brown);
  background: var(--accent-brown);
}

.option-card.selected .option-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

/* ---- Checkbox Cards (Multi Select) ---- */
.option-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}

.option-card.selected .option-checkbox {
  border-color: var(--accent-brown);
  background: var(--accent-brown);
}

.option-card.selected .option-checkbox::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

/* ---- Image Grid Options ---- */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.options-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.grid-option {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  position: relative;
}

.grid-option:hover {
  border-color: rgba(60, 33, 23, 0.25);
}

.grid-option.selected {
  border-color: var(--border-selected);
  background: var(--bg-card-selected);
}

.grid-option img {
  width: 100%;
  height: auto;
  display: block;
}

.grid-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.grid-option-label .option-radio {
  width: 18px;
  height: 18px;
}

/* ---- Age Selection Cards (Landing) ---- */
.age-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.age-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}

.age-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: rgba(60, 33, 23, 0.25);
}

.age-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: top;
}

.age-card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--accent-brown);
  color: var(--text-white);
  font-size: 14px;
  font-weight: 600;
}

.age-card-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ---- Splash / Info Screens ---- */
.splash-screen {
  padding: 40px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.splash-icon {
  font-size: 40px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.splash-title {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.splash-body {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 12px;
}

.splash-body strong {
  color: var(--text-dark);
}

/* ---- Input Fields ---- */
.input-container {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 16px;
}

.unit-toggle {
  display: flex;
  background: var(--progress-bg);
  border-radius: var(--radius-full);
  padding: 3px;
  width: fit-content;
  margin: 0 auto 20px;
}

.unit-btn {
  padding: 6px 20px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.unit-btn.active {
  background: white;
  color: var(--text-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.input-field-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.input-field {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--text-dark);
  outline: none;
  text-align: left;
}

.input-field::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.input-unit {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-dark);
}

.input-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.consent-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--accent-brown);
  flex-shrink: 0;
}

.consent-row a {
  color: var(--progress-fill);
  text-decoration: underline;
}

/* ---- Bottom CTA Button ---- */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px 24px;
  background: linear-gradient(transparent, var(--bg-primary) 20%);
  z-index: 50;
}

.btn-primary {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  background: var(--accent-brown);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--accent-brown-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(60, 33, 23, 0.3);
}

.btn-primary:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---- Loading / Analysis Screen ---- */
.loading-screen {
  text-align: center;
  padding: 60px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

.loading-title {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 12px;
}

.loading-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.loading-bar-container {
  background: var(--progress-bg);
  border-radius: var(--radius-full);
  height: 8px;
  margin-top: 32px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #C4725A, #E8A07A);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.3s ease;
}

.loading-items {
  margin-top: 20px;
  text-align: left;
}

.loading-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.loading-item.done {
  color: var(--text-dark);
}

.loading-item .check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--progress-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.3s ease;
}

.loading-item.done .check-icon {
  background: #4CAF50;
  color: white;
}

/* ---- Result / Chart Screen ---- */
.result-screen {
  padding: 24px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.result-title {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.result-title span {
  color: var(--progress-fill);
}

.result-badge {
  display: inline-block;
  background: #FFF9C4;
  color: #F57F17;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.result-intro {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 32px;
  text-align: left;
}

.result-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.benefit-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: var(--bg-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.benefit-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Weight Chart Container ---- */
.prediction-chart {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.chart-label {
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 16px;
}

.chart-canvas {
  width: 100%;
  height: 200px;
}

/* ---- BMI Display ---- */
.bmi-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.bmi-value {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--accent-brown);
  margin-bottom: 4px;
}

.bmi-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.bmi-bar {
  height: 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #4CAF50, #8BC34A, #FFEB3B, #FF9800, #F44336);
  position: relative;
  margin-bottom: 8px;
}

.bmi-indicator {
  position: absolute;
  top: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--accent-brown);
  transform: translateX(-50%);
  transition: left 0.5s ease;
}

.bmi-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}

/* ---- Landing Page (Step 1) ---- */
.landing-container {
  text-align: center;
  padding: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.landing-badge {
  display: inline-block;
  background: var(--accent-brown);
  color: var(--text-white);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.landing-title {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.15;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.landing-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.landing-disclaimer {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 24px;
}

.landing-disclaimer a {
  color: var(--progress-fill);
  text-decoration: underline;
}

/* ---- Body Image Options ---- */
.body-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.body-option {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  text-align: center;
  padding-bottom: 10px;
}

.body-option:hover {
  border-color: rgba(60, 33, 23, 0.25);
}

.body-option.selected {
  border-color: var(--border-selected);
  background: var(--bg-card-selected);
}

.body-option img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  object-position: center;
}

.body-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
}

.body-option-label .option-radio {
  width: 16px;
  height: 16px;
}
.body-option-label .option-radio::after {
  width: 6px !important;
  height: 6px !important;
}

/* Target Zone Options with Images */
.target-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
}

.target-option:hover {
  background: var(--bg-card-hover);
  border-color: rgba(60, 33, 23, 0.25);
}

.target-option.selected {
  background: var(--bg-card-selected);
  border-color: var(--border-selected);
}

.target-option-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.target-option-img {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* ---- Diet Grid ---- */
.diet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.diet-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diet-card:hover {
  border-color: rgba(60, 33, 23, 0.25);
}

.diet-card.selected {
  border-color: var(--border-selected);
  background: var(--bg-card-selected);
}

.diet-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.diet-card-icon {
  font-size: 20px;
  opacity: 0.5;
}

.diet-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.diet-card-radio {
  margin-left: auto;
}

.diet-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- Section Labels ---- */
.section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 16px 0 8px;
}

/* ---- Events Grid ---- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.event-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-card:hover {
  border-color: rgba(60, 33, 23, 0.25);
}

.event-card.selected {
  border-color: var(--border-selected);
  background: var(--bg-card-selected);
}

.event-card-icon {
  font-size: 20px;
  opacity: 0.5;
}

.event-card-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.event-card .option-radio {
  margin-left: auto;
  width: 18px;
  height: 18px;
}

/* ---- Email Input ---- */
.email-container {
  text-align: center;
  padding: 40px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.email-input {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 12px;
}

.email-input:focus {
  border-color: var(--accent-brown);
}

/* ---- Decorative Image (Side) ---- */
.step-with-image {
  position: relative;
}

.step-side-image {
  position: fixed;
  bottom: 80px;
  right: -20px;
  width: 180px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.hidden { display: none !important; }

/* ---- Blue Side Glow Effect ---- */
body::before,
body::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 0;
  pointer-events: none;
}

body::before {
  left: 0;
  background: linear-gradient(90deg, rgba(180, 210, 240, 0.3), transparent);
}

body::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(180, 210, 240, 0.3), transparent);
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
  .quiz-container {
    display: flex;
    justify-content: center;
  }

  .step-side-image {
    right: calc(50% - 340px);
  }

  .bottom-cta {
    max-width: 520px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
}

/* ---- Confetti Animation ---- */
@keyframes confettiFall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 200;
  animation: confettiFall 3s ease-out forwards;
}

/* Weight prediction chart */
.prediction-chart {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--shadow-card);
}

.prediction-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: left;
  font-weight: 500;
}

/* Scratch card */
.scratch-card-container {
  margin: 20px auto;
  text-align: center;
}

.scratch-card {
  position: relative;
  width: 280px;
  height: 180px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.scratch-card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  gap: 8px;
}

.scratch-card-discount {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--accent-brown);
  font-weight: 700;
}

.scratch-card-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-brown);
}

.scratch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.scratch-overlay.revealed {
  opacity: 0;
  pointer-events: none;
}

.scratch-overlay-text {
  font-size: 16px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- Loading Screen Reviews ---- */
.review-carousel-container {
  background-color: #F8EFE4;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  overflow: hidden;
  position: relative;
  min-height: 180px;
}

.review-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.review-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.review-card.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.review-stars {
  color: #00B87C;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.review-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
}

.review-author {
  font-size: 13px;
  color: var(--text-muted);
}

.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
}

/* ---- BMI Risk Alert ---- */
.bmi-risk-alert {
  background-color: #FDF2F0;
  border: 1px solid #F1BDB1;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.bmi-risk-alert.hidden {
  display: none !important;
}
.bmi-risk-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.bmi-risk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--text-dark);
  font-weight: 700;
  font-size: 13px;
  margin-right: 8px;
  color: var(--text-dark);
}
.bmi-risk-title {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 15px;
}
.bmi-risk-text {
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* ---- Insight Cards ---- */
.insights-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.insight-card {
  background-color: #FAF8F5;
  border: 1px solid #EBE4D8;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.insight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #F0EAE1;
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-dark);
  flex-shrink: 0;
}
.insight-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.insight-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.insight-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #9B8E87;
  color: white;
  font-size: 10px;
  font-weight: bold;
}

/* ---- Discount Popup ---- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 16px;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #FFF;
  width: 100%;
  max-width: 480px;
  border-radius: 14px;
  padding: 32px 24px 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.popup-overlay.show .popup-content {
  transform: translateY(0);
}

.popup-step {
  display: none;
  animation: fadeSlideIn 0.4s ease;
}

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

.popup-title {
  color: #A67C52; /* marrom suave */
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.popup-text {
  color: #333333;
  font-size: 16px;
  line-height: 1.5;
}

.popup-btn {
  margin-top: 24px;
  width: 100%;
}

.popup-btn-green {
  background: #3FAF6F;
  color: #FFF;
  display: block;
  width: 100%;
  margin: 24px auto 0;
  padding: 18px 32px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(63, 175, 111, 0.3);
}

.popup-btn-green:hover {
  background: #35985F;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(63, 175, 111, 0.4);
}

.popup-price-box {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-old {
  color: #999;
  font-size: 16px;
  text-decoration: line-through;
  font-weight: 500;
}

.price-new {
  color: #3FAF6F;
  font-size: 32px;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
}

.popup-urgency {
  color: #555;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.popup-trust-elements {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.trust-icon {
  font-size: 16px;
}
