/* =========================================================================
   QUIZ MODAL
   ========================================================================= */
.quiz-overlay {
	position: fixed; inset: 0; z-index: 70;
	background: rgba(28, 25, 23, 0.75);
	backdrop-filter: blur(2px);
}
.quiz-overlay[hidden] { display: none; }

.quiz-modal {
	position: fixed; inset: 0; z-index: 71;
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
	overflow-y: auto;
}
.quiz-modal[hidden] { display: none; }

.quiz-modal-inner {
	background: #fff;
	border-radius: 24px;
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.quiz-modal-header {
	background: linear-gradient(to right, #e11d48, #be123c, #db2777);
	color: #fff;
	padding: 18px 22px;
	display: flex; align-items: center; justify-content: space-between;
	border-radius: 24px 24px 0 0;
	position: sticky; top: 0; z-index: 2;
}
.quiz-modal-header-text h3 {
	font-family: var(--font-serif);
	font-size: 18px; font-weight: 600; margin: 0 0 2px;
}
.quiz-modal-header-text p { font-size: 12px; color: #fecdd3; margin: 0; }

.quiz-close {
	width: 34px; height: 34px; border-radius: 9999px; border: none;
	background: rgba(255, 255, 255, 0.15); color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.quiz-close:hover { background: rgba(255, 255, 255, 0.28); }
.quiz-close svg { width: 18px; height: 18px; }

.quiz-modal-body { padding: 24px; }
@media (min-width: 640px) { .quiz-modal-body { padding: 32px; } }

.quiz-step[hidden] { display: none; }
.quiz-step-label {
	text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase;
	letter-spacing: 0.06em; color: #be123c; margin-bottom: 4px;
}
.quiz-step-title {
	text-align: center; font-family: var(--font-serif);
	font-size: 20px; font-weight: 600; color: #1c1917; margin: 0 0 22px;
}
@media (min-width: 640px) { .quiz-step-title { font-size: 24px; } }

.quiz-options-grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 640px) { .quiz-options-grid { grid-template-columns: repeat(3, 1fr); } }
.quiz-options-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .quiz-options-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.quiz-option {
	padding: 16px 10px; border-radius: 16px; border: 1px solid #e7e5e4;
	background: #fff; text-align: center; cursor: pointer;
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	transition: all 0.2s ease;
}
.quiz-option:hover { border-color: #fda4af; background: #fff1f2; }
.quiz-option-emoji { font-size: 22px; }
.quiz-option-label { font-size: 13px; font-weight: 600; color: #292524; }

.quiz-options-budget { display: grid; gap: 12px; }
@media (min-width: 640px) { .quiz-options-budget { grid-template-columns: repeat(3, 1fr); } }
.quiz-option-budget { padding: 20px 12px; }
.quiz-option-budget .quiz-option-label {
	font-family: var(--font-serif); font-size: 16px; font-weight: 700;
}
.quiz-option-sub { font-size: 12px; color: #78716c; }

.quiz-back {
	display: block; margin: 18px auto 0; border: none; background: none;
	font-size: 12px; font-weight: 600; color: #78716c; cursor: pointer;
}
.quiz-back:hover { color: #1c1917; }

/* Results */
.quiz-results-header { text-align: center; margin-bottom: 20px; }
.quiz-results-badge {
	display: inline-flex; align-items: center; gap: 6px;
	background: #ffe4e6; color: #9f1239; font-size: 11px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em;
	padding: 6px 14px; border-radius: 9999px; margin-bottom: 10px;
}
.quiz-loading { text-align: center; padding: 40px 0; color: #78716c; font-size: 14px; grid-column: 1 / -1; }

.quiz-results-grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
	min-height: 80px;
}
@media (min-width: 640px) { .quiz-results-grid { grid-template-columns: repeat(3, 1fr); } }

.quiz-result-card {
	display: block; border: 1px solid #e7e5e4; border-radius: 14px; overflow: hidden;
	background: #fafaf9; text-decoration: none;
}
.quiz-result-card:hover { border-color: #fda4af; box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.quiz-result-image { aspect-ratio: 1/1; overflow: hidden; background: #e7e5e4; }
.quiz-result-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quiz-result-body { padding: 10px 12px; }
.quiz-result-title {
	font-family: var(--font-serif); font-size: 13px; font-weight: 700;
	color: #1c1917; margin: 0 0 4px; line-height: 1.3;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.quiz-result-price { font-size: 13px; font-weight: 700; color: #be123c; }
.quiz-result-empty { grid-column: 1 / -1; text-align: center; padding: 30px 10px; color: #78716c; font-size: 13px; }
.quiz-result-relaxed-note {
	grid-column: 1 / -1; text-align: center; padding: 10px 14px; margin-bottom: 4px;
	background: rgba(229, 184, 92, 0.12); border: 1px solid rgba(229, 184, 92, 0.3);
	border-radius: 10px; color: var(--burgundy, #4c0519); font-size: 12px; font-weight: 500;
}

.quiz-results-footer {
	margin-top: 22px; padding-top: 18px; border-top: 1px solid #f5f5f4;
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.quiz-retake {
	border: none; background: none; font-size: 12px; font-weight: 600; color: #57534e; cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
}
.quiz-retake:hover { color: #be123c; }
.quiz-view-all {
	padding: 10px 20px; border-radius: 9999px; background: #1c1917; color: #fff;
	font-size: 12px; font-weight: 700;
}
.quiz-view-all:hover { background: #be123c; color: #fff; }
