/* =========================================================
   THE RISING DOUGH — REVIEW PAGE
   Uses the variables and typography already defined in styles.css
   ========================================================= */
:root {
	--cream: #f8efdf;
	--paper: #fff8eb;
	--ink: #2b170f;
	--orange: #d64b29;
	--yellow: #f0b52b;
	--green: #173a34;
	--muted: #705b50;
	--line: rgba(43, 23, 15, 0.15);
}

.review-page {
	min-height: 100vh;
}

.review-page .navlinks .active {
	color: var(--orange);
}

.review-page .navlinks .active::after {
	width: 100%;
}

.review-hero {
	position: relative;
	overflow: hidden;
	background: var(--cream);
	border-bottom: 2px solid var(--ink);
	padding: 94px 0 72px;
}

.review-heading {
	text-align: center;
	max-width: 900px;
	position: relative;
	z-index: 2;
}

.review-heading .eyebrow {
	margin-bottom: 18px;
}

.review-heading h1 {
	font-size: clamp(72px, 8.5vw, 132px);
	line-height: 0.82;
	margin: 0;
}

.review-heading h1 span {
	color: var(--orange);
}

.review-heading p {
	max-width: 620px;
	margin: 30px auto 0;
	font-size: 17px;
	line-height: 1.7;
	color: var(--muted);
}

.review-spark {
	position: absolute;
	color: var(--yellow);
	font-size: clamp(50px, 8vw, 110px);
	line-height: 1;
	opacity: 0.8;
	animation: reviewSpark 6s ease-in-out infinite;
}

.review-spark-one {
	left: 7%;
	top: 22%;
	transform: rotate(-12deg);
}

.review-spark-two {
	right: 8%;
	bottom: 12%;
	color: var(--orange);
	font-size: clamp(34px, 5vw, 70px);
	animation-delay: -2s;
}

@keyframes reviewSpark {
	0%,
	100% {
		transform: rotate(-12deg) scale(1);
	}
	50% {
		transform: rotate(4deg) scale(1.1);
	}
}

.review-section {
	background: var(--paper);
	padding: 82px 0 96px;
}

.review-layout {
	max-width: 1160px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 0.72fr 1.28fr;
	gap: 62px;
	align-items: start;
}

.review-side {
	position: sticky;
	top: 140px;
	padding-top: 14px;
}

.review-side-number {
	width: 58px;
	height: 58px;
	border: 2px solid var(--ink);
	background: var(--yellow);
	display: grid;
	place-items: center;
	font-family: Anton, sans-serif;
	font-size: 22px;
	margin-bottom: 28px;
	transform: rotate(-4deg);
	box-shadow: 5px 5px 0 var(--ink);
}

.review-side h2 {
	font-size: clamp(42px, 4.3vw, 64px);
	line-height: 0.92;
	margin: 0 0 22px;
}

.review-side > p {
	color: var(--muted);
	font-size: 15px;
	line-height: 1.7;
	max-width: 360px;
}

.review-note {
	margin-top: 34px;
	padding-top: 24px;
	border-top: 2px dashed rgba(43, 23, 15, 0.22);
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 360px;
}

.review-note-icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--orange);
	color: var(--cream);
	font-size: 18px;
	flex: 0 0 auto;
}

.review-note strong,
.review-note small {
	display: block;
}

.review-note strong {
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	font-size: 17px;
}

.review-note small {
	color: var(--muted);
	margin-top: 3px;
	line-height: 1.4;
}

.review-card {
	position: relative;
	background: var(--cream);
	border: 2px solid var(--ink);
	border-radius: 18px;
	padding: clamp(28px, 4vw, 52px);
	box-shadow: 12px 12px 0 rgba(43, 23, 15, 0.08);
}

.review-card::before {
	content: "YOUR REVIEW";
	position: absolute;
	right: 28px;
	top: -15px;
	background: var(--green);
	color: var(--cream);
	border: 2px solid var(--ink);
	padding: 7px 14px;
	font-family: Anton, sans-serif;
	letter-spacing: 0.06em;
	font-size: 12px;
	transform: rotate(2deg);
}

.form-field {
	margin: 0 0 30px;
	padding: 0;
	border: 0;
}

.form-field label,
.form-field legend {
	display: block;
	font-family: Anton, sans-serif;
	text-transform: uppercase;
	font-size: 18px;
	letter-spacing: 0.015em;
	margin-bottom: 11px;
}

.form-field label span,
.form-field legend span {
	color: var(--orange);
}

.form-field label em {
	font-family: Inter, sans-serif;
	font-size: 11px;
	font-style: normal;
	font-weight: 800;
	color: var(--muted);
	letter-spacing: 0.08em;
	margin-left: 7px;
}

.review-card input,
.review-card select,
.review-card textarea {
	width: 100%;
	border: 2px solid rgba(43, 23, 15, 0.72);
	border-radius: 8px;
	background: var(--paper);
	color: var(--ink);
	font:
		600 15px/1.4 Inter,
		sans-serif;
	outline: none;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.review-card input,
.review-card select {
	height: 58px;
	padding: 0 17px;
}

.review-card textarea {
	min-height: 165px;
	resize: vertical;
	padding: 16px 17px;
}

.review-card input::placeholder,
.review-card textarea::placeholder {
	color: #9a887d;
	font-weight: 400;
}

.review-card input:focus,
.review-card select:focus,
.review-card textarea:focus {
	border-color: var(--orange);
	box-shadow: 4px 4px 0 rgba(214, 75, 41, 0.16);
}

.select-wrap {
	position: relative;
}

.select-wrap::after {
	content: "↓";
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	font-family: Anton, sans-serif;
	font-size: 18px;
}

.review-card select {
	appearance: none;
	cursor: pointer;
	padding-right: 48px;
}

.other-product-wrap {
	display: none;
	margin-top: 12px;
}

.other-product-wrap.show {
	display: block;
}

.label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 18px;
}

.label-row small {
	color: var(--muted);
	font-weight: 700;
	font-size: 11px;
}

.rating-field {
	padding: 2px 0 3px;
}

.star-rating {
	display: flex;
	gap: 7px;
	width: fit-content;
}

.star {
	border: 0;
	background: transparent;
	color: #d8c7aa;
	font-size: clamp(37px, 4vw, 48px);
	line-height: 1;
	padding: 0 2px;
	cursor: pointer;
	-webkit-text-stroke: 1.5px var(--ink);
	transition:
		color 0.15s ease,
		transform 0.15s ease;
}

.star:hover,
.star:focus-visible {
	transform: translateY(-3px) rotate(-4deg);
	outline: none;
}

.star.active {
	color: var(--yellow);
}

.rating-copy {
	min-height: 20px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	margin-top: 8px;
}

.field-hint {
	color: var(--muted);
	font-size: 11px;
	line-height: 1.5;
	margin: 8px 2px 0;
}

.field-error {
	display: block;
	min-height: 0;
	color: var(--orange);
	font-size: 11px;
	font-weight: 800;
	margin: 7px 2px 0;
}

.review-submit {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
	border-radius: 0;
	border: 2px solid var(--ink);
	background: var(--yellow);
	color: var(--ink);
	padding: 16px 18px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.review-submit span:last-child {
	font-size: 26px;
	line-height: 1;
}

.form-status {
	min-height: 18px;
	margin: 14px 0 0;
	text-align: center;
	color: var(--muted);
	font-size: 12px;
}

.review-success {
	text-align: center;
	padding: 46px 10px 34px;
}

.success-mark {
	width: 78px;
	height: 78px;
	border-radius: 50%;
	background: var(--yellow);
	border: 2px solid var(--ink);
	display: grid;
	place-items: center;
	margin: 0 auto 28px;
	font-family: Anton, sans-serif;
	font-size: 38px;
	box-shadow: 6px 6px 0 var(--ink);
}

.review-success h2 {
	font-size: clamp(58px, 7vw, 88px);
	margin: 0 0 18px;
	color: var(--orange);
}

.review-success p {
	max-width: 470px;
	margin: 0 auto 28px;
	color: var(--muted);
	line-height: 1.7;
}

.review-success .button {
	display: inline-block;
}

.review-marquee {
	border-top: 0;
}

.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (max-width: 900px) {
	.review-layout {
		grid-template-columns: 1fr;
		gap: 42px;
		max-width: 700px;
	}

	.review-side {
		position: static;
		text-align: center;
	}

	.review-side-number,
	.review-note {
		margin-left: auto;
		margin-right: auto;
	}

	.review-side > p {
		margin-left: auto;
		margin-right: auto;
	}

	.review-note {
		text-align: left;
	}
}

@media (max-width: 760px) {
	header {
		display: none;
	}

	.review-hero {
		padding: 74px 0 56px;
	}

	.review-heading h1 {
		font-size: clamp(62px, 18vw, 92px);
	}

	.review-heading p {
		font-size: 15px;
		max-width: 520px;
	}

	.review-section {
		padding: 54px 0 70px;
	}

	.review-card {
		padding: 34px 22px 28px;
		border-radius: 12px;
		box-shadow: 7px 7px 0 rgba(43, 23, 15, 0.08);
	}

	.review-card::before {
		right: 16px;
	}

	.review-card input,
	.review-card select {
		height: 50px;
		padding: 0 14px;
		font-size: 14px;
	}

	.review-card textarea {
		min-height: 140px;
		padding: 14px 14px;
		font-size: 14px;
	}

	.form-field label,
	.form-field legend {
		font-size: 16px;
	}

	.star-rating {
		gap: 3px;
	}

	.star {
		font-size: 40px;
	}
}

@media (max-width: 480px) {
	.review-heading h1 {
		font-size: 59px;
	}

	.review-spark {
		opacity: 0.35;
	}

	.review-side h2 {
		font-size: 44px;
	}

	.review-card {
		padding-inline: 18px;
	}

	.review-card input,
	.review-card select {
		height: 46px;
		padding: 0 12px;
		font-size: 13px;
	}

	.review-card textarea {
		min-height: 120px;
		padding: 12px 12px;
		font-size: 13px;
	}

	.form-field label,
	.form-field legend {
		font-size: 15px;
	}

	.star {
		font-size: 36px;
		padding-inline: 0;
	}
}
