/* Премиальный дизайн модального окна R9.by */
.site-contact-form {
	background: rgba(11, 26, 38, 0.6) !important;
	backdrop-filter: blur(12px) !important;
	-webkit-backdrop-filter: blur(12px) !important;
	transition: all 0.3s ease !important;
}

.contact-form-modal-inner {
	padding: 8px !important;
	max-width: 760px !important;
	width: 100% !important;
	position: relative;
	box-sizing: border-box !important;
	border-radius: 12px !important;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

.envelope-inner {
	background: #ffffff !important;
	color: #333333 !important;
	border-radius: 8px !important;
	padding: 30px 40px !important;
	position: relative;
	box-sizing: border-box !important;
}

.modal-close-btn {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;
	background: #b51829 !important;
	color: #ffffff !important;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 0 8px 0 8px;
	font-weight: bold;
	line-height: 1;
	z-index: 100;
	transition: all 0.25s ease !important;
}

.modal-close-btn:hover {
	background: #d9230f !important;
	transform: scale(1.05) !important;
}

.form-title {
	font-family: inherit;
	font-size: 28px !important;
	font-weight: 700 !important;
	color: #0b1a26 !important;
	margin-top: 0 !important;
	margin-bottom: 10px !important;
	text-align: left !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1.2 !important;
}

.form-desc {
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: #718096 !important;
	margin-bottom: 25px !important;
	text-align: left !important;
	margin-top: 0 !important;
}

.form-section-title {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #0b1a26 !important;
	margin-top: 20px !important;
	margin-bottom: 15px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
	text-align: left !important;
}

/* Пилюли выбора услуг (Step 1) */
.services-pills-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 25px;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.services-pills-container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 400px) {
	.services-pills-container {
		grid-template-columns: 1fr;
	}
}

.service-pill {
	background: #ffffff !important;
	border: 1px solid #cbd5e0 !important;
	border-radius: 20px !important;
	padding: 8px 12px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #4a5568 !important;
	text-align: center !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	user-select: none !important;
	box-shadow: none !important;
}

.service-pill:hover {
	border-color: #b51829 !important;
	color: #b51829 !important;
	background: rgba(181, 24, 41, 0.02) !important;
}

.service-pill.active {
	background: #b51829 !important;
	border-color: #b51829 !important;
	color: #ffffff !important;
}

/* Двухколоночная сетка полей (Step 2) */
.project-details-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 10px;
	margin-bottom: 20px;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.project-details-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

.project-details-sub {
	font-size: 11px !important;
	font-style: italic !important;
	color: #a0aec0 !important;
	margin-top: -12px !important;
	margin-bottom: 15px !important;
	text-align: left !important;
}

.form-row-custom {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	margin-bottom: 12px;
	text-align: left !important;
}

.form-row-custom.textarea-row {
	align-items: start;
}

@media (max-width: 768px) {
	.form-row-custom {
		grid-template-columns: 1fr;
		align-items: stretch;
		gap: 4px;
	}

	.form-row-custom label {
		text-align: left !important;
		margin-bottom: 2px !important;
	}
}

.form-row-custom label {
	font-size: 13px !important;
	color: #4a5568 !important;
	font-weight: 600 !important;
	text-align: left !important;
	margin: 0 !important;
	padding-right: 8px !important;
	width: -webkit-fill-available;
}

.form-row-custom .input-wrap {
	position: relative;
	width: 100%;
}

/* Кастомные инпуты */
.form-control-custom {
	background: #ffffff !important;
	border: 1px solid #cbd5e0 !important;
	color: #2d3748 !important;
	border-radius: 6px !important;
	padding: 10px 14px !important;
	height: 42px !important;
	font-size: 14px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	transition: all 0.2s ease !important;
	outline: none !important;
	box-shadow: none !important;
}

.form-control-custom:focus {
	border-color: #b51829 !important;
	box-shadow: 0 0 0 3px rgba(181, 24, 41, 0.15) !important;
}

textarea.form-control-custom {
	height: auto !important;
	min-height: 90px !important;
	resize: vertical !important;
}

.form-row-custom select.form-control-custom {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 35px !important;
}

/* Телефон и добавочный */
.phone-ext-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	position: relative;
	width: 100%;
}

.phone-ext-wrapper .phone-flag-icon {
	position: absolute;
	left: 12px;
	width: 20px;
	height: 14px;
	background: url('https://flagcdn.com/w20/by.png') no-repeat center;
	background-size: contain;
	z-index: 10;
}

.phone-ext-wrapper .phone-field {
	padding-left: 42px !important;
	flex: 1;
}

.phone-ext-wrapper .ext-field {
	width: 70px !important;
	flex-shrink: 0;
	text-align: center;
}

/* Кастомная загрузка файлов */
.custom-file-upload {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}

.file-upload-btn {
	background: #e2e8f0 !important;
	color: #4a5568 !important;
	border-radius: 20px !important;
	padding: 8px 16px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	user-select: none !important;
	transition: all 0.2s ease !important;
	margin: 0 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	display: inline-block !important;
	border: 1px solid #cbd5e0 !important;
}

.file-upload-btn:hover {
	background: #cbd5e0 !important;
	color: #2d3748 !important;
}

.file-upload-status {
	font-size: 13px !important;
	color: #718096 !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 180px;
	text-align: left;
}

.file-upload-desc {
	font-size: 11px !important;
	color: #a0aec0 !important;
	margin-top: 4px !important;
	text-align: left !important;
}

/* Капча под светлую тему */
.contact-form-modal-inner .slider-captcha-container,
.main-block-feedback-widget .slider-captcha-container {
	background: #f7fafc !important;
	border: 1px solid #cbd5e0 !important;
	border-radius: 6px !important;
	height: 44px !important;
	margin-bottom: 20px !important;
}

.contact-form-modal-inner .slider-captcha-text,
.main-block-feedback-widget .slider-captcha-text {
	line-height: 42px !important;
	color: #718096 !important;
	font-size: 13px !important;
}

.contact-form-modal-inner .slider-captcha-handle,
.main-block-feedback-widget .slider-captcha-handle {
	background: #b51829 !important;
	border: none !important;
	border-radius: 4px !important;
	height: 40px !important;
	width: 40px !important;
	top: 1px !important;
	left: 1px !important;
	box-shadow: 0 2px 6px rgba(181, 24, 41, 0.25) !important;
}

.contact-form-modal-inner .slider-captcha-handle span,
.main-block-feedback-widget .slider-captcha-handle span {
	color: #ffffff !important;
}

.contact-form-modal-inner .slider-captcha-bg,
.main-block-feedback-widget .slider-captcha-bg {
	border-radius: 4px 0 0 4px !important;
	background: rgba(181, 24, 41, 0.08) !important;
}

/* Кнопка отправки и CTA (Step 3) */
.form-submit-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 15px;
	margin-bottom: 15px;
	margin-top: 20px;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 600px) {
	.form-submit-row {
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}

	.hand-drawn-arrow {
		display: none !important;
	}
}

.submit-btn-custom {
	background: #290122ff !important;
	color: #ffffff !important;
	font-weight: 800 !important;
	font-size: 16px !important;
	letter-spacing: 0.03em !important;
	height: 48px !important;
	border-radius: 24px !important;
	border: none !important;
	padding: 0 35px !important;
	box-shadow: 0 4px 15px rgba(181, 24, 41, 0.2) !important;
	transition: all 0.25s ease !important;
	cursor: pointer !important;
	text-transform: uppercase !important;
	display: inline-block !important;
	white-space: nowrap;
}

.submit-btn-custom:hover {
	background: #d9230f !important;
	box-shadow: 0 6px 20px rgba(217, 35, 15, 0.35) !important;
	transform: translateY(-2px) !important;
}

.submit-btn-custom:active {
	transform: translateY(0) !important;
}

.cta-text-wrapper {
	text-align: left;
}

.cta-bold-text {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #0b1a26 !important;
	line-height: 1.3 !important;
	display: block;
}

/* Чекбокс согласия */
.privacy-policy-group-custom {
	display: grid;
	grid-template-columns: 16px 1fr;
	align-items: center;
	gap: 8px;
	font-size: 12px !important;
	color: #718096 !important;
	text-align: left !important;
	margin-top: 15px !important;
	width: 100%;
	box-sizing: border-box;
}

.privacy-policy-group-custom label {
	font-weight: normal !important;
	margin: 0 !important;
	cursor: pointer !important;
	user-select: none !important;
	line-height: 1.4 !important;
}

.privacy-policy-group-custom a {
	color: #b51829 !important;
	text-decoration: underline !important;
}

.privacy-policy-group-custom a:hover {
	color: #d9230f !important;
}
