/**
 * Oferta module — styled to fit the existing transautogaz.md theme.
 *
 * Theme reference points:
 *   - shadow stack: 0 64px 134px rgba(0,0,0,0.1)
 *   - radius: 10px on cards
 *   - brand blue: #345EA0
 *   - body text: #262626
 *
 * The module keeps purple as the official "regulatory" colour (per the brief),
 * and uses the theme's blue for secondary accents (links, info).
 */

.tag-oferta {
	/* Brand blue from the existing theme (#345EA0). Aliases kept as
	   --tag-purple* so we don't have to rename hundreds of selectors below. */
	--tag-purple: #345EA0;
	--tag-purple-soft: #eef2f9;
	--tag-purple-line: #d4dfee;
	--tag-blue: #345EA0;
	--tag-text: #262626;
	--tag-muted: #6b6b6b;

	box-sizing: border-box;
	max-width: 1100px;
	margin: 80px auto;
	padding: 56px 56px 36px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0px 64px 134px rgba(0, 0, 0, 0.1);
	color: var(--tag-text);
	font-family: inherit;
	scroll-margin-top: 100px;
}

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

/* ---------- Header ---------- */

.tag-oferta__header {
	text-align: center;
	margin-bottom: 40px;
}

.tag-oferta__title {
	margin: 0 0 18px;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--tag-text);
}

.tag-oferta__title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin: 14px auto 0;
	background: var(--tag-purple);
	border-radius: 2px;
}

.tag-oferta__month {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 8px 8px 8px 18px;
	background: var(--tag-purple-soft);
	border-radius: 100px;
	font-size: 14px;
	color: var(--tag-text);
}

.tag-oferta__month-pill {
	display: inline-block;
	padding: 6px 16px;
	background: #fff;
	border-radius: 100px;
	font-weight: 700;
	color: var(--tag-purple);
	letter-spacing: 0.02em;
}

/* ---------- Hero (the two final prices) ---------- */

.tag-oferta__hero {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 24px;
	align-items: center;
	margin-bottom: 44px;
}

.tag-oferta__hero-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 28px 24px;
	background: #fff;
	border: 2px solid var(--tag-purple-line);
	border-radius: 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tag-oferta__hero-card--accent {
	border-color: var(--tag-purple);
	background: linear-gradient(180deg, #fff 0%, var(--tag-purple-soft) 100%);
	box-shadow: 0 12px 32px rgba(52, 94, 160, 0.12);
}

.tag-oferta__hero-label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--tag-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.tag-oferta__hero-tva {
	font-size: 12px;
	font-weight: 600;
	color: var(--tag-purple);
	letter-spacing: 0.04em;
	text-transform: none;
}

.tag-oferta__hero-value {
	font-size: 38px;
	line-height: 1.1;
	font-weight: 700;
	color: var(--tag-text);
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

.tag-oferta__hero-card--accent .tag-oferta__hero-value {
	color: var(--tag-purple);
}

/* ---------- Unit toggle (segmented control) ---------- */

.tag-oferta__unit-toggle,
.tag-oferta__pressure {
	display: inline-flex;
	padding: 4px;
	background: var(--tag-purple-soft);
	border-radius: 100px;
}

.tag-oferta__unit-toggle {
	flex-direction: column;
	gap: 4px;
	border-radius: 16px;
}

.tag-oferta__pressure {
	margin-top: 14px;
	gap: 4px;
}

.tag-oferta__seg {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	user-select: none;
}

.tag-oferta__seg input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.tag-oferta__seg span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 600;
	color: var(--tag-purple);
	background: transparent;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.tag-oferta__seg--small span {
	padding: 6px 14px;
	font-size: 13px;
}

.tag-oferta__seg input:checked + span {
	background: var(--tag-purple);
	color: #fff;
	box-shadow: 0 4px 10px rgba(52, 94, 160, 0.25);
}

.tag-oferta__seg input:focus-visible + span {
	outline: 2px solid var(--tag-blue);
	outline-offset: 2px;
}

.tag-oferta__seg:hover input:not(:checked) + span {
	background: rgba(52, 94, 160, 0.08);
}

/* ---------- Components (3 building blocks of the price) ---------- */

.tag-oferta__components {
	display: grid;
	grid-template-columns: 1fr 24px 1fr 24px 1fr;
	gap: 16px;
	align-items: start;
	padding: 28px 0;
	margin-bottom: 8px;
	border-top: 1px solid var(--tag-purple-line);
	border-bottom: 1px solid var(--tag-purple-line);
}

.tag-oferta__component {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 12px 8px;
}

.tag-oferta__component-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--tag-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-align: center;
}

.tag-oferta__component-value {
	font-size: 22px;
	font-weight: 700;
	color: var(--tag-text);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

.tag-oferta__plus {
	font-size: 26px;
	font-weight: 300;
	color: var(--tag-purple-line);
	text-align: center;
	line-height: 1;
	padding-top: 36px;
	user-select: none;
}

.tag-oferta__note {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: var(--tag-muted);
	text-align: center;
}

.tag-oferta__component--with-tabs {
	gap: 8px;
}

/* ---------- Footnotes ---------- */

.tag-oferta__footnotes {
	margin-top: 22px;
	font-size: 12px;
	line-height: 1.55;
	color: var(--tag-muted);
}

.tag-oferta__footnotes p {
	margin: 4px 0;
}

/* ---------- Tablet (≤ 1024px) ---------- */

@media (max-width: 1024px) {
	.tag-oferta {
		padding: 48px 36px 30px;
	}

	.tag-oferta__hero-value {
		font-size: 32px;
	}

	.tag-oferta__component-value {
		font-size: 20px;
	}
}

/* ---------- Mobile (≤ 767px) ---------- */

@media (max-width: 767px) {
	.tag-oferta {
		padding: 32px 22px 26px;
		margin: 40px 0;
		box-shadow: 0px 18px 40px rgba(0, 0, 0, 0.08);
	}

	.tag-oferta__title {
		font-size: 19px;
	}

	.tag-oferta__title::after {
		width: 40px;
		height: 2px;
		margin-top: 10px;
	}

	.tag-oferta__hero {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 28px;
	}

	.tag-oferta__hero-card {
		padding: 22px 18px;
	}

	.tag-oferta__hero-value {
		font-size: 28px;
	}

	.tag-oferta__unit-toggle {
		flex-direction: row;
		align-self: center;
		border-radius: 100px;
	}

	.tag-oferta__components {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 22px 0;
	}

	.tag-oferta__plus {
		padding-top: 0;
		font-size: 20px;
	}

	.tag-oferta__component {
		padding: 8px 4px;
	}

	.tag-oferta__component-value {
		font-size: 22px;
	}

	.tag-oferta__pressure {
		flex-wrap: wrap;
		justify-content: center;
	}
}

/* ---------- Tiny phones (≤ 360px) ---------- */

@media (max-width: 360px) {
	.tag-oferta__seg span {
		padding: 8px 14px;
		font-size: 13px;
	}
}
