:root { --green:#154619; --green-2:#438d42; --mint:#e6f8f4; --yellow:#ffd130; --ink:#1f2a1f; --muted:#607064; --border:#d9e7dc; --white:#fff; --error:#a12626; }
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--mint); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: radial-gradient(circle at 10% 0%, rgba(255,209,48,.24), transparent 32%), var(--mint); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.quiz-header { display: flex; width: min(760px, calc(100% - 28px)); height: 78px; align-items: center; justify-content: space-between; margin-inline: auto; }
.quiz-header img { display: block; width: 132px; height: auto; }
.close-link { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: var(--green); background: rgba(255,255,255,.7); font-size: 1.8rem; line-height: 1; text-decoration: none; }
.quiz-page { padding: 0 14px 42px; }
.quiz-card { width: min(760px, 100%); min-height: 520px; margin: 0 auto; padding: clamp(24px, 5vw, 48px); border: 1px solid var(--border); border-radius: 28px; background: var(--white); box-shadow: 0 22px 60px rgba(21,70,25,.12); }
.quiz-intro { margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.quiz-intro.is-collapsed { display: none; }
.eyebrow { margin: 0 0 9px; color: var(--green-2); font-size: .75rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
h1, h2 { margin: 0; color: var(--green); font-family: Georgia, "Times New Roman", serif; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { margin: 24px 0 18px; font-size: clamp(1.55rem, 5vw, 2.25rem); }
p { margin: 13px 0 0; color: var(--muted); }
.progress-row { display: flex; justify-content: space-between; color: var(--green); font-size: .8rem; font-weight: 800; }
.progress-bar { height: 9px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #edf4ef; }
.progress-bar span { display: block; width: 0; height: 100%; background: var(--green-2); transition: width .25s ease; }
.multi-note { margin: -9px 0 15px; font-size: .84rem; }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.answer { position: relative; min-height: 60px; padding: 13px 44px 13px 15px; border: 1px solid var(--border); border-radius: 15px; color: var(--green); background: linear-gradient(#fff,#fbfdfb); font-weight: 750; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.answer:hover { transform: translateY(-2px); border-color: var(--green-2); box-shadow: 0 9px 20px rgba(21,70,25,.09); }
.answer.selected { border-color: var(--green); background: #f0f8f0; box-shadow: inset 0 0 0 1px var(--green); }
.answer.selected::after { content:"✓"; position:absolute; right:13px; top:50%; display:grid; width:22px; height:22px; place-items:center; transform:translateY(-50%); border-radius:50%; color:white; background:var(--green); font-size:.72rem; }
.answer-icon { margin-right: 8px; font-size: 1.12rem; }
.quiz-nav, .cart-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.primary-button, .secondary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 21px; border: 2px solid var(--green); border-radius: 999px; font-weight: 850; cursor: pointer; text-decoration: none; }
.primary-button { color: white; background: var(--green); }
.primary-button:disabled { opacity: .4; cursor: not-allowed; }
.secondary-button { color: var(--green); background: white; }
.field-label, .form-grid label { display: grid; gap: 7px; color: var(--green); font-size: .88rem; font-weight: 800; }
textarea, input { width: 100%; padding: 12px 13px; border: 1px solid #cbdacf; border-radius: 12px; color: var(--ink); background: white; outline: none; }
textarea { margin-top: 8px; resize: vertical; line-height: 1.55; }
textarea:focus, input:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(67,141,66,.12); }
.field-label { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.full-field { grid-column: 1 / -1; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin-top: 18px; color: var(--muted); font-size: .78rem; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; }
.form-error { padding: 10px 12px; border-radius: 10px; color: var(--error); background: #fff1f1; font-size: .85rem; }
.center-view { padding: 60px 0; text-align: center; }
.center-view .primary-button { margin-top: 26px; }
.spinner { width: 52px; height: 52px; margin: 0 auto 28px; border: 5px solid #dceade; border-top-color: var(--green-2); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gift-box { margin: 22px 0; padding: 17px 19px; border: 1px solid #ecd47a; border-radius: 15px; color: var(--green); background: #fff7cf; font-weight: 750; }
.cart-items { display: grid; gap: 10px; margin-top: 26px; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--border); border-radius: 15px; }
.cart-item img { width: 70px; height: 70px; border-radius: 11px; object-fit: cover; background: #f3f5f2; }
.cart-item-name { margin: 0; color: var(--green); font-weight: 800; }
.cart-item-meta { margin: 3px 0 0; font-size: .78rem; }
.cart-item-price { color: var(--green); font-weight: 800; }
.remove-item { display: block; margin: 6px 0 0 auto; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: .75rem; cursor: pointer; text-decoration: underline; }
.cart-total { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--green); font-size: 1.1rem; }
.quiz-footnote { text-align: center; font-size: .8rem; }
[hidden] { display: none !important; }
@media (max-width: 560px) { .quiz-card { padding: 24px 18px; border-radius: 22px; } .answers, .form-grid { grid-template-columns: 1fr; } .full-field { grid-column: auto; } .cart-item { grid-template-columns: 58px 1fr; } .cart-item img { width:58px;height:58px; } .cart-price-wrap { grid-column:2; display:flex;align-items:center;gap:12px; } .quiz-nav, .cart-actions { align-items: stretch; flex-direction: column-reverse; } .quiz-nav > *, .cart-actions > * { width:100%; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration:.01ms !important; transition-duration:.01ms !important; } }
