/**
 * Oazis placeholder forms.
 */

.oazis-form {
	--oazis-form-line: currentColor;
	box-sizing: border-box;
	font-family: inherit;
	letter-spacing: 0.03em;
}

.oazis-form *,
.oazis-form *::before,
.oazis-form *::after {
	box-sizing: border-box;
}

.oazis-form [hidden] {
	display: none !important;
}

.oazis-form__title {
	margin: 0 0 30px;
	font-family: var(--wp--preset--font-family--cormorant, Georgia, serif);
	font-size: var(--wp--preset--font-size--xx-large, 32px);
	font-weight: 500;
	line-height: 1.3;
	text-transform: uppercase;
}

.oazis-form__intro {
	max-width: 720px;
	margin: -12px 0 30px;
}

.oazis-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.oazis-form__field label {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.oazis-form input[type="text"],
.oazis-form input[type="tel"],
.oazis-form input[type="date"],
.oazis-form input[type="number"],
.oazis-form select,
.oazis-form textarea {
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--oazis-form-line);
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 16px;
	line-height: 1.3;
}

.oazis-form select {
	appearance: none;
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px;
}

.oazis-form textarea {
	min-height: 110px;
	resize: vertical;
}

.oazis-form input:focus-visible,
.oazis-form select:focus-visible,
.oazis-form textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #a68a64);
	outline-offset: 1px;
}

.oazis-form input:user-invalid,
.oazis-form select:user-invalid,
.oazis-form textarea:user-invalid {
	border-color: #b3261e;
}

.oazis-form .oazis-form__submit {
	min-height: 48px;
	padding: 5px 30px;
	white-space: nowrap;
	border: 1px solid var(--oazis-button, #000);
	background-color: var(--oazis-button, #000);
	color: #fff;
	font-family: var(--wp--preset--font-family--cormorant, Georgia, serif);
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s;
}

.oazis-form .oazis-form__submit:hover,
.oazis-form .oazis-form__submit:focus-visible {
	background-color: #fff;
	color: var(--oazis-button, #000);
}

/* Card look */

.oazis-booking--card,
.oazis-request {
	padding: clamp(28px, 5vw, 60px);
	border: 1px solid currentColor;
}

.oazis-booking--card .oazis-form__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	align-items: end;
	gap: 22px;
}

.oazis-booking--card .oazis-form__submit {
	width: 100%;
}

/* Bar look: a light strip at the bottom of the hero. */

.oazis-booking.oazis-booking--bar {
	padding: 18px var(--wp--custom--gutter, 40px);
	background: rgba(255, 255, 255, 0.86);
	color: #000;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	text-align: left;
}

.oazis-booking--bar .oazis-form__form,
.oazis-booking--bar .oazis-form__notice {
	max-width: var(--wp--style--global--wide-size, 1225px);
	margin-inline: auto;
}

.oazis-booking--bar .oazis-form__fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	align-items: end;
	gap: 14px 26px;
}

.oazis-booking--bar input[type="date"],
.oazis-booking--bar select {
	min-height: 40px;
	padding: 6px 0;
	border: 0;
	border-bottom: 1px solid #000;
}

.oazis-booking--bar select {
	padding-right: 28px;
	background-position: right 4px center;
}

.oazis-booking--bar .oazis-form__field label {
	font-size: 11px;
	opacity: 0.8;
}

.oazis-booking--bar .oazis-form__submit {
	width: 100%;
}

.oazis-booking--bar .oazis-form__notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 28px;
	padding: 0;
	border: 0;
}

.oazis-booking--bar .oazis-form__notice-text {
	font-size: 18px;
}

/* Request form */

.oazis-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 30px;
}

.oazis-form__field--wide {
	grid-column: 1 / -1;
}

.oazis-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	margin-top: 30px;
}

.oazis-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 520px;
	font-size: 13px;
	line-height: 1.5;
}

.oazis-form__consent input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #000;
}

.oazis-form__consent a {
	color: inherit;
}

.oazis-form__required {
	margin: 16px 0 0;
	color: var(--wp--preset--color--muted, #8a8a8a);
	font-size: 12px;
}

/* Message after a submit */

.oazis-form__notice {
	padding: clamp(24px, 4vw, 40px);
	border: 1px solid currentColor;
}

.oazis-form__notice:focus {
	outline: none;
}

.oazis-form__notice p {
	margin: 0;
}

.oazis-form__notice-text {
	font-family: var(--wp--preset--font-family--cormorant, Georgia, serif);
	font-size: 24px;
	line-height: 1.35;
}

.oazis-form__notice-phone {
	margin-top: 14px !important;
	font-size: 22px;
}

.oazis-form__notice-phone a {
	color: inherit;
}

.oazis-form__notice-close {
	margin-top: 18px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.oazis-booking--card .oazis-form__notice,
.oazis-request .oazis-form__notice {
	border: 0;
	padding: 0;
}

@media (max-width: 781px) {
	.oazis-form__grid {
		grid-template-columns: 100%;
	}

	.oazis-form__footer .oazis-form__submit {
		width: 100%;
	}

	.oazis-booking.oazis-booking--bar {
		padding: 18px 20px 22px;
	}

	.oazis-booking--bar .oazis-form__fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.oazis-booking--bar .oazis-form__field--submit,
	.oazis-booking--bar .oazis-form__field--room {
		grid-column: 1 / -1;
	}

	/* In a hero the bar leaves the bottom edge and follows the hero text. */
	.wp-block-cover.is-style-oazis-hero:has(.oazis-booking--bar) {
		padding-bottom: 0;
	}

	.wp-block-cover.is-style-oazis-hero .oazis-booking--bar {
		position: relative;
		margin: 40px calc(-1 * var(--wp--custom--gutter, 20px)) 0;
	}
}
