/*
 * ALL SERVICE - homepage Testimonials block.
 *
 * One horizontal component:  [ rating / CTA panel ] [ testimonials carousel ]
 *   desktop  (>1200px) panel (27%) | carousel (73%), 2 cards per page
 *   tablet   (768-1200) compact horizontal panel above the carousel, 2 cards per page
 *   mobile   (<=767)    compact panel, then ONE card per page, then the carousel controls
 *
 * Card, border, shadow and button tokens are reused from the homepage service-card / ratings
 * blocks (allservice-service-categories, allservice-platform-ratings) so the block looks native:
 * #009CD8 buttons with the site's asymmetric corner, #003F63 headings, #d6e0e6 borders.
 *
 * The carousel is a native scroll-snap scroller (touch swipe, trackpad and keyboard work without
 * JS); testimonials.js only adds arrows, dots and keyboard paging. --astm-pv (cards per page) is
 * set here per breakpoint and read by the script.
 */
.astm,
.astm-modal {
	--astm-navy: #003F63;
	--astm-cyan: #009CD8;
	--astm-gold: #FFA600;
	--astm-text: #333333;
	--astm-muted: #4f5d68;
	--astm-faint: #5b6a76;
	--astm-line: #d6e0e6;
	--astm-err: #c0392b;
}

.astm {
	--astm-pv: 2;
	--astm-gap: 24px;
	--astm-edge: 10px;   /* scroller side padding: gap - blur(14px) of a neighbour's shadow = 10px, so nothing of it shows */
	position: relative;
	width: 100%;
	margin: 0 auto;
	color: var(--astm-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.astm,
.astm *,
.astm *::before,
.astm *::after,
.astm-modal,
.astm-modal *,
.astm-modal *::before,
.astm-modal *::after {
	box-sizing: border-box;
}

.astm [hidden],
.astm-modal [hidden] {
	display: none !important;
}

/* The Elementor widget wrapper: the block owns its vertical rhythm (heading above, platform cards below). */
.elementor-widget.astm-widget:not(:last-child) {
	margin-block-end: 48px;
}

/* ---------- stars (grey track + gold fill clipped to --astm-fill) ---------- */
.astm .astm__stars {
	--astm-star: 18px;
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: calc(var(--astm-star) * 5);
	height: var(--astm-star);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D3DCE3' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / var(--astm-star) var(--astm-star) repeat-x;
}

.astm .astm__stars::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: var(--astm-fill, 100%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFA600' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / var(--astm-star) var(--astm-star) repeat-x;
}

/* ---------- layout ---------- */
.astm__grid {
	display: grid;
	grid-template-columns: minmax(0, 27fr) minmax(0, 73fr);
	column-gap: 28px;
	row-gap: 24px;
	align-items: stretch;
}

/* ---------- rating / CTA panel ---------- */
.astm .astm__panel {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 28px 24px 24px;
	text-align: center;
	background: linear-gradient(180deg, #fcfdfe 0%, #eaf1f5 100%);
	border: 1px solid var(--astm-line);
	border-radius: 16px;
	box-shadow: 0 4px 14px rgba(0, 40, 80, 0.11);
}

.astm .astm__rating {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.astm .astm__score {
	display: block;
	font-size: 64px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: -2px;
	color: var(--astm-navy);
}

.astm .astm__stars--lg {
	--astm-star: 28px;
	margin-top: 10px;
}

.astm .astm__count {
	display: block;
	margin-top: 8px;
	font-size: 15px;
	line-height: 1.35;
	color: var(--astm-muted);
}

/* Buttons share the site's button geometry: #009CD8 fill, bold uppercase label, asymmetric corner. */
.astm .astm__cta,
.astm-modal .astm-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	max-width: 100%;
	margin: 0;
	padding: 15px 20px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: 1.3px;
	white-space: nowrap;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	color: #ffffff;
	background: var(--astm-cyan);
	border: 0;
	border-radius: 0 20px 0 20px;
	box-shadow: 0 4px 14px rgba(0, 156, 216, 0.32);
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	-webkit-tap-highlight-color: rgba(0, 156, 216, 0.15);
}

.astm .astm__cta {
	align-self: stretch;
	margin-top: 20px;
}

.astm .astm__cta .astm__arrow-ico {
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.astm .astm__cta:active,
.astm-modal .astm-btn:active {
	background: var(--astm-navy);
	color: #ffffff;
}

.astm .astm__cta:focus-visible,
.astm-modal .astm-btn:focus-visible {
	outline: 2px solid var(--astm-cyan);
	outline-offset: 3px;
	background: var(--astm-navy);
	color: #ffffff;
}

@media (hover: hover) {
	.astm .astm__cta:hover,
	.astm-modal .astm-btn:hover {
		background: var(--astm-navy);
		color: #ffffff;
		box-shadow: 0 6px 16px rgba(0, 63, 99, 0.35);
		transform: translateY(-1px);
	}
	.astm .astm__cta:hover .astm__arrow-ico {
		transform: translateX(3px);
	}
}

.astm .astm__trust {
	width: 100%;
	display: grid;
	gap: 9px;
	margin: 20px 0 0;
	padding: 18px 0 0;
	list-style: none;
	text-align: left;
	border-top: 1px solid var(--astm-line);
}

.astm .astm__trust li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 13.5px;
	line-height: 1.35;
	color: var(--astm-muted);
}

.astm .astm__trust li::marker {
	content: "";
}

.astm .astm__check {
	flex: 0 0 auto;
}

/* ---------- carousel track (native scroll-snap) ---------- */
.astm .astm__track {
	grid-column: 2;
	grid-row: 1;
	position: relative;
	display: flex;
	align-items: stretch;
	gap: var(--astm-gap);
	min-width: 0;
	/* Padding + equal negative margin leave room for the card shadows inside the scroller
	   without moving the cards off the column edges. */
	margin: -8px calc(var(--astm-edge) * -1) -20px;
	padding: 8px var(--astm-edge) 20px;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--astm-edge);
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}

.astm .astm__track::-webkit-scrollbar {
	display: none;
}

.astm .astm__track:focus-visible {
	outline: 2px solid var(--astm-cyan);
	outline-offset: -4px;
	border-radius: 20px;
}

.astm .astm__slide {
	flex: 0 0 calc((100% - (var(--astm-pv) - 1) * var(--astm-gap)) / var(--astm-pv));
	min-width: 0;
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	scroll-snap-align: none;
	container: astm-card / inline-size;
}

.astm .astm__slide::marker {
	content: "";
}

/* Two cards per page: snap on every first card of a page. */
.astm .astm__slide:nth-child(odd) {
	scroll-snap-align: start;
}

/* ---------- testimonial card ---------- */
.astm .astm__card {
	flex: 1 1 auto;
	min-width: 0;
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto;
	grid-template-areas:
		"av meta date"
		"stars stars stars"
		"text text text";
	grid-template-rows: auto auto 1fr;
	column-gap: 14px;
	row-gap: 14px;
	margin: 0;
	padding: 26px 28px 28px;
	background: #ffffff;
	border: 1px solid var(--astm-line);
	border-radius: 16px;
	box-shadow: 0 4px 14px rgba(0, 40, 80, 0.09);
}

.astm .astm__avatar {
	grid-area: av;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	font-size: 16px;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: #00779f;
	background: #e6f4fa;
	border: 1px solid #cde6f1;
	border-radius: 50%;
}

.astm .astm__meta {
	grid-area: meta;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.astm .astm__name {
	display: block;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--astm-navy);
	overflow-wrap: anywhere;
}

.astm .astm__service {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--astm-muted);
}

.astm .astm__date {
	grid-area: date;
	align-self: start;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--astm-faint);
	white-space: nowrap;
}

.astm .astm__card .astm__stars {
	grid-area: stars;
	--astm-star: 18px;
	align-self: center;
}

.astm .astm__text {
	grid-area: text;
	margin: 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--astm-text);
	overflow-wrap: break-word;
}

/* Narrow card (container query on the slide): name + service get the whole header row,
   the date moves to the stars row. */
@container astm-card (max-width: 439px) {
	.astm .astm__card {
		grid-template-areas:
			"av meta meta"
			"stars stars date"
			"text text text";
	}
	.astm .astm__date {
		align-self: center;
		margin-top: 0;
	}
}

/* ---------- carousel controls ---------- */
.astm .astm__nav {
	grid-column: 2;
	grid-row: 2;
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	/* Space is reserved from the first paint (no layout shift); the controls appear once the script is ready. */
	visibility: hidden;
}

.astm.is-ready .astm__nav {
	visibility: visible;
}

.astm.is-single .astm__nav {
	visibility: hidden;
}

.astm .astm__arrow {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: var(--astm-navy);
	background: #ffffff;
	border: 1px solid var(--astm-line);
	border-radius: 0 14px 0 14px;
	box-shadow: 0 2px 8px rgba(0, 40, 80, 0.08);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
	-webkit-tap-highlight-color: rgba(0, 156, 216, 0.15);
}

.astm .astm__arrow:active:not(:disabled) {
	background: var(--astm-cyan);
	border-color: var(--astm-cyan);
	color: #ffffff;
}

.astm .astm__arrow:focus-visible {
	outline: 2px solid var(--astm-cyan);
	outline-offset: 3px;
}

.astm .astm__arrow:disabled {
	opacity: 0.4;
	cursor: default;
	box-shadow: none;
}

@media (hover: hover) {
	.astm .astm__arrow:hover:not(:disabled) {
		background: var(--astm-cyan);
		border-color: var(--astm-cyan);
		color: #ffffff;
	}
}

.astm .astm__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 auto;
	min-width: 0;
}

/* Each dot is a 24px-tall tap target around a 10px indicator. */
.astm .astm__dot {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 1 24px;
	width: 24px;
	min-width: 14px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.astm .astm__dot::before {
	content: "";
	width: 10px;
	height: 10px;
	border: 2px solid #7d94a4;
	border-radius: 50%;
	background: transparent;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.astm .astm__dot[aria-current="true"]::before {
	background: var(--astm-cyan);
	border-color: var(--astm-cyan);
	transform: scale(1.2);
}

.astm .astm__dot:focus-visible {
	outline: 2px solid var(--astm-cyan);
	outline-offset: 0;
	border-radius: 6px;
}

@media (hover: hover) {
	.astm .astm__dot:hover::before {
		border-color: var(--astm-cyan);
	}
}

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

/* ---------- tablet / small laptop (<=1200px): compact horizontal panel above a 2-card carousel ---------- */
@media (max-width: 1200px) {
	.astm__grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 20px;
	}
	.astm .astm__panel {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"rating cta"
			"trust trust";
		align-items: center;
		column-gap: 24px;
		padding: 24px 28px;
		text-align: left;
	}
	.astm .astm__rating {
		grid-area: rating;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"score stars"
			"score count";
		align-items: center;
		justify-items: start;
		column-gap: 18px;
		row-gap: 4px;
	}
	.astm .astm__score {
		grid-area: score;
		font-size: 60px;
	}
	.astm .astm__stars--lg {
		grid-area: stars;
		--astm-star: 24px;
		margin-top: 0;
		align-self: end;
	}
	.astm .astm__count {
		grid-area: count;
		margin-top: 0;
		align-self: start;
	}
	.astm .astm__cta {
		grid-area: cta;
		margin: 0;
		padding: 15px 32px;
		align-self: center;
		justify-self: end;
	}
	.astm .astm__trust {
		grid-area: trust;
		grid-template-columns: repeat(3, auto);
		justify-content: start;
		gap: 8px 28px;
		margin-top: 18px;
		padding-top: 16px;
	}
	.astm .astm__track {
		grid-column: 1;
		grid-row: 2;
	}
	.astm .astm__nav {
		grid-column: 1;
		grid-row: 3;
	}
}

/* Narrower tablets (768-900px): two ~340-400px cards - a touch more compact so they stay readable, not tall. */
@media (max-width: 900px) {
	.astm .astm__card {
		padding: 22px 22px 24px;
		column-gap: 12px;
	}
	.astm .astm__text {
		font-size: 15.5px;
		line-height: 1.55;
	}
}

/* ---------- mobile: compact panel, ONE card per page, controls below ---------- */
@media (max-width: 767px) {
	.astm {
		--astm-pv: 1;
	}
	.elementor-widget.astm-widget:not(:last-child) {
		margin-block-end: 32px;
	}
	.astm__grid {
		row-gap: 16px;
	}
	.astm .astm__slide {
		scroll-snap-align: start;
	}
	.astm .astm__panel {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		padding: 20px 18px 18px;
		border-radius: 14px;
	}
	.astm .astm__rating {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"score stars"
			"count count";
		column-gap: 14px;
		row-gap: 6px;
	}
	.astm .astm__score {
		font-size: 52px;
	}
	.astm .astm__stars--lg {
		--astm-star: 24px;
		align-self: center;
	}
	.astm .astm__cta {
		width: 100%;
		margin: 16px 0 0;
		padding: 14px 20px;
		font-size: 13px;
	}
	.astm .astm__trust {
		display: none;
	}
	.astm .astm__card {
		grid-template-columns: 42px minmax(0, 1fr) auto;
		column-gap: 12px;
		row-gap: 12px;
		padding: 20px 18px 22px;
		border-radius: 14px;
	}
	.astm .astm__avatar {
		width: 42px;
		height: 42px;
		font-size: 15px;
	}
	.astm .astm__text {
		font-size: 15.5px;
	}
}

/* ====================================================================
   Review modal (posts to the dedicated Contact Form 7 form, see testimonials.js)
   ==================================================================== */
html.astm-lock {
	overflow: hidden;
}

.astm-modal {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--astm-text);
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	inset: 0;
	overflow: hidden;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.astm-modal[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.astm-modal::backdrop {
	background: rgba(0, 35, 60, 0.62);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.astm-modal[open]::backdrop {
	animation: astm-fade 0.2s ease-out;
}

.astm-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(560px, calc(100% - 32px));
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: hidden;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 30, 60, 0.4);
	outline: 0;
}

/* Header (title + close) stays put; only the form body scrolls on short viewports. */
.astm-modal__head {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 20px 12px 32px;
}

.astm-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px 32px 30px;
	scrollbar-width: thin;
	scrollbar-color: #b8c8d2 transparent;
}

.astm-modal[open] .astm-modal__panel {
	animation: astm-pop 0.22s ease-out;
}

.astm-modal .astm-modal__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 6px 0 0;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--astm-navy);
}

.astm-modal .astm-modal__close {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	color: var(--astm-navy);
	background: #ffffff;
	border: 1px solid var(--astm-line);
	border-radius: 0 12px 0 12px;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.astm-modal .astm-modal__close:active {
	background: var(--astm-cyan);
	border-color: var(--astm-cyan);
	color: #ffffff;
}

.astm-modal .astm-modal__close:focus-visible {
	outline: 2px solid var(--astm-cyan);
	outline-offset: 2px;
}

@media (hover: hover) {
	.astm-modal .astm-modal__close:hover {
		background: var(--astm-cyan);
		border-color: var(--astm-cyan);
		color: #ffffff;
	}
}

.astm-modal .astm-form {
	margin: 0;
	padding: 0;
}

.astm-modal .astm-field {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.astm-modal .astm-label {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 7px;
	padding: 0;
	font-size: 14px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--astm-navy);
}

.astm-modal .astm-input {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--astm-text);
	background-color: #ffffff;
	border: 1px solid #a7b9c5;
	border-radius: 10px;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.astm-modal .astm-input:focus {
	outline: 0;
	border-color: var(--astm-cyan);
	box-shadow: 0 0 0 3px rgba(0, 156, 216, 0.2);
}

.astm-modal .astm-input[aria-invalid="true"] {
	border-color: var(--astm-err);
}

.astm-modal .astm-select {
	padding-right: 42px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1.5 1.5L7 7l5.5-5.5' stroke='%23003F63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 14px 9px;
	cursor: pointer;
}

.astm-modal .astm-textarea {
	min-height: 118px;
	resize: vertical;
}

/* Star rating: real radio inputs (keyboard + screen-reader friendly), painted as stars. */
.astm-modal .astm-rate {
	margin: 0 0 14px;
}

.astm-modal .astm-rate__stars {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-left: -6px;
}

.astm-modal .astm-rate__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	opacity: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.astm-modal .astm-rate__star {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	color: #b4c4cf;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.astm-modal .astm-rate__star svg {
	display: block;
	fill: currentColor;
	transition: transform 0.15s ease;
}

.astm-modal .astm-rate__star.is-on {
	color: var(--astm-gold);
}

.astm-modal .astm-rate__input:focus-visible + .astm-rate__star {
	outline: 2px solid var(--astm-cyan);
	outline-offset: 0;
	border-radius: 10px;
}

@media (hover: hover) {
	.astm-modal .astm-rate__star:hover svg {
		transform: scale(1.12);
	}
}

/* Consent checkbox. */
.astm-modal .astm-consent {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.astm-modal .astm-consent__input {
	position: absolute;
	top: 0;
	left: 0;
	width: 24px;
	height: 24px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.astm-modal .astm-consent__box {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	background: #ffffff center / 14px 14px no-repeat;
	border: 2px solid #7d94a4;
	border-radius: 6px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.astm-modal .astm-consent__input:checked + .astm-consent__box {
	background-color: var(--astm-cyan);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7.4l3 3 6-6.4' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	border-color: var(--astm-cyan);
}

.astm-modal .astm-consent__input:focus-visible + .astm-consent__box {
	outline: 2px solid var(--astm-cyan);
	outline-offset: 2px;
}

.astm-modal .astm-consent__input[aria-invalid="true"] + .astm-consent__box {
	border-color: var(--astm-err);
}

.astm-modal .astm-consent__text {
	font-size: 14px;
	line-height: 1.45;
	color: var(--astm-muted);
}

.astm-modal .astm-err {
	margin: 7px 0 0;
	padding: 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--astm-err);
}

.astm-modal .astm-btn {
	display: flex;
	width: 100%;
	margin: 20px 0 0;
}

/* Banner above the submit button (general / server errors). */
.astm-modal .astm-notice {
	scroll-margin-bottom: 24px;
	margin: 16px 0 0;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--astm-navy);
	background: #eaf6fc;
	border: 1px solid #bfe3f3;
	border-radius: 10px;
}

.astm-modal .astm-notice--error {
	margin: 4px 0 0;
	color: #a93226;
	background: #fdf3f1;
	border-color: #efc4bd;
}

/* Placeholder (phone example): lighter than typed text, still readable. */
.astm-modal .astm-input::placeholder {
	color: #6b7c88;
	opacity: 1;
}

/* Two stacked consent rows. */
.astm-modal .astm-field--consent {
	margin-bottom: 14px;
}

/* Privacy-policy link inside the consent text: same look as the site's other consent links
   (#009CD8, bold, underlined). It is an <a> inside the <label>, so clicking it follows the link and
   does not toggle the checkbox. */
.astm-modal .astm-consent__text a {
	color: var(--astm-cyan);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.astm-modal .astm-consent__text a:hover {
	color: var(--astm-navy);
}

.astm-modal .astm-consent__text a:focus-visible {
	outline: 2px solid var(--astm-cyan);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Honeypot: off-screen (not display:none, so naive bots still fill it), out of the tab order and hidden from AT. */
.astm-modal .astm-hp {
	position: absolute !important;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* Sending: the button is disabled and shows a spinner (aria-busy is set on the form by the script). */
.astm-modal .astm-btn:disabled,
.astm-modal .astm-btn:disabled:hover {
	cursor: progress;
	background: var(--astm-cyan);
	box-shadow: none;
	transform: none;
	opacity: 0.85;
}

.astm-modal .astm-btn.is-busy::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: astm-spin 0.75s linear infinite;
}

/* Success state (replaces the form until the dialog is closed). */
.astm-modal .astm-done {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 0 2px;
	text-align: center;
	outline: 0;
}

.astm-modal .astm-done__ico {
	display: block;
	flex: 0 0 auto;
}

.astm-modal .astm-done__text {
	margin: 18px 0 0;
	font-size: 18px;
	line-height: 1.45;
	font-weight: 600;
	color: var(--astm-navy);
}

.astm-modal .astm-done .astm-btn {
	width: 100%;
	max-width: 280px;
	margin-top: 24px;
}

@keyframes astm-spin {
	to { transform: rotate(360deg); }
}

@keyframes astm-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes astm-pop {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to { opacity: 1; transform: none; }
}

@keyframes astm-sheet {
	from { transform: translateY(40px); opacity: 0.6; }
	to { transform: none; opacity: 1; }
}

/* Phones: bottom sheet that scrolls inside the visible viewport. */
@media (max-width: 600px) {
	.astm-modal[open] {
		align-items: flex-end;
	}
	.astm-modal__panel {
		width: 100%;
		max-height: calc(100vh - 12px);
		max-height: calc(100dvh - 12px);
		border-radius: 18px 18px 0 0;
	}
	.astm-modal[open] .astm-modal__panel {
		animation: astm-sheet 0.25s ease-out;
	}
	.astm-modal__head {
		padding: 18px 14px 10px 18px;
	}
	.astm-modal__body {
		padding: 4px 18px calc(22px + env(safe-area-inset-bottom, 0px));
	}
	.astm-modal .astm-modal__title {
		font-size: 22px;
		margin-top: 8px;
	}
	.astm-modal .astm-rate__star {
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.astm .astm__cta,
	.astm .astm__cta .astm__arrow-ico,
	.astm .astm__arrow,
	.astm .astm__dot::before,
	.astm-modal .astm-btn,
	.astm-modal .astm-modal__close,
	.astm-modal .astm-input,
	.astm-modal .astm-rate__star svg {
		transition: none;
	}
	.astm .astm__cta:hover,
	.astm-modal .astm-btn:hover,
	.astm .astm__cta:hover .astm__arrow-ico,
	.astm-modal .astm-rate__star:hover svg {
		transform: none;
	}
	.astm-modal[open]::backdrop,
	.astm-modal[open] .astm-modal__panel,
	.astm-modal .astm-btn.is-busy::before {
		animation: none;
	}
}
