/**
 * Scandia Vizite — stiluri publice.
 *
 * Două lucruri de știut înainte de a modifica fișierul.
 *
 * 1. Dimensiunile sunt în pixeli, prin clamp(), nu în rem. Tema poate schimba
 *    dimensiunea de bază a documentului, iar atunci o scală în rem se mută
 *    sub picioare. În px, secțiunea arată la fel indiferent ce face tema.
 *
 * 2. Blocul de resetare de mai jos este intenționat. TheGem aplică majuscule
 *    și spațiere între litere titlurilor din pagină, ceea ce abate rezultatul
 *    de la macheta aprobată și îngreunează citirea la corpuri mari. Dacă se
 *    dorește revenirea la majuscule, se șterge regula .sv-typeset.
 *
 * Culorile sunt cele din logo: #e3002e primar, #cd1530 pentru stări active.
 */

.sv {
	--sv-accent: #e3002e;
	--sv-accent-dark: #cd1530;
	--sv-ink: #17181a;
	--sv-body: #40444a;
	--sv-muted: #6b6f75;
	--sv-line: #e2e0dd;
	--sv-field: #fff;
	--sv-surface: #f7f6f4;
	--sv-error: #c0121a;
	--sv-ok: #1f6b3c;
	--sv-radius: 8px;
	--sv-max: 1240px;

	max-width: var(--sv-max);
	margin-left: auto;
	margin-right: auto;
	color: var(--sv-ink);
	line-height: 1.6;
}

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

/* Resetare a stilurilor de titlu venite din temă. Vezi nota de sus. */
.sv .sv-hero__title,
.sv .sv-h2,
.sv .sv-step__head,
.sv .sv-info__head,
.sv .sv-intro__title,
.sv .sv-card__title {
	text-transform: none;
	letter-spacing: -0.005em;
	font-style: normal;
	text-wrap: balance;
}

.sv .sv-step__text,
.sv .sv-info__text,
.sv .sv-hero__lede,
.sv .sv-intro__text,
.sv .sv-strip__text,
.sv .sv-field label {
	text-transform: none;
	letter-spacing: normal;
}

.sv-section {
	margin: 72px 0;
}

.sv .sv-h2 {
	margin: 0 0 14px;
	text-align: center;
	font-size: clamp(26px, 2.4vw, 38px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--sv-ink);
}

.sv .sv-h2--left {
	text-align: left;
	margin-bottom: 32px;
}

/* Linia scurtă de sub titlu — marchează începutul secțiunii. */
.sv-rule {
	display: block;
	width: 58px;
	height: 3px;
	margin: 0 auto 48px;
	background: var(--sv-accent);
	border-radius: 2px;
}

.sv-rule--left {
	margin: 20px 0 24px;
}

/* ---------------------------------------------------------------- hero */

.sv-hero {
	display: grid;
	grid-template-columns: minmax(0, 50%) minmax(0, 50%);
	align-items: center;
	gap: 56px;
	margin: 0 auto 80px;
}

.sv .sv-hero__title {
	margin: 0 0 26px;
	font-size: clamp(44px, 3.9vw, 56px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
}

.sv-hero__title-accent,
.sv-hero__title-main {
	display: block;
}

.sv-hero__title-accent {
	color: var(--sv-accent);
}

.sv .sv-hero__lede {
	margin: 0 0 38px;
	font-size: clamp(17px, 1.15vw, 21px);
	line-height: 1.6;
	color: var(--sv-body);
	max-width: 36ch;
}

.sv-badges {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px 38px;
}

.sv-badge {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 200px;
	margin: 0;
}

.sv-badge__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1.5px solid var(--sv-accent);
	border-radius: 50%;
	color: var(--sv-accent);
}

.sv-badge__icon svg {
	width: 28px;
	height: 28px;
}

.sv-badge__text {
	font-size: clamp(15px, 1vw, 17px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: normal;
	text-transform: none;
}

.sv-hero__cta {
	margin: 0;
}

.sv-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--sv-radius);
}

/* -------------------------------------------------------------- buton */

.sv .sv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	appearance: none;
	border: 0;
	border-radius: var(--sv-radius);
	background: var(--sv-accent);
	color: #fff;
	font-family: inherit;
	font-size: clamp(15px, 1vw, 17px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-decoration: none;
	padding: 20px 40px;
	min-height: 56px;
	cursor: pointer;
	transition: background-color 0.16s ease;
}

.sv .sv-btn:hover,
.sv .sv-btn:focus {
	background: var(--sv-accent-dark);
	color: #fff;
	text-decoration: none;
}

.sv .sv-btn--block {
	width: 100%;
}

.sv-btn__arrow {
	font-size: 1.15em;
	line-height: 1;
	transition: transform 0.16s ease;
}

.sv .sv-btn:hover .sv-btn__arrow {
	transform: translateX(4px);
}

.sv .sv-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

.sv .sv-btn[disabled] .sv-btn__arrow {
	transform: none;
}

.sv .sv-btn:focus-visible {
	outline: 3px solid var(--sv-ink);
	outline-offset: 3px;
}

/* --------------------------------------------------------------- etape */

.sv-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.sv-step {
	display: block;
	text-align: center;
	padding: 0 10px;
	margin: 0;
}

.sv-step__mark {
	position: relative;
	display: block;
	width: 112px;
	margin: 0 auto 26px;
	padding-top: 14px;
}

.sv-step__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 112px;
	border: 1.5px solid var(--sv-line);
	border-radius: 50%;
	background: #fff;
	color: var(--sv-accent);
}

.sv-step__icon svg {
	width: 50px;
	height: 50px;
}

.sv-step__num {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--sv-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

/* Săgeata punctată dintre etape: traseul pe care îl parcurge grupul. */
.sv-step__arrow {
	position: absolute;
	top: calc(14px + 56px - 1px);
	left: calc(100% + 26px);
	right: calc(-100% - 54px);
	height: 2px;
	background-image: linear-gradient(to right, var(--sv-accent) 0 8px, transparent 8px 16px);
	background-size: 16px 2px;
	background-repeat: repeat-x;
}

.sv-step__arrow::after {
	content: "";
	position: absolute;
	right: -2px;
	top: -4px;
	border-left: 9px solid var(--sv-accent);
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}

.sv .sv-step__head {
	margin: 0 0 12px;
	font-size: clamp(18px, 1.3vw, 22px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--sv-ink);
}

.sv .sv-step__text {
	margin: 0;
	font-size: clamp(15px, 1.05vw, 17px);
	color: var(--sv-body);
	line-height: 1.65;
}

/* Banda cu durata vizitei. */
.sv-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 56px 0 0;
	padding: 24px 30px;
	background: var(--sv-surface);
	border-radius: var(--sv-radius);
	font-size: clamp(16px, 1.1vw, 18px);
	line-height: 1.6;
	text-align: center;
	color: var(--sv-body);
}

.sv-strip__icon {
	flex: 0 0 auto;
	display: flex;
	color: var(--sv-accent);
}

.sv-strip__icon svg {
	width: 34px;
	height: 34px;
}

.sv-strip strong {
	color: var(--sv-accent);
	font-weight: 700;
}

/* --------------------------------------------------------- informații */

.sv-panel {
	background: var(--sv-surface);
	border-radius: var(--sv-radius);
	padding: 42px 46px 46px;
}

.sv-info {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sv-info__item {
	padding: 0 28px;
	margin: 0;
	text-align: center;
	border-left: 1px solid var(--sv-line);
}

.sv-info__item:first-child {
	border-left: 0;
}

.sv-info__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
	color: var(--sv-accent);
}

.sv-info__icon svg {
	width: 42px;
	height: 42px;
}

.sv .sv-info__head {
	margin: 0 0 10px;
	font-size: clamp(17px, 1.2vw, 20px);
	font-weight: 700;
	line-height: 1.35;
	color: var(--sv-ink);
}

.sv .sv-info__text {
	margin: 0;
	font-size: clamp(15px, 1.05vw, 17px);
	color: var(--sv-body);
	line-height: 1.65;
}

/* ------------------------------------------------------------ formular */

.sv-formwrap {
	display: grid;
	grid-template-columns: minmax(0, 35%) minmax(0, 65%);
	gap: 28px;
	align-items: start;
}

.sv-intro,
.sv-card {
	background: #fff;
	border: 1px solid var(--sv-line);
	border-radius: var(--sv-radius);
	padding: 42px 38px;
}

.sv .sv-intro__title {
	margin: 0;
	font-size: clamp(20px, 1.7vw, 27px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--sv-ink);
}

.sv .sv-intro__text {
	margin: 0 0 14px;
	font-size: clamp(15px, 1.05vw, 17px);
	line-height: 1.7;
	color: var(--sv-body);
}

.sv .sv-intro__text:last-child {
	margin-bottom: 0;
}

.sv .sv-intro__text strong {
	font-weight: 700;
	color: var(--sv-ink);
}

.sv .sv-card__title {
	margin: 0 0 30px;
	font-size: clamp(22px, 1.8vw, 30px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--sv-ink);
}

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

.sv-field {
	display: flex;
	flex-direction: column;
	margin: 0;
	min-width: 0;
}

.sv-field--wide {
	grid-column: 1 / -1;
}

.sv .sv-field label {
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--sv-ink);
}

.sv-req {
	color: var(--sv-accent);
	margin-left: 2px;
}

/*
 * Câmpurile nu coboară niciodată sub 16px: sub acest prag, Safari pe iPhone
 * mărește automat pagina la focalizare și aruncă vizitatorul din machetă.
 */
.sv-field input[type="text"],
.sv-field input[type="email"],
.sv-field input[type="tel"],
.sv-field input[type="number"],
.sv-field select,
.sv-field textarea {
	width: 100%;
	padding: 15px 16px;
	border: 1px solid var(--sv-line);
	border-radius: 5px;
	background: var(--sv-field);
	color: var(--sv-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.45;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sv-field ::placeholder {
	color: #a0a4a9;
	opacity: 1;
}

.sv-field textarea {
	resize: vertical;
	min-height: 96px;
}

.sv-field input:focus,
.sv-field select:focus,
.sv-field textarea:focus {
	outline: none;
	border-color: var(--sv-accent);
	box-shadow: 0 0 0 3px rgba(227, 0, 46, 0.14);
}

.sv-field input:focus-visible,
.sv-field select:focus-visible,
.sv-field textarea:focus-visible {
	outline: 2px solid var(--sv-accent);
	outline-offset: 1px;
}

/* Selectul de perioadă, cu pictograma din machetă. */
.sv-selectwrap {
	position: relative;
	display: block;
}

.sv-selectwrap select {
	appearance: none;
	padding-right: 50px;
	cursor: pointer;
}

.sv-selectwrap__icon {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	display: flex;
	color: var(--sv-accent);
}

.sv-selectwrap__icon svg {
	width: 21px;
	height: 21px;
}

.sv-err {
	display: none;
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--sv-error);
}

.sv-field.is-invalid .sv-err {
	display: block;
}

.sv-field.is-invalid input,
.sv-field.is-invalid select,
.sv-field.is-invalid textarea {
	border-color: var(--sv-error);
}

/* Acordul GDPR. */
.sv-field--consent {
	margin-top: 24px;
}

.sv .sv-field--consent label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--sv-body);
	cursor: pointer;
}

.sv-field--consent input {
	flex: 0 0 auto;
	margin: 2px 0 0;
	width: 19px;
	height: 19px;
	accent-color: var(--sv-accent);
	cursor: pointer;
}

.sv-field--consent a {
	color: var(--sv-accent);
	text-decoration: underline;
}

/* Capcana pentru roboți: scoasă din câmpul vizual, nu din arborele DOM. */
.sv-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sv-actions {
	margin: 26px 0 0;
}

/* ------------------------------------------------------------ rezultat */

.sv-result {
	display: none;
	margin-top: 24px;
	padding: 20px 24px;
	border-left: 3px solid var(--sv-line);
	background: var(--sv-surface);
	font-size: clamp(15px, 1.05vw, 17px);
	line-height: 1.65;
	color: var(--sv-body);
}

.sv-result.is-visible {
	display: block;
}

.sv-result.is-ok {
	border-left-color: var(--sv-ok);
}

.sv-result.is-error {
	border-left-color: var(--sv-error);
}

.sv-result__nr {
	display: block;
	margin-top: 12px;
	font-size: 14px;
	color: var(--sv-muted);
	font-variant-numeric: tabular-nums;
}

.sv-form.is-done .sv-grid,
.sv-form.is-done .sv-actions,
.sv-form.is-done .sv-field--consent {
	display: none;
}

.sv-note {
	padding: 22px 24px;
	background: var(--sv-surface);
	border-radius: var(--sv-radius);
	font-size: clamp(15px, 1.05vw, 17px);
	line-height: 1.65;
}

/* ------------------------------------------- verificare anti-robot */

.sv-shield {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 18px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--sv-muted);
}

.sv-shield__dot {
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #c9c6c2;
	transition: background-color 0.2s ease;
}

.sv-shield[data-state="work"] .sv-shield__dot {
	background: var(--sv-accent);
	animation: sv-pulse 1.1s ease-in-out infinite;
}

.sv-shield[data-state="done"] .sv-shield__dot {
	background: var(--sv-ok);
	animation: none;
}

@keyframes sv-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.35; transform: scale(0.75); }
}

.sv-turnstile {
	margin: 20px 0 0;
}

.sv-form.is-done .sv-shield,
.sv-form.is-done .sv-turnstile {
	display: none;
}

/* ------------------------------------------------------------ tabletă */

@media (max-width: 1024px) {
	.sv-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
		margin-bottom: 60px;
	}

	.sv .sv-hero__title {
		font-size: clamp(40px, 5.6vw, 52px);
	}

	.sv .sv-hero__lede {
		max-width: none;
	}

	.sv-section {
		margin: 56px 0;
	}

	.sv-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 40px 24px;
	}

	/* Săgețile presupun patru coloane; pe două ar arăta către gol. */
	.sv-step__arrow {
		display: none;
	}

	.sv-info {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 0;
	}

	.sv-info__item:nth-child(odd) {
		border-left: 0;
	}

	.sv-formwrap {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ------------------------------------------------------------ telefon */

@media (max-width: 640px) {
	.sv-section {
		margin: 44px 0;
	}

	.sv-hero {
		gap: 28px;
		margin-bottom: 44px;
	}

	/* Pe telefon, titlul se rupe pe două rânduri — și e în regulă:
	   un titlu mare care se rupe citește mai puternic decât unul mic
	   care încape. */
	.sv .sv-hero__title {
		font-size: clamp(38px, 10.5vw, 48px);
		line-height: 1.12;
	}

	.sv .sv-hero__lede {
		font-size: 18px;
	}

	.sv-badges {
		gap: 18px 26px;
		margin-bottom: 32px;
	}

	.sv-badge {
		max-width: 100%;
		flex: 1 1 100%;
	}

	.sv-steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.sv-step {
		padding: 0;
	}

	.sv-info {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px 0;
	}

	.sv-info__item {
		border-left: 0;
		padding: 0;
	}

	.sv-panel {
		padding: 30px 22px 34px;
	}

	.sv-intro,
	.sv-card {
		padding: 28px 22px;
	}

	.sv-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.sv .sv-btn {
		width: 100%;
		padding: 18px 24px;
	}

	.sv-strip {
		flex-direction: column;
		gap: 12px;
		padding: 22px 22px;
	}

	.sv-rule {
		margin-bottom: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sv *,
	.sv *::before,
	.sv *::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ------------------------------------------------ confirmarea trimiterii */

.sv-result__title {
	display: block;
	margin-bottom: 8px;
	font-size: clamp(17px, 1.2vw, 19px);
	font-weight: 700;
	color: var(--sv-ok);
}

/* Recapitularea: ce anume s-a înregistrat, ca omul să nu rămână cu îndoiala. */
.sv-recap {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 18px;
	margin: 16px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--sv-line);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.sv-recap dt {
	margin: 0;
	color: var(--sv-muted);
	font-weight: 400;
}

.sv-recap dd {
	margin: 0;
	color: var(--sv-ink);
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Fereastra de confirmare. */
.sv-modal {
	padding: 0;
	border: 0;
	border-radius: var(--sv-radius);
	background: #fff;
	color: var(--sv-ink);
	max-width: 460px;
	width: calc(100% - 32px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.sv-modal::backdrop {
	background: rgba(20, 20, 22, 0.55);
}

.sv-modal:not([open]) {
	display: none;
}

/* Rezervă pentru browserele fără <dialog>: aceeași fereastră, poziționată manual. */
.sv-modal.is-open:not([open]) {
	display: block;
	position: fixed;
	z-index: 99999;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.sv-modal__inner {
	padding: 36px 32px 32px;
	text-align: center;
}

.sv-modal__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: rgba(31, 107, 60, 0.1);
	color: var(--sv-ok);
}

.sv-modal__icon svg {
	width: 30px;
	height: 30px;
}

.sv .sv-modal__title {
	margin: 0 0 12px;
	font-size: clamp(20px, 1.5vw, 24px);
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: normal;
	color: var(--sv-ink);
}

.sv-modal__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--sv-body);
}

.sv-modal__nr {
	margin: 16px 0 0;
	font-size: 14px;
	color: var(--sv-muted);
	font-variant-numeric: tabular-nums;
}

.sv-modal .sv-recap {
	margin-top: 20px;
}

.sv-modal__close {
	margin-top: 24px;
	width: 100%;
}

@media (max-width: 640px) {
	.sv-modal__inner {
		padding: 28px 22px 24px;
	}

	.sv-recap {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.sv-recap dd {
		margin-bottom: 10px;
	}
}
