.ad-form-wrap {
	--ad-form-primary: #2563eb;
	--ad-form-primary-deep: #1d4ed8;
	--ad-form-signal: #14b8a6;
	--ad-form-text: #0c1524;
	--ad-form-bg: #eef2f6;
	--ad-form-card: #ffffff;
	--ad-form-line: #d5dee8;
	--ad-form-muted: #5b6b7c;
	--ad-form-danger: #b42318;
	--ad-form-radius: 10px;
	--ad-form-control-h: 48px;
	color: var(--ad-form-text);
	max-width: 40rem;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.ad-form {
	position: relative;
	background: var(--ad-form-card);
	border: 1px solid var(--ad-form-line);
	border-radius: 16px;
	padding: 32px 28px 28px;
	box-shadow: 0 8px 30px rgba(12, 21, 36, 0.06);
}

.ad-form::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	border-radius: 16px 16px 0 0;
	background: linear-gradient(90deg, var(--ad-form-primary), var(--ad-form-signal));
}

.ad-form__fields,
.ad-form__step {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px 16px;
	align-items: start;
}

.ad-form__field,
.ad-form__step-title,
.ad-form__step-description,
.ad-form__nav,
.ad-form__conversational-nav {
	box-sizing: border-box;
	grid-column: 1 / -1;
	min-width: 0;
	width: auto;
}

.ad-form__field--w75 { grid-column: span 9; }
.ad-form__field--w66 { grid-column: span 8; }
.ad-form__field--w50 { grid-column: span 6; }
.ad-form__field--w33 { grid-column: span 4; }
.ad-form__field--w25 { grid-column: span 3; }

.ad-form__label {
	display: block;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.3;
	margin-bottom: 8px;
	color: var(--ad-form-text);
}

.ad-form__sublabel {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--ad-form-muted);
	margin-bottom: 6px;
}

.ad-form__required {
	color: var(--ad-form-danger);
	font-weight: 700;
}

.ad-form__control,
.ad-form select.ad-form__control,
.ad-form textarea.ad-form__control {
	width: 100%;
	max-width: 100%;
	min-height: var(--ad-form-control-h);
	border: 1px solid var(--ad-form-line);
	border-radius: var(--ad-form-radius);
	padding: 12px 14px;
	background: #fbfcfe;
	color: var(--ad-form-text);
	font: inherit;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ad-form textarea.ad-form__control {
	min-height: 140px;
	resize: vertical;
}

.ad-form__control:hover {
	border-color: #b7c4d3;
	background: #fff;
}

.ad-form__control:focus {
	outline: none;
	background: #fff;
	border-color: var(--ad-form-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.ad-form__field.is-conditionally-hidden {
	display: none !important;
}

.ad-form__field.is-invalid .ad-form__control {
	border-color: var(--ad-form-danger);
}

.ad-form__calculated {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ad-form__control--calculated {
	font-variant-numeric: tabular-nums;
	font-weight: 650;
	background: var(--ad-form-bg);
}

.ad-form__affix {
	color: var(--ad-form-muted);
	white-space: nowrap;
}

.ad-form__description,
.ad-form__error {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.45;
}

.ad-form__description {
	color: var(--ad-form-muted);
}

.ad-form__error {
	color: var(--ad-form-danger);
}

.ad-form__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	line-height: 1.45;
}

.ad-form__field--gdpr .ad-form__label,
.ad-form__field--checkbox .ad-form__label {
	margin-bottom: 10px;
}

.ad-form__field--gdpr .ad-form__check,
.ad-form__field--acceptance .ad-form__check {
	padding: 14px 16px;
	border: 1px solid var(--ad-form-line);
	border-radius: var(--ad-form-radius);
	background: #f8fafc;
}

.ad-form__check input {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	accent-color: var(--ad-form-primary);
}

.ad-form__submit {
	appearance: none;
	border: 0;
	background: var(--ad-form-primary);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--ad-form-radius);
	cursor: pointer;
	box-shadow: none;
	letter-spacing: -0.01em;
}

.ad-form__submit:hover,
.ad-form__submit:focus {
	background: var(--ad-form-primary-deep);
}

.ad-form__notice,
.ad-form__confirmation {
	background: var(--ad-form-card);
	border: 1px solid var(--ad-form-line);
	border-radius: 16px;
	padding: 18px 22px;
	box-shadow: 0 8px 24px rgba(12, 21, 36, 0.05);
}

.ad-form__confirmation,
.ad-form--success {
	border-color: rgba(20, 184, 166, 0.4);
	background:
		radial-gradient(400px 120px at 0% 0%, rgba(20, 184, 166, 0.1), transparent 70%),
		#fff;
}

.ad-form__progress {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	counter-reset: ad-form-step;
}

.ad-form__progress li {
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--ad-form-bg);
	color: var(--ad-form-muted);
	font-size: 13px;
	font-weight: 700;
	counter-increment: ad-form-step;
}

.ad-form__progress li[aria-current="step"] {
	background: #eff4ff;
	color: var(--ad-form-text);
	box-shadow: inset 0 -3px 0 var(--ad-form-primary);
}

.ad-form__nav-next {
	border: 0;
	background: var(--ad-form-primary);
	color: #fff;
	box-shadow: none;
}

.ad-form__rating-option:has(input:checked) {
	border-color: var(--ad-form-primary);
	background: #eff4ff;
	font-weight: 700;
}

.ad-form__products .ad-form__check {
	padding: 14px 16px;
	border: 1px solid var(--ad-form-line);
	border-radius: 12px;
	background: #fff;
}

.ad-form__products .ad-form__check:has(input:checked) {
	border-color: var(--ad-form-primary);
	background: #f5f8ff;
	box-shadow: inset 0 0 0 1px var(--ad-form-primary);
}

.ad-form__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

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

.ad-form--preview {
	background: #fff7ed;
	border-color: #fdba74;
}

.ad-form.is-submitting {
	opacity: 0.85;
}

.ad-form__step-title {
	margin: 0;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}

.ad-form__step-description {
	margin: -8px 0 0;
	color: var(--ad-form-muted);
}

.ad-form--paged-js .ad-form__step:not(.is-active) {
	display: none;
}

.ad-form__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.ad-form__nav-prev,
.ad-form__nav-next {
	appearance: none;
	border-radius: var(--ad-form-radius);
	font-weight: 650;
	min-height: 44px;
	padding: 10px 18px;
	cursor: pointer;
}

.ad-form__nav-prev {
	border: 1px solid var(--ad-form-line);
	background: #fff;
	color: var(--ad-form-text);
}

.ad-form__nav-next:hover,
.ad-form__nav-next:focus {
	background: var(--ad-form-primary-deep);
}

.ad-form__name,
.ad-form__address {
	display: grid;
	gap: 12px 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ad-form__name-part,
.ad-form__address-part {
	min-width: 0;
}

.ad-form__address input:first-child,
.ad-form__address .ad-form__control:first-child {
	grid-column: 1 / -1;
}

.ad-form__radios,
.ad-form__checks {
	display: grid;
	gap: 8px;
}

.ad-form__signature-canvas {
	display: block;
	width: 100%;
	max-width: 400px;
	height: 160px;
	border: 1px dashed var(--ad-form-line);
	border-radius: var(--ad-form-radius);
	background: #fff;
	touch-action: none;
	cursor: crosshair;
}

.ad-form__signature-clear {
	margin-top: 8px;
	appearance: none;
	border: 1px solid var(--ad-form-line);
	background: #fff;
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
}

.ad-form__field--section {
	padding-bottom: 4px;
	border-bottom: 1px solid var(--ad-form-line);
	margin-bottom: 4px;
}

.ad-form__section-title {
	margin: 0 0 6px;
	font-size: 1.2rem;
	letter-spacing: -0.03em;
	line-height: 1.25;
}

.ad-form__field--section .ad-form__description {
	margin: 0;
	font-size: 14px;
}

.ad-form__html {
	line-height: 1.5;
}

.ad-form__captcha {
	margin: 8px 0 16px;
}

.ad-form__repeater {
	display: grid;
	gap: 12px;
}

.ad-form__repeater-row {
	display: grid;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--ad-form-line);
	border-radius: 12px;
	background: #f8fafc;
}

.ad-form__repeater-add,
.ad-form__repeater-remove {
	appearance: none;
	border-radius: 8px;
	padding: 8px 12px;
	cursor: pointer;
	font-weight: 650;
}

.ad-form__repeater-add {
	border: 0;
	background: var(--ad-form-primary);
	color: #fff;
	justify-self: start;
}

.ad-form__repeater-remove {
	border: 1px solid var(--ad-form-line);
	background: #fff;
	color: var(--ad-form-text);
	justify-self: start;
}

.ad-form__products {
	display: grid;
	gap: 10px;
}

.ad-form__price {
	font-style: normal;
	color: var(--ad-form-muted);
	font-weight: 650;
}

.ad-form__order-total {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 750;
	letter-spacing: -0.03em;
}

.ad-form__rating {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ad-form__rating-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	border: 1px solid var(--ad-form-line);
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
	background: #fff;
}

.ad-form__rating-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ad-form__container {
	width: auto;
	padding: 0;
	border: 0;
	margin: 0;
}

.ad-form__container-title {
	margin: 0 0 14px;
	font-size: 1.05rem;
	letter-spacing: -0.02em;
}

.ad-form__container-body {
	display: grid;
	gap: 16px;
}

.ad-form__container-body .ad-form__field {
	width: 100%;
	grid-column: auto;
}

.ad-form__container-body--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ad-form__container-body--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ad-form__product {
	display: grid;
	gap: 6px;
}

.ad-form__variants {
	display: grid;
	gap: 6px;
	margin: 0 0 4px 1.5rem;
	padding: 8px 10px;
	border-left: 2px solid var(--ad-form-line);
}

.ad-form__check--variant {
	font-size: 0.95em;
}

.ad-form--conversational .ad-form__field.is-conversational-hidden {
	display: none !important;
}

.ad-form--conversational .ad-form__field.is-conversational-active {
	animation: ad-form-fade-in 0.25s ease;
}

.ad-form__conversational-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 4px;
}

@keyframes ad-form-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.ad-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	width: 100%;
}

.ad-form__column {
	box-sizing: border-box;
	min-width: 0;
}

.ad-form__column--w100 { width: 100%; }
.ad-form__column--w75 { width: calc(75% - 8px); }
.ad-form__column--w66 { width: calc(66.66% - 8px); }
.ad-form__column--w50 { width: calc(50% - 8px); }
.ad-form__column--w33 { width: calc(33.33% - 8px); }
.ad-form__column--w25 { width: calc(25% - 8px); }

.ad-form-elementor-skin .ad-form {
	border-radius: inherit;
}

.ad-form-elementor-skin .ad-form__submit,
.ad-form-elementor-skin .ad-form__nav-next {
	color: var(--ad-form-button-text, #fff);
}

.ad-form-wrap[dir="rtl"] .ad-form__label,
.ad-form-wrap[dir="rtl"] .ad-form__control {
	text-align: right;
}

@media (max-width: 640px) {
	.ad-form {
		padding: 24px 18px 20px;
	}

	.ad-form__field--w75,
	.ad-form__field--w66,
	.ad-form__field--w50,
	.ad-form__field--w33,
	.ad-form__field--w25,
	.ad-form__column--w75,
	.ad-form__column--w66,
	.ad-form__column--w50,
	.ad-form__column--w33,
	.ad-form__column--w25 {
		grid-column: 1 / -1;
		width: 100%;
	}

	.ad-form__name,
	.ad-form__address,
	.ad-form__container-body--cols-2,
	.ad-form__container-body--cols-3 {
		grid-template-columns: 1fr;
	}
}

body.ad-form-dialog-open {
	overflow: hidden;
}

.ad-form-dialog {
	--ad-form-primary: #2563eb;
	--ad-form-primary-deep: #1d4ed8;
	--ad-form-signal: #14b8a6;
	--ad-form-text: #0c1524;
	--ad-form-card: #ffffff;
	--ad-form-line: #d5dee8;
	--ad-form-muted: #5b6b7c;
	--ad-form-danger: #b42318;
	--ad-form-radius: 10px;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.ad-form-dialog__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 21, 36, 0.48);
	backdrop-filter: blur(4px);
}

.ad-form-dialog__panel {
	position: relative;
	z-index: 1;
	width: min(28rem, 100%);
	padding: 28px 26px 24px;
	border-radius: 18px;
	border: 1px solid var(--ad-form-line);
	background:
		radial-gradient(420px 140px at 100% 0%, rgba(180, 35, 24, 0.08), transparent 70%),
		var(--ad-form-card);
	box-shadow: 0 28px 70px -28px rgba(12, 21, 36, 0.45);
	color: var(--ad-form-text);
}

.ad-form-dialog__panel::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	border-radius: 18px 18px 0 0;
	background: linear-gradient(90deg, var(--ad-form-danger), var(--ad-form-primary));
}

.ad-form-dialog__kicker {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ad-form-danger);
}

.ad-form-dialog__title {
	margin: 0;
	font-size: 1.35rem;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.ad-form-dialog__hint {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ad-form-muted);
}

.ad-form-dialog__close {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 22px;
	padding: 12px 22px;
	border: 0;
	border-radius: var(--ad-form-radius);
	background: var(--ad-form-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	cursor: pointer;
}

.ad-form-dialog__close:hover,
.ad-form-dialog__close:focus {
	background: var(--ad-form-primary-deep);
}
