.ctb-booking-form {
	max-width: 560px;
	font-family: inherit;
}
.ctb-booking-form .ctb-field,
.ctb-booking-form .ctb-field-row > .ctb-field {
	margin-bottom: 14px;
}
.ctb-booking-form label {
	display: block;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--ctb-text-light, #5b6b65);
	margin-bottom: 6px;
}
.ctb-booking-form h4 {
	font-family: var(--ctb-font-heading, inherit);
	font-size: 16px;
	font-weight: 700;
	color: var(--ctb-text, #22312c);
	margin: 20px 0 10px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--ctb-border, #e2ece8);
}
.ctb-booking-form h4:first-child { margin-top: 0; }

/* Number inputs lose their native spinner arrows everywhere in this form —
   pax counts use the +/- stepper, and any other number field looks cleaner
   without them too. */
.ctb-booking-form input[type="number"]::-webkit-outer-spin-button,
.ctb-booking-form input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.ctb-booking-form input[type="number"] {
	-moz-appearance: textfield;
}

/* Generic button look shared by "Add guest", the stepper +/- controls, and
   the guest-picker toggle — rounded, brand-colored, consistent hover "fx". */
.ctb-booking-form button {
	font-family: inherit;
}
.ctb-add-guest {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	padding: 8px 16px;
	border: 1px solid var(--ctb-primary, #0b6e4f);
	border-radius: 999px;
	background: var(--ctb-white, #fff);
	color: var(--ctb-primary, #0b6e4f);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.ctb-add-guest:hover {
	background: var(--ctb-primary, #0b6e4f);
	color: #fff;
}
.ctb-add-guest:active {
	transform: scale(0.97);
}
.ctb-booking-form input[type="text"],
.ctb-booking-form input[type="email"],
.ctb-booking-form input[type="number"],
.ctb-booking-form input[type="date"],
.ctb-booking-form select,
.ctb-booking-form textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--ctb-border, #dfe6e2);
	border-radius: var(--ctb-radius, 8px);
	box-sizing: border-box;
	font-family: inherit;
	font-size: 14px;
	color: var(--ctb-text, #22312c);
	background: var(--ctb-white, #fff);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ctb-booking-form input[type="text"]:hover,
.ctb-booking-form input[type="email"]:hover,
.ctb-booking-form input[type="number"]:hover,
.ctb-booking-form select:hover,
.ctb-booking-form textarea:hover {
	border-color: var(--ctb-primary, #0b6e4f);
}
.ctb-booking-form input[type="text"]:focus,
.ctb-booking-form input[type="email"]:focus,
.ctb-booking-form input[type="number"]:focus,
.ctb-booking-form select:focus,
.ctb-booking-form textarea:focus {
	outline: none;
	border-color: var(--ctb-primary, #0b6e4f);
	box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.15);
}

/* Dropdowns get a custom chevron + the same hover/focus "fx" as the rest of
   the form, instead of the browser's flat default select styling. */
.ctb-booking-form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 34px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b65' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px 16px;
}
.ctb-booking-form select:hover,
.ctb-booking-form select:focus {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6e4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.ctb-field-row {
	display: flex;
	gap: 16px;
}
.ctb-field-row > .ctb-field {
	flex: 1;
}
.ctb-field-note {
	font-size: 13px;
	color: #777;
	margin: -8px 0 14px;
}
/* Requalified as .ctb-booking-form .ctb-checkbox (specificity 0,2,0) rather
   than a bare .ctb-checkbox (0,1,0) — the exact same specificity bug found
   earlier on .ctb-option-card. .ctb-booking-form label {display:block;
   text-transform:uppercase; ...} is a class+tag selector (0,1,1), which
   beats a single-class .ctb-checkbox regardless of source order, since a
   <label class="ctb-checkbox"> matches both. That silently won every time:
   text stayed uppercase and display:flex/align-items:center never actually
   applied (it fell back to the label's display:block + default inline
   checkbox baseline alignment), which is why the checkbox never looked
   centered against the text next to it either. */
.ctb-booking-form .ctb-checkbox {
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	font-size: 14px;
	line-height: 1.3;
	color: var(--ctb-text, #22312c);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 6px;
	margin-bottom: 8px;
}
.ctb-booking-form .ctb-checkbox input[type="checkbox"] {
	/* Without an explicit size/margin, the browser's default checkbox
	   styling (a few px of built-in UA-stylesheet margin) sits slightly
	   off from the text's vertical center even with align-items:center on
	   the parent. Pin an exact size and zero out that default margin so
	   it lines up cleanly with the text next to it. */
	width: 16px;
	height: 16px;
	flex: none;
	margin: 0;
	accent-color: var(--ctb-primary, #0b6e4f);
	cursor: pointer;
}
.ctb-checkbox-price {
	font-size: 12px;
	font-weight: 600;
	color: var(--ctb-primary, #0b6e4f);
}
.ctb-guest-row {
	display: flex;
	gap: 8px;
	margin-bottom: 6px;
}

/* Guests field — a single collapsed control that expands into a Local /
   Foreigners stepper panel, instead of two bare number inputs side by side. */
.ctb-guest-picker {
	position: relative;
}
.ctb-guest-picker-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 12px;
	border: 1px solid var(--ctb-border, #dfe6e2);
	border-radius: var(--ctb-radius, 8px);
	background: var(--ctb-white, #fff);
	cursor: pointer;
	font-size: 14px;
	color: var(--ctb-text, #22312c);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ctb-guest-picker-toggle:hover {
	border-color: var(--ctb-primary, #0b6e4f);
}
.ctb-guest-picker[data-open="true"] .ctb-guest-picker-toggle {
	border-color: var(--ctb-primary, #0b6e4f);
	box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.15);
}
.ctb-guest-picker-chevron {
	color: var(--ctb-text-light, #5b6b65);
	transition: transform 0.2s ease;
	flex: none;
}
.ctb-guest-picker[data-open="true"] .ctb-guest-picker-chevron {
	transform: rotate(180deg);
	color: var(--ctb-primary, #0b6e4f);
}
.ctb-guest-picker-panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: var(--ctb-white, #fff);
	border: 1px solid var(--ctb-border, #e2ece8);
	border-radius: var(--ctb-radius, 8px);
	box-shadow: var(--ctb-shadow, 0 10px 26px rgba(20, 40, 35, 0.14));
	padding: 6px 14px;
	animation: ctb-guest-panel-in 0.16s ease-out;
}
@keyframes ctb-guest-panel-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.ctb-pax-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	gap: 12px;
}
.ctb-pax-row + .ctb-pax-row {
	border-top: 1px solid var(--ctb-border, #eef3f0);
}
.ctb-pax-row-label {
	font-size: 14px;
	color: var(--ctb-text, #22312c);
}

/* +/- stepper used inside the guest panel */
.ctb-stepper {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
}
.ctb-stepper-btn {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--ctb-border, #dfe6e2);
	background: var(--ctb-white, #fff);
	color: var(--ctb-primary, #0b6e4f);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.ctb-stepper-btn:hover:not(:disabled) {
	background: var(--ctb-primary, #0b6e4f);
	border-color: var(--ctb-primary, #0b6e4f);
	color: #fff;
}
.ctb-stepper-btn:active:not(:disabled) {
	transform: scale(0.92);
}
.ctb-stepper-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.ctb-stepper-input {
	width: 32px !important;
	padding: 0 !important;
	border: none !important;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	background: transparent !important;
	box-shadow: none !important;
	pointer-events: none;
}
.ctb-price-breakdown {
	margin: 16px 0 8px;
	border-top: 1px solid #eee;
	padding-top: 8px;
}
.ctb-breakdown-row {
	display: flex;
	justify-content: space-between;
	padding: 2px 0;
	font-size: 14px;
}
.ctb-breakdown-total {
	font-weight: bold;
	border-top: 1px solid #eee;
	margin-top: 4px;
	padding-top: 6px;
}
.ctb-breakdown-discount {
	color: #0b6e4f;
	font-weight: 600;
}
.ctb-total {
	font-size: 18px;
	font-weight: bold;
	margin: 8px 0 16px;
}

/* Coupon Code field — input + Apply button side by side, feedback line
   below (green once a valid code is applied, red if not; hidden entirely
   until the customer actually types something, see ctb-booking-form.js). */
.ctb-coupon-row {
	display: flex;
	gap: 8px;
}
.ctb-coupon-input {
	width: auto !important;
	flex: 1;
	min-width: 0;
	text-transform: uppercase;
}
.ctb-coupon-input::placeholder {
	text-transform: none;
}
.ctb-coupon-apply {
	flex: none;
	appearance: none;
	border: 1px solid var(--ctb-primary, #0b6e4f);
	background: var(--ctb-white, #fff);
	color: var(--ctb-primary, #0b6e4f);
	font-weight: 600;
	font-size: 14px;
	padding: 0 18px;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.ctb-coupon-apply:hover {
	background: var(--ctb-primary, #0b6e4f);
	color: var(--ctb-white, #fff);
}
.ctb-coupon-message {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 600;
}
.ctb-coupon-message.is-valid { color: #0b6e4f; }
.ctb-coupon-message.is-invalid { color: #d64545; }
.ctb-form-message {
	color: #b00020;
	margin-top: 8px;
}
.ctb-success {
	color: #0b6e4f;
	font-weight: bold;
}

/* "How much to pay" (payment_option) and "Payment method" (gateway) — each
   choice is a full-width selectable card rather than a bare radio dot, and
   the two groups get their own heading so they read as clearly separate
   decisions instead of one long undifferentiated list of radios. */
.ctb-amount-choice,
.ctb-gateway-choice {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
/* One line per option, on purpose — this sits in a narrow sidebar column
   and a booking form with 6+ tall option cards started feeling like the
   longest part of the page. Radio, title, and note all sit in a single row.
   NOTE: this has to be ".ctb-booking-form .ctb-option-card" (two classes),
   not just ".ctb-option-card" — the generic ".ctb-booking-form label" rule
   above sets display:block on every label in the form, including this one,
   and a bare single-class selector here loses that specificity fight, which
   silently breaks the flex row back into a vertical stack. */
.ctb-booking-form .ctb-option-card {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 8px;
	padding: 10px 14px;
	border: 1.5px solid var(--ctb-border, #e2ece8);
	border-radius: var(--ctb-radius, 8px);
	background: var(--ctb-white, #fff);
	cursor: pointer;
	text-transform: none;
	font-weight: 400;
	margin-bottom: 0;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ctb-booking-form .ctb-option-card:hover {
	border-color: var(--ctb-primary, #0b6e4f);
}
.ctb-booking-form .ctb-option-card:has(input:checked) {
	border-color: var(--ctb-primary, #0b6e4f);
	background: rgba(11, 110, 79, 0.05);
	box-shadow: 0 0 0 1px var(--ctb-primary, #0b6e4f);
}
.ctb-booking-form .ctb-option-card input[type="radio"] {
	width: 16px;
	height: 16px;
	flex: none;
	margin: 0;
	accent-color: var(--ctb-primary, #0b6e4f);
	cursor: pointer;
}
.ctb-booking-form .ctb-option-card-body {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 6px;
	min-width: 0;
}
.ctb-booking-form .ctb-option-card-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--ctb-text, #22312c);
	text-transform: none;
	letter-spacing: normal;
}
.ctb-booking-form .ctb-option-card-note {
	font-size: 11px;
	color: var(--ctb-text-light, #5b6b65);
	text-transform: none;
	letter-spacing: normal;
}
.ctb-booking-form .ctb-option-card-note::before {
	content: '\2014';
	margin-right: 6px;
}

/* "Proceed to Payment" — built dynamically in ctb-booking-form.js and given
   WP admin's generic .button.button-primary classes, which have no styling
   at all on the frontend (that CSS only loads in wp-admin), so without this
   it renders as a bare unstyled <button>. */
.ctb-proceed-to-payment {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 4px;
	padding: 15px 24px;
	border: none;
	border-radius: 999px;
	background: var(--ctb-accent, #f4a300);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(244, 163, 0, 0.35);
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.ctb-proceed-to-payment::after {
	content: '\2192';
	font-size: 18px;
	line-height: 1;
	transition: transform 0.2s ease;
}
.ctb-proceed-to-payment:hover:not(:disabled) {
	background: var(--ctb-accent-dark, #d18e00);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(244, 163, 0, 0.42);
}
.ctb-proceed-to-payment:hover:not(:disabled)::after {
	transform: translateX(3px);
}
.ctb-proceed-to-payment:disabled {
	background: #d8d8d8;
	color: #888;
	cursor: not-allowed;
	box-shadow: none;
}
.ctb-proceed-to-payment:disabled::after {
	content: '';
}

/* Step 1 -> Step 2 "Continue" reuses the same pill-button treatment as
   "Proceed to Payment" (built dynamically in ctb-booking-form.js) — same
   visual weight since it's the same kind of "move forward" action. */
.ctb-step-continue {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 18px;
	padding: 15px 24px;
	border: none;
	border-radius: 999px;
	background: var(--ctb-accent, #f4a300);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.2px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(244, 163, 0, 0.35);
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.ctb-step-continue::after {
	content: '\2192';
	font-size: 18px;
	line-height: 1;
}
.ctb-step-continue:hover {
	background: var(--ctb-accent-dark, #d18e00);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(244, 163, 0, 0.42);
}

/* "Back" is a plain text-style link-button — secondary to the payment
   actions on step 2, just a way back to step 1 to fix something. */
.ctb-step-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	padding: 0;
	border: none;
	background: none;
	color: var(--ctb-text-light, #5b6b65);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.ctb-step-back:hover {
	color: var(--ctb-primary, #0b6e4f);
}

/* Destination filter grid, used by [ctb_package_filter] */
.ctb-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}
/* Scoped to .ctb-legacy-filter (the [ctb_package_filter] shortcode's own
   wrapper) — this shortcode predates the theme's polished package-card
   component and reuses the same class names (.ctb-filter-btn,
   .ctb-package-grid, .ctb-package-card). Unscoped, these plain rules
   leaked onto every unrelated element with those class names anywhere
   this stylesheet loads — e.g. the theme's "You Might Also Like" grid on
   a single package page (which also enqueues this file for the booking
   form), cropping images and breaking button alignment there. */
.ctb-legacy-filter .ctb-filter-btn {
	padding: 6px 14px;
	border: 1px solid #ccc;
	border-radius: 20px;
	background: #fff;
	cursor: pointer;
}
.ctb-legacy-filter .ctb-filter-btn.active {
	background: #0b6e4f;
	color: #fff;
	border-color: #0b6e4f;
}
.ctb-legacy-filter .ctb-package-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.ctb-legacy-filter .ctb-package-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
}
.ctb-legacy-filter .ctb-package-card img {
	width: 100%;
	height: 140px;
	object-fit: cover;
}
.ctb-legacy-filter .ctb-package-card h3 {
	padding: 10px;
	margin: 0;
	font-size: 15px;
}
