/* [hush_booking_form] - Step 9 follow-up: three-part name row, DOB, inline errors. */

.hush-lodge-booking-form__field {
	display: block;
	margin: 0 0 1em;
}

.hush-lodge-booking-form__field label,
.hush-lodge-booking-form__names legend {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25em;
}

.hush-lodge-booking-form__field input,
.hush-lodge-booking-form__field select,
.hush-lodge-booking-form__field textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Two-stage progressive disclosure (Step 9 second follow-up). The [hidden] rule is spelled
   out because some themes set a display value on generic containers that would otherwise
   beat the attribute's UA style. */
.hush-lodge-booking-form__stage--two[hidden] {
	display: none;
}

.hush-lodge-booking-form__locked-room {
	margin: 0 0 1em;
}

/* Step 25 honeypot - off-screen, not display:none (some bots skip hidden fields). */
.hush-lodge-booking-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hush-lodge-booking-form__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
}

.hush-lodge-booking-form__dates .hush-lodge-booking-form__field {
	flex: 1 1 12em;
}

.hush-lodge-booking-form__names {
	border: 1px solid rgba( 0, 0, 0, 0.15 );
	border-radius: 4px;
	padding: 1em;
	margin: 0 0 1em;
}

.hush-lodge-booking-form__names-note {
	margin: 0 0 0.75em;
	font-size: 0.9em;
	opacity: 0.8;
}

.hush-lodge-booking-form__names-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
}

.hush-lodge-booking-form__names-row .hush-lodge-booking-form__field {
	flex: 1 1 10em;
	margin-bottom: 0;
}

/* Stack the name fields only when the row genuinely can't fit them (small phones). */
@media ( max-width: 480px ) {
	.hush-lodge-booking-form__names-row,
	.hush-lodge-booking-form__dates {
		flex-direction: column;
		gap: 0.75em;
	}
}

.hush-lodge-booking-form__error {
	display: none;
	margin-top: 0.25em;
	color: #b32d2e;
	font-size: 0.9em;
}

.hush-lodge-booking-form__error.is-visible {
	display: block;
}

.hush-lodge-booking-form__form input.has-error,
.hush-lodge-booking-form__form select.has-error {
	border-color: #b32d2e;
	outline-color: #b32d2e;
}

.hush-lodge-booking-form__notice {
	padding: 0.75em 1em;
	border-radius: 4px;
	margin-bottom: 1em;
}

.hush-lodge-booking-form__notice--success {
	background: #edf7ed;
	border: 1px solid #4caf50;
}

.hush-lodge-booking-form__notice--error {
	background: #fdecea;
	border: 1px solid #b32d2e;
}
