/* RestAssured landing pages: shared styles
   Used by every page under /fe/. Edit here, not in the pages. */

:root {
  --ra-teal: #1E5A52;
  --ra-teal-dark: #123B36;
  --ra-ink: #1B2725;
  --ra-muted: #4A5654;
  --ra-cream: #F5F2EA;
  --ra-tan: #EDE8DC;
  --ra-line: #E6E0D2;
  --ra-link: #1A56DB;
  --ra-open: #1E7A4F;
  --ra-closed: #5A6563;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Public Sans', system-ui, -apple-system, sans-serif; color: var(--ra-ink); background: #FFFFFF; }
img { max-width: 100%; }
a:hover { opacity: 0.88; }
button { font-family: inherit; }

/* Top label: required disclosure on article-style pages (FTC native-ad guidance). Do not remove. */
.ra-sponsored { background: var(--ra-tan); padding: 8px 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ra-muted); text-align: center; }

.ra-link { color: var(--ra-link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Desktop side panel (advertorials) and mobile sticky bar */
.ra-rail { display: none; }
.ra-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px; background: #FFFFFF; border-top: 1px solid var(--ra-line); box-shadow: 0 -4px 16px rgba(18, 59, 54, 0.1); }
.ra-mbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 999px; background: var(--ra-teal); color: #FFFFFF; font-weight: 800; font-size: 17px; text-decoration: none; }
.ra-has-mbar { padding-bottom: 96px; }
@media (min-width: 1000px) {
  .ra-rail { display: block; }
  .ra-adv .ra-mbar { display: none; }
  .ra-adv.ra-has-mbar { padding-bottom: 64px; }
}
/* Editorial page: sticky bar on phones only */
.ra-ed .ra-mbar { display: none; }
@media (max-width: 760px) {
  .ra-ed .ra-mbar { display: block; }
  .ra-ed { padding-bottom: 84px; }
}

/* ---------- Quiz ---------- */
.ra-quiz { --btn: var(--ra-teal); --btn-shadow: none; }
.ra-quiz[data-theme="kennedy"] { --btn: #1E7A3A; --btn-shadow: 0 4px 0 #145227; }
.rq-banner { background: #FFF8DC; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.rq-banner p { margin: 0; }
.rq-banner .rq-banner-main { font-size: 18px; font-weight: 800; line-height: 1.35; color: var(--ra-ink); }
.rq-banner .rq-banner-sub { font-size: 14px; color: var(--ra-muted); }
.rq-step, .rq-checking, .rq-result { display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--btn); }
.rq-step { padding-top: 6px; }
.rq-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.rq-progress span { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--btn); white-space: nowrap; }
.rq-bar { flex: 1; height: 6px; border-radius: 999px; background: #E2DBCB; overflow: hidden; }
.rq-bar div { height: 6px; border-radius: 999px; background: var(--btn); transition: width 0.5s ease; }
.rq-title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.3; text-align: center; color: var(--ra-ink); }
.rq-opts { display: flex; flex-direction: column; gap: 12px; }
.rq-opt { min-height: 62px; border: 0; border-radius: 10px; background: var(--btn); color: #FFFFFF; box-shadow: var(--btn-shadow); font-size: 22px; font-weight: 800; cursor: pointer; padding: 8px 14px; }
.rq-back { align-self: center; min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--btn); font-size: 15px; font-weight: 700; cursor: pointer; }
.rq-checking { align-items: center; padding: 26px 0 20px; }
.rq-checking p { margin: 0; }
.rq-checking .rq-big { font-size: 21px; font-weight: 800; }
.rq-checking .rq-small { font-size: 14px; color: #4A4A4A; }
.rq-fillbar { width: 100%; height: 10px; border-radius: 999px; background: #E2DBCB; overflow: hidden; }
.rq-fillbar div { height: 10px; border-radius: 999px; background: var(--btn); width: 8%; }
.rq-result { text-align: center; align-items: stretch; padding-top: 18px; }
.rq-result p { margin: 0; }
.rq-badge { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: #DCEBE6; color: var(--ra-teal-dark); font-size: 15px; font-weight: 800; }
.rq-head { font-size: 25px; font-weight: 800; line-height: 1.3; }
.rq-last { font-size: 18px; line-height: 1.5; }
.rq-tap { margin-top: 6px !important; font-size: 22px; font-weight: 800; letter-spacing: 0.02em; }
.rq-call { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 70px; border-radius: 10px; background: var(--btn); color: #FFFFFF; box-shadow: var(--btn-shadow); font-size: 28px; font-weight: 800; text-decoration: none; }
.rq-desk { display: none; font-size: 18px; line-height: 1.5; }
.rq-desk strong { white-space: nowrap; font-size: 22px; }
@media (hover: hover) and (pointer: fine) { .rq-desk { display: block; } }
.rq-avail { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; }
.rq-dot { width: 10px; height: 10px; border-radius: 999px; flex: none; }
.rq-fine { font-size: 13px; line-height: 1.5; color: #5A6563; }

/* ---------- Motion ---------- */
@keyframes raPulse { 0% { box-shadow: 0 0 0 0 rgba(30,90,82,0.55); } 70% { box-shadow: 0 0 0 16px rgba(30,90,82,0); } 100% { box-shadow: 0 0 0 0 rgba(30,90,82,0); } }
@keyframes raPulseK { 0% { box-shadow: 0 4px 0 #145227, 0 0 0 0 rgba(30,122,58,0.55); } 70% { box-shadow: 0 4px 0 #145227, 0 0 0 16px rgba(30,122,58,0); } 100% { box-shadow: 0 4px 0 #145227, 0 0 0 0 rgba(30,122,58,0); } }
@keyframes raFill { from { width: 8%; } to { width: 100%; } }
@keyframes raIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes raPop { 0% { opacity: 0; transform: scale(0.5); } 70% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes raFlash { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(30,122,79,0); background: #DCEBE6; } 50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 0 10px rgba(30,122,79,0.22); background: #BFE3D2; } }
@keyframes raRing { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-16deg); } 88% { transform: rotate(14deg); } 92% { transform: rotate(-10deg); } 96% { transform: rotate(6deg); } }
@keyframes raBlink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@keyframes raDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes raNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(9px); } }
.ra-pulse { animation: raPulse 1.8s ease-out infinite; }
.ra-quiz[data-theme="kennedy"] .ra-pulse { animation-name: raPulseK; }
.rq-fillbar div { animation: raFill 1.6s ease-in-out forwards; }
.ra-in { opacity: 0; animation: raIn 0.45s ease-out forwards; }
.ra-d1 { animation-delay: 0.08s; } .ra-d2 { animation-delay: 0.16s; } .ra-d3 { animation-delay: 0.24s; } .ra-d4 { animation-delay: 0.34s; } .ra-d5 { animation-delay: 0.44s; } .ra-d6 { animation-delay: 0.54s; }
.ra-pop { opacity: 0; animation: raPop 0.9s cubic-bezier(.3,1.4,.6,1) forwards, raFlash 1.1s ease-in-out 0.9s 4; }
.ra-ring { display: inline-flex; transform-origin: 50% 50%; animation: raRing 2.6s ease-in-out 1s infinite; }
.ra-blink { animation: raBlink 1.6s ease-in-out infinite; }
.ra-dots::after { content: ''; animation: raDots 1.2s steps(1) infinite; }
.ra-nudge { display: inline-block; animation: raNudge 0.9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .ra-pulse, .ra-ring, .ra-blink, .ra-nudge, .ra-dots::after { animation: none; }
  .rq-fillbar div { animation: none; width: 100%; }
  .ra-in, .ra-pop { animation: none; opacity: 1; }
}
