.hts-cabinet {
	--hts-cabinet-bg: #f4f7fb;
	--hts-cabinet-card: #ffffff;
	--hts-cabinet-text: #24344f;
	--hts-cabinet-border: #cfd8e5;
	--hts-cabinet-border-strong: #b7c5d8;
	--hts-cabinet-accent: #ff3b30;
	--hts-cabinet-button: #203a72;
	--hts-cabinet-button-hover: #1a305d;
	--hts-cabinet-shadow: 0 22px 50px rgba(27, 57, 104, 0.08);
	padding: 24px 0;
	font-family: "Nunito", sans-serif;
	color: var(--hts-cabinet-text);
	background:
		radial-gradient(circle at top left, rgba(222, 235, 255, 0.8), transparent 34%),
		linear-gradient(180deg, #f9fbff 0%, #f2f6fb 100%);
}

.hts-cabinet,
.hts-cabinet * {
	box-sizing: border-box;
}

.hts-cabinet input,
.hts-cabinet select,
.hts-cabinet textarea,
.hts-cabinet button {
	font: inherit;
}

.hts-cabinet__page-shell {
	width: min(100%, 980px);
	margin: 0 auto;
	padding: 0 24px;
}

.hts-cabinet__booking-card {
	background: var(--hts-cabinet-card);
	border: 1px solid rgba(190, 204, 223, 0.7);
	border-radius: 28px;
	box-shadow: var(--hts-cabinet-shadow);
	padding: 38px 42px;
}

.hts-cabinet__form-section + .hts-cabinet__form-section {
	margin-top: 34px;
}

.hts-cabinet__form-section h2,
.hts-cabinet__form-section h3 {
	margin: 0 0 22px;
	color: #29416c;
	font-size: clamp(2rem, 2vw, 2.35rem);
	line-height: 1.1;
	font-weight: 800;
}

.hts-cabinet__form-section h3 {
	font-size: clamp(1.9rem, 1.8vw, 2.2rem);
}

.hts-cabinet__form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 28px;
}

.hts-cabinet__field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hts-cabinet__field label {
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.25;
}

.hts-cabinet__field label span,
.hts-cabinet__form-footer span {
	color: var(--hts-cabinet-accent);
}

.hts-cabinet__field input,
.hts-cabinet__field select,
.hts-cabinet__field textarea,
.hts-cabinet__phone-wrap {
	width: 100%;
	border: 1px solid var(--hts-cabinet-border);
	border-radius: 10px;
	background: #ffffff;
	color: var(--hts-cabinet-text);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.hts-cabinet__field input,
.hts-cabinet__field select {
	min-height: 58px;
	padding: 16px 18px;
}

.hts-cabinet__field textarea {
	min-height: 170px;
	padding: 18px;
	resize: vertical;
}

.hts-cabinet__field input::placeholder,
.hts-cabinet__field textarea::placeholder {
	color: #7b8aa1;
}

.hts-cabinet__field input:focus,
.hts-cabinet__field select:focus,
.hts-cabinet__field textarea:focus,
.hts-cabinet__phone-wrap:focus-within,
.hts-cabinet__date-wrap:focus-within {
	outline: none;
	border-color: #8aa8cf;
	box-shadow: 0 0 0 4px rgba(112, 150, 203, 0.14);
}

.hts-cabinet__select-wrap,
.hts-cabinet__date-wrap {
	position: relative;
}

.hts-cabinet__select-wrap::after,
.hts-cabinet__date-wrap::after {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	content: "";
}

.hts-cabinet__select-wrap::after {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 7px solid #8d98ab;
}

.hts-cabinet__date-wrap::after {
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Crect x='1.25' y='2.75' width='15.5' height='14' rx='2.25' stroke='%23919db1' stroke-width='1.5'/%3E%3Cpath d='M5 1.75V4.5M13 1.75V4.5M1.75 6.25H16.25' stroke='%23919db1' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M5.25 9.25H5.75M8.75 9.25H9.25M12.25 9.25H12.75M5.25 12.25H5.75M8.75 12.25H9.25M12.25 12.25H12.75' stroke='%23919db1' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: contain;
}

.hts-cabinet__field select,
.hts-cabinet__date-wrap input {
	appearance: none;
	-webkit-appearance: none;
}

.hts-cabinet__date-wrap input {
	padding-right: 54px;
}

.hts-cabinet__date-wrap input::-webkit-calendar-picker-indicator {
	opacity: 0;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.hts-cabinet__phone-wrap {
	display: flex;
	align-items: center;
	min-height: 58px;
	overflow: hidden;
}

.hts-cabinet__phone-prefix {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0 16px;
	min-height: 58px;
	background: linear-gradient(180deg, #fcfdff 0%, #f3f7fd 100%);
	border-right: 1px solid var(--hts-cabinet-border);
	color: #41506a;
	white-space: nowrap;
}

.hts-cabinet__flag {
	display: inline-flex;
	width: 24px;
	height: 16px;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(15, 34, 66, 0.08);
}

.hts-cabinet__stripe {
	flex: 1;
}

.hts-cabinet__stripe--blue {
	background: #2349a2;
}

.hts-cabinet__stripe--yellow {
	background: #ffd447;
}

.hts-cabinet__stripe--red {
	background: #d7373f;
}

.hts-cabinet__prefix {
	font-weight: 700;
}

.hts-cabinet__phone-wrap input {
	border: 0;
	border-radius: 0;
	min-height: 58px;
	box-shadow: none;
}

.hts-cabinet__phone-wrap input:focus {
	box-shadow: none;
}

.hts-cabinet__field--wide {
	grid-column: 1 / -1;
}

.hts-cabinet__form-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
	padding-top: 10px;
}

.hts-cabinet__footer-meta {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hts-cabinet__form-footer p {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
}

.hts-cabinet__terms-check {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}

.hts-cabinet__terms-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hts-cabinet__checkbox-ui {
	position: relative;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	border: 1px solid var(--hts-cabinet-border-strong);
	border-radius: 6px;
	background: #ffffff;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.hts-cabinet__checkbox-ui::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 3px;
	width: 5px;
	height: 10px;
	border-right: 2px solid #ffffff;
	border-bottom: 2px solid #ffffff;
	transform: rotate(45deg) scale(0);
	transition: transform 0.18s ease;
}

.hts-cabinet__terms-check input:focus-visible + .hts-cabinet__checkbox-ui {
	border-color: #8aa8cf;
	box-shadow: 0 0 0 4px rgba(112, 150, 203, 0.14);
}

.hts-cabinet__terms-check input:checked + .hts-cabinet__checkbox-ui {
	background: var(--hts-cabinet-button);
	border-color: var(--hts-cabinet-button);
}

.hts-cabinet__terms-check input:checked + .hts-cabinet__checkbox-ui::after {
	transform: rotate(45deg) scale(1);
}

.hts-cabinet__terms-check input.is-invalid + .hts-cabinet__checkbox-ui {
	border-color: #ef8d87;
	box-shadow: 0 0 0 4px rgba(239, 141, 135, 0.12);
}

.hts-cabinet__terms-check input.is-valid + .hts-cabinet__checkbox-ui {
	border-color: #8bc39b;
}

.hts-cabinet__form-footer button {
	border: 0;
	border-radius: 12px;
	background: var(--hts-cabinet-button);
	color: #ffffff;
	min-height: 58px;
	padding: 0 26px;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
	box-shadow: 0 12px 24px rgba(32, 58, 114, 0.18);
}

.hts-cabinet__form-footer button:hover {
	background: var(--hts-cabinet-button-hover);
	transform: translateY(-1px);
}

.hts-cabinet__field input.is-invalid,
.hts-cabinet__field select.is-invalid,
.hts-cabinet__field textarea.is-invalid,
.hts-cabinet__phone-wrap.is-invalid {
	border-color: #ef8d87;
}

.hts-cabinet__field input.is-valid,
.hts-cabinet__field select.is-valid,
.hts-cabinet__field textarea.is-valid,
.hts-cabinet__phone-wrap.is-valid {
	border-color: #8bc39b;
}

@media (max-width: 760px) {
	.hts-cabinet__page-shell {
		padding: 0 14px;
	}

	.hts-cabinet__booking-card {
		padding: 24px 18px;
		border-radius: 22px;
	}

	.hts-cabinet__form-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.hts-cabinet__field--wide {
		grid-column: auto;
	}

	.hts-cabinet__form-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.hts-cabinet__form-footer button {
		width: 100%;
	}
}
