﻿/*
	Přihláškový wizard — vizuální jazyk převzatý ze struktury barber-web rezervace
	(form_container: levý panel průvodce + stepy-titles + fieldsety + bk-* prvky),
	přepsaný do S4F palety (CSS variables z theme.neon), bez Bootstrapu. Fonty v páru:
	Oswald = display (nadpisy, tlačítka), Roboto Flex = běžný text (čitelnost malých textů).
*/

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }

body {
	margin: 0;
	font-family: 'Roboto Flex', system-ui, sans-serif;
	background: hsl(var(--muted));
	color: hsl(var(--foreground));
	line-height: 1.5;
}

.pk-page { min-height: 100vh; display: flex; flex-direction: column; }
.pk-main { flex: 1; display: flex; flex-direction: column; }

/* ── hlavička / patička ── */
.pk-header { background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border)); }
.pk-header-inner {
	max-width: 1100px; margin: 0 auto; padding: 14px 20px;
	display: flex; align-items: center; justify-content: space-between;
}
.pk-logo img { height: 40px; display: block; }
.pk-header-nav a { color: hsl(var(--muted-foreground)); text-decoration: none; font-size: 14px; }
.pk-header-nav a:hover { color: hsl(var(--primary)); }

.pk-footer {
	background: hsl(var(--background)); border-top: 1px solid hsl(var(--border));
	padding: 18px 20px; display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 8px; font-size: 13px; color: hsl(var(--muted-foreground));
}
.pk-footer p { margin: 0; }
.pk-footer ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.pk-footer a { color: hsl(var(--muted-foreground)); }
.pk-footer a:hover { color: hsl(var(--primary)); }

/* ── kontejnery ── */
.pk-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }
.pk-narrow { max-width: 640px; margin: 48px auto; padding: 0 20px; width: 100%; }
.form_container { margin: 40px 0 48px; }
.pk-cols { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }

/* ── levý panel průvodce (ekvivalent #left_form) ── */
#left_form {
	background: linear-gradient(160deg, hsl(var(--secondary)), hsl(var(--primary)));
	color: #fff; border-radius: 12px; padding: 36px 30px; min-height: 380px;
	position: sticky; top: 24px;
}
#left_form figure { margin: 0; }
.pk-logos { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.pk-logos-x { color: rgba(255, 255, 255, .55); font-size: 18px; }
.pk-school-logo {
	display: inline-flex; background: #fff; border-radius: 12px; padding: 8px 12px;
}
.pk-school-logo img { max-height: 52px; max-width: 150px; display: block; }
.pk-program {
	text-transform: uppercase; letter-spacing: .12em; font-size: 12px !important;
	font-weight: 700; color: rgba(255, 255, 255, .75) !important; margin-bottom: 4px !important;
}
#left_form h2 { color: #fff; font-size: 26px; font-weight: 700; margin: 0 0 6px; }
#left_form p { color: rgba(255, 255, 255, .85); margin: 0 0 14px; font-size: 15px; }
.pk-left-facts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.pk-left-facts li {
	background: rgba(255, 255, 255, .15); border-radius: 999px;
	padding: 4px 14px; font-size: 13px;
}
.pk-left-price { margin: 0 0 18px; }
.pk-left-price h5,
.pk-left-terms h5 {
	margin: 0 0 8px; font-size: 12px; text-transform: uppercase;
	letter-spacing: .08em; color: rgba(255, 255, 255, .7);
}
.pk-left-term { margin: 0 0 4px !important; font-size: 13.5px !important; }
/* Společná poznámka o náhradních termínech (konkrétní data se nezveřejňují). */
.pk-term-backup {
	margin-top: 12px !important; font-size: 12.5px !important; line-height: 1.45;
	color: rgba(255, 255, 255, .65) !important;
}
.pk-term-teach {
	margin-left: 8px; font-size: 11px; text-transform: uppercase;
	background: rgba(255, 255, 255, .18); border-radius: 4px; padding: 1px 6px;
}

/* ── kroková navigace (stepy-titles dle barberu) ── */
.stepy-titles {
	list-style: none; margin: 0; padding: 0; display: flex; width: 100%;
}
.stepy-titles li {
	cursor: pointer; border-radius: 10px 10px 0 0; padding: 9px 20px;
	background: hsl(var(--primary) / .75); color: #fff;
	font-weight: 600; margin-left: 2px; font-size: 15px; flex: 0 1 auto;
	transition: background .15s;
}
.stepy-titles li:first-child { margin-left: 0; }
.stepy-titles li span { font-size: 16px; display: block; font-weight: 400; color: rgba(255, 255, 255, .9); }
.stepy-titles li.current-step { cursor: auto; background: hsl(var(--background)); color: hsl(var(--secondary)); }
.stepy-titles li.current-step span { color: hsl(var(--muted-foreground)); }
.stepy-titles li.is-locked { cursor: not-allowed; opacity: .55; }
/* Fajfka má rezervované místo napevno (absolute v chipu) — chip při splnění neuskakuje. */
.stepy-titles li > div { position: relative; display: inline-block; padding-right: 18px; }
.step-check { position: absolute; right: 0; top: 0; color: #7ef0b0; font-weight: 700; }
.stepy-titles li.current-step .step-check { color: #1a9a5c; }

/* ── obsah kroků ── */
.pk-steps-col form, .pk-success {
	background: hsl(var(--background)); border-radius: 0 12px 12px 12px;
	padding: 28px 30px 24px; box-shadow: 0 10px 34px hsl(var(--secondary) / .08);
}
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 22px; font-weight: 700; color: hsl(var(--secondary)); margin-bottom: 14px; padding: 0; }
fieldset h3 { font-size: 16px; font-weight: 700; color: hsl(var(--secondary)); margin: 22px 0 10px; }

.pk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.pk-field { margin-bottom: 16px; }
.pk-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; color: hsl(var(--foreground)); }
.pk-field label .req { color: #d64545; }
.pk-input {
	width: 100%; height: 44px; padding: 0 13px; font: inherit; font-size: 15px;
	border: 1px solid hsl(var(--border)); border-radius: 8px;
	background: hsl(var(--background)); color: hsl(var(--foreground));
	transition: border-color .15s, box-shadow .15s;
}
textarea.pk-input { height: auto; min-height: 90px; padding: 10px 13px; }
.pk-input::placeholder { color: hsl(var(--muted-foreground) / .6); }
.pk-input:focus { outline: none; border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .15); }
.pk-input.is-invalid { border-color: #d64545; }
.pk-err { display: block; color: #d64545; font-size: 12.5px; margin-top: 4px; }
.pk-mt { margin-top: 8px; }
.pk-muted { color: hsl(var(--muted-foreground)); font-size: 14px; }

/* ── výběrové karty (radio_input dle barberu) ── */
.radio_input { display: flex; flex-wrap: wrap; gap: 10px; }
.radio_input label {
	position: relative; cursor: pointer; display: flex; align-items: center; gap: 10px;
	border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 12px 16px;
	font-size: 15px; background: hsl(var(--background)); transition: border-color .15s, background .15s;
}
.radio_input label:hover { border-color: hsl(var(--primary)); }
.radio_input label input { position: absolute; opacity: 0; pointer-events: none; }
.radio_input label.is-selected {
	border-color: hsl(var(--primary));
	background: hsl(var(--primary) / .08);
	outline: 2px solid hsl(var(--primary)); outline-offset: -1px;
	padding-left: 40px;
}
/* Fajfka na vybraném chipu — kroužek s ✓ vlevo. */
.radio_input label.is-selected::before {
	content: '✓'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
	width: 20px; height: 20px; border-radius: 50%;
	background: hsl(var(--primary)); color: #fff;
	font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.radio_input .price { margin-left: auto; font-weight: 700; color: hsl(var(--secondary)); }
.pk-levels { flex-direction: column; }
.pk-levels label { width: 100%; align-items: flex-start; }
/* Úroveň = název + celý popis; fajfka vybrané karty sedí u názvu, ne uprostřed výšky. */
.pk-levels label.is-selected::before { top: 13px; transform: none; }
.pk-levels .pk-opt-desc { line-height: 1.45; }
/* Varianta kurzu — dvě karty pod sebou s názvem, popisem a cenou. */
.pk-equipment { flex-direction: column; }
.pk-equipment label { width: 100%; align-items: center; }
.pk-step-intro { margin: 0 0 12px; }
.pk-skipas { font-size: 13px; margin-top: 10px; }
.pk-opt { display: flex; flex-direction: column; gap: 2px; }
.pk-opt-title { font-weight: 600; }
.pk-opt-desc { font-size: 13px; color: hsl(var(--muted-foreground)); }
.pk-sport label { min-width: 120px; justify-content: center; }

/* ── souhrn (bk-summary dle barberu) ── */
.pk-summary { border: 1px solid hsl(var(--border)); border-radius: 10px; overflow: hidden; background: hsl(var(--background)); margin-bottom: 4px; }
.pk-summary-row {
	display: grid; grid-template-columns: 150px 1fr; gap: 4px 14px; align-items: baseline;
	padding: 11px 16px; border-bottom: 1px solid hsl(var(--border) / .6); font-size: 15px;
}
.pk-summary-row:last-child { border-bottom: 0; }
.pk-summary-row .lbl { color: hsl(var(--muted-foreground)); }
.pk-summary-row .val { font-weight: 500; }
.pk-summary-cena { margin-top: 12px; }
.pk-summary-price .val { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pk-price-badge {
	background: hsl(var(--secondary)); color: #fff; font-weight: 700;
	border-radius: 6px; padding: 4px 12px; font-size: 16px;
}
.pk-paynote { color: hsl(var(--muted-foreground)); font-size: 13.5px; }

/* ── povinná potvrzení (bk-agree dle barberu) ── */
.pk-agree {
	position: relative; display: flex; align-items: center; gap: 14px; margin-top: 14px;
	padding: 13px 18px; border: 1px solid hsl(var(--border)); border-radius: 8px;
	background: hsl(var(--background)); font-size: 14.5px; cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}
.pk-agree input { position: absolute; opacity: 0; pointer-events: none; }
.pk-agree::before {
	content: ''; flex: 0 0 auto; width: 24px; height: 24px;
	border: 2px solid hsl(var(--border)); border-radius: 50%; background: #fff; transition: .15s;
}
.pk-agree::after {
	content: ''; position: absolute; left: 26px; top: 50%; width: 7px; height: 12px;
	border: solid hsl(var(--primary)); border-width: 0 3px 3px 0;
	transform: translateY(-62%) rotate(45deg); opacity: 0; transition: opacity .15s;
}
.pk-agree:hover { border-color: hsl(var(--primary)); }
.pk-agree.is-selected { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: #fff; }
.pk-agree.is-selected::before { border-color: #fff; background: #fff; }
.pk-agree.is-selected::after { opacity: 1; }
.pk-agree a { color: inherit; text-decoration: underline; }

/* ── tlačítka / navigace ── */
.pk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: hsl(var(--primary)); color: #fff; border: 0; border-radius: 8px;
	padding: 13px 26px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
	text-decoration: none; transition: filter .15s, transform .15s;
}
.pk-btn:hover { filter: brightness(1.08); }
.pk-btn[disabled] { opacity: .5; cursor: not-allowed; }
.pk-btn-ghost { background: hsl(var(--background)); color: hsl(var(--secondary)); border: 1px solid hsl(var(--border)); }
.pk-submit { margin-top: 20px; width: 100%; }
.pk-submit-err { color: #d64545; font-size: 14px; margin: 14px 0 0; font-weight: 600; }
.wizard-nav { margin-top: 24px; display: flex; justify-content: space-between; gap: 10px; }
.wizard-nav .pk-btn:only-child { margin-left: auto; }

/* ── doplňky kroků ── */
.pk-class-suggest {
	margin-left: 8px; font-weight: 600; font-size: 12.5px; cursor: pointer;
	background: hsl(var(--primary) / .1); color: hsl(var(--primary));
	border: 1px dashed hsl(var(--primary) / .45);
	border-radius: 999px; padding: 2px 10px;
}
.pk-class-suggest:hover { background: hsl(var(--primary) / .18); }
.pk-class-suggest u { text-underline-offset: 2px; }
.pk-age {
	margin-left: 8px; font-weight: 600; font-size: 12.5px;
	background: hsl(var(--primary) / .1); color: hsl(var(--secondary));
	border-radius: 999px; padding: 2px 10px;
}
.pk-gdpr-note { font-size: 13px; color: hsl(var(--muted-foreground)); margin: 14px 0 0; }
.pk-gdpr-note a { color: inherit; text-decoration: underline; }

/* ── platba na success: pokyny + QR vedle sebe ── */
.pk-pay-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; margin-top: 18px; text-align: left; }
.pk-qr {
	border: 1px solid hsl(var(--border)); border-radius: 10px;
	padding: 12px 14px 8px; text-align: center; background: #fff;
}
.pk-qr svg { display: block; margin: 0 auto; }
.pk-qr p { margin: 6px 0 0; font-size: 11.5px; color: hsl(var(--muted-foreground)); max-width: 150px; }
.pk-next-steps { text-align: left; margin-top: 18px; background: hsl(var(--muted)); border-radius: 10px; padding: 16px 20px; }
.pk-next-steps h4 { margin: 0 0 8px; color: hsl(var(--secondary)); }
.pk-next-steps ol { margin: 0; padding-left: 20px; font-size: 14.5px; }
.pk-next-steps li { margin-bottom: 8px; line-height: 1.5; }
.pk-next-lead { margin: 0 0 8px; font-size: 14.5px; }
.pk-next-bye { margin: 10px 0 0; font-weight: 600; color: hsl(var(--secondary)); }
@media (max-width: 640px) {
	.pk-pay-grid { grid-template-columns: 1fr; }
	.pk-qr { justify-self: center; }
}

/* ── success + stavové karty ── */
.pk-success { text-align: center; border-radius: 12px; }
.pk-success-icon {
	width: 72px; height: 72px; margin: 6px auto 14px; border-radius: 50%;
	background: hsl(var(--primary) / .12); color: hsl(var(--primary));
	font-size: 40px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.pk-success h2 { color: hsl(var(--secondary)); margin: 0 0 10px; }
.pk-payment { text-align: left; margin-top: 18px; }

.pk-card-msg {
	background: hsl(var(--background)); border-radius: 12px; padding: 36px 32px;
	box-shadow: 0 10px 34px hsl(var(--secondary) / .08); text-align: center;
}
.pk-card-msg h2 { color: hsl(var(--secondary)); margin: 0 0 12px; }
.pk-search { position: relative; margin-top: 14px; }
.pk-search svg {
	position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
	width: 16px; height: 16px; color: hsl(var(--muted-foreground)); pointer-events: none;
}
.pk-search input {
	width: 100%; border: 1px solid hsl(var(--border)); border-radius: 999px;
	background: hsl(var(--background)); padding: 10px 18px 10px 42px;
	font: inherit; font-size: 15px; color: hsl(var(--foreground));
	transition: border-color .2s, box-shadow .2s;
}
.pk-search input:focus {
	outline: none; border-color: hsl(var(--primary));
	box-shadow: 0 0 0 3px hsl(var(--primary) / .15);
}
.pk-search input::placeholder { color: hsl(var(--muted-foreground)); }
.pk-course-list { list-style: none; margin: 14px 0 0; padding: 0; text-align: left; }
.pk-course-list li { border-bottom: 1px solid hsl(var(--border) / .6); }
/* Celý řádek je odkaz: vlevo název + drobný řádek s daty kurzu, vpravo štítek obsazenosti
   (nezalamuje se pod název — dlouhý název se láme jen ve svém sloupci). */
.pk-course-list a {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 11px 8px; color: hsl(var(--secondary)); text-decoration: none; border-radius: 8px;
}
.pk-course-list a:hover { background: hsl(var(--primary) / .06); }
.pk-course-list a:hover strong { color: hsl(var(--primary)); }
.pk-course-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pk-course-main strong { font-weight: 600; }
.pk-course-main small { font-size: 13px; color: hsl(var(--muted-foreground)); font-weight: 400; }

/* ── storno dialog ── */
.pk-dialog {
	border: 0; border-radius: 12px; padding: 0; max-width: 560px; width: calc(100% - 40px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25); font-family: inherit; color: hsl(var(--foreground));
}
.pk-dialog::backdrop { background: rgba(10, 30, 45, .55); }
.pk-dialog-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 20px; border-bottom: 1px solid hsl(var(--border));
}
.pk-dialog-head h4 { margin: 0; color: hsl(var(--secondary)); }
.pk-dialog-head button { border: 0; background: none; font-size: 26px; cursor: pointer; color: hsl(var(--muted-foreground)); }
/* Podmínky účasti jsou dlouhé — roluje tělo, hlavička a tlačítko Zavřít zůstávají vidět. */
.pk-dialog-body { padding: 18px 20px; font-size: 14.5px; max-height: min(66vh, 620px); overflow-y: auto; }
.pk-dialog-foot { padding: 0 20px 18px; text-align: right; }

/* ── responsivita ── */
@media (max-width: 920px) {
	.pk-cols { grid-template-columns: 1fr; }
	#left_form { position: static; min-height: 0; padding: 26px 24px; }
	/* Cena i termíny zůstávají i na mobilu — rodiče přicházejí hlavně z telefonu. */
}
@media (max-width: 640px) {
	.pk-row { grid-template-columns: 1fr; }
	.stepy-titles li { padding: 8px 12px; flex: 1; text-align: center; }
	.stepy-titles li span { display: none; }
	.pk-steps-col form, .pk-success { padding: 20px 16px; border-radius: 0 0 12px 12px; }
	.pk-summary-row { grid-template-columns: 1fr; gap: 2px; }
}

/* ── Rezervace náhradníků (plný kurz) — banner ve wizardu, poznámka na success,
      štítky obsazenosti na rozcestníku ── */
.pk-waitlist-banner {
	background: #fff7e8; border: 1px solid #f0d9a8; border-radius: 10px;
	padding: 13px 16px; margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: #7a5a1e;
}
.pk-waitlist-banner strong { display: block; margin-bottom: 3px; }
.pk-waitlist-note {
	background: #fff7e8; border: 1px solid #f0d9a8; border-radius: 10px;
	padding: 14px 18px; margin: 18px 0; font-size: 14.5px; line-height: 1.55; color: #7a5a1e;
	text-align: left;
}
.pk-badge {
	display: inline-block; padding: 3px 10px; border-radius: 999px;
	font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.pk-badge-volno { background: #e3f6ec; color: #156a42; }
.pk-badge-posledni { background: #fdf0d7; color: #8a5d10; }
.pk-badge-nahradnici { background: #e8eef3; color: #44596a; }

/* Párování fontů: Oswald jen display (nadpisy, krokové titulky, tlačítka) —
   běžný text formuláře nese Roboto Flex kvůli čitelnosti malých textů. */
h1, h2, h3, h4,
.stepy-titles li,
.pk-btn {
	font-family: 'Oswald', system-ui, sans-serif;
}

/* Rozcestník na telefonu: štítek obsazenosti pod názvem (vedle sebe se text mačkal),
   karta s menším vnitřním okrajem. */
@media (max-width: 640px) {
	.pk-card-msg { padding: 28px 18px; }
	.pk-course-list a { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── Další dítě (sourozenec) na success obrazovce ── */
.pk-another { margin-top: 22px; padding-top: 18px; border-top: 1px solid hsl(var(--border)); }
.pk-another .pk-muted { margin: 8px 0 0; }
