/**
 * Стили формы подбора тура
 * Цветовая гамма проекта:
 * - Синий основной: #096285
 * - Зеленый: #62B031
 * - Оранжевый: #EF7F1A
 * - Голубой: #00A0E3
 */

.tour-request-form {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
	padding: var(--spacing-xl) 0;
}

.tour-request-form__form {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xl);
}

.tour-request-form__row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-lg);
}

.tour-request-form__field {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
}

.tour-request-form__field--full {
	grid-column: 1 / -1;
}

.tour-request-form__label {
	font-size: 0.9375rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
	margin-bottom: var(--spacing-xs);
	display: flex;
	align-items: center;
	gap: var(--spacing-xs);
}

.tour-request-form__required {
	color: var(--color-secondary-orange);
	font-weight: 700;
}

.tour-request-form__input,
.tour-request-form__textarea {
	width: 100%;
	padding: 1rem 1.25rem;
	font-size: 1rem;
	font-family: var(--font-family);
	line-height: 1.6;
	color: var(--color-text);
	background-color: #ffffff;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	outline: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tour-request-form__input:focus,
.tour-request-form__textarea:focus {
	border-color: var(--color-primary);
	background-color: #ffffff;
	box-shadow: 0 4px 16px rgba(9, 98, 133, 0.15);
	transform: translateY(-2px);
}

.tour-request-form__input::placeholder,
.tour-request-form__textarea::placeholder {
	color: var(--color-text-muted);
	opacity: 0.6;
}

.tour-request-form__textarea {
	resize: vertical;
	min-height: 120px;
	font-family: inherit;
	line-height: 1.6;
}

.tour-request-form__checkboxes {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

.tour-request-form__checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: var(--spacing-sm);
	cursor: pointer;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.95);
}

.tour-request-form__checkbox {
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.2rem;
	flex-shrink: 0;
	accent-color: var(--color-primary);
	cursor: pointer;
}

.tour-request-form__checkbox-text {
	flex: 1;
}

.tour-request-form__link {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.tour-request-form__link:hover {
	color: rgba(255, 255, 255, 0.9);
	opacity: 0.9;
}

.tour-request-form__checkboxes--error .tour-request-form__checkbox-label {
	color: rgba(239, 127, 26, 0.95);
}

.tour-request-form__checkboxes--error .tour-request-form__checkbox:not(:checked) {
	outline: 2px solid var(--color-secondary-orange);
	outline-offset: 2px;
}

.tour-request-form__submit {
	width: 100%;
	padding: 1.25rem 2.5rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg, 
		var(--color-secondary-orange) 0%, 
		var(--color-secondary-blue) 50%, 
		var(--color-secondary-green) 100%);
	background-size: 200% 200%;
	border: none;
	border-radius: 16px;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 8px 24px rgba(239, 127, 26, 0.3),
	            0 4px 12px rgba(0, 160, 227, 0.2),
	            0 2px 6px rgba(98, 176, 49, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-sm);
	position: relative;
	overflow: hidden;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	font-size: 1rem;
}

.tour-request-form__submit::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, 
		transparent, 
		rgba(255, 255, 255, 0.3), 
		transparent);
	transition: left 0.6s ease;
}

.tour-request-form__submit:hover::before {
	left: 100%;
}

.tour-request-form__submit:hover {
	background-position: 100% 50%;
	box-shadow: 0 12px 32px rgba(239, 127, 26, 0.4),
	            0 6px 16px rgba(0, 160, 227, 0.3),
	            0 3px 8px rgba(98, 176, 49, 0.2);
	transform: translateY(-4px) scale(1.02);
}

.tour-request-form__submit:active {
	transform: translateY(-2px) scale(1);
	box-shadow: 0 6px 20px rgba(239, 127, 26, 0.3),
	            0 3px 10px rgba(0, 160, 227, 0.2);
}

.tour-request-form__submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.tour-request-form__submit-loader {
	display: flex;
	align-items: center;
	justify-content: center;
}

.tour-request-form__spinner {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Статусы и блок успеха: /local/templates/travelkar/css/form-feedback.css (.tk-form-*) */

.tour-request-form__field-error {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--color-secondary-orange);
	margin-top: 0.25rem;
}

.tour-request-form__group-error {
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--color-secondary-orange);
}

.tour-request-form--modal .tour-request-form__field-error,
.tour-request-form--modal .tour-request-form__group-error {
	color: #c2410c;
}

/* Адаптивность */
@media (max-width: 768px) {
	.tour-request-form__row {
		grid-template-columns: 1fr;
		gap: var(--spacing-md);
	}

	.tour-request-form__field--full {
		grid-column: 1;
	}

	.tour-request-form__input,
	.tour-request-form__textarea {
		padding: 0.75rem 1rem;
		font-size: 0.9375rem;
	}

	.tour-request-form__submit {
		padding: 1.125rem 2rem;
		font-size: 0.9375rem;
	}
}

/* Стили для инпутов с ошибкой */
.tour-request-form__input.error,
.tour-request-form__textarea.error {
	border-color: var(--color-secondary-orange);
	background-color: rgba(239, 127, 26, 0.1);
}

/* Анимация появления формы */
.tour-request-form {
	animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}



