/* Souplesse Vouchere – pagina de cumpărare. Folosește culorile și fonturile temei, cu valori de rezervă. */
.sbv {
	--sbv-ink: var(--sb-ink, #1e1b1b);
	--sbv-text: var(--sb-text, #382d2d);
	--sbv-line: var(--sb-line, #dcd1c7);
	--sbv-cream: var(--sb-cream, #f9f4ed);
	--sbv-accent: #d96b2f;
	--sbv-accent-2: #d35355;
	--sbv-muted: #8a7d73;
	--sbv-serif: var(--sb-serif, 'Playfair Display', Georgia, serif);
	--sbv-ease: var(--sb-ease, cubic-bezier(.22, .61, .36, 1));
	--sbv-grad: linear-gradient(90deg, #d96b2f 0%, #d35355 50%, #d96b2f 100%);
	max-width: 1210px;
	margin: 0 auto;
	color: var(--sbv-text);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}
.sbv *, .sbv *::before, .sbv *::after { box-sizing: border-box; }
.sbv p { margin: 0; }

/* ---------- Așezare: pașii + rezumatul care rămâne vizibil ---------- */
.sbv-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 30px;
	align-items: start;
	margin: 0;
}
.sbv-main { display: grid; gap: 24px; min-width: 0; }

.sbv-step {
	min-width: 0;
	margin: 0;
	padding: clamp(22px, 4vw, 40px);
	border: 0;
	border-radius: 24px;
	background: var(--sbv-cream);
}
.sbv-step__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 24px;
}
.sbv-step__nr {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--sbv-grad);
	color: #fff;
	font-family: var(--sbv-serif);
	font-size: 18px;
	line-height: 1;
}
.sbv .sbv-step__title {
	margin: 0;
	font-family: var(--sbv-serif);
	font-size: clamp(24px, 3.2vw, 32px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -.5px;
	color: var(--sbv-ink);
}

/* ---------- Pasul 1: valorile ---------- */
.sbv-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 14px;
}
.sbv .sbv-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--sbv-line);
	overflow: hidden;
	cursor: pointer;
	font-weight: 400;
	transition: box-shadow .3s, transform .3s var(--sbv-ease);
}
.sbv-card > input[type="radio"],
.sbv-method > input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.sbv-card img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1600 / 664;
	object-fit: cover;
	background: #f3ebe2;
}
.sbv-card__val {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 16px 14px;
	font-family: var(--sbv-serif);
	font-size: 21px;
	line-height: 1.2;
	color: var(--sbv-ink);
}
/* bulina de selecție */
.sbv-card__val::after,
.sbv-method::after {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1.5px var(--sbv-line);
	background: #fff center / 12px no-repeat;
	transition: background-color .25s, box-shadow .25s;
}
.sbv-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #c9a79a, 0 14px 30px rgba(56, 45, 45, .08); }
.sbv-card:has(input[type="radio"]:checked) {
	box-shadow: 0 0 0 2px var(--sbv-accent), 0 14px 30px rgba(217, 107, 47, .18);
}
.sbv-card:has(input[type="radio"]:checked) .sbv-card__val::after,
.sbv-method:has(input:checked)::after {
	box-shadow: none;
	background-color: var(--sbv-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E");
}
.sbv-card:has(input[type="radio"]:focus-visible),
.sbv-method:has(input:focus-visible) { outline: 2px solid var(--sbv-ink); outline-offset: 3px; }

/* „Altă sumă": rând întreg, cu câmpul în dreapta */
.sbv .sbv-card--liber {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
}
.sbv-card--liber img { width: 150px; flex: none; border-radius: 10px; }
.sbv-card--liber .sbv-card__val { flex: 1; padding: 0; }
.sbv-card__txt { display: block; }
.sbv-card__txt small {
	display: block;
	margin-top: 4px;
	font-family: 'DM Sans', system-ui, sans-serif;
	font-size: 13px;
	color: var(--sbv-muted);
}
.sbv-card__suma {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	font-size: 18px;
}
.sbv .sbv-card__suma input {
	width: 130px;
	text-align: center;
	font-family: var(--sbv-serif);
	font-size: 20px;
}

/* ---------- Câmpuri ---------- */
.sbv-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 20px;
}
.sbv-grid__full { grid-column: 1 / -1; }
.sbv-field label {
	display: block;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sbv-ink);
}
.sbv-field label em { font-style: normal; font-weight: 400; color: var(--sbv-muted); }
.sbv-field small { display: block; margin-top: 6px; font-size: 13px; color: var(--sbv-muted); }
.sbv input[type="text"],
.sbv input[type="email"],
.sbv input[type="tel"],
.sbv input[type="number"],
.sbv textarea {
	display: block;
	width: 100%;
	height: auto;
	min-height: 54px;
	margin: 0;
	padding: 12px 18px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--sbv-line);
	color: var(--sbv-ink);
	font: inherit;
	font-size: 16px;
	transition: box-shadow .3s, border-color .3s;
}
.sbv textarea { min-height: 96px; resize: vertical; }
.sbv input:focus,
.sbv textarea:focus {
	outline: 0;
	border-color: var(--sbv-accent);
	box-shadow: 0 0 0 4px rgba(217, 107, 47, .14);
}
.sbv ::placeholder { color: #b3a79d; }
.sbv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pasul 4: plata ---------- */
.sbv-methods { display: grid; gap: 12px; margin: 0 0 22px; }
.sbv .sbv-method {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 16px 20px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--sbv-line);
	cursor: pointer;
	font-weight: 400;
	transition: box-shadow .3s;
}
.sbv-method__ico {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--sbv-cream);
	color: var(--sbv-accent);
}
.sbv-method__ico svg { width: 24px; height: 24px; }
.sbv-method__txt { flex: 1; min-width: 0; }
.sbv-method__txt b { display: block; font-weight: 600; color: var(--sbv-ink); }
.sbv-method__txt span { display: block; font-size: 14px; color: var(--sbv-muted); }
.sbv-method:hover { box-shadow: 0 0 0 1px #c9a79a; }
.sbv-method:has(input:checked) { box-shadow: 0 0 0 2px var(--sbv-accent); }

.sbv .sbv-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--sbv-text);
	cursor: pointer;
}
.sbv-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sbv-accent); }
.sbv-check a { color: var(--sbv-accent); }

.sbv .sbv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 58px;
	margin-top: 10px;
	padding: 0 40px;
	border: 0;
	border-radius: 30px;
	background: var(--sbv-grad);
	background-size: 200% 100%;
	color: #fff !important;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-position .5s var(--sbv-ease), transform .3s var(--sbv-ease);
}
.sbv .sbv-btn:hover { background-position: 100% 0; transform: translateY(-2px); }
.sbv .sbv-note { margin: 16px 0 0; font-size: 14px; color: var(--sbv-muted); }

/* ---------- Rezumat ---------- */
.sbv-sum { position: sticky; top: 110px; }
.sbv-sum__card {
	padding: 26px;
	border-radius: 24px;
	background: var(--sbv-ink);
	color: rgba(255, 255, 255, .82);
}
.sbv-sum__img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 664; object-fit: cover; border-radius: 14px; margin: 0 0 22px; }
.sbv .sbv-sum__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
}
.sbv .sbv-sum__val {
	margin: 4px 0 18px;
	font-family: var(--sbv-serif);
	font-size: 44px;
	line-height: 1.1;
	letter-spacing: -1px;
	color: #fff;
}
.sbv-sum__list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 12px; }
.sbv-sum__list li {
	position: relative;
	margin: 0;
	padding-left: 30px;
	font-size: 15px;
	line-height: 1.45;
}
.sbv-sum__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23f0a36f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.sbv-sum__help { margin-top: 16px !important; font-size: 14px; text-align: center; color: var(--sbv-muted); }
.sbv-sum__help a { color: var(--sbv-accent); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- Mesaje și pagina de confirmare ---------- */
.sbv .sbv-msg {
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: 16px;
	background: var(--sbv-cream);
	box-shadow: 0 0 0 1px var(--sbv-line);
}
.sbv .sbv-msg--err { background: #fdf0ee; box-shadow: 0 0 0 1px #e3a39b; color: #8e2a1f; }

.sbv-done {
	max-width: 680px;
	margin: 0 auto;
	padding: clamp(26px, 5vw, 50px);
	border-radius: 24px;
	background: var(--sbv-cream);
}
.sbv .sbv-done h2 {
	margin: 0 0 16px;
	font-family: var(--sbv-serif);
	font-size: clamp(26px, 4vw, 36px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -.5px;
	color: var(--sbv-ink);
}
.sbv .sbv-done p { margin: 0 0 14px; }
.sbv .sbv-done p:last-child { margin-bottom: 0; }

/* ---------- Ecrane mici ---------- */
@media (max-width: 1000px) {
	.sbv-form { grid-template-columns: minmax(0, 1fr); }
	.sbv-sum { position: static; }
	.sbv-sum__img { display: none; }
	.sbv-sum__card { display: grid; grid-template-columns: auto 1fr; gap: 6px 26px; align-items: start; }
	.sbv-sum__label, .sbv-sum__val { grid-column: 1; }
	.sbv .sbv-sum__val { margin-bottom: 0; }
	.sbv-sum__list { grid-column: 2; grid-row: 1 / span 2; padding: 0 0 0 26px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .16); }
}
@media (max-width: 640px) {
	.sbv-main { gap: 16px; }
	.sbv-step { border-radius: 20px; }
	.sbv-step__head { margin-bottom: 18px; }
	.sbv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.sbv-card__val { padding: 10px 12px 12px; font-size: 18px; }
	.sbv .sbv-card--liber { flex-wrap: wrap; padding: 14px; }
	.sbv-card--liber img { display: none; }
	.sbv-card__suma { margin-left: 0; width: 100%; }
	.sbv .sbv-card__suma input { flex: 1; width: auto; }
	.sbv-grid { grid-template-columns: minmax(0, 1fr); }
	.sbv .sbv-method { padding: 14px; gap: 12px; }
	.sbv-method__ico { width: 40px; height: 40px; }
	.sbv .sbv-btn { width: 100%; padding: 0 20px; }
	.sbv-sum__card { display: block; padding: 22px; }
	.sbv .sbv-sum__val { margin-bottom: 16px; font-size: 38px; }
	.sbv-sum__list { padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
}
@media (prefers-reduced-motion: reduce) {
	.sbv *, .sbv *::before, .sbv *::after { transition: none !important; }
}
