/* raduscurtu.com/quiz/: loaded after css/discount.css; the quiz flow and its transitions */

button.btn { border: 0; cursor: pointer; font-family: var(--sans); }
.btn-text { font: inherit; font-size: 15px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* hero */
.quiz-hero { padding: 64px 0 76px; }
.qh-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.quiz-hero h1 { font-size: clamp(36px, 4.8vw, 62px); }
.quiz-hero h1 em { color: var(--gold-2); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hint { font-size: 14px; color: rgba(255, 255, 255, .7); }
.q-preview { position: relative; height: 380px; }
.qp-card { position: absolute; inset: 20px 30px 40px; background: #fff; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.qp-card.c2 { transform: rotate(6deg) translate(22px, 12px); background: var(--cream-2); }
.qp-card.c1 { transform: rotate(-2deg); padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); animation: qpIn 1s cubic-bezier(.2, .7, .2, 1) both; }
.qp-top { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.qp-bar { height: 6px; border-radius: 3px; background: var(--cream-2); overflow: hidden; }
.qp-bar i { display: block; height: 100%; width: 10%; background: var(--gold); animation: qpBar 3s ease-in-out infinite alternate; }
.qp-card b { font-family: var(--display); font-size: 19px; line-height: 1.3; color: var(--wine); margin: 4px 0; }
.qp-opt { font-size: 13.5px; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.qp-opt.ok { border-color: var(--green); background: #E9F4EE; color: var(--green); font-weight: 700; }
.qp-score { position: absolute; right: 0; bottom: 6px; width: 110px; height: 110px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, var(--amber-2), var(--amber) 60%, #D88C14); color: #2A1503; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transform: rotate(8deg); box-shadow: 0 0 0 6px rgba(255, 210, 122, .22), 0 18px 30px -12px rgba(0, 0, 0, .6); }
.qp-score b { font-family: var(--display); font-size: 34px; letter-spacing: 0; line-height: 1; }
@keyframes qpIn { from { opacity: 0; transform: rotate(-8deg) translateY(30px); } to { opacity: 1; transform: rotate(-2deg); } }
@keyframes qpBar { to { width: 70%; } }

/* quiz card */
.quiz { background: var(--cream); scroll-margin-top: 0; }
.quiz-wrap { max-width: 820px; }
.q-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 13.5px; font-weight: 700; color: var(--wine); letter-spacing: .04em; }
.q-head span:first-child { white-space: nowrap; }
.q-track { flex: 1; height: 8px; border-radius: 4px; background: var(--cream-2); overflow: hidden; }
.q-track i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--amber-2)); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.stage { background: var(--paper); border-radius: 22px; padding: 40px 44px; min-height: 420px; box-shadow: 0 40px 80px -50px rgba(74, 11, 15, .7); transition: opacity .26s ease, transform .26s ease; }
.stage.out { opacity: 0; transform: translateX(-24px); }
.stage.in { opacity: 0; transform: translateX(24px); transition: none; }
.q-area { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.stage .q { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); line-height: 1.25; color: var(--wine); margin-bottom: 24px; }
.intro p { font-family: var(--serif); font-size: 18.5px; color: var(--ink-2); }
.intro .checks { margin: 6px 0 26px; }
.opts { display: grid; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-size: 17px; line-height: 1.4; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 18px; cursor: pointer; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.opt:hover:not(:disabled) { border-color: var(--gold); transform: translateX(4px); box-shadow: 0 10px 24px -18px rgba(74, 11, 15, .6); }
.opt:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt .L { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--cream); color: var(--wine); display: flex; align-items: center; justify-content: center; font-weight: 800; transition: background .2s, color .2s; }
.opt:disabled { cursor: default; }
.opt:disabled:not(.right):not(.wrong):not(.chosen) { opacity: .5; }
.opt.right { border-color: var(--green); background: #E9F4EE; animation: pop .35s ease; }
.opt.right .L { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: #FBECEC; animation: shake .4s ease; }
.opt.wrong .L { background: var(--red); color: #fff; }
.opt.chosen { border-color: var(--gold); background: #FFF6E4; animation: pop .35s ease; }
.opt.chosen .L { background: var(--gold); color: #fff; }
@keyframes pop { 50% { transform: scale(1.02); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.fb { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
.fb.on { opacity: 1; transform: none; }
.fb-box { margin-top: 20px; border-radius: 14px; padding: 16px 18px; font-family: var(--serif); font-size: 17px; line-height: 1.55; color: var(--ink); }
.fb-box.good { background: #E9F4EE; border-left: 5px solid var(--green); }
.fb-box.bad { background: #FBECEC; border-left: 5px solid var(--red); }
.fb-box.neutral { background: #FFF6E4; border-left: 5px solid var(--gold); }
.fb-box b { font-family: var(--sans); }
.fb-ref { display: block; margin-top: 8px; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--wine); }
.next { margin-top: 20px; }

/* result */
.res { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: center; }
.ring { position: relative; width: 180px; height: 180px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: var(--cream-2); }
.ring .val { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1.3s cubic-bezier(.2, .7, .2, 1); }
.ring-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; font-family: var(--display); color: var(--wine); }
.ring-n b { font-size: 54px; line-height: 1; }
.ring-n span { font-size: 24px; margin-top: 12px; }
.res-text p { font-family: var(--serif); font-size: 18px; color: var(--ink-2); margin: 0; }
.res-text .q { margin-bottom: 10px; }
.gaps { margin-top: 26px; background: var(--cream); border-radius: 16px; padding: 20px 22px; }
.gaps h3 { font-size: 19px; color: var(--wine); margin-bottom: 12px; }
.gaps p { margin: 0; font-family: var(--serif); color: var(--ink-2); }
.gaps ul { list-style: none; margin: 0; padding: 0; }
.gaps li { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px dotted #D9CDB8; animation: slideIn .5s cubic-bezier(.2, .7, .2, 1) both; }
.gaps li:nth-child(2) { animation-delay: .08s; } .gaps li:nth-child(3) { animation-delay: .16s; } .gaps li:nth-child(4) { animation-delay: .24s; }
.gaps li:nth-child(5) { animation-delay: .32s; } .gaps li:nth-child(n+6) { animation-delay: .4s; }
.gaps li:last-child { border-bottom: 0; }
.g-area { font-weight: 800; color: var(--ink); }
.g-area::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; margin-right: 8px; }
.g-ref { font-size: 14px; color: var(--wine); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.res-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }

/* single offer */
.offer-one { background: var(--paper); transition: background .6s; scroll-margin-top: 10px; }
.offer-one.lit .final-sub { font-family: var(--serif); font-size: 19px; color: var(--ink-2); margin-bottom: 22px; }

@media (prefers-reduced-motion: reduce) {
  .stage, .fb, .q-track i, .ring .val { transition: none !important; }
  .opt, .gaps li, .qp-card, .qp-bar i, .one-card { animation: none !important; }
}
@media (max-width: 860px) {
  .qh-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .q-preview { height: 320px; max-width: 380px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .stage { padding: 26px 18px; border-radius: 16px; min-height: 0; }
  .opt { font-size: 16px; padding: 12px 14px; }
  .res { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .ring { width: 150px; height: 150px; }
  .gaps li { flex-direction: column; gap: 2px; }
  .q-preview { display: none; }
  .res-cta { justify-content: center; }
}
