.afv-quote-form {
	color: #1f2933;
	font-family: inherit;
	margin: 0 auto;
	max-width: 100%;
	width: 100%;
}

.afv-quote-form__title {
	font-size: 28px;
	line-height: 1.25;
	margin: 0 0 54px;
	text-align: center;
}

.afv-quote-form__intro {
	display: grid;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.7;
	margin: 0 0 42px;
	padding: 0;
}

.afv-quote-form__form {
	display: block;
}

.afv-quote-form__honeypot {
	height: 0;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 0;
}

.afv-quote-form__type {
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0 30px 30px ;
	padding: 0;
	background-color: #fff;
}

.afv-quote-form__type legend {
	flex-basis: 100%;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 2px;
}

.afv-quote-form__type .afv-quote-form__type-legend {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.afv-quote-form__type legend span[aria-hidden="true"],
.afv-quote-form__field label span[aria-hidden="true"] {
	color: #d63638;
}

.afv-quote-form__type-option {
	align-items: center;
	background: transparent;
	border: 1px solid #d4dbe3;
	border-radius: 1px;
	cursor: pointer;
	display: inline-flex;
	font-weight: 600;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
}

.afv-quote-form__type-option:has(input:checked) {
	background: #fff8d6;
	border-color: #e8b900;
}

.afv-quote-form__grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.afv-quote-form__stack {
	display: grid;
	gap: 18px;
	margin-top: 18px;
	max-width: 780px;
}

.afv-quote-form__address-group {
	border: 0;
	margin: 22px 0 0;
	max-width: 980px;
	padding: 0;
	background-color: #fff;
}

.afv-quote-form__address-title {
	color: #303841;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 12px;
	padding: 0;
}

.afv-quote-form__address-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(110px, 0.7fr) minmax(160px, 1fr) minmax(260px, 2fr);
}

.afv-quote-form__shipping-toggle {
	align-items: center;
	color: #303841;
	display: inline-flex;
	font-size: 15px;
	font-weight: 600;
	gap: 10px;
	margin: 14px 0 0;
}

.afv-quote-form__shipping-toggle input {
	margin: 0;
}

.afv-quote-form__form[data-customer-type="individual"] [data-afv-company-field] {
	display: none;
}

.afv-quote-form__form[data-customer-type="company"] [data-afv-contact-label="individual"],
.afv-quote-form__form[data-customer-type="individual"] [data-afv-contact-label="company"] {
	display: none;
}

.afv-quote-form__field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.afv-quote-form__field--half {
	margin-top: 18px;
	max-width: 580px;
}

.afv-quote-form__calculation-box {
	background: #f6f7f8;
	border: 1px solid #d7dce1;
	box-sizing: border-box;
	margin-top: 24px;
	margin-bottom: 44px;
	padding: 18px;
}

.afv-quote-form__quote-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(120px, 1fr));
	margin-top: 0;
}

.afv-quote-form__price-note {
	color: #b91c1c;
	font-size: 14px;
	font-weight: 600;
	margin: 20px 0 0;
	text-align: center;
}

.afv-quote-form__field label,
.afv-quote-form__upload label {
	color: #303841;
	font-size: 16px;
	font-weight: 500;
}

.afv-quote-form input[type="text"],
.afv-quote-form input[type="email"],
.afv-quote-form input[type="tel"],
.afv-quote-form input[type="number"],
.afv-quote-form input[type="file"],
.afv-quote-form select,
.afv-quote-form textarea {
	background: #fff;
	border: 1px solid #d7dce1;
	border-radius: 0;
	box-sizing: border-box;
	color: #111827;
	font: inherit;
	min-height: 48px;
	padding: 10px 12px;
	width: 100%;
}

.afv-quote-form__phone-control {
	display: flex;
	width: 100%;
}

.afv-quote-form__phone-prefix {
	align-items: center;
	background: #eef1f4;
	border: 1px solid #d7dce1;
	border-right: 0;
	box-sizing: border-box;
	color: #111827;
	display: inline-flex;
	font-weight: 700;
	justify-content: center;
	min-height: 48px;
	padding: 0 14px;
	white-space: nowrap;
}

.afv-quote-form__phone-control input[type="tel"] {
	border-left: 0;
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
}

.afv-quote-form__tax-control {
	align-items: center;
	display: flex;
	position: relative;
	width: 100%;
}

.afv-quote-form__tax-control input[type="text"] {
	padding-right: 42px;
}

.afv-quote-form__tax-spinner {
	border: 2px solid rgba(17, 24, 39, 0.18);
	border-left-color: #111827;
	border-radius: 50%;
	display: none;
	height: 16px;
	position: absolute;
	right: 13px;
	width: 16px;
}

.afv-quote-form__tax-spinner--visible {
	animation: afv-quote-spin 0.8s linear infinite;
	display: block;
}

.afv-quote-form__tax-spinner--success {
	animation: none;
	background: #3f914e;
	border: 0;
}

.afv-quote-form__tax-spinner--success::before {
	border: solid #fff;
	border-width: 0 2px 2px 0;
	content: "";
	height: 8px;
	left: 6px;
	position: absolute;
	top: 3px;
	transform: rotate(45deg);
	width: 4px;
}

.afv-quote-form__phone-control:has(input[aria-invalid="true"]) .afv-quote-form__phone-prefix {
	border-color: #d63638;
}

.afv-quote-form__phone-control:focus-within .afv-quote-form__phone-prefix {
	border-color: #c69a00;
	box-shadow: 0 0 0 2px rgba(255, 212, 42, 0.28);
}

.afv-quote-form__field-warning {
	color: #b32d2e;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	margin: -2px 0 0;
}

.afv-quote-form__field-warning--info {
	color: #5f6b7a;
}

.afv-quote-form__field-warning--success {
	color: #116329;
}

.afv-quote-form textarea {
	min-height: 210px;
	resize: vertical;
}

.afv-quote-form input:focus,
.afv-quote-form select:focus,
.afv-quote-form textarea:focus {
	border-color: #c69a00;
	box-shadow: 0 0 0 2px rgba(255, 212, 42, 0.28);
	outline: none;
}

.afv-quote-form input[aria-invalid="true"],
.afv-quote-form select[aria-invalid="true"],
.afv-quote-form textarea[aria-invalid="true"] {
	border-color: #d63638;
}

.afv-quote-form__price-preview {
	border-top: 1px solid #d7dce1;
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	margin-top: 18px;
	padding: 16px 0 0;
}

.afv-quote-form__price-preview span {
	color: #4b5563;
	display: block;
	font-size: 13px;
	margin-bottom: 4px;
}

.afv-quote-form__price-preview strong {
	color: #111827;
	display: block;
	font-size: 18px;
	line-height: 1.25;
}

.afv-quote-form__upload {
	margin: 30px 0 22px;
}

.afv-quote-form__upload p {
	color: #4b5563;
	margin: 12px 0 10px;
}

.afv-quote-form__consent {
	align-items: flex-start;
	display: flex;
	gap: 10px;
	margin: 18px 0 22px;
}

.afv-quote-form__consent input {
	margin-top: 4px;
}

.afv-quote-form__consent a {
	color: #111827;
	font-weight: 700;
	text-decoration: underline;
}

.afv-quote-form__captcha {
	margin: 0 0 22px;
	max-width: 360px;
}

.afv-quote-form__captcha-message {
	color: #5f6b7a;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	margin: 8px 0 0;
}

.afv-quote-form__submit {
	align-items: center;
	background: #ffd42a;
	border: 0;
	border-radius: 1px;
	color: #111827;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	min-height: 48px;
	min-width: 220px;
	padding: 0 28px;
	position: relative;
}

.afv-quote-form__submit:hover,
.afv-quote-form__submit:focus {
	background: #f2c400;
}

.afv-quote-form__submit:disabled {
	cursor: wait;
	opacity: 0.75;
}

.afv-quote-form__submit-spinner {
	border: 2px solid rgba(17, 24, 39, 0.25);
	border-left-color: #111827;
	border-radius: 50%;
	display: none;
	height: 16px;
	margin-left: 10px;
	width: 16px;
}

.afv-quote-form__submit--loading .afv-quote-form__submit-spinner {
	animation: afv-quote-spin 0.8s linear infinite;
	display: inline-block;
}

.afv-quote-form__feedback {
	display: none;
	font-weight: 700;
	margin-top: 14px;
	max-width: 560px;
	padding: 14px 16px 14px 46px;
	position: relative;
}

.afv-quote-form__feedback::before {
	border-radius: 50%;
	content: "";
	height: 22px;
	left: 14px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
}

.afv-quote-form__feedback--success,
.afv-quote-form__feedback--error {
	display: block;
}

.afv-quote-form__feedback--success {
	background: #e8f7ee;
	border: 1px solid #9bd4ad;
	color: #14532d;
}

.afv-quote-form__feedback--success::before {
	background: #3f914e;
}

.afv-quote-form__feedback--error {
	background: #fff1f2;
	border: 1px solid #f3a7ad;
	color: #9f1239;
}

.afv-quote-form__feedback--error::before {
	background: #d63638;
}

.afv-quote-form__required-note {
	color: #5f6b7a;
	margin: 70px 0 0;
}

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

@media (max-width: 760px) {
	.afv-quote-form__title {
		font-size: 24px;
		margin-bottom: 30px;
	}

	.afv-quote-form__intro {
		font-size: 15px;
		margin-bottom: 30px;
	}

	.afv-quote-form__grid {
		grid-template-columns: 1fr;
	}

	.afv-quote-form__address-grid {
		grid-template-columns: 1fr;
	}

	.afv-quote-form__quote-grid,
	.afv-quote-form__price-preview {
		grid-template-columns: 1fr;
	}

	.afv-quote-form__submit {
		width: 100%;
	}
}
