/* Pejas Rezervace – vzhled formulářů. Barvy lze přepsat proměnnými v šabloně. */
.pej-app {
	--pej-primary: #00b4f0;
	--pej-primary-dark: #0090c8;
	--pej-ink: #16202b;
	--pej-muted: #64748b;
	--pej-line: #e2e8f0;
	--pej-soft: #f4f8fb;
	--pej-radius: 14px;
	--pej-ok: #16a34a;
	color: var(--pej-ink);
	font-size: 16px;
	line-height: 1.5;
}
.pej-app *, .pej-app *::before, .pej-app *::after { box-sizing: border-box; }
.pej-app [hidden] { display: none !important; }
.pej-app h3 { margin: 0; font-size: 1.25rem; line-height: 1.3; }

/* Kroky */
.pej-step { background: #fff; border: 1px solid var(--pej-line); border-radius: var(--pej-radius); padding: 24px; margin: 0 0 20px; box-shadow: 0 6px 24px rgba(15, 35, 60, .05); }
.pej-step-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.pej-step-head p { margin: 2px 0 0; color: var(--pej-muted); font-size: .95rem; }
.pej-step-no { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--pej-primary); color: #fff; font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0, 180, 240, .35); }
.pej-sub { margin: 22px 0 10px; font-size: 1.05rem; }

/* Služby */
.pej-services { display: grid; gap: 8px; }
.pej-service { display: grid; grid-template-columns: 24px 1fr auto auto; gap: 14px; align-items: center; padding: 13px 16px; border: 1.5px solid var(--pej-line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; background: #fff; margin: 0; }
.pej-service:hover { border-color: var(--pej-primary); }
.pej-service input { position: absolute; opacity: 0; pointer-events: none; }
.pej-service-check { width: 22px; height: 22px; border: 2px solid #b6c2cf; border-radius: 6px; position: relative; transition: all .15s; }
.pej-service-check.pej-radio { border-radius: 50%; }
.pej-service:has(input:checked) { border-color: var(--pej-primary); background: #effaff; box-shadow: 0 0 0 3px rgba(0, 180, 240, .12); }
.pej-service:has(input:checked) .pej-service-check { background: var(--pej-primary); border-color: var(--pej-primary); }
.pej-service:has(input:checked) .pej-service-check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pej-service:has(input:focus-visible) { outline: 2px solid var(--pej-primary-dark); outline-offset: 2px; }
.pej-service-name { font-weight: 600; font-size: .98rem; }
.pej-service-name small { display: block; font-weight: 400; color: var(--pej-muted); }
.pej-service-dur { color: var(--pej-muted); font-size: .9rem; white-space: nowrap; }
.pej-service-price { font-weight: 700; white-space: nowrap; color: var(--pej-primary-dark); }

/* Balíčky mytí */
.pej-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pej-pack { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--pej-line); border-radius: var(--pej-radius); padding: 22px; cursor: pointer; background: #fff; transition: all .2s; margin: 0; }
.pej-pack input { position: absolute; opacity: 0; pointer-events: none; }
.pej-pack:hover { border-color: var(--pej-primary); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 35, 60, .08); }
.pej-pack-featured { border-color: var(--pej-primary); }
.pej-pack-featured::before { content: "Nejoblíbenější"; position: absolute; top: -12px; left: 22px; background: var(--pej-primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; letter-spacing: .02em; }
.pej-pack.is-selected, .pej-pack:has(input:checked) { border-color: var(--pej-primary); background: #effaff; box-shadow: 0 0 0 3px rgba(0, 180, 240, .15); }
.pej-pack-top { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--pej-line); }
.pej-pack-name { font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.pej-pack-price { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--pej-primary-dark); }
.pej-pack-dur { color: var(--pej-muted); font-size: .9rem; line-height: 1.3; }
.pej-pack-list { list-style: none; margin: 0 0 16px; padding: 0; font-size: .92rem; flex: 1; }
.pej-pack-list li { padding: 4px 0 4px 24px; position: relative; }
.pej-pack-list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 11px; border: solid var(--pej-ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pej-pack-btn { display: block; text-align: center; border: 1.5px solid var(--pej-primary); color: var(--pej-primary-dark); border-radius: 99px; padding: 9px; font-weight: 700; transition: all .15s; }
.pej-pack:has(input:checked) .pej-pack-btn { background: var(--pej-primary); color: #fff; }
.pej-pack:has(input:checked) .pej-pack-btn::before { content: "✓ "; }

/* Dny a časy */
.pej-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; }
.pej-day { flex: 0 0 82px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 0; border: 1.5px solid var(--pej-line); background: #fff; border-radius: 12px; padding: 10px 4px; cursor: pointer; color: var(--pej-ink); font: inherit; line-height: 1.2; transition: all .15s; }
.pej-day:hover:not(:disabled) { border-color: var(--pej-primary); }
.pej-day-name { text-transform: uppercase; font-size: .75rem; color: var(--pej-muted); font-weight: 700; }
.pej-day-num { font-size: 1.45rem; font-weight: 800; }
.pej-day-mon { font-size: .8rem; color: var(--pej-muted); }
.pej-day-free { font-size: .7rem; margin-top: 4px; color: var(--pej-ok); font-weight: 600; }
.pej-day.is-off { opacity: .45; cursor: not-allowed; }
.pej-day.is-off .pej-day-free { color: var(--pej-muted); }
.pej-day.is-active { background: var(--pej-primary); border-color: var(--pej-primary); color: #fff; box-shadow: 0 8px 18px rgba(0, 180, 240, .3); }
.pej-day.is-active span { color: #fff; }
.pej-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 6px; }
.pej-times .pej-hint { grid-column: 1 / -1; }
.pej-time { border: 1.5px solid var(--pej-line); background: #fff; border-radius: 10px; padding: 10px 6px; font: inherit; font-weight: 700; cursor: pointer; color: var(--pej-ink); transition: all .15s; }
.pej-time:hover { border-color: var(--pej-primary); color: var(--pej-primary-dark); }
.pej-time.is-active { background: var(--pej-primary); border-color: var(--pej-primary); color: #fff; }
.pej-hint { color: var(--pej-muted); margin: 6px 0; font-size: .95rem; }

/* Pole formuláře */
.pej-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.pej-field { display: flex; flex-direction: column; gap: 5px; margin: 0; font-weight: 600; font-size: .9rem; }
.pej-field-wide { grid-column: 1 / -1; }
.pej-app .pej-field input, .pej-app .pej-field select, .pej-app .pej-field textarea { width: 100%; border: 1.5px solid var(--pej-line); border-radius: 10px; padding: 11px 13px; font: inherit; font-weight: 400; background: #fff; color: var(--pej-ink); min-height: 46px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.pej-app .pej-field input:focus, .pej-app .pej-field select:focus, .pej-app .pej-field textarea:focus { outline: none; border-color: var(--pej-primary); box-shadow: 0 0 0 3px rgba(0, 180, 240, .15); }
.pej-app .pej-invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important; }
.pej-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pej-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: .9rem; color: var(--pej-muted); }
.pej-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--pej-primary); }
.pej-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.pej-summary > div { background: var(--pej-soft); border-radius: 12px; padding: 12px 14px; }
.pej-summary span { display: block; font-size: .8rem; color: var(--pej-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.pej-summary strong { font-size: 1.05rem; }
.pej-app .pej-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--pej-primary); color: #fff; border: 0; border-radius: 99px; padding: 14px 30px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; box-shadow: 0 10px 22px rgba(0, 180, 240, .3); line-height: 1.2; }
.pej-app .pej-btn:hover { background: var(--pej-primary-dark); color: #fff; transform: translateY(-1px); }
.pej-app .pej-btn:disabled { opacity: .6; cursor: wait; }
.pej-app .pej-btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: pej-spin .7s linear infinite; }
@keyframes pej-spin { to { transform: rotate(360deg); } }
.pej-app .pej-btn-sm { padding: 10px 18px; font-size: .9rem; box-shadow: none; }
.pej-submit { width: 100%; }
.pej-note { color: var(--pej-muted); font-size: .9rem; text-align: center; margin: 12px 0 0; }
.pej-msg { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 10px; padding: 12px 16px; margin: 14px 0; font-weight: 600; }
.pej-done { text-align: center; background: #fff; border: 1px solid var(--pej-line); border-radius: var(--pej-radius); padding: 36px 24px; }
.pej-done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--pej-ok); color: #fff; font-size: 34px; line-height: 64px; margin: 0 auto 12px; }
.pej-done-when { font-weight: 700; }

/* Ceník */
.pej-pricelist { width: 100%; border-collapse: collapse; }
.pej-pricelist td { padding: 10px 12px; border-bottom: 1px solid var(--pej-line); }
.pej-pricelist td:nth-child(2) { color: var(--pej-muted); white-space: nowrap; }
.pej-pricelist td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }

/* Výpis vozidel */
.pej-vehicles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.pej-vehicle-card { background: #fff; border: 1px solid var(--pej-line); border-radius: var(--pej-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.pej-vehicle-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 35, 60, .1); }
.pej-vehicle-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--pej-soft); overflow: hidden; }
.pej-vehicle-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pej-vehicle-card:hover .pej-vehicle-img img { transform: scale(1.04); }
.pej-badge { display: inline-block; background: var(--pej-primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; letter-spacing: .02em; }
.pej-vehicle-img .pej-badge { position: absolute; left: 14px; top: 14px; }
.pej-vehicle-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pej-vehicle-body h3 { font-size: 1.2rem; margin: 0 0 10px; }
.pej-vehicle-body h3 a { color: var(--pej-ink); text-decoration: none; }
.pej-chips { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pej-chips li { background: var(--pej-soft); border-radius: 8px; padding: 4px 9px; font-size: .82rem; }
.pej-chips li span { color: var(--pej-muted); }
.pej-vehicle-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pej-from { color: var(--pej-muted); }
.pej-from strong { color: var(--pej-ink); font-size: 1.2rem; }

/* Detail vozidla */
.pej-vehicle-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 32px; align-items: start; margin-bottom: 36px; }
.pej-gallery-main { display: block; border-radius: var(--pej-radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--pej-soft); cursor: zoom-in; }
.pej-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pej-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.pej-gallery-thumbs a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 1; opacity: .7; border: 2px solid transparent; transition: all .15s; }
.pej-gallery-thumbs a.is-active, .pej-gallery-thumbs a:hover { opacity: 1; border-color: var(--pej-primary); }
.pej-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pej-rent-box { position: sticky; top: 110px; background: #fff; border: 1px solid var(--pej-line); border-radius: var(--pej-radius); padding: 24px; box-shadow: 0 14px 40px rgba(15, 35, 60, .08); }
.pej-app .pej-rent-title { font-size: 1.6rem; margin: 10px 0 14px; line-height: 1.2; }
.pej-tier-table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: .95rem; }
.pej-tier-table td { padding: 7px 0; border-bottom: 1px dashed var(--pej-line); }
.pej-tier-table td:last-child { text-align: right; }
.pej-tier-table strong { color: var(--pej-primary-dark); font-size: 1.05rem; }
.pej-deposit { background: #fff8e6; border-radius: 10px; padding: 9px 12px; font-size: .9rem; margin: 0 0 16px; }
.pej-rent-dates { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.pej-cal { margin: 14px 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pej-cal-month { min-width: 0; }
.pej-cal-head { display: flex; align-items: center; justify-content: center; position: relative; font-weight: 700; font-size: .9rem; text-transform: capitalize; margin-bottom: 6px; min-height: 28px; }
.pej-cal-prev, .pej-cal-next { position: absolute; top: 0; background: var(--pej-soft); border: 0; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; font-size: 18px; line-height: 1; color: var(--pej-ink); }
.pej-cal-prev { left: 0; }
.pej-cal-next { right: 0; }
.pej-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.pej-cal-dn { font-size: .68rem; color: var(--pej-muted); text-transform: uppercase; font-weight: 700; }
.pej-cal-day { border: 0; background: #ecfdf3; color: var(--pej-ink); border-radius: 6px; font: inherit; font-size: .8rem; padding: 5px 0; cursor: pointer; }
.pej-cal-day.is-busy { background: #fde2e2; color: #9f1239; }
.pej-cal-day.is-closed, .pej-cal-day.is-past { background: transparent; color: #c0c8d2; cursor: default; }
.pej-cal-day.is-range { outline: 2px solid var(--pej-primary); outline-offset: -2px; font-weight: 700; }
.pej-cal-legend { grid-column: 1 / -1; font-size: .75rem; color: var(--pej-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pej-cal-legend span { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.pej-cal-legend .is-free { background: #ecfdf3; border: 1px solid #bbf7d0; }
.pej-cal-legend .is-busy { background: #fde2e2; }
.pej-cal-legend .is-closed { background: #f1f5f9; }
.pej-rent-price { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #effaff; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.pej-rent-desc { color: var(--pej-muted); font-size: .9rem; }
.pej-rent-total { font-size: 1.4rem; color: var(--pej-primary-dark); white-space: nowrap; }
.pej-rent-place { font-size: .85rem; color: var(--pej-muted); margin: 8px 0 14px; }
.pej-rent-next { width: 100%; }
.pej-rent-customer { margin-top: 18px; border-top: 1px solid var(--pej-line); padding-top: 18px; }
.pej-rent-customer .pej-fields { grid-template-columns: 1fr; }
.pej-section { margin: 0 0 32px; }
.pej-section h3 { font-size: 1.35rem; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--pej-line); position: relative; }
.pej-section h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--pej-primary); }
.pej-check-list { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 32px; }
.pej-check-list li { padding: 5px 0 5px 26px; position: relative; break-inside: avoid; }
.pej-check-list li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 6px; height: 11px; border: solid var(--pej-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pej-check-list.pej-plus li::before { content: "+"; border: 0; transform: none; color: var(--pej-primary); font-weight: 800; top: 3px; left: 4px; width: auto; height: auto; }
.pej-params { width: 100%; border-collapse: collapse; }
.pej-params th, .pej-params td { padding: 9px 12px; border-bottom: 1px solid var(--pej-line); text-align: left; font-size: .95rem; }
.pej-params th { font-weight: 600; width: 50%; background: var(--pej-soft); }
.pej-lightbox { position: fixed; inset: 0; background: rgba(8, 14, 22, .92); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.pej-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.pej-lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.pej-lb-close { top: 18px; right: 18px; }
.pej-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.pej-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Poptávka */
.pej-inquiry form { background: #fff; border: 1px solid var(--pej-line); border-radius: var(--pej-radius); padding: 26px; box-shadow: 0 6px 24px rgba(15, 35, 60, .05); }
.pej-inquiry-title { margin-bottom: 16px !important; }
.pej-inquiry .pej-submit { margin-top: 10px; }

@media (max-width: 900px) {
	.pej-vehicle-top { grid-template-columns: 1fr; }
	.pej-rent-box { position: static; }
}
@media (max-width: 640px) {
	.pej-step { padding: 18px 14px; }
	.pej-service { grid-template-columns: 22px 1fr auto; gap: 10px; padding: 12px; }
	.pej-service-dur { grid-column: 2; grid-row: 2; margin-top: -8px; }
	.pej-service-price { grid-column: 3; grid-row: 1 / span 2; }
	.pej-fields { grid-template-columns: 1fr; }
	.pej-summary { grid-template-columns: 1fr 1fr; }
	.pej-summary > div:first-child { grid-column: 1 / -1; }
}
.pej-cal.is-single { grid-template-columns: 1fr; }
