.doctor-detail-appointment {
	position: relative;
	z-index: 50;
	padding-top: 14px;
	padding-bottom: 24px;
	overflow: visible;
}

.doctor-detail-appointment__form {
	position: relative;
	z-index: 60;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) 170px;
	gap: 18px;
	align-items: end;
	padding: 24px 34px 18px;
	border: 1px solid #0b55df;
	border-radius: 8px;
	background: #f7fbff;
	overflow: visible;
}

.doctor-detail-appointment__form label {
	display: grid;
	position: relative;
	gap: 8px;
	min-width: 0;
}

.doctor-detail-appointment__form label:has(.contact-select.is-open) {
	z-index: 10;
}

.doctor-detail-appointment__form span {
	color: #172849;
	font-size: 13px;
	font-weight: 800;
}

.doctor-detail-appointment__form input,
.doctor-detail-appointment__form select {
	width: 100%;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid #d7e4f2;
	border-radius: 5px;
	background: #ffffff;
	color: #263950;
	font: inherit;
	font-size: 13px;
}

.doctor-detail-appointment__form input:focus,
.doctor-detail-appointment__form select:focus {
	border-color: var(--doctor-detail-blue);
	box-shadow: 0 0 0 3px rgba(6, 74, 167, 0.12);
	outline: none;
}

.doctor-detail-appointment__form .contact-select {
	position: relative;
	z-index: 4;
}

.doctor-detail-appointment__form .contact-select__native {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.doctor-detail-appointment__form .contact-select__button {
	position: relative;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 0 40px 0 14px;
	border: 1px solid #d7e4f2;
	border-radius: 5px;
	background: #ffffff;
	color: #263950;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	line-height: 46px;
	overflow: hidden;
	text-align: left;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.doctor-detail-appointment__form .contact-select__button::after {
	position: absolute;
	top: 50%;
	right: 15px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #0e2a4a;
	border-bottom: 2px solid #0e2a4a;
	content: "";
	transform: translateY(-62%) rotate(45deg);
	transition: transform 160ms ease;
}

.doctor-detail-appointment__form .contact-select.is-open .contact-select__button,
.doctor-detail-appointment__form .contact-select__button:focus-visible {
	border-color: var(--doctor-detail-blue);
	box-shadow: 0 0 0 3px rgba(6, 74, 167, 0.12);
	outline: none;
}

.doctor-detail-appointment__form .contact-select.is-open .contact-select__button::after {
	transform: translateY(-25%) rotate(225deg);
}

.doctor-detail-appointment__form .contact-select__menu {
	position: absolute;
	z-index: 1000;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	overflow: hidden;
	border: 1px solid #cbd8e8;
	border-radius: 5px;
	background: #ffffff;
	box-shadow: 0 12px 24px rgba(10, 42, 84, 0.14);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity 140ms ease, transform 140ms ease;
}

.doctor-detail-appointment__form .contact-select.is-open .contact-select__menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.doctor-detail-appointment__form .contact-select__option {
	display: block;
	width: 100%;
	min-height: 38px;
	margin: 0;
	padding: 9px 14px;
	border: 0;
	background: #ffffff;
	color: #22344a;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	line-height: 1.35;
	text-align: left;
}

.doctor-detail-appointment__form .contact-select__option:hover,
.doctor-detail-appointment__form .contact-select__option:focus-visible {
	background: #edf6ff;
	color: var(--doctor-detail-blue);
	outline: none;
}

.doctor-detail-appointment__form .contact-select__option[aria-selected="true"] {
	background: var(--doctor-detail-blue);
	color: #ffffff;
	font-weight: 800;
}

.doctor-detail-appointment__form button {
	min-height: 46px;
	border: 0;
	border-radius: 6px;
	background: linear-gradient(180deg, #0758c6 0%, #003f9d 100%);
	color: #ffffff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 900;
	text-transform: uppercase;
}

.doctor-detail-appointment__form p {
	grid-column: 1 / -1;
	margin: 0;
	color: #263950;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

.doctor-detail-appointment__form p::before {
	margin-right: 7px;
	color: var(--doctor-detail-blue);
	content: "▣";
}

@media (max-width: 1024px) {
	.doctor-detail-appointment__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.doctor-detail-appointment__form button {
		grid-column: 1 / -1;
	}
}

@media (max-width: 560px) {
	.doctor-detail-appointment {
		padding-bottom: 24px;
	}

	.doctor-detail-appointment__form {
		grid-template-columns: 1fr;
		gap: 14px;
		padding: 20px 16px;
	}
}
