* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

h1, p {
	margin: 0;
}

input, select, textarea, legend {
	padding: 0;
	margin: 0;
	border: none;
	background: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

textarea {
	resize: vertical;
	min-height: 80px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0 0 0 0);
}

[data-only-phys="true"][hidden] {
	display: none !important;
}

.service-delivery-form {
	margin-bottom: 80px;
}

.service-delivery-form__header {
	max-width: 800px;
	margin-bottom: 32px;
}

.service-delivery-form__title {
	font-weight: 400;
	color: #222;
	margin-bottom: 10px;
}

.service-delivery-form__description {
	margin-top: 8px;
	font-weight: 400;
	color: #6f6f6f;
}

.service-delivery-form__form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: stretch;
}

.service-delivery-form__group {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.service-delivery-form__group:first-child {
	grid-column: 1;
}

.service-delivery-form__group:last-child {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.service-delivery-form__group.full,
.service-delivery-form__preparation,
.service-delivery-form-container,
.service-delivery-form__actions {
	grid-column: 1 / -1;
}

.service-delivery-form__group-title,
.service-delivery-form__preparation-title {
	font-weight: 400;
	color: #222;
}

.service-delivery-form__fields {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.service-delivery-form__field {
	width: 100%;
}

.service-delivery-form__input,
.service-delivery-form__select,
.service-delivery-form__textarea {
	width: 100%;
	font-weight: 400;
	color: #6f6f6f;
	transition: border-color 0.3s ease;
}

.service-delivery-form__input,
.service-delivery-form__select {
	height: 40px;
	border-bottom: 1px solid #afada4;
}

.service-delivery-form__textarea {
	padding: 10px;
	border: 1px solid #b9b9b9;
	border-radius: 10px;
}

.custom-select__button:hover,
.service-delivery-form__input:hover,
.service-delivery-form__select:hover {
	border-bottom-color: #539E53;
}

.service-delivery-form__input:focus,
.service-delivery-form__select:focus {
	outline: none;
	border-bottom-color: #539e53;
}

.service-delivery-form__textarea:focus {
	outline: none;
	border-color: #539e53;
}

.service-delivery-form__char-count {
	font-size: 0.85rem;
	color: #999;
	text-align: right;
	margin-top: 5px;
	font-weight: 400;
}

[data-counter="current"] {
	font-weight: 600;
}

.custom-select-wrapper {
	position: relative;
	width: 100%;
}

.custom-select__button {
	width: 100%;
	height: 40px;
	background: transparent;
	border: none;
	border-bottom: 1px solid #afada4;
	font-size: 16px;
	color: #6f6f6f;
	text-align: left;
	cursor: pointer;
	display: flex;
	align-items: center;
	position: relative;
	outline: none;
}

.custom-select__button::after {
	content: '';
	position: absolute;
	right: 5px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 1px solid #afada4;
	border-bottom: 1px solid #afada4;
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.3s ease, border-color 0.3s ease;
	pointer-events: none;
}

.custom-select__button.open::after {
	transform: translateY(-20%) rotate(-135deg);
	border-color: #539E53;
}

.custom-select__dropdown {
	position: absolute;
	top: calc(100% + 5px);
	left: 0;
	right: 0;
	max-height: 320px;
	overflow-y: auto !important;
	background-color: #fbfbfb;
	border-radius: 8px;
	padding: 12px 0 12px 12px;
	display: none;
	flex-direction: column;
	gap: 8px;
	z-index: 1000;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.custom-select__dropdown.open {
	display: flex;
}

.custom-select__option {
	background-color: #ffffff;
	padding: 14px 20px;
	border-radius: 10px;
	font-size: 15px;
	color: #333;
	cursor: pointer;
	margin-right: 12px;
	transition: background-color 0.2s;
}

.custom-select__option:hover {
	background-color: #f4f3ef;
}

.suggestions-suggestions {
	background-color: #fbfbfb !important;
	border-radius: 8px !important;
	border: none !important;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
	padding: 12px 0 12px 12px !important;
	margin-top: 5px !important;
	max-height: 320px !important;
	overflow-y: auto !important;
}

.suggestions-suggestion {
	background-color: #ffffff !important;
	padding: 14px 20px !important;
	border-radius: 10px !important;
	font-size: 15px !important;
	color: #333 !important;
	margin-right: 12px !important;
	margin-bottom: 8px !important;
	cursor: pointer !important;
	transition: background-color 0.2s !important;
}

.suggestions-suggestion:hover,
.suggestions-suggestion.suggestions-selected {
	background-color: #f4f3ef !important;
}

.suggestions-nowrap {
	color: #333 !important;
}

.suggestions-subtext {
	color: #6f6f6f !important;
}

.suggestions-promo {
	display: none !important;
}

.suggestions-input {
	outline: none !important;
}

.service-delivery-form__search {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px;
}

.service-delivery-form__search-input {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f4f3ef;
	border-radius: 40px;
	padding: 0 20px;
}

.service-delivery-form__search-field {
	width: 100%;
	height: 54px;
	background: transparent;
	border: none;
	font-size: 16px;
}

.service-delivery-form__search-field:focus {
	outline: none;
}

.service-delivery-form__right-scroll {
	display: flex;
	flex-direction: column;
	gap: 20px;
	flex: 1 1 0;
	min-height: 0;
	max-height: none;
	overflow-y: auto;
	padding-right: 10px;
}

.service-delivery-form__search-results-scrollable,
.service-delivery-form__products-scrollable {
	display: none;
	flex-direction: column;
	gap: 20px;
	border: none;
	max-height: none;
	overflow: visible;
}

.service-delivery-form__products-scrollable {
	gap: 24px;
}

.service-delivery-form__products-scrollable:not(:empty) {
	display: flex;
}

.service-delivery-form__search-item-wrapper,
.service-delivery-form__product-info {
	padding: 20px;
	border: 1px solid #b9b9b9;
	border-radius: 10px;
	background: #fff;
}

.service-delivery-form__search-item-wrapper {
	transition: box-shadow 0.3s ease;
}

.service-delivery-form__search-item {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
}

.service-delivery-form__search-item-img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	flex-shrink: 0;
}

.service-delivery-form__search-item-title {
	font-size: 14px;
	color: #222;
	line-height: 1.2;
}

.service-delivery-form__product-info {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.service-delivery-form__item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px;
}

.service-delivery-form__item-image {
	width: 60px;
	height: 60px;
	object-fit: contain;
}

.service-delivery-form__item-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.4;
}

.service-delivery-form__empty-placeholder {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	border: 1px dashed #539E53;
	border-radius: 10px;
	min-height: 200px;
}

.service-delivery-form__empty-placeholder span {
	color: #afada4;
	font-size: 16px;
}

.service-delivery-form__right-scroll::-webkit-scrollbar,
.custom-select__dropdown::-webkit-scrollbar,
.suggestions-suggestions::-webkit-scrollbar,
.service-delivery-form__modal-scroll-content::-webkit-scrollbar {
	width: 4px !important;
}

.service-delivery-form__right-scroll::-webkit-scrollbar-track,
.custom-select__dropdown::-webkit-scrollbar-track,
.suggestions-suggestions::-webkit-scrollbar-track,
.service-delivery-form__modal-scroll-content::-webkit-scrollbar-track {
	background: #B9B9B9 !important;
	border-radius: 8px !important;
}

.service-delivery-form__right-scroll::-webkit-scrollbar-thumb,
.custom-select__dropdown::-webkit-scrollbar-thumb,
.suggestions-suggestions::-webkit-scrollbar-thumb,
.service-delivery-form__modal-scroll-content::-webkit-scrollbar-thumb {
	background: #539E53 !important;
	border-radius: 8px !important;
}

.service-delivery-form__upload-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.service-delivery-form__upload-label {
	color: #6f6f6f;
	font-weight: 500;
}

.service-delivery-form__upload {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 16px;
	align-items: center;
	cursor: pointer;
	padding: 10px;
	border: 2px dashed #ced4da;
	border-radius: 10px;
	transition: all 0.3s ease;
}

.service-delivery-form__upload:hover {
	border-color: #539e53;
	background: #f8f9fa;
}

.service-delivery-form__upload input {
	display: none;
}

.service-delivery-form__upload-box {
	width: 80px;
	height: 80px;
	background: #f4f3ef;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.service-delivery-form__upload-icon {
	width: 40px;
	height: 40px;
	background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.service-delivery-form__upload-text {
	color: #9b9b9b;
	font-size: 14px;
}

.service-delivery-form__preparation {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px;
	border-radius: 10px;
	background-color: #f4f3ef;
}

.service-delivery-form__preparation-text {
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: #6f6f6f;
	line-height: 1.5;
}

.service-delivery-form__agreements {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.service-delivery-form__checkbox-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.service-delivery-form__checkbox-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.service-delivery-form__checkbox {
	width: 28px;
	height: 28px;
	border: 2px solid #ced4da;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
}

.service-delivery-form__checkbox:hover {
	border-color: #539e53;
}

.service-delivery-form__checkbox-input:checked + .service-delivery-form__checkbox {
	background: #539e53;
	border-color: #539e53;
}

.service-delivery-form__checkbox::after {
	content: '';
	position: absolute;
	display: none;
	left: 50%;
	top: 45%;
	width: 6px;
	height: 12px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: translate(-50%, -50%) rotate(45deg);
}

.service-delivery-form__checkbox-input:checked + .service-delivery-form__checkbox::after {
	display: block;
}

.service-delivery-form__checkbox-text {
	color: #6f6f6f;
	line-height: 1.4;
	margin-left: 20px;
}

.service-delivery-form__checkbox-text a {
	color: #539e53;
	text-decoration: none;
}

.service-delivery-form__captcha-wrapper {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

.service-delivery-form__captcha {
	width: 100%;
	max-width: 400px;
}

.service-delivery-form__captcha-wrapper.has-error .service-delivery-form__error-text {
	display: block;
	animation: fadeInError 0.3s ease forwards;
}

.service-delivery-form__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.service-delivery-form__date-button,
.service-delivery-form__date-button--small {
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.service-delivery-form__date-button {
	padding: 0 24px;
	height: 54px;
	border-radius: 38px;
	background: #539e53;
	color: white;
}

.service-delivery-form__date-button--small {
	height: 36px;
	padding: 0 16px;
	font-size: 13px;
	margin-left: auto;
}

.service-delivery-form__date-button:hover:not(.is-disabled) {
	background: #428042;
	transform: translateY(-2px);
}

.service-delivery-form__date-button.add-product.is-disabled {
	background-color: #ccc;
	border-color: #ccc;
	color: #fff;
	cursor: not-allowed;
}

.service-delivery-form__close-button {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f4f3ef;
	border: none;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	transition: all 0.3s ease;
}

.service-delivery-form__close-button:hover {
	background: #e0e0e0;
	transform: rotate(90deg);
}

.service-delivery-form__close-button::before,
.service-delivery-form__close-button::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 2px;
	background-color: #000;
	top: 50%;
	left: 50%;
}

.service-delivery-form__close-button::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.service-delivery-form__close-button::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.service-delivery-form__success-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-delivery-form__success-overlay.open {
	opacity: 1;
	visibility: visible;
}

.service-delivery-form__success-popup {
	position: relative;
	background: #fff;
	border-radius: 8px;
	padding: 60px 40px;
	width: 90%;
	max-width: 480px;
	box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
	text-align: center;
	box-sizing: border-box;
}

.service-delivery-form__success-close,
#success-popup-close {
	position: absolute;
	top: 24px;
	right: 24px;
}

.service-delivery-form__success-close {
	width: 24px;
	height: 24px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
}

.service-delivery-form__success-close::before,
.service-delivery-form__success-close::after {
	content: '';
	position: absolute;
	top: 10px;
	left: 0;
	width: 24px;
	height: 2px;
	background-color: #A0A0A0;
	transform: rotate(45deg);
}

.service-delivery-form__success-close::after {
	transform: rotate(-45deg);
}

.service-delivery-form__success-icon-wrapper {
	margin-bottom: 32px;
}

.service-delivery-form__success-icon {
	width: 80px;
	height: 80px;
}

.service-delivery-form__success-title {
	margin-bottom: 24px;
}

.service-delivery-form__success-descr {
	font-size: 18px;
}

.service-delivery-form__success-text p.service-delivery-form__success-title {
	font-weight: 700;
}

.service-delivery-form__success-text p + p {
	color: #666;
}

.service-delivery-form__success-text .service-delivery-form__success-manager,
.service-delivery-form__success-manager p {
	font-size: 14px;
	color: #333;
	line-height: 1.5;
}

.service-delivery-form__success-text .service-delivery-form__success-manager {
	margin-top: 24px;
}

.service-delivery-form__text-popup {
	max-width: 600px;
	text-align: left;
	align-items: flex-start;
}

.service-delivery-form__modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 32px;
	gap: 20px;
}

.service-delivery-form__text-popup .service-delivery-form__success-title {
	margin-bottom: 0;
	font-size: 24px;
}

.service-delivery-form__text-popup .close-button {
	position: relative;
	top: auto;
	right: auto;
	flex-shrink: 0;
}

.service-delivery-form__modal-scroll-content {
	max-height: 60vh;
	overflow-y: auto;
	padding-right: 15px;
	font-size: 14px;
	line-height: 1.5;
	color: #444;
}

.service-delivery-form__modal-scroll-content p {
	margin-bottom: 12px;
}

.service-delivery-form__modal-scroll-content h3 {
	font-size: 16px;
	margin-top: 24px;
	margin-bottom: 12px;
	color: #222;
	font-weight: 600;
}

.service-delivery-form__modal-scroll-content h3:first-child {
	margin-top: 0;
}

.service-delivery-form__modal-scroll-content ul {
	padding-left: 20px;
	margin-bottom: 16px;
	list-style-type: disc;
}

.service-delivery-form__modal-scroll-content ul.nested-list {
	margin-top: 8px;
	margin-bottom: 8px;
	list-style-type: circle;
}

.service-delivery-form__modal-scroll-content li {
	margin-bottom: 8px;
}

.service-delivery-form__modal-scroll-content strong {
	font-weight: 600;
	color: #000;
}

.service-delivery-form__error-text {
	display: none;
	color: #e74c3c;
	font-size: 12px;
	margin-top: 6px;
	line-height: 1.2;
}

.service-delivery-form__form.is-submitted .service-delivery-form__input:invalid,
.service-delivery-form__form.is-submitted .service-delivery-form__select:invalid,
.service-delivery-form__field.has-error .service-delivery-form__input,
.service-delivery-form__field.has-error .service-delivery-form__select {
	border-bottom-color: #e74c3c !important;
	transition: border-color 0.3s ease;
}

.service-delivery-form__form.is-submitted .custom-select-wrapper select:invalid ~ .custom-select__button {
	border-bottom-color: #e74c3c !important;
	transition: border-color 0.3s ease;
}

.service-delivery-form__form.is-submitted .service-delivery-form__textarea:invalid,
.service-delivery-form__field.has-error .service-delivery-form__textarea {
	border-color: #e74c3c !important;
	transition: border-color 0.3s ease;
}

.service-delivery-form__form.is-submitted .service-delivery-form__empty-placeholder {
	border: 1px dashed #e74c3c;
	color: #e74c3c;
	transition: all 0.3s ease;
}

.service-delivery-form__form.is-submitted .service-delivery-form__empty-placeholder span {
	color: #e74c3c;
	transition: color 0.3s ease;
}

.service-delivery-form__checkbox-wrapper.has-error .service-delivery-form__checkbox {
	border-color: #e74c3c !important;
	transition: border-color 0.3s ease;
}

.service-delivery-form__field.has-error .service-delivery-form__error-text {
	display: block;
	animation: fadeInError 0.3s ease forwards;
}

.service-delivery-form__checkbox-wrapper.has-error .service-delivery-form__error-text {
	display: block;
	width: 100%;
	margin-left: 48px;
	margin-top: 4px;
	animation: fadeInError 0.3s ease forwards;
}

@keyframes fadeInError {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
	.service-delivery-form__products-scrollable {
		max-height: 500px;
	}

	.service-delivery-form__group:last-child {
		height: auto;
	}
}

@media (max-width: 768px) {
	.service-delivery-form__form {
		grid-template-columns: 1fr;
	}

	.service-delivery-form__group:first-child,
	.service-delivery-form__group:last-child {
		grid-column: 1;
	}

	.service-delivery-form__search {
		grid-template-columns: 1fr;
	}
}