.crm-reservation-form {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.crm-reservation-form > * {
	min-width: 0;
}
.crm-reservation-form label {
	color: var(--crm-form-text, #162033);
	display: grid;
	font-weight: 700;
	gap: 6px;
}
.crm-reservation-form input,
.crm-reservation-form select,
.crm-reservation-form textarea {
	border: 1px solid #c9d2e3;
	border-radius: 10px;
	font: inherit;
	max-width: 100%;
	min-width: 0;
	padding: 12px 13px;
	width: 100%;
}
.crm-reservation-form input[type="date"] {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	min-height: 48px;
}
.crm-reservation-form input:focus,
.crm-reservation-form select:focus,
.crm-reservation-form textarea:focus {
	box-shadow: 0 0 0 3px rgba(21, 101, 216, .2);
	outline: 2px solid transparent;
}
.crm-reservation-form .crm-invalid {
	border-color: #b42318;
}
.crm-field-error {
	color: #b42318;
	font-size: .875rem;
	font-weight: 500;
	min-height: 1.25em;
}
.crm-full,
.crm-consent,
.crm-estimate,
.crm-submit,
.crm-form-message,
.crm-selected-car {
	grid-column: 1 / -1;
}
.crm-recaptcha {
	grid-column: 1 / -1;
	min-height: 78px;
}
.crm-hp {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}
.crm-selected-car {
	align-items: center;
	display: none;
	gap: 12px;
}
.crm-selected-car.is-visible {
	display: flex;
}
.crm-selected-car img {
	border-radius: 10px;
	height: 72px;
	object-fit: cover;
	width: 108px;
}
.crm-estimate {
	background: #eef6ff;
	border-radius: 12px;
	font-weight: 800;
	padding: 12px 14px;
}
.crm-estimate[data-available="0"] {
	background: #fff3cd;
	border: 1px solid #f6c343;
	color: #7a4d00;
}
.crm-estimate[data-available="1"] {
	background: #e9f8ef;
	border: 1px solid #8fd8aa;
	color: #0f5132;
}
.crm-submit {
	background: #1565d8;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-weight: 800;
	padding: 14px 20px;
}
.crm-submit[disabled] {
	cursor: wait;
	opacity: .65;
}
.crm-customer-access,
.crm-customer-portal {
	background: #fff;
	border: 1px solid #dbe3ef;
	border-radius: 16px;
	display: grid;
	gap: 14px;
	padding: 20px;
}
.crm-customer-portal table {
	border-collapse: collapse;
	width: 100%;
}
.crm-customer-portal th,
.crm-customer-portal td {
	border-bottom: 1px solid #dbe3ef;
	padding: 10px;
	text-align: start;
}
.crm-message-success { color: #0f5132; }
.crm-message-error { color: #842029; }
.crm-success-open,
.crm-alert-open {
	overflow: hidden;
}
.crm-success-modal[hidden],
.crm-alert-modal[hidden] {
	display: none;
}
.crm-success-modal,
.crm-alert-modal {
	inset: 0;
	position: fixed;
	z-index: 1000;
}
.crm-success-modal__backdrop,
.crm-alert-modal__backdrop {
	background: rgba(6, 16, 31, .56);
	backdrop-filter: blur(6px);
	inset: 0;
	opacity: 0;
	position: absolute;
	transition: opacity .22s ease;
}
.crm-success-modal__panel,
.crm-alert-modal__panel {
	background:
		radial-gradient(circle at 18% 12%, rgba(37, 211, 102, .16), transparent 32%),
		#fff;
	border: 1px solid rgba(219, 227, 239, .92);
	border-radius: 22px;
	box-shadow: 0 28px 80px rgba(6, 16, 31, .28);
	inset-block-start: 50%;
	inset-inline-start: 50%;
	max-width: 560px;
	opacity: 0;
	overflow: hidden;
	padding: clamp(24px, 5vw, 36px);
	position: absolute;
	text-align: center;
	transform: translate(-50%, calc(-50% + 18px)) scale(.96);
	transition: opacity .24s ease, transform .24s ease;
	width: min(calc(100vw - 28px), 560px);
}
.crm-alert-modal__panel {
	background:
		radial-gradient(circle at 18% 12%, rgba(246, 195, 67, .22), transparent 34%),
		#fff;
}
.crm-success-modal.is-open .crm-success-modal__backdrop,
.crm-alert-modal.is-open .crm-alert-modal__backdrop {
	opacity: 1;
}
.crm-success-modal.is-open .crm-success-modal__panel,
.crm-alert-modal.is-open .crm-alert-modal__panel {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}
.crm-success-modal.is-closing .crm-success-modal__backdrop,
.crm-alert-modal.is-closing .crm-alert-modal__backdrop {
	opacity: 0;
}
.crm-success-modal.is-closing .crm-success-modal__panel,
.crm-alert-modal.is-closing .crm-alert-modal__panel {
	opacity: 0;
	transform: translate(-50%, calc(-50% + 12px)) scale(.98);
}
.crm-success-modal__close,
.crm-alert-modal__close {
	align-items: center;
	background: #eef3f8;
	border: 0;
	border-radius: 999px;
	color: #162033;
	cursor: pointer;
	display: inline-flex;
	font-size: 24px;
	font-weight: 800;
	height: 38px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	inset-block-start: 14px;
	inset-inline-end: 14px;
	width: 38px;
}
.crm-success-modal__close:hover,
.crm-success-modal__primary:hover,
.crm-alert-modal__close:hover,
.crm-alert-modal__primary:hover {
	transform: translateY(-1px);
}
.crm-success-modal__icon,
.crm-alert-modal__icon {
	align-items: center;
	background: linear-gradient(135deg, #18a957, #25d366);
	border-radius: 999px;
	box-shadow: 0 16px 34px rgba(37, 211, 102, .28);
	color: #fff;
	display: inline-flex;
	height: 72px;
	justify-content: center;
	margin-block-end: 18px;
	width: 72px;
}
.crm-alert-modal__icon {
	background: linear-gradient(135deg, #f6c343, #d83b21);
	box-shadow: 0 16px 34px rgba(216, 59, 33, .2);
}
.crm-success-modal__eyebrow,
.crm-alert-modal__eyebrow {
	color: #1565d8;
	font-size: .76rem;
	font-weight: 900;
	margin: 0 0 8px;
	text-transform: uppercase;
}
.crm-alert-modal__eyebrow {
	color: #b42318;
}
.crm-success-modal h2,
.crm-alert-modal h2 {
	color: #162033;
	font-size: clamp(1.75rem, 5vw, 2.55rem);
	line-height: 1.05;
	margin: 0;
}
.crm-success-modal__body,
.crm-alert-modal__body {
	color: #5e6b7f;
	font-size: 1.05rem;
	margin: 14px auto 0;
	max-width: 440px;
	white-space: pre-line;
}
.crm-success-modal__reference {
	background: #eef6ff;
	border: 1px solid #dbeafe;
	border-radius: 999px;
	color: #1565d8;
	display: inline-flex;
	font-weight: 900;
	margin: 20px 0 0;
	padding: 9px 14px;
}
.crm-success-modal__reference:empty {
	display: none;
}
.crm-success-modal__primary,
.crm-alert-modal__primary {
	background: #1565d8;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 14px 28px rgba(21, 101, 216, .22);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 900;
	margin-block-start: 22px;
	min-height: 48px;
	padding: 12px 24px;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.crm-alert-modal__primary {
	background: #b42318;
	box-shadow: 0 14px 28px rgba(180, 35, 24, .2);
}
html[dir="rtl"] .crm-success-modal__panel,
body.rtl .crm-success-modal__panel,
html[dir="rtl"] .crm-alert-modal__panel,
body.rtl .crm-alert-modal__panel {
	transform: translate(50%, calc(-50% + 18px)) scale(.96);
}
html[dir="rtl"] .crm-success-modal.is-open .crm-success-modal__panel,
body.rtl .crm-success-modal.is-open .crm-success-modal__panel,
html[dir="rtl"] .crm-alert-modal.is-open .crm-alert-modal__panel,
body.rtl .crm-alert-modal.is-open .crm-alert-modal__panel {
	transform: translate(50%, -50%) scale(1);
}
html[dir="rtl"] .crm-success-modal.is-closing .crm-success-modal__panel,
body.rtl .crm-success-modal.is-closing .crm-success-modal__panel,
html[dir="rtl"] .crm-alert-modal.is-closing .crm-alert-modal__panel,
body.rtl .crm-alert-modal.is-closing .crm-alert-modal__panel {
	transform: translate(50%, calc(-50% + 12px)) scale(.98);
}
@media (max-width: 700px) {
	.crm-reservation-form {
		grid-template-columns: 1fr;
	}
	.crm-reservation-form input,
	.crm-reservation-form select,
	.crm-reservation-form textarea {
		font-size: 16px;
	}
	.crm-date-field,
	.crm-date-field input[type="date"] {
		inline-size: 100%;
		max-inline-size: 100%;
		min-inline-size: 0;
	}
	.crm-success-modal__panel,
	.crm-alert-modal__panel {
		border-radius: 18px;
		padding: 24px 18px;
	}
	.crm-success-modal__primary,
	.crm-alert-modal__primary {
		width: 100%;
	}
}
@media (max-width: 360px) {
	.crm-recaptcha {
		height: 68px;
		min-height: 68px;
		overflow: hidden;
		width: 262px;
	}
	.crm-recaptcha .g-recaptcha {
		transform: scale(.86);
		transform-origin: top left;
	}
	html[dir="rtl"] .crm-recaptcha .g-recaptcha,
	body.rtl .crm-recaptcha .g-recaptcha {
		transform-origin: top right;
	}
}
@media (max-width: 320px) {
	.crm-recaptcha {
		height: 61px;
		min-height: 61px;
		width: 237px;
	}
	.crm-recaptcha .g-recaptcha {
		transform: scale(.78);
	}
}
@media (prefers-reduced-motion: reduce) {
	.crm-success-modal__backdrop,
	.crm-success-modal__panel,
	.crm-success-modal__close,
	.crm-success-modal__primary,
	.crm-alert-modal__backdrop,
	.crm-alert-modal__panel,
	.crm-alert-modal__close,
	.crm-alert-modal__primary {
		transition: none;
	}
}
