/**
 * Многошаговая форма записи (страница Appointment).
 */

.natella-appt-ms {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	align-self: stretch;
}

.natella-appt-ms *,
.natella-appt-ms *::before,
.natella-appt-ms *::after {
	box-sizing: border-box;
}

.natella-appt-ms__shell {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	background: #fff;
	/* border-block: 1px solid var(--natella-color-border, #e3e3e3); */
	padding: 20px clamp(1rem, 4vw, 3rem);
}

.natella-appt-ms__progress {
	display: flex;
	gap: 8px;
	margin-bottom: 18px;
}

.natella-appt-ms__progress-bar {
	height: 2px;
	flex: 1;
	background: #cbcbcbcf;
	transition: background 0.25s ease;
}

.natella-appt-ms__progress-bar.is-active,
.natella-appt-ms__progress-bar.is-done {
	background: var(--natella-color-button-bg, #2d2d2d);
}

.natella-appt-ms__step-wrap {
	position: relative;
	width: 100%;
}

.natella-appt-ms__step {
	display: none;
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
}

.natella-appt-ms__step.is-active {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.natella-appt-ms__step-content {
	display: grid;
	grid-template-columns: 1fr 2fr;
	column-gap: 16px;
	row-gap: 5px;
	align-items: center;
	min-height: 80px;
	min-width: 0;
}

.natella-appt-ms__step-content > .natella-appt-ms__error {
	grid-column: 1 / -1;
}

.natella-appt-ms__step-content:has(.natella-appt-ms__step-row),
.natella-appt-ms__step-content:has(.natella-appt-ms__check-group) {
	grid-template-columns: 1fr;
	text-align: center;
}

.natella-appt-ms__step-content:has(.natella-appt-ms__step-row) .natella-appt-ms__step-label,
.natella-appt-ms__step-content:has(.natella-appt-ms__check-group) .natella-appt-ms__step-label {
	text-align: center;
}

.natella-appt-ms__step-content:has(.natella-appt-ms__step-row) .natella-appt-ms__step-row {
	max-width: 32rem;
	margin-inline: auto;
	width: 100%;
}

.natella-appt-ms__step-content:has(.natella-appt-ms__check-group) .natella-appt-ms__check-group {
	justify-content: center;
}

.natella-appt-ms__step-actions {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.natella-appt-ms__step-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.natella-appt-ms__step-label {
	font-size: 14px;
	color: #444;
	line-height: 1.35;
	text-align: start;
}

.natella-appt-ms__step-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.natella-appt-ms__field,
.natella-appt-ms__textarea {
	width: 100%;
	border: none;
	border-bottom: 1px solid #cfcfcf;
	background: transparent;
	padding: 18px 0 8px;
	font-size: 16px;
	line-height: 1.4;
	color: #111;
	outline: none;
	font-family: var(--natella-font-ui, Montserrat, system-ui, sans-serif);
	text-align: right;
	direction: rtl;
}

.natella-appt-ms__field::placeholder,
.natella-appt-ms__textarea::placeholder {
	color: #b0b0b0;
}

.natella-appt-ms__field:focus,
.natella-appt-ms__textarea:focus {
	background: transparent;
	border-bottom-color: #222;
}

.natella-appt-ms__field:-webkit-autofill,
.natella-appt-ms__field:-webkit-autofill:hover,
.natella-appt-ms__field:-webkit-autofill:focus,
.natella-appt-ms__field:-webkit-autofill:active,
.natella-appt-ms__textarea:-webkit-autofill,
.natella-appt-ms__textarea:-webkit-autofill:hover,
.natella-appt-ms__textarea:-webkit-autofill:focus {
	-webkit-text-fill-color: #111;
	-webkit-background-clip: text !important;
	background-clip: text !important;
	caret-color: #111;
	transition: background-color 99999s ease-in-out 0s;
}


.natella-appt-ms__field[type="date"],
.natella-appt-ms__field[type="time"] {
	direction: ltr;
	text-align: right;
	padding-inline-end: 32px;
}

.natella-appt-ms__field[type="date"]::-webkit-calendar-picker-indicator,
.natella-appt-ms__field[type="time"]::-webkit-calendar-picker-indicator {
	margin: 0;
	cursor: pointer;
	opacity: 0.7;
}

.natella-appt-ms__step-row {
	flex-wrap: nowrap;
}

.natella-appt-ms__field--half {
	flex: 1 1 0;
	min-width: 0;
}


.natella-appt-ms__textarea {
	resize: none;
	min-height: 56px;
	font-size: 20px;
}

.natella-appt-ms__radio-group,
.natella-appt-ms__check-group {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.natella-appt-ms__check-group--slots {
	flex-wrap: nowrap;
}

@media (max-width: 46.8125em) {
	.natella-appt-ms__check-group--slots {
		flex-wrap: wrap;
	}
}

.natella-appt-ms__radio-card,
.natella-appt-ms__check-card {
	position: relative;
}

.natella-appt-ms__radio-card input,
.natella-appt-ms__check-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.natella-appt-ms__radio-card span,
.natella-appt-ms__check-card span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 18px;
	border: 1px solid #d8d8d8;
	border-radius: var(--natella-radius-control, 6px);
	font-size: 14px;
	white-space: nowrap;
	cursor: pointer;
	transition:
		border-color 0.2s ease,
		background 0.2s ease,
		color 0.2s ease;
}

.natella-appt-ms__radio-card input:checked + span,
.natella-appt-ms__check-card input:checked + span {
	border-color: #222;
	background: #222;
	color: #fff;
}

.natella-appt-ms__check-group .natella-appt-ms__check-card span {
	text-transform: none;
	letter-spacing: normal;
	font-size: 14px;
}

.natella-appt-ms__select {
	width: 100%;
	max-width: 100%;
	height: 44px;
	padding: 0 0 0 24px;
	border: none;
	border-bottom: 1px solid #cfcfcf;
	border-radius: 0;
	background-color: transparent;
	color: var(--natella-color-text, #111);
	font-size: 16px;
	line-height: 44px;
	font-family: var(--natella-font-ui, Montserrat, system-ui, sans-serif);
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 6px center;
	background-size: 12px;
	direction: rtl;
	text-align: right;
	outline: none;
}

.natella-appt-ms__select option {
	background-color: #f1e3d1;
	color: #111;
	font-size: 15px;
}

.natella-appt-ms__select:focus {
	border-bottom-color: #222;
}

.natella-appt-ms__thanks,
.natella-appt-ms__thanks-inline {
	margin: 0;
	width: 100%;
	text-align: center;
	font-size: clamp(1.5rem, 3.5vw, 3rem);
	font-family: var(--natella-font-heading);
	color: var(--natella-color-button-bg) !important;
	padding: 2rem 1rem;
	line-height: 1.3;
	white-space: pre-line;
}

.natella-prefooter.is-thanks .natella-prefooter__title,
.natella-prefooter.is-thanks .natella-prefooter__text {
	display: none;
}

.natella-appt-ms__thanks-inline[hidden] {
	display: none;
}

.natella-appt-ms__step-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.natella-appt-ms__btn {
	border: none;
	background: #2d2d2d;
	color: #fff;
	height: 32px;
	min-width: 88px;
	padding: 0 14px;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	font-family: var(--natella-font-ui, Montserrat, system-ui, sans-serif);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		background 0.2s ease;
}

.natella-appt-ms__btn:hover {
	transform: translateY(-1px);
}

.natella-appt-ms__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

.natella-appt-ms__btn--ghost {
	background: transparent;
	color: #444;
	border: 1px solid #d7d7d7;
}

.natella-appt-ms__error {
	font-size: 12px;
	color: #b42318;
	min-height: 0;
	margin-block-start: 4px;
}

.natella-appt-ms__error:empty {
	display: none;
}

.natella-appt-ms__check-group--styles {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.natella-appt-ms__check-card--small {
	flex: 0 1 auto;
	min-width: 0;
}

.natella-appt-ms__check-card--small span {
	padding: 0.4rem 0.85rem;
	font-size: 0.92rem;
}

.natella-appt-ms .natella-contact-form__hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 767.98px) {
	.natella-appt-ms__shell {
		padding: 16px;
	}

	.natella-appt-ms__step-content {
		grid-template-columns: 1fr;
		row-gap: 4px;
	}
}
