/* ========================================
   BASYS HOTELS demo request page
======================================== */

.site-header .site-logo .site-logo__text.brand-name {
	display: inline-block;
	color: #2f6bff !important;
	font-size: 28px !important;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.1;
	white-space: nowrap;
}

.hotels-demo-page {
	background: #f7faff;
}

.hotels-demo-hero {
	padding: 72px 0 64px;
	background: linear-gradient(145deg, var(--color-blue-dark), #244d9b);
	color: var(--color-white);
}

.hotels-demo-hero__inner {
	max-width: 840px;
}

.hotels-demo-hero__label {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.hotels-demo-hero__title {
	margin: 0 0 18px;
	font-size: clamp(34px, 4vw, 52px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.hotels-demo-hero__lead {
	max-width: 680px;
	margin: 0;
	font-size: 17px;
	line-height: 1.8;
}

.hotels-demo-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.hotels-demo-hero__meta li {
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.hotels-demo-content {
	padding: 72px 0 104px;
}

.hotels-demo-content__inner {
	max-width: 840px;
}

.hotels-demo-guide {
	margin-bottom: 32px;
	padding: 24px 28px;
	border: 1px solid #dce7f8;
	border-radius: 16px;
	background: #edf4ff;
}

.hotels-demo-guide__title {
	margin: 0 0 12px;
	color: var(--color-navy);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
}

.hotels-demo-guide__list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--color-text);
	font-size: 15px;
	line-height: 1.65;
}

.hotels-demo-guide__list li {
	position: relative;
	padding-left: 20px;
}

.hotels-demo-guide__list li::before {
	position: absolute;
	top: 0.67em;
	left: 2px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--color-blue);
	content: "";
}

.hotels-demo-form-wrap {
	padding: 40px;
	border: 1px solid #e0e8f4;
	border-radius: 20px;
	background: var(--color-white);
	box-shadow: 0 14px 40px rgba(26, 39, 68, 0.06);
}

.hotels-demo-form-head {
	margin-bottom: 32px;
}

.hotels-demo-form-head__label {
	margin: 0 0 8px;
	color: var(--color-blue);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.hotels-demo-form-head h2 {
	margin: 0 0 10px;
	color: var(--color-navy);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
}

.hotels-demo-form-head > p:last-child {
	margin: 0;
	color: var(--color-muted);
	font-size: 15px;
	line-height: 1.7;
}

.hotels-demo-alert {
	margin: 0 0 26px;
	padding: 14px 16px;
	border: 1px solid #f0c2c2;
	border-radius: 10px;
	background: #fff5f5;
	color: #8a2b2b;
	font-size: 14px;
}

.hotels-demo-alert p {
	margin: 0;
}

.hotels-demo-form {
	display: grid;
	gap: 24px;
}

.hotels-demo-hp {
	position: absolute;
	top: auto;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hotels-demo-field {
	display: grid;
	gap: 8px;
}

.hotels-demo-label,
.hotels-demo-fieldset legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--color-navy);
	font-size: 14px;
	font-weight: 700;
}

.hotels-demo-required,
.hotels-demo-optional {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 20px;
	padding: 0 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.hotels-demo-required {
	background: rgba(47, 107, 255, 0.12);
	color: var(--color-blue-dark);
}

.hotels-demo-optional {
	background: var(--color-pale-2);
	color: var(--color-muted);
}

.hotels-demo-input,
.hotels-demo-textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--color-line);
	border-radius: 10px;
	background: var(--color-white);
	color: var(--color-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hotels-demo-input {
	min-height: 52px;
}

.hotels-demo-textarea {
	min-height: 150px;
	resize: vertical;
}

.hotels-demo-input:focus,
.hotels-demo-textarea:focus {
	outline: none;
	border-color: var(--color-blue);
	box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}

.hotels-demo-field.is-error .hotels-demo-input,
.hotels-demo-field.is-error .hotels-demo-textarea,
.hotels-demo-preferred.is-error .hotels-demo-input {
	border-color: #d64545;
}

.hotels-demo-error {
	margin: 0;
	color: #c0392b;
	font-size: 13px;
	line-height: 1.5;
}

.hotels-demo-fieldset {
	display: grid;
	gap: 14px;
	min-width: 0;
	margin: 4px 0 0;
	padding: 22px;
	border: 1px solid #e4eaf3;
	border-radius: 14px;
	background: #fbfcff;
}

.hotels-demo-fieldset legend {
	padding: 0 6px;
}

.hotels-demo-help {
	margin: 0;
	color: var(--color-muted);
	font-size: 13px;
	line-height: 1.7;
}

.hotels-demo-help span {
	display: block;
}

.hotels-demo-help span + span {
	margin-top: 4px;
}

.hotels-demo-preferred {
	display: grid;
	gap: 8px;
	padding-top: 4px;
}

.hotels-demo-preferred + .hotels-demo-preferred {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid #e7edf6;
}

.hotels-demo-preferred__label {
	margin: 0;
	color: var(--color-navy);
	font-size: 13px;
	font-weight: 700;
}

.hotels-demo-preferred__inputs {
	display: grid;
	grid-template-columns: minmax(170px, 0.85fr) minmax(0, 1.65fr);
	gap: 16px;
	align-items: end;
}

.hotels-demo-preferred__inputs label {
	display: grid;
	gap: 5px;
	color: var(--color-muted);
	font-size: 12px;
	font-weight: 600;
}

.hotels-demo-preferred__range {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.hotels-demo-preferred__range > p {
	margin: 0;
	color: var(--color-muted);
	font-size: 12px;
	font-weight: 600;
}

.hotels-demo-preferred__range-inputs {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 8px;
	align-items: end;
}

.hotels-demo-preferred__range-separator {
	align-self: end;
	padding-bottom: 12px;
	color: var(--color-muted);
	font-size: 14px;
	line-height: 1.5;
}

.hotels-demo-select {
	appearance: auto;
	padding-right: 8px;
}

.hotels-demo-check-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
}

.hotels-demo-check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	color: var(--color-text);
	font-size: 14px;
	line-height: 1.6;
	cursor: pointer;
}

.hotels-demo-check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--color-blue);
}

.hotels-demo-check--privacy a {
	color: var(--color-blue);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hotels-demo-check--privacy .hotels-demo-required {
	margin-left: 6px;
}

.hotels-demo-actions {
	margin-top: 4px;
}

.hotels-demo-submit {
	width: 100%;
	min-height: 56px;
	border: 0;
	cursor: pointer;
}

.hotels-demo-submit:disabled {
	cursor: wait;
	opacity: 0.7;
}

.hotels-demo-success {
	padding: 32px;
	border: 1px solid #ccdcf5;
	border-radius: 16px;
	background: #edf4ff;
}

.hotels-demo-success h2 {
	margin: 0 0 12px;
	color: var(--color-navy);
	font-size: 22px;
	line-height: 1.5;
}

.hotels-demo-success p {
	margin: 0;
	color: var(--color-text);
	font-size: 15px;
	line-height: 1.8;
}

@media (max-width: 768px) {
	.site-header .site-logo .site-logo__text.brand-name {
		font-size: 20px !important;
		letter-spacing: 0.03em;
	}

	.hotels-demo-hero {
		padding: 48px 0 44px;
	}

	.hotels-demo-hero__title {
		font-size: 27px;
		line-height: 1.4;
	}

	.hotels-demo-hero__lead {
		font-size: 15px;
	}

	.hotels-demo-content {
		padding: 48px 0 72px;
	}

	.hotels-demo-guide {
		padding: 20px;
	}

	.hotels-demo-form-wrap {
		padding: 28px 20px;
		border-radius: 16px;
	}

	.hotels-demo-form-head h2 {
		font-size: 24px;
	}

	.hotels-demo-fieldset {
		padding: 18px 14px;
	}

	.hotels-demo-preferred__inputs {
		grid-template-columns: 1fr;
		gap: 10px;
		min-width: 0;
		max-width: 100%;
	}

	.hotels-demo-preferred,
	.hotels-demo-preferred__inputs > label {
		min-width: 0;
		max-width: 100%;
	}

	.hotels-demo-preferred input[type="date"] {
		display: block;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	@supports (-webkit-touch-callout: none) {
		.hotels-demo-preferred input[type="date"] {
			width: -webkit-fill-available;
			-webkit-min-logical-width: 0;
			-webkit-appearance: none;
			appearance: none;
		}

		.hotels-demo-preferred input[type="date"]::-webkit-date-and-time-value {
			min-width: 0;
			text-align: left;
		}
	}

	.hotels-demo-check-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.hotels-demo-preferred__range-inputs {
		gap: 6px;
	}
}
