/* ============================================
   Форма запроса рендера автомобиля
   Стили для загрузки множественных файлов
   ============================================ */

/* Область загрузки файлов */
.home-form__upload-area {
    position: relative;
    margin-bottom: 30px;
}

#render-modal .home-form__text{
    margin: 20px 0;
}
#render-modal .home-form__wrapper{
    width: 100%;
}

.home-form__block.home-form__block--full {
    width: 100%;
}

.home-form__file-input {
    display: none;
}

.home-form__upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 30px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.home-form__upload-label:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.home-form__upload-label svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.home-form__upload-label span {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.home-form__upload-label small {
    font-size: 13px;
    opacity: 0.7;
}

/* Состояние drag-over */
.home-form__upload-area.drag-over .home-form__upload-label {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
}

/* Список превью загруженных файлов */
.home-form__preview-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 20px;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
}

.preview-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block !important;
    visibility: visible !important;
}

.preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    margin-bottom: 8px;
}

.preview-item__name {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
}

.preview-item__remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    padding: 0;
}

.preview-item__remove:hover {
    background: rgba(212, 31, 31, 0.9);
    transform: scale(1.1);
}

.preview-item__remove svg {
    width: 16px;
    height: 16px;
}

/* Полноразмерное поле сообщения */
.home-form__block--full {
    grid-column: 1 / -1;
}

.home-form__block--full textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(71, 71, 71, 0.2);
    padding: 15px;
    font-size: 14px;
    font-weight: 350;
    line-height: 16px;
    -webkit-transition: all 0.4s;
    transition: all 0.4s;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .home-form__upload-label {
        min-height: 140px;
        padding: 20px;
    }
    
    .home-form__upload-label svg {
        width: 48px;
        height: 48px;
    }
    
    .home-form__upload-label span {
        font-size: 14px;
    }
    
    .home-form__preview-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .preview-item img {
        height: 80px;
    }
}
        padding: 24px 16px;
    }
    
    .render-form__upload-icon {
        width: 48px;
        height: 48px;
    }
    
    .render-form__upload-text {
        font-size: 14px;
    }
}

/* Модальное окно для формы рендера */
#render-modal .modal-container {
    max-width: 700px;
    padding: 40px 30px;
}

#render-modal .modal-close {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    #render-modal .modal-container {
        padding: 30px 20px;
    }
}
