/* Trautenberk Rezervace – frontend formulář. Záměrně neutrální styl, ladí s tématem. */
.tr-rez {
	max-width: 640px;
	margin: 0 auto;
}

.tr-rez-form .tr-rez-field {
	margin-bottom: 16px;
}

.tr-rez-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 12px;
}

.tr-rez-form input[type="text"],
.tr-rez-form input[type="email"],
.tr-rez-form input[type="tel"],
.tr-rez-form input[type="date"],
.tr-rez-form input[type="number"],
.tr-rez-form select,
.tr-rez-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #c9ccbf;
	border-radius: 6px;
	font-size: 16px;
	background: #fff;
	color: #383F22;
}

.tr-rez-form input:focus,
.tr-rez-form select:focus,
.tr-rez-form textarea:focus {
	outline: none;
	border-color: #383F22;
	box-shadow: 0 0 0 2px rgba(56, 63, 34, 0.15);
}

/* Select s vlastní šipkou (ve stylu ACF) – odsazená od kraje, ne nalepená. */
.tr-rez-form select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 42px;
	cursor: pointer;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23383F22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px 16px;
}

.tr-rez-form select::-ms-expand {
	display: none;
}

.tr-rez-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.tr-rez-row .tr-rez-field {
	flex: 1 1 220px;
}

.tr-rez-field-narrow {
	max-width: 200px;
}

.tr-req {
	color: #b3261e;
}

.tr-rez-consents {
	margin: 20px 0;
	padding: 16px;
	background: #f4f5ef;
	border-radius: 8px;
}

.tr-rez-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	margin-bottom: 12px;
	cursor: pointer;
}

.tr-rez-check:last-of-type {
	margin-bottom: 0;
}

.tr-rez-check input[type="checkbox"] {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.tr-rez-submit button {
	background: #383F22;
	color: #fff;
	border: none;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.tr-rez-submit button:hover {
	background: #4d5630;
}

.tr-rez-error {
	display: block;
	color: #b3261e;
	font-size: 14px;
	margin-top: 6px;
}

.tr-rez-error-block {
	padding: 12px 16px;
	background: #fbeae9;
	border: 1px solid #f1c4c1;
	border-radius: 6px;
	margin-bottom: 20px;
}

.tr-rez-success {
	padding: 36px 28px;
	background: #eef4e8;
	border: 1px solid #cfe0bf;
	border-radius: 12px;
	text-align: center;
}

.tr-rez-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: #383F22;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(56, 63, 34, .35);
	animation: tr-rez-pop .35s ease-out;
}

.tr-rez-success-icon svg {
	width: 32px;
	height: 32px;
	stroke-width: 2;
	color: #fff;
	stroke: #fff;
	margin: 0;
	vertical-align: middle;
	display: block;
}

@keyframes tr-rez-pop {
	0%   { transform: scale(0); }
	70%  { transform: scale(1.15); }
	100% { transform: scale(1); }
}

.tr-rez-success h3 {
	margin: 0 0 8px;
	color: #383F22;
	font-size: 22px;
}

.tr-rez-success p {
	margin: 0 auto 6px;
	max-width: 420px;
	color: #4a4f3d;
}

.tr-rez-success-note {
	font-size: 14px;
	opacity: .8;
}

/* Honeypot – schováno mimo obrazovku. */
.tr-rez-hp {
	position: absolute;
	left: -5000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Kalendář (Vanilla Calendar Pro) – sladění s barvami webu ---- */
.tr-rez-calendar {
	margin-top: 4px;
}

/* Krok 1: kalendář vlevo, čas + počet osob vpravo. */
.tr-rez-step1-grid {
	display: flex;
	gap: 56px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.tr-rez-step1-grid .tr-rez-col-left {
	flex: 0 0 320px;
	max-width: 100%;
}

.tr-rez-step1-grid .tr-rez-col-right {
	flex: 1 1 240px;
	min-width: 220px;
}

.tr-rez-step1-grid .tr-rez-field {
	margin-bottom: 28px;
}

/* Knihovna přidává třídu vanilla-calendar přímo na .tr-rez-calendar (to je root). */
.tr-rez-calendar {
	width: 100%;
	padding: 14px;
	border: 1px solid #e6e8df;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.05 );
	background: #fff;
	box-sizing: border-box;
}

/* Roztáhnout obsah i mřížku na celou šířku sloupce. */
.tr-rez-calendar .vanilla-calendar-content,
.tr-rez-calendar .vanilla-calendar-week,
.tr-rez-calendar .vanilla-calendar-days {
	width: 100% !important;
	max-width: none !important;
}

.tr-rez-calendar .vanilla-calendar-week,
.tr-rez-calendar .vanilla-calendar-days {
	grid-template-columns: repeat( 7, 1fr ) !important;
	gap: 2px !important;
}

/* Uhlazené, kompaktní prvky kalendáře. */
.tr-rez-calendar .vanilla-calendar-header {
	margin-bottom: 6px;
}

.tr-rez-calendar .vanilla-calendar-header__content {
	font-size: 16px;
	font-weight: 700;
}

.tr-rez-calendar .vanilla-calendar-week__day {
	font-size: 13px;
	padding-bottom: 4px;
}

.tr-rez-calendar .vanilla-calendar-day__btn {
	width: 100%;
	height: 38px;
	font-size: 14px;
	border-radius: 8px;
}

.tr-rez-calendar .vanilla-calendar-day__btn_selected,
.tr-rez-calendar .vanilla-calendar-day__btn_selected:hover,
.tr-rez-calendar .vanilla-calendar-day__btn_weekend.vanilla-calendar-day__btn_selected:not(.vanilla-calendar-day__btn_disabled),
.tr-rez-calendar .vanilla-calendar-day__btn_holiday.vanilla-calendar-day__btn_selected:not(.vanilla-calendar-day__btn_disabled) {
	background-color: #383F22 !important;
	color: #fff !important;
}

/* Víkendy/svátky nebarvit červeně – sjednotit s brand barvou (mimo zakázané dny). */
.tr-rez-calendar .vanilla-calendar-day__btn_weekend:not(.vanilla-calendar-day__btn_disabled),
.tr-rez-calendar .vanilla-calendar-day__btn_holiday:not(.vanilla-calendar-day__btn_disabled) {
	color: #383F22 !important;
}

/* Hlavičky dnů So/Ne – neutrální místo červené. */
.tr-rez-calendar .vanilla-calendar-week__day_weekend {
	color: #8a8f7a !important;
}

/* Dnešní den – v brand oranžové z webu (#F9964A). */
.tr-rez-calendar .vanilla-calendar-day__btn_today {
	color: #F9964A !important;
	background-color: transparent !important;
	box-shadow: inset 0 0 0 2px #F9964A !important;
}

.tr-rez-calendar .vanilla-calendar-day__btn_hover {
	background-color: #eef0e7;
}

.tr-rez-calendar .vanilla-calendar-arrow:hover {
	background-color: #eef0e7;
}

/* ---- Dlaždice s časy ---- */
.tr-rez-times {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.tr-rez-form .tr-rez-chip {
	padding: 9px 14px !important;
	border: 1px solid #c9ccbf !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #383F22 !important;
	font-size: 15px !important;
	line-height: 1.2 !important;
	width: auto !important;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tr-rez-form .tr-rez-chip:hover {
	border-color: #383F22 !important;
	background: #eef0e7 !important;
}

.tr-rez-form .tr-rez-chip.is-selected {
	background: #383F22 !important;
	border-color: #383F22 !important;
	color: #fff !important;
}

.tr-rez-times-msg {
	color: #8a8f7a;
	font-size: 14px;
	padding: 6px 0;
}

/* ---- Čas od–do (pod sebou) ---- */
.tr-rez-time-note {
	margin: 0;
	color: #8a8f7a;
	font-size: 14px;
}

.tr-rez-time-range {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 280px;
}

.tr-rez-time-col {
	display: flex;
	align-items: stretch;
}

/* "od"/"do" jako addon přilepený zleva k selectu (styl ACF). */
.tr-rez-time-col .tr-rez-sub {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 48px;
	padding: 0 12px;
	background: #f4f5ef;
	border: 1px solid #c9ccbf;
	border-right: none;
	border-radius: 6px 0 0 6px;
	color: #777;
	font-size: 14px;
	white-space: nowrap;
}

.tr-rez-time-col select {
	flex: 1 1 auto;
	min-width: 0;
	border-radius: 0 6px 6px 0;
}

/* Ikony v popiskách (Lucide). */
.tr-rez-ico {
	width: 18px;
	height: 18px;
	vertical-align: -3px;
	margin-right: 5px;
	color: #383F22;
}

/* ---- Počet osob: stepper +/- ---- */
.tr-rez-stepper {
	display: flex;
	align-items: stretch;
	max-width: 170px;
}

.tr-rez-stepper input[type="number"] {
	text-align: center;
	border-radius: 0 !important;
	-moz-appearance: textfield;
	appearance: textfield;
}

.tr-rez-stepper input[type="number"]::-webkit-outer-spin-button,
.tr-rez-stepper input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tr-rez-step-btn {
	flex: 0 0 46px;
	border: 1px solid #c9ccbf;
	background: #f4f5ef;
	color: #383F22;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.12s ease;
}

.tr-rez-step-btn:first-child {
	border-radius: 8px 0 0 8px;
	border-right: none;
}

.tr-rez-step-btn:last-child {
	border-radius: 0 8px 8px 0;
	border-left: none;
}

.tr-rez-step-btn:hover {
	background: #e7e9df;
}

/* Aktivní/zaměřený stav stepperu i čísla v brand oranžové (místo výchozí růžové). */
.tr-rez-stepper input[type="number"]:focus,
.tr-rez-step-btn:focus,
.tr-rez-step-btn:focus-visible,
.tr-rez-step-btn:active {
	outline: none;
	border-color: #F9964A;
	box-shadow: 0 0 0 2px rgba( 249, 150, 74, 0.3 );
	position: relative;
	z-index: 1;
}

/* ---- Ikona uvnitř inputu (krok 2) ---- */
.tr-rez-input-icon {
	position: relative;
}

.tr-rez-input-icon .tr-rez-ico {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY( -50% );
	margin: 0;
	color: #9aa08a;
	pointer-events: none;
}

.tr-rez-input-icon-top .tr-rez-ico {
	top: 14px;
	transform: none;
}

.tr-rez-form .tr-rez-input-icon input,
.tr-rez-form .tr-rez-input-icon textarea {
	padding-left: 42px;
}

/* ---- Progres bar ---- */
.tr-rez-progress {
	display: flex;
	align-items: center;
	margin: 0 0 30px;
}

.tr-rez-pstep {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #9aa08a;
	font-size: 14px;
	font-weight: 600;
}

.tr-rez-pstep:not( :last-child ) {
	flex: 1 1 auto;
}

.tr-rez-pstep:not( :last-child )::after {
	content: "";
	flex: 1 1 auto;
	height: 2px;
	background: #e3e5dc;
	margin: 0 12px;
}

.tr-rez-pnum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #d7d9cf;
	color: #fff;
	font-size: 14px;
}

.tr-rez-pstep.is-active {
	color: #383F22;
}

.tr-rez-pstep.is-active .tr-rez-pnum {
	background: #383F22;
}

.tr-rez-pstep.is-done {
	color: #383F22;
}

.tr-rez-pstep.is-done .tr-rez-pnum {
	background: #F9964A;
}

/* ---- Zavírací křížek Elementor popupu s naším formulářem ----
   Byl bílý na bílém pozadí (neviditelný). Uděláme z něj zelený čtverec 60×60.
   Třídu .tr-rez-dialog přidává form.js na .dialog-widget-content. */
.tr-rez-dialog .dialog-close-button {
	top: 0;
	right: 0;
	width: 60px;
	height: 60px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #383F22;
	border-radius: 0;
	opacity: 1;
	transition: background 0.15s ease;
}

.tr-rez-dialog .dialog-close-button:hover {
	background: #4d5630;
}

.tr-rez-dialog .dialog-close-button svg,
.tr-rez-dialog .dialog-close-button i {
	width: 26px;
	height: 26px;
	font-size: 26px;
	fill: #fff;
	color: #fff;
}

/* Odkaz u souhlasu se zpracováním osobních údajů – ať je vidět, že je to odkaz. */
.tr-rez-consents a {
	text-decoration: underline;
}

/* ---- Průvodce (kroky) ---- */
.tr-rez-step {
	display: none;
}

.tr-rez-step.is-active {
	display: block;
}

.tr-rez-title {
	margin: 0 0 32px;
	font-size: 24px;
	font-weight: 700;
	color: #383F22;
}

.tr-rez-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 22px;
}

.tr-rez-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #383F22;
	color: #fff;
	border: 2px solid #383F22;
	padding: 13px 26px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.tr-rez-btn .tr-rez-ico {
	color: currentColor;
	margin: 0;
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

.tr-rez-btn:hover {
	background: #4d5630;
	border-color: #4d5630;
}

.tr-rez-btn.tr-rez-next,
.tr-rez-step[data-step="3"] .tr-rez-btn[type="submit"] {
	margin-left: auto;
}

.tr-rez-btn-ghost {
	background: transparent;
	color: #383F22;
}

.tr-rez-btn-ghost:hover {
	background: #eef0e7;
	color: #383F22;
}

/* ---- Souhrn rezervace (krok 3) ---- */
.tr-rez-summary {
	background: #f4f5ef;
	border-radius: 10px;
	padding: 6px 18px;
	margin-bottom: 20px;
}

.tr-rez-sum-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #e3e5dc;
}

.tr-rez-sum-row:last-child {
	border-bottom: none;
}

.tr-rez-sum-label {
	color: #777;
}

.tr-rez-sum-val {
	font-weight: 600;
	color: #383F22;
	text-align: right;
}
