/**
 * Lenzzberry — "Find My Color" quiz modal (cute K-beauty).
 * Pairs with inc/color-quiz.php + assets/js/color-quiz.js.
 */

.lenzz-quiz[hidden] { display: none; }

.lenzz-quiz {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.lenzz-quiz-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(46, 42, 51, 0.5);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.lenzz-quiz-panel {
	position: relative;
	background: #FFFFFF;
	border-radius: 26px;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	padding: 30px 24px 26px;
	box-shadow: 0 30px 60px -20px rgba(46, 42, 51, 0.5);
	animation: lenzz-quiz-pop 0.28s ease;
}
@keyframes lenzz-quiz-pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.lenzz-quiz-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: 0;
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
	color: var(--wp--preset--color--muted);
	transition: color 150ms ease;
}
.lenzz-quiz-close:hover { color: var(--wp--preset--color--ink); }

.lenzz-quiz-progress {
	height: 6px;
	background: var(--wp--preset--color--cream);
	border-radius: 999px;
	overflow: hidden;
	margin: 4px 0 22px;
}
.lenzz-quiz-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--wp--preset--color--brand), var(--wp--preset--color--brand-dark));
	border-radius: 999px;
	transition: width 0.35s ease;
}

.lenzz-quiz-step { display: none; }
.lenzz-quiz-step.is-active { display: block; animation: lenzz-quiz-fade 0.3s ease; }
@keyframes lenzz-quiz-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.lenzz-quiz-eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand-dark);
	font-weight: 600;
}

.lenzz-quiz-q {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	margin: 0.4rem 0 0;
	line-height: 1.2;
}
.lenzz-quiz-sub { color: var(--wp--preset--color--muted); font-size: 0.9rem; margin: 0.4rem 0 0; }

.lenzz-quiz-options { display: grid; gap: 10px; margin-top: 18px; }
.lenzz-quiz-opt {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.85rem 1.1rem;
	background: var(--wp--preset--color--cream);
	border: 1.5px solid transparent;
	border-radius: 16px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.98rem;
	font-weight: 500;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease;
}
.lenzz-quiz-opt:hover {
	background: var(--wp--preset--color--brand-light);
	border-color: var(--wp--preset--color--brand);
	transform: translateY(-1px);
}
.lenzz-quiz-opt.is-picked { background: var(--wp--preset--color--brand); color: #FFFFFF; border-color: var(--wp--preset--color--brand); }

.lenzz-quiz-emailform { margin-top: 18px; }
.lenzz-quiz-input {
	width: 100%;
	padding: 0.85rem 1.1rem;
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 14px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.98rem;
	margin-bottom: 10px;
}
.lenzz-quiz-input:focus { border-color: var(--wp--preset--color--brand); box-shadow: 0 0 0 3px rgba(255, 111, 145, 0.16); outline: none; }

.lenzz-quiz-reveal {
	width: 100%;
	justify-content: center;
	background: var(--wp--preset--color--brand) !important;
	color: #FFFFFF !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 0.9rem 1.2rem !important;
	font-weight: 600;
	cursor: pointer;
}
.lenzz-quiz-reveal:hover { background: var(--wp--preset--color--brand-dark) !important; }
.lenzz-quiz-reveal[disabled] { opacity: 0.7; cursor: progress; }

.lenzz-quiz-feedback { margin: 0.6rem 0 0; font-size: 0.82rem; min-height: 1em; color: #C0392B; text-align: center; }

/* Results */
.lenzz-quiz-results .lenzz-quiz-result-hero { text-align: center; margin-bottom: 4px; }
.lenzz-quiz-coupon {
	margin: 14px 0 18px;
	padding: 14px;
	text-align: center;
	background: var(--wp--preset--color--cream);
	border: 1.5px dashed var(--wp--preset--color--brand);
	border-radius: 16px;
	font-size: 0.9rem;
	color: var(--wp--preset--color--ink);
}
.lenzz-quiz-coupon strong {
	display: inline-block;
	margin: 0.2rem 0;
	font-size: 1.15rem;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--brand-dark);
	font-family: var(--wp--preset--font-family--heading);
}
.lenzz-quiz-results .lenzz-products { margin-top: 6px; }
.lenzz-quiz-results ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.lenzz-quiz-shopall { text-align: center; margin-top: 16px; }

/* Trigger button (shortcode) */
.lenzz-quiz-trigger { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
	.lenzz-quiz-panel, .lenzz-quiz-step { animation: none; }
	.lenzz-quiz-progress span { transition: none; }
}

/* "Send my code on WhatsApp" button (results) */
.lenzz-quiz-wa-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	margin: 0 0 16px;
	padding: 0.85rem 1.2rem;
	background: #25D366;
	color: #FFFFFF;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.15s ease;
}
.lenzz-quiz-wa-btn:hover { filter: brightness(0.95); color: #FFFFFF; }
