/* Rabin-Interiors & Woods: Style Quiz. Themed through the --riw-* variables in core.css. */

.riw-quiz { display: grid; grid-template-columns: .75fr 1.25fr; gap: 24px; align-items: stretch; }
.riw-quiz-side { border-radius: var(--riw-radius); padding: clamp(24px, 3.4vw, 40px); background: var(--riw-ink); color: #f6f1e9; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 460px; }
.riw-quiz-side::before { content: ""; position: absolute; width: 300px; height: 380px; border-radius: 200px 200px 0 0; border: 1px solid rgba(243,215,155,.25); right: -80px; bottom: -60px; }
.riw-quiz-side::after { content: ""; position: absolute; width: 220px; height: 300px; border-radius: 200px 200px 0 0; background: var(--riw-accent-2); opacity: .18; right: -20px; bottom: -60px; }
.riw-quiz-side__copy { position: relative; z-index: 1; }
.riw-quiz-side .riw-kicker { color: #f3d79b; }
.riw .riw-quiz-side__title { font-family: var(--riw-font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 1rem 0; line-height: 1; }
.riw-quiz-side__text { color: #c9bfb1; font-size: .92rem; }
.riw-qsteps { display: flex; gap: 6px; margin-top: 2rem; position: relative; z-index: 1; }
.riw-qsteps i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.riw-qsteps i::after { content: ""; display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--riw-accent-2), #f3d79b); transition: width .6s var(--riw-ease); }
.riw-qsteps i.is-done::after { width: 100%; }
.riw-quiz-main { border-radius: var(--riw-radius); padding: clamp(22px, 3vw, 36px); background: var(--riw-card); border: 1px solid var(--riw-line); min-height: 460px; display: flex; flex-direction: column; }
.riw-quiz-q { display: flex; flex-direction: column; flex: 1; }
.riw-quiz-main h4 { font-family: var(--riw-font-display); font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.riw-quiz-main h4 small { font-family: var(--riw-font); font-size: .78rem; color: var(--riw-muted); font-weight: 400; white-space: nowrap; }
.riw-qopts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; }
.riw-qopt { position: relative; border: 0; border-radius: 18px; overflow: hidden; min-height: 220px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; padding: .9rem; color: #fff; isolation: isolate; cursor: pointer; background: none; transition: transform .4s var(--riw-ease), box-shadow .4s; }
.riw-qopt:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(28,23,18,.6); }
.riw-qopt__bg { position: absolute; inset: 0; z-index: -2; }
.riw-qopt__bg img { width: 100%; height: 100%; object-fit: cover; }
.riw-qopt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgba(28,23,18,.75)); }
.riw-qopt b { font-family: var(--riw-font-display); font-size: 1rem; line-height: 1.1; }
.riw-qopt small { font-size: .72rem; opacity: .85; }
.riw-qopt--pal { color: var(--riw-ink); padding: 0; justify-content: stretch; border: 1px solid var(--riw-line); }
.riw-qopt--pal::after { display: none; }
.riw-qopt__strip { flex: 1; display: flex; flex-direction: column; }
.riw-qopt__strip i { flex: 1; }
.riw-qopt--pal b { display: block; padding: .8rem .9rem; background: var(--riw-card); font-size: .9rem; }
.riw-quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.2rem; font-size: .82rem; color: var(--riw-muted); }
.riw-quiz-nav button { color: var(--riw-text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.riw-result { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex: 1; animation: riw-swap .7s var(--riw-ease); }
.riw-result__img { border-radius: 200px 200px 20px 20px; min-height: 320px; overflow: hidden; }
.riw-result__img img { width: 100%; height: 100%; object-fit: cover; }
.riw-result__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.riw-result h5 { font-family: var(--riw-font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1; margin: .6rem 0 1rem; }
.riw-result p { color: var(--riw-muted); font-size: .92rem; }
.riw-palette { display: flex; gap: 8px; margin: 1.3rem 0; }
.riw-palette i { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.riw-result p.riw-result__mats { font-size: .84rem; margin-bottom: 1.4rem; color: var(--riw-text); }
.riw-result__mats b { color: var(--riw-accent); }
.riw-swap { animation: riw-swap .6s var(--riw-ease); }
@keyframes riw-swap { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.riw-quiz-fallback { color: var(--riw-muted); }

@media (max-width: 1100px) {
	.riw-quiz { grid-template-columns: 1fr; }
	.riw-qopts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	.riw-result { grid-template-columns: 1fr; }
	.riw-result__img { min-height: 240px; }
	.riw-qopt { min-height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
	.riw-swap, .riw-result { animation: none; }
	.riw-qopt, .riw-qsteps i::after { transition: none; }
}
