/* =========================================================================
   Booking page. Loaded only on the booking template.
   Includes Forminator overrides: the plugin ships light-mode defaults that
   look broken on a dark brand, so inputs are rebuilt here.
   ========================================================================= */

.book {
	position: relative;
	padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(4rem, 3rem + 4vw, 7rem);
	overflow: hidden;
}

.book__field {
	position: absolute;
	inset: 0;
	background-image: url("../img/network-abstract.webp");
	background-size: cover;
	background-position: 80% 30%;
	opacity: 0.28;
	pointer-events: none;
}
.book__field::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, var(--ink) 8%, rgba(13, 13, 15, 0.86) 50%, rgba(13, 13, 15, 0.6) 100%),
		linear-gradient(180deg, rgba(13, 13, 15, 0.5) 0%, transparent 30%, var(--ink) 96%);
}

.book__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 5vw, 4.5rem);
	align-items: start;
}

.book__title {
	font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.25rem);
	line-height: 1.06;
	letter-spacing: -0.035em;
	max-width: 15ch;
}

.book__lede {
	margin-top: 1.25rem;
	font-size: var(--fs-lede);
	color: var(--text-muted);
	max-width: 44ch;
}

/* what happens next */

.next {
	margin-top: clamp(2.25rem, 4vw, 3rem);
	display: flex;
	flex-direction: column;
}

.next__item {
	position: relative;
	padding: 1.5rem 0 1.5rem 2rem;
	border-top: 1px solid var(--line);
}
.next__item:last-child { border-bottom: 1px solid var(--line); }

.next__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.85rem;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gold);
}
/* Line connecting the sequence, stopping at the last dot. */
.next__item::after {
	content: "";
	position: absolute;
	left: 3px;
	top: 2.4rem;
	bottom: -0.6rem;
	width: 1px;
	background: linear-gradient(180deg, rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0));
}
.next__item:last-child::after { display: none; }

.next__when {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
}
.next__title {
	font-size: 1.0625rem;
	font-weight: 500;
	margin-bottom: 0.375rem;
}
.next__item p {
	font-size: 0.9375rem;
	color: var(--text-muted);
	max-width: 44ch;
}

.book__assurance {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-top: 1.75rem;
	font-size: 0.875rem;
	color: var(--text-muted);
	max-width: 46ch;
}
.book__assurance .icon {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	flex: none;
	color: var(--gold);
}

/* the form panel */

.book__panel {
	position: relative;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: linear-gradient(180deg, rgba(42, 46, 53, 0.72) 0%, rgba(26, 28, 32, 0.92) 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
	backdrop-filter: blur(10px);
}

.book__panel-head {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding-bottom: 1.25rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid var(--line);
}
.book__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}
.book__panel-title {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.book__privacy {
	margin-top: 1.25rem;
	font-size: 0.75rem;
	color: var(--text-muted);
	opacity: 0.75;
}

/* ---------- Forminator overrides ----------
   The plugin's own stylesheet is specific and loads after ours, so these
   need matching weight. Scoped to the panel so nothing else is affected. */

.book__panel .forminator-ui.forminator-custom-form,
.book__panel .forminator-ui.forminator-custom-form * {
	font-family: "Poppins", system-ui, sans-serif !important;
}

.book__panel .forminator-row { margin-bottom: 1rem !important; }
.book__panel .forminator-row:last-of-type { margin-bottom: 0 !important; }

.book__panel .forminator-label {
	margin-bottom: 0.5rem !important;
	font-size: 0.6875rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.1em !important;
	text-transform: uppercase !important;
	color: var(--text-muted) !important;
}
.book__panel .forminator-required {
	color: var(--gold) !important;
	margin-left: 2px;
}

.book__panel .forminator-input,
.book__panel .forminator-textarea,
.book__panel input[type="text"],
.book__panel input[type="email"],
.book__panel input[type="tel"],
.book__panel textarea,
.book__panel select {
	width: 100% !important;
	min-height: 50px !important;
	padding: 0.75rem 1rem !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--text) !important;
	font-size: 0.9375rem !important;
	font-weight: 300 !important;
	line-height: 1.5 !important;
	box-shadow: none !important;
	transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease) !important;
}
.book__panel .forminator-textarea,
.book__panel textarea {
	min-height: 120px !important;
	resize: vertical !important;
}

.book__panel .forminator-input::placeholder,
.book__panel .forminator-textarea::placeholder,
.book__panel textarea::placeholder {
	color: var(--text-muted) !important;
	opacity: 0.6 !important;
}

.book__panel .forminator-input:hover,
.book__panel .forminator-textarea:hover,
.book__panel select:hover {
	border-color: rgba(255, 255, 255, 0.24) !important;
}

.book__panel .forminator-input:focus,
.book__panel .forminator-textarea:focus,
.book__panel select:focus,
.book__panel input:focus,
.book__panel textarea:focus {
	outline: none !important;
	border-color: var(--gold) !important;
	background: rgba(255, 255, 255, 0.06) !important;
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16) !important;
}

/* Forminator swaps native selects for its own listbox. */
.book__panel .forminator-select,
.book__panel .forminator-select .select2-selection,
.book__panel .select2-container--default .select2-selection--single {
	min-height: 50px !important;
	background: rgba(255, 255, 255, 0.04) !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--text) !important;
}
.book__panel .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 48px !important;
	padding-left: 1rem !important;
	color: var(--text) !important;
	font-weight: 300 !important;
}
.book__panel .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 48px !important;
}
.book__panel .select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: var(--text-muted) !important;
	opacity: 0.6 !important;
}

/* The dropdown list renders at body level, outside the panel. */
.select2-container--open .select2-dropdown,
.forminator-custom-form .select2-dropdown {
	background: #1A1C20 !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-radius: var(--radius-sm) !important;
	color: var(--text) !important;
	overflow: hidden;
}
.select2-container--default .select2-results__option {
	background: transparent !important;
	color: var(--text-muted) !important;
	font-family: "Poppins", system-ui, sans-serif !important;
	font-size: 0.9375rem !important;
	padding: 0.625rem 1rem !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option[aria-selected="true"] {
	background: rgba(212, 175, 55, 0.16) !important;
	color: var(--white) !important;
}

.book__panel .forminator-button-submit,
.book__panel button[type="submit"] {
	width: 100% !important;
	min-height: 52px !important;
	margin-top: 0.5rem !important;
	padding: 0.875rem 1.75rem !important;
	background: var(--gold) !important;
	border: 0 !important;
	border-radius: 999px !important;
	color: var(--ink) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
	cursor: pointer !important;
	transition: background var(--dur) var(--ease) !important;
}
.book__panel .forminator-button-submit:hover,
.book__panel button[type="submit"]:hover {
	background: var(--gold-light) !important;
}
.book__panel .forminator-button-submit:focus-visible {
	outline: 2px solid var(--white) !important;
	outline-offset: 3px !important;
}

/* validation and response messaging */
.book__panel .forminator-error-message {
	color: #F3A3A3 !important;
	font-size: 0.8125rem !important;
	margin-top: 0.375rem !important;
}
.book__panel .forminator-input.forminator-has_error,
.book__panel .forminator-textarea.forminator-has_error {
	border-color: #C96A6A !important;
}
.book__panel .forminator-response-message {
	padding: 0.875rem 1rem !important;
	border-radius: var(--radius-sm) !important;
	font-size: 0.9375rem !important;
}
.book__panel .forminator-response-message.forminator-success {
	background: rgba(212, 175, 55, 0.12) !important;
	border: 1px solid rgba(212, 175, 55, 0.4) !important;
	color: var(--text) !important;
}
.book__panel .forminator-response-message.forminator-error {
	background: rgba(201, 106, 106, 0.12) !important;
	border: 1px solid rgba(201, 106, 106, 0.4) !important;
	color: #F3C3C3 !important;
}

@media (max-width: 900px) {
	.book__inner { grid-template-columns: 1fr; }
	.book__title { max-width: none; }
	/* Form first on small screens: the page exists to be filled in. */
	.book__form { order: -1; }
}
