.ht-core-form {
	display: grid;
	gap: 0.5rem;
}

.ht-core-form p {
	margin: 0;
}

.ht-core-form__grid {
	display: grid;
	gap: 1rem;
}

.ht-core-form label {
	display: grid;
	gap: 0.35rem;
	font-weight: 600;
	scroll-margin-top: 7rem;
}

.ht-core-form__label {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
}

.ht-core-form__required {
	color: #b42318;
	font-weight: 700;
	margin-right: 0.25rem;
}

.ht-core-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ht-core-form input,
.ht-core-form textarea,
.ht-core-form select,
.ht-core-form button {
	font: inherit;
}

.ht-core-form input,
.ht-core-form textarea,
.ht-core-form select {
	box-sizing: border-box;
	padding: 1rem 1.15rem;
	min-height: 3.25rem;
	border: 1px solid #c4ccd4;
	border-radius: 0.45rem;
	background: #ffffff;
	color: #1f2933;
	scroll-margin-top: 7rem;
}

.ht-core-form input[type='text'],
.ht-core-form input[type='email'],
.ht-core-form input[type='date'],
.ht-core-form textarea,
.ht-core-form select,
.ht-core-booking-staff-select,
.ht-core-booking-time-select {
	padding-left: 0.9rem; /*text field padding - left*/
}

.ht-core-form select,
.ht-core-booking-staff-select,
.ht-core-booking-time-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%231f2933' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M1 1.5 7 7.5 13 1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.15rem center;
	background-size: 0.65rem auto;
	padding-right: 3.9rem;
}

.ht-core-form input:focus,
.ht-core-form textarea:focus,
.ht-core-form select:focus {
	border-color: #245c78;
	outline: 2px solid rgba(36, 92, 120, 0.12);
	outline-offset: 0;
}

.ht-core-form textarea {
	min-height: 8rem;
	resize: vertical;
}

.ht-core-form button[type='submit'][disabled] {
	opacity: 0.7;
	cursor: wait;
}

.ht-core-form button[type='submit'] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.85rem 1.5rem;
	border: 1px solid #245c78;
	border-radius: 0.55rem;
	background: #245c78;
	color: #ffffff;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ht-core-form button[type='submit']:hover,
.ht-core-form button[type='submit']:focus-visible {
	background: #1e4d64;
	border-color: #1e4d64;
	box-shadow: 0 0 0 3px rgba(36, 92, 120, 0.12);
	outline: none;
}

.ht-core-form button[type='submit'].ht-core-submit-loading::after {
	content: '...';
	display: inline-block;
	width: 1.2em;
	margin-left: 0.08em;
	text-align: left;
	overflow: hidden;
	vertical-align: bottom;
	clip-path: inset(0 100% 0 0);
	animation: ht-core-loading-dots 1s steps(1, end) infinite;
}

.ht-core-form--submitting {
	opacity: 0.92;
}

@keyframes ht-core-loading-dots {
	0% {
		clip-path: inset(0 100% 0 0);
	}
	25% {
		clip-path: inset(0 66% 0 0);
	}
	50% {
		clip-path: inset(0 33% 0 0);
	}
	75% {
		clip-path: inset(0 0 0 0);
	}
	100% {
		clip-path: inset(0 100% 0 0);
	}
}

.ht-core-form__consent label {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 400;
}

.ht-core-form__consent input[type='checkbox'] {
	width: 1rem;
	height: 1rem;
	margin: 0;
	flex: 0 0 auto;
}

.ht-core-form__field-error {
	display: block;
	margin-top: 0.35rem;
	color: #b42318;
	font-size: 0.9rem;
	line-height: 1.45;
}

.ht-core-form__field-help {
	display: block;
	margin-top: 0.35rem;
	color: #50575e;
	font-size: 0.9rem;
	font-weight: 400;
	line-height: 1.5;
}

.ht-core-booking-available-staff + .ht-core-form__field-help,
.ht-core-form__field-help + .ht-core-form__field-help {
	margin-top: -0.15rem;
}

.ht-core-booking-time-select[disabled] {
	background: #f6f7f7;
	color: #6b7280;
	cursor: not-allowed;
}

.ht-core-booking-scheduler {
	display: grid;
	gap: 1rem;
}

.ht-core-forms-ready .ht-core-booking-time-select--native {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.ht-core-forms-ready .ht-core-booking-date-input {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.ht-core-forms-ready .ht-core-booking-time-select--native.ht-core-booking-time-select--validate,
.ht-core-forms-ready .ht-core-booking-date-input.ht-core-booking-date-input--validate {
	position: static;
	left: auto;
	width: 100%;
	height: auto;
	opacity: 1;
	pointer-events: auto;
	margin-top: 0.5rem;
}

.ht-core-booking-calendar {
	border: 1px solid #d8dee6;
	border-radius: 0.9rem;
	background: linear-gradient(180deg, #ffffff 0%, #fafcfe 100%);
	padding: 1rem;
	margin-top: 0.5rem;
	scroll-margin-top: 7rem;
}

.ht-core-booking-calendar__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.ht-core-booking-calendar__title {
	font-weight: 700;
	color: #1f2933;
}

.ht-core-booking-calendar__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	border: 1px solid #d8dee6;
	border-radius: 999px;
	background: #ffffff;
	color: #245c78;
	cursor: pointer;
}

.ht-core-booking-calendar__nav-icon {
	display: inline-block;
	width: 0.68rem;
	height: 0.68rem;
	line-height: 1;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	transform: translateY(-0.02rem);
}

.ht-core-booking-calendar__nav-icon--prev {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='14' viewBox='0 0 9 14'%3E%3Cpath fill='none' stroke='%23245c78' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M7.5 1 1.5 7l6 6'/%3E%3C/svg%3E");
}

.ht-core-booking-calendar__nav-icon--next {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='14' viewBox='0 0 9 14'%3E%3Cpath fill='none' stroke='%23245c78' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8' d='M1.5 1 7.5 7l-6 6'/%3E%3C/svg%3E");
}

.ht-core-booking-calendar__nav[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.ht-core-booking-calendar__weekdays,
.ht-core-booking-calendar__days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.35rem;
}

.ht-core-booking-calendar__weekdays {
	margin-bottom: 0.55rem;
}

.ht-core-booking-calendar__weekday {
	text-align: center;
	font-size: 0.8rem;
	font-weight: 700;
	color: #52606d;
	text-transform: uppercase;
}

.ht-core-booking-calendar__day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: center;
	width: 100%;
	max-width: 2.7rem;
	aspect-ratio: 1 / 1;
	min-height: 2.7rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #ffffff;
	color: #1f2933;
	cursor: pointer;
	font-weight: 600;
}

.ht-core-booking-calendar__day:hover:not([disabled]),
.ht-core-booking-calendar__day:focus-visible:not([disabled]) {
	border-color: #245c78;
	box-shadow: 0 0 0 3px rgba(36, 92, 120, 0.12);
	outline: none;
}

.ht-core-booking-calendar__day.is-selected {
	background: #245c78;
	color: #ffffff;
}

.ht-core-booking-calendar__day.is-today:not(.is-selected) {
	border-color: #cbd5df;
}

.ht-core-booking-calendar__day--muted {
	color: #9aa5b1;
	background: transparent;
	cursor: default;
}

.ht-core-booking-calendar__day[disabled] {
	background: #6b7280;
	color: #e8edf2;
	opacity: 0.75;
	cursor: not-allowed;
}

.ht-core-booking-slot-picker {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: 0.65rem;
	margin-top: 0.5rem;
	scroll-margin-top: 7rem;
}

.ht-core-booking-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7rem 0.8rem;
	border: 1px solid #c4ccd4;
	border-radius: 0.55rem;
	background: #ffffff;
	color: #245c78;
	font-weight: 600;
	text-align: center;
	transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.ht-core-booking-slot:not([disabled]) {
	cursor: pointer;
}

.ht-core-booking-slot:hover:not([disabled]),
.ht-core-booking-slot:focus-visible:not([disabled]) {
	border-color: #245c78;
	box-shadow: 0 0 0 3px rgba(36, 92, 120, 0.12);
	outline: none;
}

.ht-core-booking-slot.is-selected {
	border-color: #245c78;
	background: #245c78;
	color: #ffffff;
}

.ht-core-booking-slot[disabled] {
	border-color: #8c8f94;
	background: #6b7280;
	color: #e8edf2;
	opacity: 0.8;
	cursor: not-allowed;
	box-shadow: inset 0 0 0 999px rgba(31, 41, 51, 0.08);
}

.ht-core-booking-available-staff {
	margin-top: 0.35rem;
	margin-bottom: 0;
	color: #245c78;
	font-size: 0.95rem;
	font-weight: 600;
}

.ht-core-booking-available-staff:empty {
	display: none;
}

.ht-core-booking-guidance {
	display: grid;
	gap: 0.55rem;
	margin-top: -0.15rem;
	padding: 0.85rem 0.95rem;
	border: 1px solid #d8dee6;
	border-radius: 0.8rem;
	background: rgba(255, 255, 255, 0.75);
}

.ht-core-booking-guidance__intro,
.ht-core-booking-guidance__footnote {
	margin: 0;
}

.ht-core-booking-guidance__items {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.ht-core-booking-guidance__item {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	padding: 0.35rem 0.65rem;
	border: 1px solid #d8dee6;
	border-radius: 999px;
	background: #ffffff;
	color: #245c78;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.2;
}

.ht-core-form--booking .ht-core-booking-staff-help {
	margin-bottom: 0.1rem;
}

.ht-core-form--booking textarea[name='message'] {
	margin-top: 0.1rem;
}

.ht-core-upload-group {
	display: grid;
	gap: 0.75rem;
}

.ht-core-upload-row {
	display: grid;
	gap: 0.35rem;
}

.ht-core-upload-row__controls {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.ht-core-upload-input {
	font: inherit;
	color: #1f2933;
}

.ht-core-upload-input::file-selector-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.85rem 1.35rem;
	margin-right: 0.85rem;
	border: 1px solid #245c78;
	border-radius: 0.55rem;
	background: #245c78;
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ht-core-upload-input:hover::file-selector-button,
.ht-core-upload-input:focus-within::file-selector-button {
	background: #1e4d64;
	border-color: #1e4d64;
	box-shadow: 0 0 0 3px rgba(36, 92, 120, 0.12);
}

.ht-core-upload-input::-webkit-file-upload-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.85rem 1.35rem;
	margin-right: 0.85rem;
	border: 1px solid #245c78;
	border-radius: 0.55rem;
	background: #245c78;
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ht-core-upload-input:hover::-webkit-file-upload-button,
.ht-core-upload-input:focus-within::-webkit-file-upload-button {
	background: #1e4d64;
	border-color: #1e4d64;
	box-shadow: 0 0 0 3px rgba(36, 92, 120, 0.12);
}

.ht-core-upload-remove {
	margin-left: auto;
	padding: 0;
}

.ht-core-upload-meta {
	font-size: 0.9rem;
	color: #50575e;
}

.ht-core-upload-meta--error {
	color: #b42318;
}

.ht-core-upload-help {
	display: block;
	margin-top: 0.35rem;
	color: #50575e;
}

.ht-core-upload-help--error {
	color: #b42318;
}

.ht-core-upload-add {
	margin-top: 0.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.85rem 1.5rem;
	border: 1px solid #245c78;
	border-radius: 0.55rem;
	background: #245c78;
	color: #ffffff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ht-core-upload-add:hover,
.ht-core-upload-add:focus-visible {
	background: #1e4d64;
	border-color: #1e4d64;
	box-shadow: 0 0 0 3px rgba(36, 92, 120, 0.12);
	outline: none;
}

.ht-core-upload-add[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (min-width: 720px) {
	.ht-core-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ht-core-booking-scheduler {
		grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 1.15fr);
		align-items: start;
	}

	.ht-core-booking-scheduler__time > p,
	.ht-core-booking-scheduler__calendar > p {
		display: grid;
		gap: 0.2rem;
	}
}

@media (max-width: 719px) {
	.ht-core-form label,
	.ht-core-form input,
	.ht-core-form textarea,
	.ht-core-form select,
	.ht-core-booking-calendar,
	.ht-core-booking-slot-picker {
		scroll-margin-top: 5.5rem;
	}

	.ht-core-form {
		gap: 0.85rem; /*0.85*/
	}

	.ht-core-form__grid {
		gap: 0.85rem;
	}

	.ht-core-booking-scheduler {
		gap: 0.85rem;
	}

	.ht-core-booking-calendar {
		padding: 0.8rem;
	}

	.ht-core-booking-calendar__header {
		margin-bottom: 0.8rem;
	}

	.ht-core-booking-calendar__weekdays,
	.ht-core-booking-calendar__days {
		gap: 0.2rem;
	}

	.ht-core-booking-calendar__weekday {
		font-size: 0.72rem;
	}

	.ht-core-booking-calendar__day {
		max-width: 2.3rem;
		min-height: 2.3rem;
		font-size: 0.95rem;
	}

	.ht-core-booking-slot-picker {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.55rem;
	}

	.ht-core-booking-slot {
		min-height: 2.8rem;
		padding: 0.6rem 0.7rem;
	}

	.ht-core-booking-guidance {
		padding: 0.75rem 0.8rem;
	}
}

@media (max-width: 480px) {
	.ht-core-booking-calendar {
		padding: 0.7rem;
	}

	.ht-core-booking-calendar__nav {
		width: 2rem;
		height: 2rem;
	}

	.ht-core-booking-calendar__title {
		font-size: 1rem;
	}

	.ht-core-booking-calendar__weekdays,
	.ht-core-booking-calendar__days {
		gap: 0.15rem;
	}

	.ht-core-booking-calendar__weekday {
		font-size: 0.68rem;
	}

	.ht-core-booking-calendar__day {
		max-width: 2.05rem;
		min-height: 2.05rem;
		font-size: 0.88rem;
	}
}
