/* Quad Tours Booking – boekingsformulier in de huisstijl van Quad Tours Marbella.
 * Kleuren en lettertypes komen uit het thema (--qtm-*); de waarden na de komma zijn de reserve. */
.qtb {
	--qtb-gold: var(--qtb-accent, var(--qtm-goud, #d4a845));
	--qtb-gold-light: var(--qtm-goud-licht, #f0d080);
	--qtb-gold-dark: var(--qtm-goud-donker, #b8892e);
	--qtb-grad: var(--qtm-verloop, linear-gradient(100deg, #b8892e 0%, #f0d080 50%, #d4a845 100%));
	--qtb-font-head: var(--qtm-font-kop, 'Cinzel', 'Trajan Pro', Georgia, 'Times New Roman', serif);
	--qtb-font: var(--qtm-font-tekst, 'Montserrat', 'Helvetica Neue', Arial, sans-serif);
	--qtb-r: 6px;

	/* Zwart-goud (standaard) */
	--qtb-bg: #0c0b0a;
	--qtb-panel: #171513;
	--qtb-raise: #1f1c19;
	--qtb-line: rgba(212, 168, 69, 0.22);
	--qtb-line-strong: rgba(212, 168, 69, 0.55);
	--qtb-text: var(--qtm-creme, #f9f6ef);
	--qtb-muted: rgba(249, 246, 239, 0.64);
	--qtb-faint: rgba(249, 246, 239, 0.28);
	--qtb-gold-text: var(--qtb-gold);
	--qtb-on-gold: #141414;
	--qtb-field: #100f0d;
	--qtb-err-bg: rgba(224, 82, 64, 0.12);
	--qtb-err: #ff9b8c;

	max-width: 1120px;
	margin: 0 auto;
	padding: clamp(20px, 4vw, 44px);
	background: var(--qtb-bg);
	background-image: radial-gradient(120% 70% at 85% 0%, rgba(212, 168, 69, 0.10), transparent 60%);
	color: var(--qtb-text);
	font-family: var(--qtb-font);
	font-size: 16px;
	line-height: 1.55;
	border: 1px solid var(--qtb-line);
	border-radius: 10px;
	-webkit-font-smoothing: antialiased;
}
.qtb.qtb--light {
	--qtb-bg: var(--qtm-creme, #f9f6ef);
	--qtb-panel: #ffffff;
	--qtb-raise: #fbf8f2;
	--qtb-line: #e7dcc5;
	--qtb-line-strong: var(--qtb-gold-dark);
	--qtb-text: var(--qtm-zwart, #141414);
	--qtb-muted: rgba(20, 20, 20, 0.62);
	--qtb-faint: rgba(20, 20, 20, 0.3);
	--qtb-gold-text: var(--qtm-goud-tekst, #8a6418);
	--qtb-field: #ffffff;
	--qtb-err-bg: #fdecea;
	--qtb-err: #a3261b;
	background-image: none;
}
.qtb *, .qtb *::before, .qtb *::after { box-sizing: border-box; }
.qtb p { margin: 0; }
.qtb a { color: var(--qtb-gold-text); }

/* Kop */
.qtb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--qtb-line); }
.qtb .qtb-eyebrow {
	display: flex; align-items: center; gap: 12px; margin-bottom: 6px;
	font-family: var(--qtb-font-head); font-size: 13px; letter-spacing: .42em; text-transform: uppercase; color: var(--qtb-gold-text);
}
.qtb .qtb-eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--qtb-gold); }
.qtb .qtb-title {
	margin: 0; padding: 0; font-family: var(--qtb-font-head); font-weight: 600; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1;
	letter-spacing: .04em; color: var(--qtb-text);
}
.qtb--dark .qtb-title {
	background: var(--qtb-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.qtb-testmode {
	background: rgba(240, 208, 128, 0.12); color: var(--qtb-gold-text); border: 1px dashed var(--qtb-line-strong);
	padding: 10px 14px; border-radius: var(--qtb-r); font-size: 14px; margin-bottom: 22px !important;
}

/* Taalknoppen */
.qtb-langs { display: flex; gap: 2px; flex-wrap: wrap; border: 1px solid var(--qtb-line); border-radius: 999px; padding: 3px; }
.qtb .qtb-lang {
	min-width: 40px; min-height: 32px; padding: 4px 10px; margin: 0; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .12em;
	color: var(--qtb-muted); background: transparent; border: 0; border-radius: 999px; cursor: pointer; box-shadow: none; text-transform: uppercase;
}
.qtb .qtb-lang:hover { color: var(--qtb-text); }
.qtb .qtb-lang.is-active { background: var(--qtb-grad); color: var(--qtb-on-gold); }

/* Indeling: formulier + overzicht */
.qtb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.qtb-main { min-width: 0; }

/* Stappen */
.qtb-step { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--qtb-line); }
.qtb-step:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.qtb .qtb-step-title {
	display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 0;
	font-family: var(--qtb-font-head); font-weight: 600; font-size: 19px; letter-spacing: .06em; color: var(--qtb-text); line-height: 1.3;
}
.qtb-step-num {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
	border: 1px solid var(--qtb-gold); color: var(--qtb-gold-text); font-family: var(--qtb-font-head); font-size: 14px; font-weight: 700; letter-spacing: 0;
}

/* Tours */
.qtb-tours { display: grid; gap: 12px; }
.qtb-tour {
	position: relative; display: block; padding: 18px 20px 18px 54px; cursor: pointer; background: var(--qtb-panel);
	border: 1px solid var(--qtb-line); border-radius: var(--qtb-r); transition: border-color .2s, background .2s, transform .2s;
}
.qtb-tour:hover { border-color: var(--qtb-line-strong); }
.qtb-tour input { position: absolute; opacity: 0; pointer-events: none; }
.qtb-tour::before {
	content: ''; position: absolute; left: 20px; top: 22px; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--qtb-faint);
}
.qtb-tour.is-selected { border-color: var(--qtb-gold); background: var(--qtb-raise); box-shadow: inset 3px 0 0 var(--qtb-gold); }
.qtb-tour.is-selected::before { border-color: var(--qtb-gold); background: radial-gradient(circle, var(--qtb-gold) 0 5px, transparent 6px); }
.qtb-tour:has(input:focus-visible) { outline: 2px solid var(--qtb-gold); outline-offset: 2px; }
.qtb-tour-body { display: flex; flex-direction: column; gap: 6px; }
.qtb-tour-title { font-family: var(--qtb-font-head); font-size: 18px; font-weight: 600; letter-spacing: .04em; }
.qtb-tour-desc { color: var(--qtb-muted); font-size: 14.5px; }
.qtb-tour-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--qtb-muted); text-transform: uppercase; letter-spacing: .08em; }
.qtb-tour-price strong { color: var(--qtb-gold-text); font-size: 15px; letter-spacing: .02em; }
.qtb-single .qtb-tour { cursor: default; padding-left: 20px; }
.qtb-single .qtb-tour::before { display: none; }
.qtb-single { margin-bottom: 30px; }

/* Datum en tijd */
.qtb-when { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.qtb-cal { background: var(--qtb-panel); border: 1px solid var(--qtb-line); border-radius: var(--qtb-r); padding: 16px; outline: none; }
.qtb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qtb-cal-title { font-family: var(--qtb-font-head); font-weight: 600; letter-spacing: .06em; }
.qtb .qtb-cal-nav {
	width: 38px; height: 38px; padding: 0; margin: 0; font-size: 22px; line-height: 1; color: var(--qtb-gold-text); background: transparent;
	border: 1px solid var(--qtb-line); border-radius: 50%; cursor: pointer; box-shadow: none;
}
.qtb .qtb-cal-nav:hover:not(:disabled) { border-color: var(--qtb-gold); }
.qtb .qtb-cal-nav:disabled { opacity: .25; cursor: default; }
.qtb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.qtb-cal-wd { text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--qtb-muted); padding: 4px 0 6px; }
.qtb .qtb-cal-day {
	aspect-ratio: 1; min-width: 0; width: 100%; padding: 0; margin: 0; font: inherit; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
	color: var(--qtb-text); background: transparent; border: 1px solid transparent; border-radius: var(--qtb-r); cursor: pointer; box-shadow: none;
}
.qtb .qtb-cal-day:hover:not(:disabled) { border-color: var(--qtb-line-strong); }
.qtb .qtb-cal-day:disabled { color: var(--qtb-faint); cursor: default; text-decoration: line-through; text-decoration-color: transparent; }
.qtb .qtb-cal-day.is-today:not(.is-selected) { border-color: var(--qtb-line); }
.qtb .qtb-cal-day.is-selected { background: var(--qtb-grad); color: var(--qtb-on-gold); font-weight: 700; }
.qtb .qtb-cal-day:focus-visible, .qtb .qtb-cal-nav:focus-visible { outline: 2px solid var(--qtb-gold); outline-offset: 1px; }

.qtb-times { display: flex; flex-direction: column; gap: 12px; }
.qtb-times-head { font-family: var(--qtb-font-head); letter-spacing: .05em; color: var(--qtb-gold-text); min-height: 24px; }
.qtb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.qtb-slots > p { grid-column: 1 / -1; }
.qtb-slot {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; cursor: pointer; text-align: center;
	background: var(--qtb-panel); border: 1px solid var(--qtb-line); border-radius: var(--qtb-r); transition: border-color .2s;
}
.qtb-slot:hover { border-color: var(--qtb-line-strong); }
.qtb-slot input { position: absolute; opacity: 0; pointer-events: none; }
.qtb-slot-time { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.qtb-slot-note { font-size: 11.5px; color: var(--qtb-muted); text-transform: uppercase; letter-spacing: .1em; }
.qtb-slot:has(input:checked) { background: var(--qtb-grad); border-color: transparent; color: var(--qtb-on-gold); }
.qtb-slot:has(input:checked) .qtb-slot-note { color: rgba(20, 20, 20, .7); }
.qtb-slot:has(input:focus-visible) { outline: 2px solid var(--qtb-gold); outline-offset: 2px; }
.qtb-slot.is-full { opacity: .4; cursor: not-allowed; }
.qtb-slot.is-full .qtb-slot-time { text-decoration: line-through; }
.qtb-muted { color: var(--qtb-muted); font-size: 14.5px; }

/* Aantallen */
.qtb-counters { display: grid; gap: 10px; }
.qtb-counter {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px;
	background: var(--qtb-panel); border: 1px solid var(--qtb-line); border-radius: var(--qtb-r);
}
.qtb-counter.is-disabled { opacity: .55; }
.qtb-counter-label { display: flex; flex-direction: column; gap: 2px; }
.qtb-counter-label strong { font-weight: 600; }
.qtb-counter-label small { color: var(--qtb-muted); font-size: 13px; }
.qtb-counter-ctl { display: flex; align-items: center; gap: 12px; }
.qtb .qtb-counter-ctl button {
	width: 42px; height: 42px; padding: 0; margin: 0; font-size: 22px; line-height: 1; color: var(--qtb-gold-text); background: transparent;
	border: 1px solid var(--qtb-line-strong); border-radius: 50%; cursor: pointer; box-shadow: none;
}
.qtb .qtb-counter-ctl button:hover:not(:disabled) { background: var(--qtb-gold); color: var(--qtb-on-gold); }
.qtb .qtb-counter-ctl button:disabled { opacity: .3; cursor: default; }
.qtb .qtb-counter-ctl button:focus-visible { outline: 2px solid var(--qtb-gold); outline-offset: 2px; }
.qtb-counter-ctl output { min-width: 28px; text-align: center; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Gegevens */
.qtb-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1 1 0; min-width: 0; }
.qtb-field label { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--qtb-muted); }
.qtb-row { display: flex; gap: 16px; flex-wrap: wrap; }
.qtb-row > .qtb-field { min-width: 220px; }
.qtb .qtb-field input, .qtb .qtb-field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; margin: 0; font: inherit; font-size: 16px; color: var(--qtb-text);
	background: var(--qtb-field); border: 1px solid var(--qtb-line); border-radius: var(--qtb-r); box-shadow: none; -webkit-appearance: none; appearance: none;
}
.qtb .qtb-field input:focus, .qtb .qtb-field textarea:focus { outline: none; border-color: var(--qtb-gold); box-shadow: 0 0 0 3px rgba(212, 168, 69, .18); }
.qtb-check { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; font-size: 15px; cursor: pointer; }
.qtb .qtb-check input {
	flex: none; width: 20px; height: 20px; margin: 2px 0 0; -webkit-appearance: none; appearance: none; cursor: pointer;
	background: var(--qtb-field); border: 1px solid var(--qtb-line-strong); border-radius: 4px; display: grid; place-content: center;
}
.qtb .qtb-check input:checked { background: var(--qtb-grad); border-color: transparent; }
.qtb .qtb-check input:checked::after { content: ''; width: 10px; height: 6px; border: 2px solid var(--qtb-on-gold); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.qtb .qtb-check input:focus-visible { outline: 2px solid var(--qtb-gold); outline-offset: 2px; }
.qtb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Overzicht */
.qtb-summary {
	position: sticky; top: 24px; padding: 24px; background: var(--qtb-panel); border: 1px solid var(--qtb-line-strong); border-radius: var(--qtb-r);
	display: flex; flex-direction: column; gap: 14px;
}
.qtb .qtb-sum-head { margin: 0; padding: 0 0 12px; font-family: var(--qtb-font-head); font-size: 15px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--qtb-gold-text); border-bottom: 1px solid var(--qtb-line); }
.qtb-sum-tour { font-family: var(--qtb-font-head); font-size: 18px; font-weight: 600; letter-spacing: .03em; }
.qtb-sum-when { color: var(--qtb-muted); font-size: 14.5px; margin-top: 2px; }
.qtb-sum-rows { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 14.5px; }
.qtb-sum-rows:empty { display: none; }
.qtb-sum-rows dt { color: var(--qtb-muted); margin: 0; }
.qtb-sum-rows dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.qtb-sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--qtb-line); }
.qtb-sum-total span { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--qtb-muted); }
.qtb-total-amount { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--qtb-gold-text); }

.qtb-error { background: var(--qtb-err-bg); color: var(--qtb-err); border: 1px solid currentColor; padding: 10px 14px; border-radius: var(--qtb-r); font-size: 14.5px; }
.qtb-error[hidden] { display: none; }

.qtb .qtb-submit {
	display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 56px; padding: 14px 20px; margin: 0;
	font-family: var(--qtb-font-head); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; line-height: 1.25;
	color: var(--qtb-on-gold); background: var(--qtb-grad); background-size: 160% 100%; background-position: 0 0;
	border: 0; border-radius: var(--qtb-r); cursor: pointer; box-shadow: 0 10px 28px -12px rgba(212, 168, 69, .7);
	transition: background-position .5s ease, transform .15s ease;
}
.qtb .qtb-submit:hover { background-position: 100% 0; color: var(--qtb-on-gold); transform: translateY(-1px); }
.qtb .qtb-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.qtb .qtb-submit:focus-visible { outline: 2px solid var(--qtb-gold-light); outline-offset: 3px; }
.qtb-secure { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--qtb-muted); }
.qtb-lock { flex: none; width: 12px; height: 14px; margin-top: 2px; border: 1.5px solid var(--qtb-gold); border-radius: 2px; position: relative; top: 3px; }
.qtb-lock::before { content: ''; position: absolute; left: 1px; top: -7px; width: 7px; height: 7px; border: 1.5px solid var(--qtb-gold); border-bottom: 0; border-radius: 5px 5px 0 0; }

/* Status na betaling */
.qtb-status { padding: 26px; background: var(--qtb-panel); border: 1px solid var(--qtb-line); border-radius: var(--qtb-r); }
.qtb .qtb-status h3 { margin: 0 0 8px; padding: 0; font-family: var(--qtb-font-head); font-size: 24px; letter-spacing: .04em; color: var(--qtb-text); }
.qtb-status.is-ok { border-color: var(--qtb-gold); }
.qtb-status.is-ok h3 { color: var(--qtb-gold-text); }
.qtb-status.is-bad { border-color: var(--qtb-err); }
.qtb-status .qtb-submit { margin-top: 18px; }
.qtb-details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--qtb-line); }
.qtb-details dt { color: var(--qtb-muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.qtb-details dd { margin: 0; font-weight: 600; }

@media (max-width: 960px) {
	.qtb-layout { grid-template-columns: 1fr; gap: 28px; }
	.qtb-summary { position: static; }
}
@media (max-width: 640px) {
	.qtb { border-radius: 0; border-left: 0; border-right: 0; }
	.qtb-when { grid-template-columns: minmax(0, 1fr); }
	.qtb-cal { padding: 12px 10px; }
	.qtb-cal-grid { gap: 2px; }
	.qtb .qtb-cal-day { font-size: 14px; }
	.qtb-counter { padding: 12px; gap: 10px; }
	.qtb-row > .qtb-field { min-width: 100%; }
	.qtb-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.qtb *, .qtb *::before, .qtb *::after { transition: none !important; }
}
