/*
 * Expert Driver Review Helper
 * Public page styles. Every selector is scoped to .edtrh-review-page so the
 * plugin can sit safely inside Kadence, Gutenberg or another page builder.
 */

.edtrh-review-page,
.edtrh-review-page * {
	box-sizing: border-box;
}

.edtrh-review-page {
	--edtrh-navy: #071d38;
	--edtrh-navy-2: #0b2c4c;
	--edtrh-ink: #102a47;
	--edtrh-muted: #607386;
	--edtrh-teal: #00c9ad;
	--edtrh-teal-dark: #00aa94;
	--edtrh-teal-pale: #e7fbf7;
	--edtrh-sky: #f2f8fa;
	--edtrh-line: #dce8ec;
	--edtrh-white: #ffffff;
	--edtrh-shadow: 0 18px 50px rgba(7, 29, 56, .11);
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	margin: 0 0 0 -50vw;
	overflow: hidden;
	color: var(--edtrh-ink);
	background: var(--edtrh-sky);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.6;
}

.edtrh-review-page button,
.edtrh-review-page textarea,
.edtrh-review-page input {
	font: inherit;
}

.edtrh-review-page button,
.edtrh-review-page a {
	-webkit-tap-highlight-color: transparent;
}

.edtrh-review-page a {
	text-decoration: none;
}

.edtrh-container {
	position: relative;
	width: min(1180px, calc(100% - 40px));
	margin-inline: auto;
}

.edtrh-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(74px, 9vw, 122px) 0 clamp(84px, 10vw, 132px);
	color: var(--edtrh-white);
	background:
		radial-gradient(circle at 78% 38%, rgba(0, 201, 173, .21), transparent 29%),
		linear-gradient(118deg, #061a33 0%, #092541 52%, #063650 100%);
}

.edtrh-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	opacity: .16;
	background-image:
		linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
	background-size: 52px 52px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
	mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.edtrh-hero::after {
	content: "";
	position: absolute;
	left: -5%;
	right: -5%;
	bottom: -70px;
	height: 120px;
	transform: rotate(-2deg);
	background: var(--edtrh-sky);
}

.edtrh-hero-glow {
	position: absolute;
	z-index: -1;
	border-radius: 999px;
	filter: blur(2px);
	pointer-events: none;
}

.edtrh-hero-glow-one {
	top: -240px;
	right: -160px;
	width: 580px;
	height: 580px;
	border: 1px solid rgba(33, 248, 214, .26);
	box-shadow:
		0 0 0 56px rgba(0, 201, 173, .035),
		0 0 0 114px rgba(0, 201, 173, .025);
}

.edtrh-hero-glow-two {
	left: -180px;
	bottom: -360px;
	width: 540px;
	height: 540px;
	background: rgba(0, 201, 173, .08);
}

.edtrh-hero-inner {
	z-index: 1;
	max-width: 850px;
	text-align: center;
}

.edtrh-eyebrow,
.edtrh-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: #3ce4cc;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .17em;
	line-height: 1.3;
	text-transform: uppercase;
}

.edtrh-eyebrow::before,
.edtrh-eyebrow::after {
	content: "";
	width: 24px;
	height: 1px;
	background: currentColor;
}

.edtrh-stars {
	margin-bottom: 12px;
	color: #ffd76b;
	font-size: 16px;
	letter-spacing: 5px;
	line-height: 1;
}

.edtrh-hero h1,
.edtrh-section-heading h2,
.edtrh-guidance h2,
.edtrh-empty h2 {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-weight: 800;
	letter-spacing: -.035em;
}

.edtrh-hero h1 {
	max-width: 820px;
	margin-inline: auto;
	font-size: clamp(38px, 6vw, 68px);
	line-height: 1.03;
	text-wrap: balance;
}

.edtrh-hero-inner > p {
	max-width: 700px;
	margin: 22px auto 0;
	color: rgba(255, 255, 255, .78);
	font-size: clamp(16px, 1.8vw, 19px);
	line-height: 1.7;
	text-wrap: balance;
}

.edtrh-hero-pills {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-top: 34px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	background: rgba(2, 17, 34, .34);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .17);
	-webkit-backdrop-filter: blur(9px);
	backdrop-filter: blur(9px);
}

.edtrh-hero-pills span {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	color: rgba(255, 255, 255, .88);
	font-size: 13px;
	font-weight: 700;
}

.edtrh-hero-pills span + span {
	border-left: 1px solid rgba(255, 255, 255, .13);
}

.edtrh-hero-pills b {
	display: grid;
	width: 21px;
	height: 21px;
	place-items: center;
	border-radius: 50%;
	color: #002f2a;
	background: var(--edtrh-teal);
	font-size: 11px;
}

.edtrh-main {
	padding: 52px 0 86px;
}

.edtrh-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 30px;
}

.edtrh-section-heading > div {
	max-width: 770px;
}

.edtrh-kicker {
	margin-bottom: 7px;
	color: var(--edtrh-teal-dark);
}

.edtrh-section-heading h2 {
	font-size: clamp(27px, 3.5vw, 42px);
	line-height: 1.16;
	text-wrap: balance;
}

.edtrh-section-heading p {
	margin: 12px 0 0;
	color: var(--edtrh-muted);
	font-size: 16px;
}

.edtrh-refresh {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 10px 17px;
	border: 1px solid #bcd8dc;
	border-radius: 11px;
	color: var(--edtrh-ink);
	background: rgba(255, 255, 255, .8);
	box-shadow: 0 8px 20px rgba(7, 29, 56, .05);
	cursor: pointer;
	font-size: 13px;
	font-weight: 800;
	transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.edtrh-refresh span {
	color: var(--edtrh-teal-dark);
	font-size: 22px;
	line-height: 1;
	transition: transform .35s ease;
}

.edtrh-refresh:hover {
	transform: translateY(-2px);
	border-color: var(--edtrh-teal);
	box-shadow: 0 12px 28px rgba(7, 29, 56, .09);
}

.edtrh-refresh:hover span,
.edtrh-refresh.is-loading span {
	transform: rotate(180deg);
}

.edtrh-refresh:focus-visible,
.edtrh-button:focus-visible,
.edtrh-text-link:focus-visible,
.edtrh-review-card textarea:focus-visible {
	outline: 3px solid rgba(0, 201, 173, .34);
	outline-offset: 3px;
}

.edtrh-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin: 22px 0;
	color: var(--edtrh-muted);
	font-size: 14px;
	font-weight: 700;
}

.edtrh-loading[hidden] {
	display: none;
}

.edtrh-loading span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--edtrh-teal);
	animation: edtrhPulse 1s infinite ease-in-out;
}

.edtrh-loading span:nth-child(2) {
	animation-delay: .12s;
}

.edtrh-loading span:nth-child(3) {
	margin-right: 5px;
	animation-delay: .24s;
}

.edtrh-review-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.edtrh-review-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 430px;
	flex-direction: column;
	padding: clamp(22px, 3vw, 30px);
	overflow: hidden;
	border: 1px solid rgba(148, 176, 188, .31);
	border-radius: 20px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 14px 44px rgba(7, 29, 56, .075);
	animation: edtrhRise .5s both ease-out;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.edtrh-review-card::before {
	content: "“";
	position: absolute;
	top: -25px;
	right: 16px;
	color: rgba(0, 201, 173, .08);
	font-family: Georgia, serif;
	font-size: 145px;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.edtrh-review-card:nth-child(2) { animation-delay: .06s; }
.edtrh-review-card:nth-child(3) { animation-delay: .12s; }
.edtrh-review-card:nth-child(4) { animation-delay: .18s; }
.edtrh-review-card:nth-child(5) { animation-delay: .24s; }

.edtrh-review-card:last-child:nth-child(odd) {
	grid-column: 1 / -1;
	width: calc(50% - 11px);
	justify-self: center;
}

.edtrh-review-card:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 201, 173, .46);
	box-shadow: var(--edtrh-shadow);
}

.edtrh-card-topline {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}

.edtrh-option-number {
	display: grid;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	place-items: center;
	border-radius: 11px;
	color: #003c34;
	background: linear-gradient(135deg, #48ead2, var(--edtrh-teal));
	box-shadow: 0 8px 18px rgba(0, 201, 173, .23);
	font-size: 12px;
	font-weight: 900;
}

.edtrh-card-label {
	color: var(--edtrh-muted);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .13em;
}

.edtrh-mini-stars {
	margin-left: auto;
	color: #f2b93b;
	font-size: 12px;
	letter-spacing: 2px;
}

.edtrh-review-card textarea {
	position: relative;
	z-index: 1;
	width: 100%;
	min-height: 165px;
	resize: vertical;
	padding: 17px 18px;
	border: 1px solid var(--edtrh-line);
	border-radius: 13px;
	outline: none;
	color: var(--edtrh-ink);
	background: #fbfdfd;
	box-shadow: inset 0 1px 2px rgba(7, 29, 56, .025);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.65;
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.edtrh-review-card textarea:hover {
	border-color: #b6cfd5;
}

.edtrh-review-card textarea:focus {
	border-color: var(--edtrh-teal);
	background: var(--edtrh-white);
	box-shadow: 0 0 0 4px rgba(0, 201, 173, .1);
}

.edtrh-editor-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	color: #778999;
	font-size: 11px;
	font-weight: 700;
}

.edtrh-editor-meta span:first-child {
	color: #087b69;
}

.edtrh-review-card.is-personalised .edtrh-editor-meta span:first-child {
	color: #087b69;
}

.edtrh-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 19px;
	border: 0;
	border-radius: 11px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 850;
	line-height: 1.2;
	text-align: center;
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, filter .2s ease;
}

.edtrh-button-primary {
	color: #002f2a !important;
	background: linear-gradient(100deg, #00bda6 0%, #20dfc3 100%);
	box-shadow: 0 10px 25px rgba(0, 201, 173, .24);
}

.edtrh-review-card .edtrh-button {
	width: 100%;
	margin-top: auto;
}

.edtrh-button:hover:not(:disabled) {
	transform: translateY(-2px);
	filter: saturate(1.08);
	box-shadow: 0 14px 29px rgba(0, 201, 173, .32);
}

.edtrh-button:disabled {
	cursor: not-allowed;
	opacity: .42;
	box-shadow: none;
}

.edtrh-copy-icon {
	font-size: 14px;
	line-height: 1;
}

.edtrh-button-arrow {
	margin-left: auto;
	font-size: 18px;
	line-height: 1;
	transition: transform .2s ease;
}

.edtrh-button:hover:not(:disabled) .edtrh-button-arrow {
	transform: translateX(3px);
}

.edtrh-empty {
	padding: 48px 30px;
	border: 1px solid var(--edtrh-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--edtrh-shadow);
	text-align: center;
}

.edtrh-empty h2 {
	font-size: 29px;
}

.edtrh-empty p {
	margin: 10px 0 22px;
	color: var(--edtrh-muted);
}

.edtrh-guidance {
	position: relative;
	margin-top: 38px;
	padding: clamp(24px, 4vw, 42px);
	overflow: hidden;
	border-radius: 22px;
	color: #fff;
	background:
		radial-gradient(circle at 87% 0%, rgba(0, 201, 173, .22), transparent 30%),
		linear-gradient(125deg, var(--edtrh-navy), var(--edtrh-navy-2));
	box-shadow: 0 22px 52px rgba(7, 29, 56, .17);
}

.edtrh-guidance::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -120px;
	width: 330px;
	height: 330px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: 50%;
	box-shadow: 0 0 0 38px rgba(255, 255, 255, .025), 0 0 0 78px rgba(255, 255, 255, .018);
	pointer-events: none;
}

.edtrh-guidance-intro {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	max-width: 850px;
}

.edtrh-guidance-icon {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 14px;
	color: #033e36;
	background: var(--edtrh-teal);
	box-shadow: 0 9px 24px rgba(0, 201, 173, .21);
	font-size: 22px;
	font-weight: 900;
}

.edtrh-guidance h2 {
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.2;
}

.edtrh-guidance-intro p {
	margin: 8px 0 0;
	color: rgba(255, 255, 255, .7);
	font-size: 14px;
}

.edtrh-tip-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 26px;
}

.edtrh-tip-grid > div {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 13px;
	background: rgba(255, 255, 255, .055);
}

.edtrh-tip-grid b {
	color: var(--edtrh-teal);
	font-size: 11px;
	letter-spacing: .08em;
}

.edtrh-tip-grid span {
	display: flex;
	flex-direction: column;
	color: rgba(255, 255, 255, .61);
	font-size: 11px;
	line-height: 1.5;
}

.edtrh-tip-grid strong {
	margin-bottom: 3px;
	color: #fff;
	font-size: 13px;
}

.edtrh-text-link {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 23px;
	padding-bottom: 3px;
	border-bottom: 1px solid rgba(0, 201, 173, .5);
	color: #53ebd4 !important;
	font-size: 13px;
	font-weight: 800;
}

.edtrh-text-link:hover {
	color: #fff !important;
	border-color: #fff;
}

.edtrh-toast {
	position: fixed;
	z-index: 999999;
	right: 22px;
	bottom: 22px;
	max-width: min(390px, calc(100vw - 40px));
	padding: 14px 18px;
	transform: translateY(25px);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 12px;
	opacity: 0;
	visibility: hidden;
	color: #fff;
	background: var(--edtrh-navy);
	box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
	font-size: 13px;
	font-weight: 750;
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.edtrh-toast.is-visible {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.edtrh-toast.is-error {
	background: #842029;
}

.edtrh-screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@keyframes edtrhPulse {
	0%, 100% { transform: scale(.7); opacity: .4; }
	50% { transform: scale(1); opacity: 1; }
}

@keyframes edtrhRise {
	from { transform: translateY(16px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 840px) {
	.edtrh-section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
	}

	.edtrh-tip-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.edtrh-container {
		width: min(100% - 28px, 1180px);
	}

	.edtrh-hero {
		padding: 62px 0 88px;
	}

	.edtrh-hero h1 {
		font-size: clamp(35px, 11vw, 48px);
	}

	.edtrh-hero-inner > p {
		font-size: 15px;
	}

	.edtrh-hero-pills {
		display: grid;
		width: min(100%, 350px);
		grid-template-columns: repeat(3, 1fr);
		border-radius: 16px;
	}

	.edtrh-hero-pills span {
		flex-direction: column;
		gap: 5px;
		padding: 10px 5px;
		font-size: 10px;
	}

	.edtrh-main {
		padding: 39px 0 62px;
	}

	.edtrh-section-heading h2 {
		font-size: 30px;
	}

	.edtrh-review-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.edtrh-review-card,
	.edtrh-review-card:last-child:nth-child(odd) {
		grid-column: auto;
		width: 100%;
		min-height: 0;
	}

	.edtrh-guidance-intro {
		flex-direction: column;
	}

	.edtrh-toast {
		right: 14px;
		bottom: 14px;
		max-width: calc(100vw - 28px);
	}
}

@media (max-width: 430px) {
	.edtrh-hero {
		padding-top: 52px;
	}

	.edtrh-hero h1 {
		font-size: 36px;
	}

	.edtrh-eyebrow {
		font-size: 10px;
		letter-spacing: .12em;
	}

	.edtrh-eyebrow::before,
	.edtrh-eyebrow::after {
		width: 14px;
	}

	.edtrh-refresh {
		width: 100%;
	}

	.edtrh-review-card {
		padding: 20px 17px;
		border-radius: 16px;
	}

	.edtrh-card-label {
		letter-spacing: .08em;
	}

	.edtrh-mini-stars {
		font-size: 10px;
		letter-spacing: 1px;
	}

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

	.edtrh-editor-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 2px;
	}

	.edtrh-guidance {
		padding: 24px 19px;
		border-radius: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.edtrh-review-page *,
	.edtrh-review-page *::before,
	.edtrh-review-page *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

