/* ============================================================
   Scan status page (new) - the scan takes longer than expected, failed, or found too little.
   Loaded after scan-new.css and reuses its split screen, frame lines and type.
   Mirrored: the dark panel (#2c2b36) on the right, the form on the left.
   Scoped under .sn--status.
   ============================================================ */

/* ---------- Mirror the split ---------- */

.sn--status .sn-split {
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}

@media (min-width: 992px) {
	/* The form column now meets the panel on its right side and closes the frame on the left */
	.sn--status .sn-scan {
		border-inline-start: 0;
		border-inline-end: 1px solid var(--sn-line); /* taste-skill-ignore: frame lines are the brand's checker-page language */
	}
}

@media (min-width: 992px) {
	/* The column is much wider than the form: centre the content in it, a little wider than on
	   the scan page, so the spare space sits evenly on both sides instead of all on the left */
	.sn--status .sn-scan__body {
		max-width: calc(600px + 2 * clamp(24px, 4vw, 64px));
		margin-inline: auto;
	}
}

/* ---------- Right: the dark panel ---------- */

.ss-panel {
	justify-content: space-between;
	background: var(--sn-dark);
}

.ss-panel .sn-panel__kicker {
	color: var(--sn-accent-light);
}

.ss-panel .sn-panel__text {
	border-bottom-color: rgba(255, 255, 255, 0.28);
}

.ss-panel::before,
.ss-panel::after {
	background: rgba(255, 255, 255, 0.14);
}

/* Team video: between the panel's frame lines, square corners like the scan page's form video */
.ss-video {
	position: relative;
	z-index: 2;
	margin: 0 12%;
	aspect-ratio: 16 / 9;
	background: #1f1e27;
	border: 1px solid rgba(255, 255, 255, 0.14); /* taste-skill-ignore: frame lines are the brand's checker-page language */
}

/* Placeholder until the team image arrives */
.ss-video--placeholder {
	background: #f97316;
}

.ss-video__media {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ss-video__toggle {
	position: absolute;
	bottom: 10px;
	left: 10px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(20, 19, 28, 0.78);
	color: #ffffff;
	cursor: pointer;
}

.ss-video__toggle:hover {
	background: #14131c;
}

.ss-video__play,
.ss-video.is-paused .ss-video__pause {
	display: none;
}

.ss-video.is-paused .ss-video__play {
	display: block;
}

/* What happens next: three framed cells between the panel's frame lines */.ss-steps {
	position: relative;
	z-index: 2;
	display: grid;
	margin: 0 12% clamp(20px, 3%, 40px);
	border-top: 1px solid rgba(255, 255, 255, 0.14); /* taste-skill-ignore: frame lines are the brand's checker-page language */
	list-style: none;
}

.ss-steps li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px clamp(16px, 2vw, 28px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.14); /* taste-skill-ignore: frame lines are the brand's checker-page language */
	color: rgba(255, 255, 255, 0.78);
	font-size: 1rem;
	line-height: 1.5;
}

.ss-steps b {
	color: #ffffff;
	font-weight: 500;
}

.ss-steps__num {
	display: grid;
	flex: 0 0 28px;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-top: -1px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: var(--sn-accent-light);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

/* ---------- Left: the form ---------- */

.ss-domain {
	color: var(--sn-ink);
	font-weight: 500;
	unicode-bidi: isolate;
}

.ss-card {
	display: grid;
	gap: 14px;
	margin-top: 24px;
	padding: 20px;
	border: 1px solid var(--sn-line); /* taste-skill-ignore: frame lines are the brand's checker-page language */
	border-radius: 14px;
	background: #ffffff;
}

.ss-field {
	display: grid;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.ss-field[hidden] {
	display: none;
}

.ss-label {
	padding: 0;
	color: var(--sn-ink);
	font-size: 0.9375rem;
	font-weight: 500;
}

.ss-input {
	width: 100%;
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid #cfced6;
	border-radius: 10px;
	background: #ffffff;
	color: var(--sn-ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ss-input[dir="ltr"] {
	text-align: left;
}

.ss-input::placeholder {
	color: #9a99a3;
}

.ss-input:focus {
	border-color: var(--sn-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(142, 86, 220, 0.2);
}

.ss-input[aria-invalid="true"] {
	border-color: #d13b40;
}

.ss-hint {
	color: var(--sn-muted);
	font-size: 0.875rem;
}

.ss-error {
	color: #b42328;
	font-size: 0.875rem;
}

/* Email / WhatsApp: two option cards with an icon, a line of detail and a check when chosen */
.ss-choice__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ss-option {
	position: relative;
	display: flex;
	cursor: pointer;
}

.ss-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ss-option__box {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	gap: 10px;
	min-height: 50px;
	padding: 8px 12px;
	border: 1px solid #d9d8df;
	border-radius: 12px;
	background: #ffffff;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ss-option__icon {
	display: grid;
	flex: 0 0 34px;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: #f1f0f4;
	color: #55545e;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ss-option__text {
	display: grid;
	gap: 1px;
	min-width: 0;
	line-height: 1.3;
}

.ss-option__text b {
	color: var(--sn-ink);
	font-size: 0.9375rem;
	font-weight: 500;
}

.ss-option__text small {
	color: var(--sn-muted);
	font-size: 0.8125rem;
}

.ss-option__check {
	position: absolute;
	top: 8px;
	left: 8px;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sn-accent);
	color: #ffffff;
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ss-option:hover .ss-option__box {
	border-color: #b9b8c2;
}

.ss-option input:checked + .ss-option__box {
	border-color: var(--sn-accent);
	background: #faf7fe;
	box-shadow: inset 0 0 0 1px var(--sn-accent);
}

/* Brand icons keep their own colours: Gmail on white, WhatsApp on its green */
.ss-option__icon--gmail {
	background: #ffffff;
	box-shadow: inset 0 0 0 1px #e3e2e8;
}

.ss-option__icon--wa {
	background: #25d366;
}

.ss-option input:checked + .ss-option__box .ss-option__check {
	opacity: 1;
	transform: none;
}

.ss-option input:focus-visible + .ss-option__box {
	outline: 3px solid var(--sn-accent);
	outline-offset: 2px;
}

.ss-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--sn-accent);
	color: #ffffff;
	font: inherit;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.ss-submit:hover {
	background: #7b3bd6;
	color: #ffffff;
}

.ss-submit:active {
	transform: scale(0.98);
}

.ss-submit[disabled] {
	opacity: 0.7;
	cursor: progress;
}

/* ---------- Thank-you state ---------- */

.ss-done {
	margin-top: 8px;
}

.ss-done__mark {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: #e6f6ec;
	color: #1d7a45;
}

.ss-done__next {
	display: grid;
	margin: 28px 0 0;
	padding: 0;
	border-top: 1px solid var(--sn-line); /* taste-skill-ignore: frame lines are the brand's checker-page language */
	list-style: none;
}

.ss-done__next li {
	padding: 14px 0;
	border-bottom: 1px solid var(--sn-line); /* taste-skill-ignore: frame lines are the brand's checker-page language */
	color: var(--sn-muted);
	font-size: 0.9375rem;
	line-height: 1.55;
}

.ss-done__next b {
	color: var(--sn-ink);
	font-weight: 500;
}

.ss-done__next a {
	color: var(--sn-accent);
	font-weight: 500;
}

.ss-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	color: var(--sn-ink);
	font-weight: 500;
	text-decoration: none;
}

.ss-back:hover {
	color: var(--sn-accent);
}

@media (prefers-reduced-motion: no-preference) {
	.ss-done:not([hidden]) {
		animation: ss-done-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	.ss-done:not([hidden]) .ss-done__mark {
		animation: ss-mark-in 0.5s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	@keyframes ss-done-in {
		from { opacity: 0; transform: translateY(10px); }
		to { opacity: 1; transform: none; }
	}

	@keyframes ss-mark-in {
		from { opacity: 0; transform: scale(0.7); }
		to { opacity: 1; transform: none; }
	}
}


.ss-fine {
	margin-top: -8px;
	color: var(--sn-muted);
	font-size: 0.8125rem;
	text-align: center;
}

/* Domain, phone and email never break in the middle */
.ss-done bdi {
	white-space: nowrap;
}

.ss-done:focus {
	outline: none;
}

.ss-done[hidden],
[data-ss-form-view][hidden] {
	display: none;
}

/* ---------- Short laptop screens ---------- */

/* Desktop: the video takes what is left of the window height, so the page never scrolls */
@media (min-width: 992px) {
	.ss-video {
		width: min(76%, calc((100svh - 470px) * 16 / 9));
		margin-inline: auto;
	}
}

@media (min-width: 992px) and (max-height: 820px) {
	.ss-card {
		gap: 10px;
		margin-top: 16px;
		padding: 16px;
	}

	.ss-input {
		min-height: 40px;
	}

	.ss-option__box {
		min-height: 46px;
	}

	.ss-submit {
		min-height: 44px;
	}

	.ss-steps li {
		padding-block: 14px;
	}
}

/* ---------- Stacked: the form comes first, the panel after it ---------- */

@media (max-width: 991px) {
	.sn--status .sn-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.sn--status .ss-form {
		order: -1;
	}

	.ss-panel {
		padding-bottom: 0;
	}

	.ss-video {
		margin-top: 24px;
	}

	.ss-steps {
		margin-top: 24px;
	}
}

@media (max-width: 767px) {
	.ss-steps,
	.ss-video {
		margin-inline: 6%;
	}

	.ss-card {
		padding: 18px 16px;
	}
}


/* ---------- Image fills the panel; form card squared and tied into the frame ---------- */

/* The image takes every pixel between the title's dashed rule and the steps list, from frame line
   to frame line: no gaps above or below it */
.ss-video {
	flex: 1 1 auto;
	min-height: 220px;
	margin: 0 12%;
	aspect-ratio: auto;
	border-block: 0;
}

.ss-steps {
	margin-top: 0;
}

@media (min-width: 992px) {
	.ss-video {
		width: auto;
		margin-inline: 12%;
	}
}

/* Form card: square like the frame, and its top and bottom edges run on as lines to the column's
   edges, so the card sits inside the page's frame grid */
.ss-form {
	overflow: hidden;
}

.ss-card {
	position: relative;
	border-radius: 0;
}

.ss-card::before,
.ss-card::after {
	content: "";
	position: absolute;
	left: -100vw;
	right: -100vw;
	height: 1px;
	background: var(--sn-line);
	pointer-events: none;
}

.ss-card::before {
	top: -1px;
}

.ss-card::after {
	bottom: -1px;
}


/* ---------- Phones ---------- */

@media (max-width: 767px) {
	/* The image runs edge to edge across the panel at a calm 16:9, instead of a squeezed square */
	.ss-video {
		flex: 0 0 auto;
		min-height: 0;
		margin-inline: 0;
		aspect-ratio: 16 / 9;
	}

	/* Option cards: one under the other at full width, with room for the detail line */
	.ss-choice__options {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.ss-option__box {
		gap: 8px;
		min-height: 48px;
		padding: 8px 10px;
	}

	.ss-option__icon {
		flex-basis: 30px;
		width: 30px;
		height: 30px;
	}

	.ss-option__check {
		top: 50%;
		left: 10px;
		transform: translateY(-50%) scale(0.6);
	}

	.ss-option input:checked + .ss-option__box .ss-option__check {
		transform: translateY(-50%);
	}
}


/* ---------- Clearer input fields ---------- */
/* A light tinted fill and a firm border set the fields apart from the white card;
   they turn white with the purple ring while typing */
.ss-input {
	/* 3:1 against white: meets WCAG 1.4.11 for the field's boundary */
	border-color: #8b8998;
	background: #f6f5f9;
}

.ss-input:hover {
	border-color: #6c6a79;
}

.ss-input:focus {
	background: #ffffff;
}

.ss-input::placeholder {
	color: #85838f;
}


/* Unselected option cards match the input fields: same tinted fill and 3:1 border.
   The selected card keeps its purple border and light purple fill. */
.ss-option__box {
	border-color: #8b8998;
	background: #f6f5f9;
}

.ss-option:hover .ss-option__box {
	border-color: #6c6a79;
}


/* ---------- Report flow loop ---------- */
/* Takes the image box's place and size; its background matches the video's, so no edge shows */
.report-flow {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #363542;
	border: 0; /* the video's own background is the edge, no frame line */
}

.report-flow__video {
	display: block;
	width: 100%;
	height: 100%;
	/* contain: the box is taller than 16:9 on desktop; the video's own #363542 background fills the rest,
	   so all three visuals stay whole and there is no visible edge */
	object-fit: contain;
}


/* All three fields line up on the right, placeholders one under the other. Email and phone keep
   left-to-right text direction (so addresses and numbers read correctly), only their alignment moves */
.ss-input[dir="ltr"] {
	text-align: right;
}
