/* ========================================
   Diagnóstico Raio X 360
   quiz.isabelahatano.com.br
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Behind The Nineties';
  src: url('fonts/Behind-The-Nineties-Rg.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('fonts/Behind-The-Nineties-It.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('fonts/Behind-The-Nineties-Md.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('fonts/Behind-The-Nineties-Md-It.otf') format('opentype');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('fonts/Behind-The-Nineties-Smbd.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('fonts/Behind-The-Nineties-Smbd-It.otf') format('opentype');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('fonts/Behind-The-Nineties-Bd.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Behind The Nineties';
  src: url('fonts/Behind-The-Nineties-Bd-It.otf') format('opentype');
  font-weight: 700; font-style: italic; font-display: swap;
}



/* ─── VARIÁVEIS — idênticas ao style-2.css ─── */
:root {
  --color-about-bg:   #4e3224;
  --color-accent:     #9dc2d5;
  --color-white:      #ffffff;
  --font-primary:     'Montserrat', sans-serif;
  --font-display:     'Behind The Nineties', sans-serif;
  --transition-smooth: all 0.3s ease;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--color-about-bg);
  min-height: 100vh;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

/* ─── PAGE LAYOUT ─── */
.quiz-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 80px;
}

/* ─── SHELL ─── */
.quiz-shell {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── HEADER ─── */
.quiz-header {
  text-align: center;
  padding: 40px 24px 32px;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  font-family: var(--font-primary);
  font-weight: 500;
}

.brand-tag::before,
.brand-tag::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}

.quiz-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 14px;
}

.quiz-title em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 500;
}

.quiz-subtitle {
  font-family: var(--font-primary);
  font-size: 14px;
  color: rgba(245,240,234,0.65);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── INTRO ─── */
.intro-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(157,194,213,0.2);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 16px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: rgba(245,240,234,0.8);
  line-height: 1.7;
}

.time-note {
  text-align: center;
  font-family: var(--font-primary);
  font-size: 13px;
  color: rgba(245,240,234,0.4);
  margin-top: 8px;
}

/* ─── CAPTURA ─── */
.capture-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 4px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(245,240,234,0.55);
}

.field-group input {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(157,194,213,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-primary);
  font-size: 15px;
  color: #f5f0ea;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field-group input::placeholder { color: rgba(245,240,234,0.25); }
.field-group input:focus {
  border-color: rgba(157,194,213,0.6);
  background: rgba(255,255,255,0.1);
}

.capture-error {
  font-family: var(--font-primary);
  font-size: 12px;
  color: #e8957a;
  min-height: 1.2em;
  margin-top: 2px;
}

/* ─── BOTÕES ─── */
.btn-start {
  display: block;
  width: 100%;
  padding: 16px 32px;
  background: var(--color-about-bg);
  color: #f5f0ea;
  border: none;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 24px;
  letter-spacing: 0.3px;
}

.btn-start:hover { background: #3a2319; transform: translateY(-1px); }
.btn-start:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.btn-start:disabled:hover { background: var(--color-about-bg); transform: none; }

/* ─── PROGRESS ─── */
.progress-wrap { padding: 0 8px 28px; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-family: var(--font-primary);
  font-size: 12px;
  color: rgba(245,240,234,0.5);
  letter-spacing: 0.5px;
}

.progress-count {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--color-accent);
}

.progress-bar-bg {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, #c4dbe8 100%);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* ─── CARD ─── */
.card {
  background: #f5f0ea;
  border-radius: 18px;
  padding: 36px 36px 28px;
  color: #2a1a10;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-about-bg) 0%, var(--color-accent) 100%);
}

.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8dfd4;
  color: #6b4535;
  font-family: var(--font-primary);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.area-badge .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.question-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(19px, 4vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-about-bg);
  margin-bottom: 28px;
}

/* ─── OPTIONS ─── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.option-item {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  border: 1.5px solid #e8dfd4;
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: #5a3d2b;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-item:hover {
  border-color: var(--color-accent);
  background: #e8f2f7;
  color: var(--color-about-bg);
  transform: translateY(-1px);
}

.option-item.selected {
  border-color: var(--color-about-bg);
  background: var(--color-about-bg);
  color: #f5f0ea;
  transform: scale(1.01);
}

.option-item.wrong { opacity: 0.4; }

/* ─── MICRO FEEDBACK ─── */
.micro-feedback {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  background: #e8dfd4;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 13px;
  color: #5a3d2b;
  line-height: 1.4;
  animation: fadeSlideUp 0.3s ease;
}

.micro-feedback.visible { display: flex; }
.micro-feedback .emoji { font-size: 18px; flex-shrink: 0; }

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

/* ─── BOTÃO PRÓXIMO ─── */
.btn-next {
  display: none;
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  background: var(--color-about-bg);
  color: #f5f0ea;
  border: none;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: var(--transition-smooth);
}

.btn-next.visible { display: block; }
.btn-next:hover { background: #3a2319; transform: translateY(-1px); }
.btn-next:active { transform: scale(0.99); }

/* ─── ANIMAÇÕES ─── */
.question-slide { animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

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

.slide-out { animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

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

/* ─── RESULTADO ─── */
.result-card { display: none; flex-direction: column; gap: 0; }
.result-card.visible { display: flex; }

.result-hero {
  background: var(--color-about-bg);
  border-radius: 18px 18px 0 0;
  padding: 40px 32px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 24px;
  background: #f5f0ea;
  border-radius: 50% 50% 0 0 / 24px 24px 0 0;
}

.result-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(157,194,213,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(245,240,234,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.result-label {
  font-family: var(--font-primary);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
  position: relative;
}

.result-score-ring {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(157,194,213,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
}

.result-score-ring::before {
  content: '';
  position: absolute; inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(157,194,213,0.15);
}

.result-score-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: #f5f0ea;
  line-height: 1;
}

.result-score-max {
  font-family: var(--font-primary);
  font-size: 14px;
  color: rgba(245,240,234,0.5);
  font-weight: 300;
  display: block;
  margin-top: -2px;
}

.result-profile-name {
  font-family: var(--font-display);
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 700;
  color: #f5f0ea;
  margin-bottom: 6px;
  position: relative;
}

.result-tier {
  font-family: var(--font-primary);
  font-size: 12px;
  color: rgba(245,240,234,0.55);
  letter-spacing: 1px;
}

.result-body {
  background: #f5f0ea;
  color: #2a1a10;
  padding: 36px 32px;
  border-radius: 0 0 18px 18px;
}

.result-description {
  font-family: var(--font-primary);
  font-size: 15px;
  color: #5a3d2b;
  line-height: 1.7;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e8dfd4;
}

.result-highlights { margin-bottom: 28px; }

.highlights-title {
  font-family: var(--font-primary);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6b4535;
  margin-bottom: 14px;
  font-weight: 500;
}

.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: #5a3d2b;
  line-height: 1.5;
}

.highlight-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ─── CTA ─── */
.cta-block {
  background: var(--color-about-bg);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
}

.cta-label {
  font-family: var(--font-primary);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 700;
  color: #f5f0ea;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cta-title em { font-style: italic; color: #c4dbe8; font-weight: 500; }

.cta-sub {
  font-family: var(--font-primary);
  font-size: 13px;
  color: rgba(245,240,234,0.6);
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-cta {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: var(--color-accent);
  color: var(--color-about-bg);
  border: none;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  letter-spacing: 0.3px;
}

.btn-cta:hover { background: #c4dbe8; transform: translateY(-1px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .quiz-page { padding: 24px 16px 60px; }
  .card { padding: 24px 20px 20px; }
  .result-hero { padding: 28px 20px 28px; }
  .result-body { padding: 24px 20px; }
  .cta-block { padding: 24px 16px; }
}
