/* YUMMY5 Quiz — frontend styles. Mobile-first, minimal, brand: navy #0B1526 + olive #A8B62D. */

.yq-quiz {
	max-width: 640px;
	margin: 0 auto;
	padding: 16px;
	color: #0B1526;
	font-size: 16px;
	line-height: 1.5;
}

.yq-unavailable {
	max-width: 640px;
	margin: 0 auto;
	padding: 24px;
	border: 1px solid #dfe3e8;
	border-radius: 12px;
	background: #fff;
}

.yq-error {
	background: #fdecec;
	border: 1px solid #f5c2c2;
	color: #8f1d1d;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 16px;
}

.yq-progress {
	height: 8px;
	background: #e8ebef;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 24px;
}

.yq-progress-fill {
	height: 100%;
	background: #A8B62D;
	border-radius: 999px;
	transition: width .3s ease;
}

.yq-step { display: none; }
.yq-step.yq-active { display: block; }

.yq-title {
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 8px;
	color: #0B1526;
}

.yq-sub {
	color: #5a6472;
	margin: 0 0 20px;
}

.yq-field { display: block; margin-bottom: 16px; }

.yq-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.yq-optional { font-weight: 400; color: #8a93a0; font-style: normal; }

.yq-input {
	width: 100%;
	max-width: 320px;
	padding: 12px 14px;
	font-size: 17px;
	border: 2px solid #d7dce2;
	border-radius: 10px;
	background: #fff;
	color: #0B1526;
	box-sizing: border-box;
}

.yq-input:focus {
	outline: none;
	border-color: #A8B62D;
}

.yq-hint {
	color: #a33;
	font-size: 14px;
	margin: 8px 0 0;
}

.yq-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 8px;
}

.yq-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 84px;
	padding: 14px;
	border: 2px solid #d7dce2;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	text-align: center;
	transition: border-color .15s ease, background .15s ease;
}

.yq-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.yq-card-text {
	font-weight: 600;
	font-size: 16px;
}

.yq-card:has(input:checked) {
	border-color: #A8B62D;
	background: #f6f8e4;
}

.yq-card:has(input:focus-visible) {
	outline: 2px solid #A8B62D;
	outline-offset: 2px;
}

.yq-cards-plans .yq-plan {
	flex-direction: column;
	gap: 4px;
	min-height: 96px;
}

.yq-plan-size { font-weight: 700; font-size: 18px; }
.yq-plan-total { color: #5a6472; font-size: 15px; }
.yq-plan-total small { font-size: 12px; }

.yq-avoid-title {
	font-size: 18px;
	margin: 24px 0 4px;
	color: #0B1526;
}

.yq-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
}

.yq-chip { position: relative; display: inline-flex; cursor: pointer; }

.yq-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.yq-chip-text {
	display: inline-block;
	padding: 9px 16px;
	border: 2px solid #d7dce2;
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: border-color .15s ease, background .15s ease;
}

.yq-chip:has(input:checked) .yq-chip-text {
	border-color: #A8B62D;
	background: #0B1526;
	color: #fff;
}

.yq-summary {
	border: 2px solid #e8ebef;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
	background: #fafbfc;
}

.yq-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid #eef1f4;
	font-size: 15px;
}

.yq-summary-row:last-child { border-bottom: none; }
.yq-summary-row dt { color: #5a6472; }
.yq-summary-row dd { margin: 0; font-weight: 600; text-align: right; }

.yq-discount-note {
	background: #f6f8e4;
	border: 1px solid #A8B62D;
	border-radius: 10px;
	padding: 12px 16px;
	margin: 0 0 16px;
	font-size: 15px;
}

.yq-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
}

.yq-btn {
	background: #A8B62D;
	color: #0B1526;
	border: none;
	border-radius: 10px;
	padding: 14px 28px;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.yq-btn:hover { filter: brightness(.96); }

.yq-link {
	background: none;
	border: none;
	color: #5a6472;
	font-size: 16px;
	cursor: pointer;
	text-decoration: underline;
	padding: 14px 8px;
}

@media (max-width: 480px) {
	.yq-cards { grid-template-columns: 1fr; }
	.yq-nav { flex-direction: column-reverse; align-items: stretch; }
	.yq-btn { width: 100%; }
	.yq-link { text-align: center; }
}
