/* =========================================================
   Champion School Quiz — Custom Styles
   ========================================================= */

:root {
  --navy-deep: #00183b;
  --navy: #0B2D5C;
  --gold-deep: #B87400;    /* âmbar escuro — para hover/gradient */
  --gold: #E89B0D;         /* cor exata da logo Champion School */
  --gold-light: #F5C56A;   /* âmbar claro — highlights */
  --gold-bg: #FFF6E3;      /* fundo muito suave com toque de âmbar */
  --off-white: #f7f9fc;
  --border-soft: #E5E7EB;
  --muted: #4B5563;
}

/* Material icons calibration */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ========= Screen control ========= */
.screen {
  display: none !important;
  animation: screenIn 350ms ease-out both;
}
.screen.active {
  display: block !important;
}
@keyframes screenIn {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Body keeps flex when the active screen uses it */
#screen-intro.active,
#screen-question.active,
#screen-capture.active {
  display: flex !important;
  flex-direction: column;
}

/* ========= Fade-in utility ========= */
.fade-in {
  animation: fadeInUp 500ms ease-out both;
}
@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ========= Gold CTA (consistent premium style) ========= */
.gold-cta {
  background: linear-gradient(135deg, #E89B0D 0%, #F5C56A 100%);
  color: var(--navy-deep);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.gold-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #B87400 0%, #E89B0D 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 250ms ease;
}
.gold-cta:hover::after { opacity: 1; }
.gold-cta:hover { color: white; }
.gold-cta:disabled {
  background: #d1d5db !important;
  color: #6b7280 !important;
  cursor: not-allowed;
}
.gold-cta:disabled::after { opacity: 0; }

/* ========= Option cards (quiz) ========= */
.option-card {
  background: #FFFFFF;
  border: 2px solid var(--border-soft);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 200ms ease;
  text-align: left;
  width: 100%;
  font-family: 'Manrope', sans-serif;
  position: relative;
}
.option-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 25px -8px rgba(120, 90, 2, 0.15);
  transform: translateY(-1px);
}
.option-card.selected {
  border-color: var(--gold-deep);
  background: var(--gold-bg);
  box-shadow: 0 10px 25px -8px rgba(120, 90, 2, 0.25);
}
.option-letter {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--off-white);
  color: var(--navy-deep);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}
.option-card:hover .option-letter,
.option-card.selected .option-letter {
  background: var(--gold-deep);
  color: white;
}
.option-label {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.4;
}
.option-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-deep);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.option-card.selected .option-check {
  display: flex;
}

/* ========= FAQ accordion ========= */
.faq-item.open .faq-trigger .material-symbols-outlined {
  transform: rotate(180deg);
}

/* ========= Form inputs polish ========= */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 162, 75, 0.15);
}

/* ========= Respect reduced motion ========= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========= Loading state on submit button ========= */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn-loading .spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========= Smooth scroll ========= */
html { scroll-behavior: smooth; }

/* ========= FAB transition ========= */
#fab-cta {
  transform: translateY(100px);
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}
#fab-cta.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ========= Utility backgrounds ========= */
.bg-gold-bg { background-color: var(--gold-bg); }
