.clm-modal[hidden],
.clm-field[hidden],
.clm-fieldset[hidden] {
	display: none !important;
}

.clm-modal-open {
	overflow: hidden;
}

.clm-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
	font-family: inherit;
}

.clm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(23, 19, 15, 0.72);
	backdrop-filter: blur(5px);
}

.clm-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 680px);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 38px;
	border: 1px solid rgba(23, 19, 15, 0.12);
	border-radius: 22px;
	background: #fff;
	color: #17130f;
	box-shadow: 0 28px 80px rgba(23, 19, 15, 0.28);
}

.clm-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f6f4f1;
	color: #17130f;
	font: 32px/1 Arial, sans-serif;
	cursor: pointer;
}

.clm-modal__close:hover,
.clm-modal__close:focus-visible {
	background: #17130f;
	color: #fff;
}

.clm-modal__eyebrow {
	margin-bottom: 8px;
	color: var(--clm-accent, #e42320);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.16em;
}

.clm-modal h2 {
	margin: 0 48px 8px 0;
	color: #17130f;
	font-family: "Bebas Neue", Impact, sans-serif;
	font-size: clamp(34px, 6vw, 48px);
	font-weight: 400;
	line-height: 0.98;
	text-transform: uppercase;
}

.clm-modal__description {
	margin: 0 0 24px;
	color: #5f574f;
	font-size: 15px;
	line-height: 1.55;
}

.clm-fields-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.clm-field {
	margin-bottom: 15px;
}

.clm-field label,
.clm-fieldset legend {
	display: block;
	margin: 0 0 7px;
	color: #17130f;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.3;
}

.clm-field label span,
.clm-fieldset legend span,
.clm-consent b {
	color: var(--clm-accent, #e42320);
}

.clm-field input,
.clm-field select {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #d8d2cc;
	border-radius: 10px;
	background: #fff;
	color: #17130f;
	font: inherit;
	font-size: 15px;
	outline: none;
}

.clm-field input:focus,
.clm-field select:focus {
	border-color: var(--clm-accent, #e42320);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--clm-accent, #e42320) 16%, transparent);
}

.clm-fieldset {
	min-width: 0;
	margin: 0 0 15px;
	padding: 0;
	border: 0;
}

.clm-choice-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.clm-choice-row label {
	position: relative;
	cursor: pointer;
}

.clm-choice-row input {
	position: absolute;
	opacity: 0;
}

.clm-choice-row span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	border: 1px solid #d8d2cc;
	border-radius: 10px;
	background: #fff;
	font-weight: 700;
	transition: 0.15s ease;
}

.clm-choice-row input:checked + span {
	border-color: var(--clm-accent, #e42320);
	background: color-mix(in srgb, var(--clm-accent, #e42320) 8%, #fff);
	color: var(--clm-accent, #e42320);
	box-shadow: inset 0 0 0 1px var(--clm-accent, #e42320);
}

.clm-choice-row input:focus-visible + span {
	outline: 3px solid color-mix(in srgb, var(--clm-accent, #e42320) 22%, transparent);
	outline-offset: 2px;
}

.clm-consent {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 10px;
	align-items: start;
	margin: 5px 0 16px;
	color: #5f574f;
	font-size: 12px;
	line-height: 1.5;
	cursor: pointer;
}

.clm-consent input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--clm-accent, #e42320);
}

.clm-consent a {
	color: var(--clm-accent, #e42320);
	font-weight: 700;
}

.clm-submit,
.clm-shortcode-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 50px;
	border: 0;
	border-radius: 999px;
	background: var(--clm-accent, #e42320);
	color: #fff !important;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.clm-submit {
	width: 100%;
	padding: 0 22px;
}

.clm-shortcode-button {
	padding: 0 24px;
}

.clm-submit:hover:not(:disabled),
.clm-shortcode-button:hover {
	filter: brightness(0.9);
	transform: translateY(-1px);
}

.clm-submit:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.clm-submit.is-loading::after {
	width: 15px;
	height: 15px;
	margin-left: 10px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	content: "";
	animation: clm-spin 0.7s linear infinite;
}

.clm-form-message {
	display: none;
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
}

.clm-form-message.is-error,
.clm-form-message.is-success {
	display: block;
}

.clm-form-message.is-error {
	border: 1px solid #efb1ae;
	background: #fff1f0;
	color: #9f211e;
}

.clm-form-message.is-success {
	border: 1px solid #9bd5b3;
	background: #eefbf3;
	color: #17683a;
}

.clm-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@keyframes clm-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 640px) {
	.clm-modal {
		align-items: end;
		padding: 0;
	}

	.clm-modal__dialog {
		width: 100%;
		max-height: 92vh;
		padding: 30px 20px 24px;
		border-radius: 22px 22px 0 0;
	}

	.clm-modal h2 {
		font-size: 36px;
	}

	.clm-fields-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.clm-submit,
	.clm-shortcode-button {
		transition: none;
	}
}
