/* Quiz (/quiz/) and free eBook (/skill/) pages. Navy + gold, Lato, matching the redesigned site.
   Styles the existing class names of those pages, so their questions, forms and logic are unchanged. */
:root {
  --ink: #14161f; --text: #2f323c; --muted: #6b6f7b; --line: #e7e0d0; --ivory: #f8f5ee;
  --dark: #0b1020; --navy: #17365d; --gold: #e7a625; --gold-d: #a8730d; --red: #c0392b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 18px/1.65 Lato, Arial, Helvetica, sans-serif; color: var(--text);
  background: var(--dark) url(/images/story/hero-bg.jpg?v=2) center top / cover fixed no-repeat; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
p { margin: 0 0 1em; }
b, strong { color: var(--ink); }
.text-center { text-align: center; }
.color-red, .red { color: var(--red); }
.bg-yellow { background: linear-gradient(transparent 55%, rgba(231, 166, 37, .45) 55%); padding: 0 .1em; }

/* top bar + footer */
.f-top { padding: 18px 20px; text-align: center; background: rgba(11, 16, 32, .9); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.f-top img { display: inline-block; width: 230px; vertical-align: middle; }
.f-foot { margin-top: auto; padding: 30px 18px 34px; text-align: center; background: #0b1020; color: #8d94a5; font-size: 13px; }
.f-foot nav a { display: inline-block; margin: 4px 12px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.f-foot p { margin: 12px 0 0; }

/* white card on the dark background */
.wrap { width: 100%; padding: 44px 20px 60px; }
.container { max-width: 820px; margin: 0 auto; padding: 44px 52px 48px; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
h1 { margin: 0 0 .5em; font-weight: 900; font-size: 38px; line-height: 1.15; letter-spacing: -.5px; color: var(--ink); }
h2, h3 { color: var(--ink); line-height: 1.3; }

/* buttons */
.btn, .quiz-btn, .btn-yellow, input[type=submit], .f-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 0;
  padding: 17px 34px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: #1b1300; text-decoration: none;
  font: 900 19px/1.25 Lato, Arial, sans-serif; letter-spacing: .2px;
  box-shadow: 0 10px 24px rgba(231, 166, 37, .35); transition: transform .15s ease, background .15s ease;
}
.btn:hover, .quiz-btn:hover, .btn-yellow:hover, input[type=submit]:hover, .f-btn:hover { background: #f2b53a; transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.quiz-btn::after { content: "\2192"; font-weight: 400; }

/* ---------- quiz intro (quiz/index.php) ---------- */
.profile { display: flex; gap: 28px; align-items: center; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.profile > .pic { flex: 0 0 auto; }
.profile > .pic img { width: 120px; height: 120px; object-fit: cover; object-position: top; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold); }
.profile h1 { text-align: left; }
.profile .text p { font-size: 19px; }
.quiz-desc { display: grid; grid-template-columns: 1.3fr .7fr; gap: 34px; align-items: center; }
.quiz-desc .pic img { border-radius: 50%; box-shadow: 0 18px 40px rgba(11, 16, 32, .25); }
.quiz-desc .text-center { text-align: left; }
.checklist-red { list-style: none; margin: 0 0 1.4em; padding: 0; }
.checklist-red li { position: relative; padding-left: 40px; margin-bottom: .7em; }
.checklist-red li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231b1300' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat;
}
.checklist-red li::after { content: none; }

/* ---------- progress ---------- */
.progress-title { margin: 0 0 10px; font-weight: 900; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-d); }
.quiz-progress { display: flex; justify-content: space-between; align-items: center; position: relative; list-style: none; max-width: 520px; margin: 0 auto 34px; padding: 0; }
.quiz-progress::before { content: ""; position: absolute; left: 20px; right: 20px; top: 50%; height: 3px; background: var(--line); transform: translateY(-50%); }
.quiz-progress li { position: relative; display: flex; flex-direction: column; align-items: center; }
.quiz-progress .number { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--line); font-weight: 900; color: var(--muted); }
.quiz-progress .number.done { background: var(--gold); border-color: var(--gold); color: #1b1300; font-size: 0; }
.quiz-progress .number.done::before { content: "\2713"; font-size: 18px; }
.quiz-progress .status { position: absolute; bottom: calc(100% + 4px); white-space: nowrap; font-size: 12px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); }
.quiz-progress .status + .number { border-color: var(--navy); color: var(--navy); }

/* ---------- questions ---------- */
.quiz { margin: 0 0 30px; }
.question { margin: 0 0 14px; font-weight: 900; font-size: 22px; line-height: 1.35; color: var(--ink); }
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.choices li { position: relative; margin: 0; }
.choices input[type=radio] { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin: -11px 0 0; accent-color: var(--gold-d); cursor: pointer; }
.choices label { display: block; padding: 15px 18px 15px 54px; border: 2px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-size: 17px; line-height: 1.45; transition: border-color .12s ease, background .12s ease; }
.choices label:hover { border-color: #d9c89c; background: #fffdf6; }
.choices li:has(input:checked) label { border-color: var(--gold); background: #fff8e6; box-shadow: 0 6px 16px rgba(231, 166, 37, .18); }
.container .text-center:last-child .quiz-btn, form > .text-center .quiz-btn { min-width: 240px; }

/* ---------- name + email step (quiz_submit.php) ---------- */
.signup { max-width: 520px; margin: 20px auto 0; }
.signup .inputs { display: grid; gap: 12px; margin-bottom: 8px; }
.signup .inputs input, .f-field { width: 100%; padding: 16px 18px; border: 2px solid var(--line) !important; border-radius: 12px; font: 18px Lato, Arial, sans-serif; color: var(--ink); background: #fff; }
.signup .inputs input:focus, .f-field:focus { border-color: var(--gold) !important; outline: none; }
.signup .quiz-btn { width: 100%; }

/* ---------- results (results_A.php / results_B.php) ---------- */
.results .container { max-width: 860px; }
.results h1 { font-size: 32px; }
.results h1[style] { margin-top: 10px; font-size: 24px !important; }
.brain { display: flex; justify-content: center; gap: 40px; margin: 30px 0 10px; padding: 26px; border-radius: 18px; background: var(--ivory); border: 1px solid var(--line); }
.brain > div { text-align: center; }
.brain img { border-radius: 12px; }
.result_profile { float: right; width: 120px; margin: 0 0 16px 24px; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold); }
.results .container > div > p, .results .container > p { font-size: 18px; }
.results center img { border-radius: 16px; box-shadow: 0 24px 50px rgba(11, 16, 32, .25); transition: transform .15s ease; }
.results center a:hover img { transform: translateY(-2px); }

/* ---------- free eBook pages (/skill/) ---------- */
.f-hero { padding: 54px 20px 0; text-align: center; color: #fff; }
.f-hero .eyebrow { margin: 0 0 10px; color: var(--gold); font-weight: 900; font-size: 14px; letter-spacing: 2.4px; text-transform: uppercase; }
.f-hero h1 { color: #fff; max-width: 820px; margin: 0 auto .3em; font-size: 42px; }
.f-hero p { color: #d4d9e4; font-size: 19px; max-width: 640px; margin: 0 auto; }
.f-card { max-width: 900px; margin: 34px auto 60px; padding: 44px 48px; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.f-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.f-grid > img { width: 100%; filter: drop-shadow(0 22px 34px rgba(11, 16, 32, .35)); }
.f-grid h2 { margin: 0 0 .5em; font-size: 26px; font-weight: 900; }
.f-form { display: grid; gap: 12px; margin-top: 18px; }
.f-form select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%236b6f7b' stroke-width='2'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; padding-right: 46px; }
.f-form .f-btn { width: 100%; margin-top: 4px; }
.f-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.f-band { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.f-count { display: inline-block; min-width: 2ch; color: var(--gold-d); font-weight: 900; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; background-attachment: scroll; }
  .wrap { padding: 20px 12px 40px; }
  .container, .f-card { padding: 28px 20px 32px; border-radius: 18px; }
  h1 { font-size: 28px; }
  .profile { flex-direction: column; text-align: center; gap: 16px; }
  .profile h1 { text-align: center; }
  .quiz-desc { grid-template-columns: 1fr; gap: 20px; }
  .quiz-desc .pic { order: -1; text-align: center; }
  .quiz-desc .pic img { width: 180px; }
  .quiz-desc .text-center { text-align: center; }
  .quiz-btn, .btn-yellow, .f-btn { width: 100%; }
  .question { font-size: 19px; }
  .choices label { font-size: 16px; padding: 14px 14px 14px 50px; }
  .quiz-progress .number { width: 34px; height: 34px; }
  .results h1 { font-size: 25px; }
  .brain { gap: 18px; padding: 18px 10px; }
  .result_profile { width: 90px; }
  .f-hero { padding-top: 34px; }
  .f-hero h1 { font-size: 30px; }
  .f-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .f-grid > img { max-width: 220px; margin: 0 auto; }
}
