/* Photo Upload Component - Enhanced Design with Better Section Separation */
/* Matches main website color scheme: #2D3748, #4A5568, #F7FAFC, #E2E8F0 */

.upload-section {
    margin-bottom: 2.5rem;
}

.upload-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #E2E8F0;
    overflow: hidden;
}

.upload-card-header {
    background: linear-gradient(135deg, #EDF2F7 0%, #E2E8F0 100%);
    color: #2D3748;
    padding: 1.75rem 2rem;
    border-bottom: 3px solid #CBD5E0;
}

.upload-card-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2D3748;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.upload-card-header h3 i {
    font-size: 1.3rem;
}

.required-badge {
    color: #E53E3E;
    font-size: 1.3rem;
    font-weight: 700;
}

.upload-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #4A5568;
    font-weight: 400;
}

.upload-card-body {
    padding: 2rem;
    background: #FAFAFA;
}

.upload-area {
    border: 3px dashed #CBD5E0;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.upload-area:hover {
    border-color: #2D3748;
    background: #F7FAFC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.1);
}

.upload-area.drag-over {
    border-color: #2D3748;
    background: #EDF2F7;
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(45, 55, 72, 0.15);
}

.upload-icon {
    width: 56px;
    height: 56px;
    color: #2D3748;
    margin: 0 auto 1rem;
    stroke-width: 2.5;
}

.upload-text {
    font-size: 1.05rem;
    color: #2D3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.upload-hint {
    color: #718096;
    font-size: 0.9rem;
}

.upload-hint #maxPhotos {
    font-weight: 700;
    color: #2D3748;
    font-size: 1.05rem;
}

.file-input-hidden {
    display: none;
}

/* File List with Compact Previews */
.file-list {
    margin-top: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #F0F0F0;
    transition: all 0.2s ease;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: #F7FAFC;
}

.file-preview {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: #F0F0F0;
    border: 2px solid #E2E8F0;
}

.file-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.9rem;
    color: #2D3748;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.file-size {
    font-size: 0.8rem;
    color: #718096;
}

.remove-btn {
    flex-shrink: 0;
    background: #FFF5F5;
    color: #E53E3E;
    border: 1px solid #FEB2B2;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.remove-btn:hover {
    background: #E53E3E;
    color: white;
    border-color: #E53E3E;
    transform: scale(1.05);
}

/* Upload Progress */
.upload-progress {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #E2E8F0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.progress-header span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D3748;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2D3748 0%, #4A5568 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 6px;
}

.upload-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #718096;
    font-weight: 500;
}

/* Action Buttons */
.upload-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.clear-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid #E53E3E;
    background: white;
    color: #E53E3E;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clear-btn:hover {
    background: #E53E3E;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

/* Improved Section Separation for Forms */
.card {
    margin-bottom: 2rem !important;
    border: 2px solid #E2E8F0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.card h3 {
    padding-bottom: 1rem;
    border-bottom: 2px solid #F0F0F0;
    margin-bottom: 1.5rem !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-card-body {
        padding: 1.5rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
    }

    .upload-text {
        font-size: 1rem;
    }

    .file-preview {
        width: 40px;
        height: 40px;
    }

    .file-item {
        padding: 0.65rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .upload-card-header {
        padding: 1.5rem 1rem;
    }

    .upload-card-header h3 {
        font-size: 1.2rem;
    }

    .file-name {
        font-size: 0.85rem;
    }
}