/* =========================================
   kontaktni-formular.css — Fajn Účet
   Stránka: kontaktní formulář (i bez přihlášení)
   Vzhled podle vyhody-varianty.php, varianta B (pohled-cislo-2):
   oranžová hlavička #ff8b00, světle modrý gradient v hero, modré tlačítko.
   ========================================= */

/* ===== BAREVNÉ TOKENY — stejné jako .vyhody-stranka--modra ===== */
body:has(.kontakt) {
	--primary: 32.71 100% 50%;
	background: hsl(var(--background)) !important;
}
.kontakt {
	--accent: 213 100% 50%;
	--kontakt-modra: #0074ff;
	--kontakt-modra-hover: #005fd6;
	--kontakt-chyba: 0 72% 51%;
}

/* Header — sytě oranžový podklad jako na stránce Výhody */
header {
	background: hsl(var(--primary));
}

/* ===== WRAPPER — sekce full-bleed přes sdílený .container (trik z vyhody.css) ===== */
.kontakt > section {
	position: relative;
	left: 50%;
	right: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-right: -50vw;
}
.kontakt > section:first-child {
	margin-top: -1.5rem;
}
.kontakt > section:last-child {
	margin-bottom: -1.5rem;
}

/* ===== HERO ===== */
.kontakt-hero {
	padding: 2.5rem 1rem 8rem;
	background: linear-gradient(180deg, hsl(var(--accent) / 0.12) 0%, hsl(var(--background)) 100%);
	text-align: center;
}
.kontakt-hero__inner {
	max-width: 640px;
	margin: 0 auto;
}
.kontakt-hero__nadpis {
	font-size: 2.125rem;
	font-weight: 500;
	line-height: 1.15;
	color: hsl(var(--foreground));
	margin: 0 0 0.875rem;
}
.kontakt-hero__perex {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: hsl(var(--muted-foreground));
}

/* ===== KARTA S FORMULÁŘEM ===== */
.kontakt-obsah {
	padding: 0 1rem 4rem;
}
.kontakt-karta {
	position: relative;
	max-width: 640px;
	margin: -4.5rem auto 0;
	padding: 3.25rem 2rem 2rem;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 1.25rem;
	box-shadow: 0 20px 40px hsl(222 47% 11% / 0.08);
}
.kontakt-karta__maskot-obal {
	position: absolute;
	top: -3rem;
	left: 50%;
	width: 6rem;
	height: 6rem;
	transform: translateX(-50%);
}
.kontakt-karta__maskot {
	position: relative;
	z-index: 1;
	display: block;
	width: 6rem;
	height: 6rem;
	filter: drop-shadow(0 10px 18px hsl(var(--primary) / 0.3));
}
/* Oranžová čárka na spodním okraji maskota — stejná jako .pruvodce-maskot__oddelovac */
.kontakt-karta__maskot-cara {
	position: absolute;
	left: 0.25rem;
	right: 0.25rem;
	bottom: -1px;
	z-index: 2;
	height: 5px;
	border-radius: 9999px;
	background: linear-gradient(90deg,
		hsl(33, 100%, 50%) 0%,
		hsl(28, 100%, 58%) 50%,
		hsl(33, 100%, 50%) 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
	box-shadow: 0 2px 6px hsl(33, 100%, 50%, 0.45);
}

/* ===== FORMULÁŘ — prvky podle upravit-online-zivotopis.css (.form-*) ===== */
.kontakt-form__skupina {
	margin-bottom: 1.125rem;
}
.kontakt-form__popisek {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--foreground));
	margin-bottom: 0.5rem;
}
.kontakt-form__povinne {
	color: hsl(var(--kontakt-chyba));
}
.kontakt-form__pole {
	width: 100%;
	padding: 0.6875rem 0.875rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.75rem;
	background: hsl(var(--muted) / 0.5);
	font-family: inherit;
	font-size: 0.9375rem;
	color: hsl(var(--foreground));
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.kontakt-form__pole::placeholder {
	color: hsl(var(--muted-foreground) / 0.7);
}
.kontakt-form__pole:focus {
	outline: none;
	border-color: hsl(var(--primary));
	background: #fff;
	box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}
.kontakt-form__pole--textarea {
	resize: vertical;
	min-height: 8rem;
	line-height: 1.5;
}
.kontakt-form__select-obal {
	position: relative;
}
.kontakt-form__pole--select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.5rem;
	cursor: pointer;
}
.kontakt-form__pole--select:invalid {
	color: hsl(var(--muted-foreground) / 0.7);
}
.kontakt-form__pole--select option {
	color: hsl(var(--foreground));
}
.kontakt-form__select-sipka {
	position: absolute;
	top: 50%;
	right: 0.875rem;
	width: 1.125rem;
	height: 1.125rem;
	transform: translateY(-50%);
	color: hsl(var(--muted-foreground));
	pointer-events: none;
}
.kontakt-form__pole--chyba,
.kontakt-form__pole--chyba:focus {
	border-color: hsl(var(--kontakt-chyba));
	background: hsl(var(--kontakt-chyba) / 0.05);
	box-shadow: 0 0 0 3px hsl(var(--kontakt-chyba) / 0.1);
}
.kontakt-form__chyba {
	margin: 0.375rem 0 0;
	font-size: 0.8125rem;
	color: hsl(var(--kontakt-chyba));
}
.kontakt-form__gdpr {
	margin: 0 0 1.5rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: hsl(var(--muted-foreground));
}
.kontakt-form__gdpr-odkaz {
	color: var(--kontakt-modra);
	text-decoration: underline;
}
.kontakt-form__gdpr-odkaz:hover {
	color: var(--kontakt-modra-hover);
	text-decoration: none;
}
.kontakt-form__akce {
	display: flex;
	justify-content: center;
}

/* ===== TLAČÍTKA — tvar .vyhody-btn, modrá z varianty B ===== */
.kontakt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9375rem 1.75rem;
	border: none;
	border-radius: 999px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.kontakt-btn .lucide {
	width: 1.125rem;
	height: 1.125rem;
}
.kontakt-btn--modre {
	background: var(--kontakt-modra);
	color: #fff;
	box-shadow: 0 10px 24px rgba(0, 116, 255, 0.35);
}
.kontakt-btn--modre:hover {
	background: var(--kontakt-modra-hover);
	box-shadow: 0 14px 28px rgba(0, 116, 255, 0.4);
}
.kontakt-btn--modre:focus-visible {
	outline: 3px solid hsl(var(--accent) / 0.35);
	outline-offset: 2px;
}
/* Ghost tlačítko — vzor .zs-btn--ghost (jednotný styl napříč projekty) */
.kontakt-btn--ghost {
	padding: 0.75rem 1.5rem;
	font-size: 0.9375rem;
	background: transparent;
	color: hsl(var(--foreground));
	border: 1px solid hsl(var(--border));
}
.kontakt-btn--ghost:hover {
	background: hsl(var(--muted));
}

/* ===== PODĚKOVÁNÍ PO ODESLÁNÍ ===== */
.kontakt-dekujeme {
	text-align: center;
	padding: 0.5rem 0;
}
.kontakt-dekujeme__ikona {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: hsl(var(--success) / 0.12);
	color: hsl(var(--success));
}
.kontakt-dekujeme__ikona .lucide {
	width: 1.5rem;
	height: 1.5rem;
}
.kontakt-dekujeme__nadpis {
	margin: 0 0 0.5rem;
	font-size: 1.375rem;
	font-weight: 500;
	color: hsl(var(--foreground));
}
.kontakt-dekujeme__text {
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: hsl(var(--muted-foreground));
}

/* ===== MOBIL ===== */
@media (max-width: 640px) {
	.kontakt-hero {
		padding: 2rem 1rem 7.5rem;
	}
	.kontakt-hero__nadpis {
		font-size: 1.75rem;
	}
	.kontakt-hero__perex {
		font-size: 1rem;
	}
	.kontakt-karta {
		padding: 3rem 1.25rem 1.5rem;
		border-radius: 1rem;
	}
	.kontakt-btn--modre {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kontakt-btn,
	.kontakt-form__pole {
		transition: none;
	}
}
