

/* Start:/local/templates/eshop_bootstrap_v4/components/bitrix/main.feedback/d1_ask_question_form/style.css?17701249895876*/
/* Форма обратной связи - Дизайн 1 */
.d1-ask-question-form {
	width: 100%;
	max-width: 100%;
}

.d1-form-container {
	background: #fff;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 4px 20px rgba(21, 67, 114, 0.08);
	transition: box-shadow 0.3s ease;
}

.d1-form-container:hover {
	box-shadow: 0 8px 30px rgba(21, 67, 114, 0.12);
}

/* Алерты */
.d1-alert {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-radius: 12px;
	margin-bottom: 24px;
	font-size: 15px;
	line-height: 1.5;
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.d1-alert svg {
	flex-shrink: 0;
}

.d1-alert-error {
	background: rgba(220, 53, 69, 0.1);
	color: #c82333;
	border: 1px solid rgba(220, 53, 69, 0.2);
}

.d1-alert-success {
	background: rgba(21, 67, 114, 0.08);
	color: var(--main-color-1);
	border: 1px solid rgba(21, 67, 114, 0.2);
}

.d1-alert-success svg {
	color: var(--main-color-2);
}

/* Форма */
.d1-feedback-form {
	width: 100%;
}

.d1-form-group {
	margin-bottom: 24px;
}

.d1-label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--main-primary-text-color);
	margin-bottom: 10px;
	transition: color 0.3s ease;
}

.d1-required {
	color: var(--main-color-2);
	font-weight: 700;
	margin-left: 4px;
}

/* Поля ввода */
.d1-input-wrapper,
.d1-textarea-wrapper {
	position: relative;
	width: 100%;
}

.d1-input-icon,
.d1-textarea-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #a0aec0;
	transition: color 0.3s ease;
	z-index: 1;
	pointer-events: none;
}

.d1-textarea-icon {
	top: 18px;
	transform: none;
}

.d1-input {
	width: 100%;
	padding: 14px 16px 14px 50px;
	font-size: 15px;
	color: var(--main-primary-text-color);
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	transition: all 0.3s ease;
	outline: none;
}

.d1-input::placeholder {
	color: #a0aec0;
}

.d1-input:focus {
	background: #fff;
	border-color: var(--main-color-1);
	box-shadow: 0 0 0 4px rgba(21, 67, 114, 0.1);
}

.d1-input:focus + .d1-input-icon,
.d1-input-wrapper:focus-within .d1-input-icon {
	color: var(--main-color-1);
}

.d1-textarea {
	width: 100%;
	padding: 14px 16px 14px 50px;
	font-size: 15px;
	color: var(--main-primary-text-color);
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	transition: all 0.3s ease;
	outline: none;
	resize: vertical;
	min-height: 120px;
	font-family: inherit;
	line-height: 1.6;
}

.d1-textarea::placeholder {
	color: #a0aec0;
}

.d1-textarea:focus {
	background: #fff;
	border-color: var(--main-color-1);
	box-shadow: 0 0 0 4px rgba(21, 67, 114, 0.1);
}

.d1-textarea:focus + .d1-textarea-icon,
.d1-textarea-wrapper:focus-within .d1-textarea-icon {
	color: var(--main-color-1);
}

/* Капча */
.d1-captcha-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 24px;
}

.d1-captcha-input-group,
.d1-captcha-image-group {
	display: flex;
	flex-direction: column;
}

.d1-captcha-image {
	border-radius: 12px;
	border: 2px solid #e2e8f0;
	transition: border-color 0.3s ease;
	margin-top: 10px;
	max-width: 100%;
	height: auto;
}

.d1-captcha-image:hover {
	border-color: var(--main-color-1);
}

/* Футер формы */
.d1-form-footer {
	margin-top: 32px;
	display: flex;
	justify-content: flex-start;
}

/* Кнопка отправки */
.d1-submit-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--main-bg-gradient-1);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(21, 67, 114, 0.25);
}

.d1-submit-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.d1-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(21, 67, 114, 0.35);
}

.d1-submit-btn:hover::before {
	opacity: 1;
}

.d1-submit-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(21, 67, 114, 0.25);
}

.d1-btn-text {
	position: relative;
	z-index: 1;
}

.d1-btn-icon {
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease;
}

.d1-submit-btn:hover .d1-btn-icon {
	transform: translateX(4px);
}

/* Адаптивность */
@media (max-width: 768px) {
	.d1-form-container {
		padding: 24px;
		border-radius: 12px;
	}
	
	.d1-captcha-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.d1-submit-btn {
		width: 100%;
		justify-content: center;
	}
	
	.d1-form-footer {
		justify-content: stretch;
	}
}

@media (max-width: 480px) {
	.d1-form-container {
		padding: 20px;
	}
	
	.d1-input,
	.d1-textarea {
		padding: 12px 14px 12px 46px;
		font-size: 14px;
	}
	
	.d1-input-icon,
	.d1-textarea-icon {
		left: 14px;
		width: 18px;
		height: 18px;
	}
	
	.d1-submit-btn {
		padding: 14px 24px;
		font-size: 15px;
	}
}

/* Анимация при валидации */
.d1-input:invalid:not(:placeholder-shown),
.d1-textarea:invalid:not(:placeholder-shown) {
	border-color: #fca5a5;
	animation: shake 0.3s ease;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

/* Стили для успешно заполненных полей */
.d1-input:valid:not(:placeholder-shown),
.d1-textarea:valid:not(:placeholder-shown) {
	border-color: var(--main-color-2);
	background: rgba(208, 155, 42, 0.03);
}

/* Фокус на лейбле при фокусе на поле */
.d1-form-group:focus-within .d1-label {
	color: var(--main-color-1);
}
/* End */
/* /local/templates/eshop_bootstrap_v4/components/bitrix/main.feedback/d1_ask_question_form/style.css?17701249895876 */
