/**
 * Форма подбора тура
 */

.vt-tour-request {
    background: #ffffff;
    padding: 80px 0;
}

.vt-tour-request__header {
    margin-bottom: 50px;
}

.vt-tour-request__main-title {
    font-size: 42px;
    font-weight: 700;
    color: #212121;
    margin: 0 0 12px;
    line-height: 1.2;
}

.vt-tour-request__main-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.vt-tour-request__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.vt-tour-request__form-wrapper {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.vt-tour-request__image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 500px;
}

.vt-tour-request__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vt-tour-request__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vt-tour-request__form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vt-tour-request__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Счетчики */
.vt-tour-request__counters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.vt-tour-request__counter {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vt-tour-request__counter-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vt-tour-request__counter-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vt-tour-request__counter-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.vt-tour-request__counter-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Теги категорий */
.vt-tour-request__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vt-tour-request__tag {
    padding: 12px 20px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vt-tour-request__tag:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.vt-tour-request__tag.is-active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    position: relative;
    padding-right: 36px;
}

.vt-tour-request__tag.is-active::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.vt-tour-request__counter-btn:active {
    transform: scale(0.95);
}

.vt-tour-request__counter-input {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #212121;
    border: 2px solid #e5e7eb;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 0;
    transition: all 0.3s ease;
}

.vt-tour-request__counter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.vt-tour-request__label {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
}

.vt-tour-request__required {
    color: #ef4444;
}

.vt-tour-request__input,
.vt-tour-request__select,
.vt-tour-request__textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #212121;
    background: #fafafa;
    transition: all 0.3s ease;
    font-family: inherit;
}

.vt-tour-request__input::placeholder,
.vt-tour-request__textarea::placeholder {
    color: #9ca3af;
}

.vt-tour-request__input:focus,
.vt-tour-request__select:focus,
.vt-tour-request__textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.vt-tour-request__textarea {
    resize: vertical;
    min-height: 100px;
    padding-top: 14px;
}

.vt-tour-request__submit {
    width: 100%;
    padding: 16px 32px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.vt-tour-request__submit:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.vt-tour-request__submit:active {
    transform: translateY(0);
}

.vt-tour-request__submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vt-tour-request__message {
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.vt-tour-request__message--success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.vt-tour-request__message--error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

/* Адаптив */
@media (max-width: 1024px) {
    .vt-tour-request__wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vt-tour-request__header {
        margin-bottom: 40px;
    }

    .vt-tour-request__main-title {
        font-size: 36px;
    }

    .vt-tour-request__main-subtitle {
        font-size: 16px;
    }

    .vt-tour-request__image {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .vt-tour-request {
        padding: 60px 0;
    }

    .vt-tour-request__header {
        margin-bottom: 30px;
    }

    .vt-tour-request__main-title {
        font-size: 32px;
    }

    .vt-tour-request__main-subtitle {
        font-size: 15px;
    }

    .vt-tour-request__form-wrapper {
        padding: 30px 20px;
    }

    .vt-tour-request__form-row {
        grid-template-columns: 1fr;
    }

    .vt-tour-request__counters {
        grid-template-columns: 1fr;
    }

    .vt-tour-request__image {
        display: none;
    }
}

@media (max-width: 480px) {
    .vt-tour-request__main-title {
        font-size: 28px;
    }

    .vt-tour-request__main-subtitle {
        font-size: 14px;
    }

    .vt-tour-request__tag {
        font-size: 13px;
        padding: 10px 16px;
    }

    .vt-tour-request__tag.is-active {
        padding-right: 32px;
    }
}
