/* Travel Business Core - Booking Enquiry form (Fluent Forms) and Book Now page.
   Colours come from the variables in tbc.css (which read the Elementor Global Colors).
   Only two extra values are defined here: WhatsApp green and the error red (readable on white).
   Loaded in the <head> of the Book Now page and wherever the booking form is shown.
   To undo: delete this file and the enqueue code in includes/booking.php. */

:root {
	--tbc-whatsapp: #25D366;
	--tbc-error: #B3261E;
}

/* ---------- Form ---------- */

.fluentform .tbc-booking-form {
	--tbc-field-border: color-mix(in srgb, var(--tbc-dark) 40%, var(--tbc-white));
	--tbc-field-hint: color-mix(in srgb, var(--tbc-dark) 62%, var(--tbc-white));
	color: var(--tbc-dark);
}

.fluentform .tbc-booking-form .ff-el-group {
	margin-bottom: 18px;
}

.fluentform .tbc-booking-form .ff-el-input--label label {
	margin: 0 0 6px;
	color: var(--tbc-dark);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.fluentform .tbc-booking-form .ff-el-input--label.asterisk-right label::after {
	color: var(--tbc-error);
}

.fluentform .tbc-booking-form .ff-el-form-control {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid var(--tbc-dark);
	border-color: var(--tbc-field-border);
	border-radius: 10px;
	background-color: var(--tbc-white);
	color: var(--tbc-dark);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	box-shadow: none;
}

.fluentform .tbc-booking-form textarea.ff-el-form-control {
	min-height: 110px;
	resize: vertical;
}

.fluentform .tbc-booking-form .ff-el-form-control::placeholder {
	color: var(--tbc-dark);
	color: var(--tbc-field-hint);
	opacity: 1;
}

.fluentform .tbc-booking-form .ff-el-form-control:focus {
	border-color: var(--tbc-primary);
	outline: 3px solid var(--tbc-primary);
	outline-offset: 0;
	box-shadow: none;
}

.fluentform .tbc-booking-form .ff-el-form-control[readonly] {
	background-color: var(--tbc-light);
	border-style: dashed;
	cursor: default;
}

/* Error messages: clear and readable */
.fluentform .tbc-booking-form .ff-el-is-error .ff-el-form-control {
	border-color: var(--tbc-error);
}

.fluentform .tbc-booking-form .error.text-danger,
.fluentform .tbc-booking-form .text-danger {
	margin-top: 6px;
	color: var(--tbc-error);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

/* Two columns on tablet and desktop, one column on mobile */
.fluentform .tbc-booking-form .ff-t-container.tbc-booking-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
}

.fluentform .tbc-booking-form .tbc-booking-row > .ff-t-cell {
	width: auto !important;
	min-width: 0;
	padding: 0;
}

@media (max-width: 600px) {
	.fluentform .tbc-booking-form .ff-t-container.tbc-booking-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Consent line */
.fluentform .tbc-booking-form .tbc-booking-consent {
	margin: 4px 0 18px;
}

.fluentform .tbc-booking-form .tbc-booking-consent__text {
	margin: 0;
	color: var(--tbc-dark);
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.82;
}

/* Submit button: Secondary colour, full width on mobile */
.fluentform .tbc-booking-form .tbc-booking-submit {
	margin-bottom: 0;
}

.fluentform .tbc-booking-form .tbc-booking-submit .ff-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 0 28px;
	border: 2px solid var(--tbc-secondary);
	border-radius: 999px;
	background-color: var(--tbc-secondary);
	color: var(--tbc-dark);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
	.fluentform .tbc-booking-form .tbc-booking-submit .ff-btn-submit {
		width: auto;
		min-width: 260px;
	}
}

.fluentform .tbc-booking-form .tbc-booking-submit .ff-btn-submit:hover,
.fluentform .tbc-booking-form .tbc-booking-submit .ff-btn-submit:focus {
	border-color: var(--tbc-primary);
	background-color: var(--tbc-primary);
	color: var(--tbc-white);
}

.fluentform .tbc-booking-form .tbc-booking-submit .ff-btn-submit:focus-visible {
	outline: 3px solid var(--tbc-primary);
	outline-offset: 3px;
}

.fluentform .tbc-booking-form .tbc-booking-submit .ff-btn-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

/* ---------- Thank-you box with the WhatsApp button ---------- */

.fluentform .ff-message-success.tbc-wa-success {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 24px;
	border: 0;
	border-radius: 14px;
	background: var(--tbc-light);
	color: var(--tbc-dark);
	box-shadow: none;
}

.tbc-wa-success__text {
	margin: 0;
	color: var(--tbc-dark);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.6;
}

.tbc-wa-success__hint {
	margin: 0;
	color: var(--tbc-dark);
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.82;
}

.tbc-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 60px;
	padding: 0 28px;
	border: 2px solid var(--tbc-whatsapp);
	border-radius: 999px;
	background-color: var(--tbc-whatsapp);
	color: var(--tbc-dark);
	box-shadow: var(--tbc-shadow);
	font-size: 19px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 600px) {
	.tbc-wa-btn {
		width: auto;
		min-width: 320px;
	}
}

.tbc-wa-btn:hover,
.tbc-wa-btn:focus {
	border-color: var(--tbc-primary);
	background-color: var(--tbc-primary);
	color: var(--tbc-white);
	text-decoration: none;
}

.tbc-wa-btn:focus-visible {
	outline: 3px solid var(--tbc-primary);
	outline-offset: 3px;
}

.tbc-wa-btn__icon {
	display: block;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	fill: currentColor;
}

/* ---------- Book Now page (Elementor containers carry these classes) ---------- */

.tbc-book-steps ol {
	margin: 0;
	padding-left: 22px;
}

.tbc-book-steps li {
	margin: 0 0 8px;
	line-height: 1.6;
}

.tbc-book-steps li:last-child {
	margin-bottom: 0;
}

.tbc-book-card,
.tbc-book-form-card {
	min-width: 0;
}

/* ---------- Small helpers used by assets/booking.js ---------- */

.fluentform .tbc-booking-form .tbc-hide-empty {
	display: none;
}

.tbc-wa-done {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}
