.modal-xl-preview .modal-dialog {
    max-width: 95vw !important;
}

.modal-body-preview {
    display: flex;
    gap: 20px;
}

.form-section-preview {
    flex: 1;
    padding-right: 20px;
    border-right: 2px solid #dee2e6;
    overflow-y: auto;
    max-height: 70vh;
}

.preview-section {
    flex: 1;
    padding-left: 20px;
    overflow-y: auto;
    max-height: 70vh;
    position: sticky;
    top: 0;
}

.preview-card {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: white;
}

.preview-card img {
    max-width: 100%;
    border-radius: 26px;
}

.preview-banner {
    width: 100%;
    border-radius: 26px 26px 0 0;
    object-fit: cover;
    max-height: 200px;
}

.preview-icon {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.preview-benefit-item {
    display: flex;
    align-items: start;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 8px;
    background: #f8f9fa;
}

.preview-benefit-item img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 8px;
}

.preview-page-section {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
    background: #f8f9fa;
}

.preview-page-section h6 {
    font-weight: bold;
    margin-bottom: 10px;
    color: #6f42c1;
}

.preview-banner-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.preview-banner-item {
    min-width: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.preview-banner-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.preview-mock-card {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: white;
    border: 1px solid #dee2e6;
}

.preview-benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.preview-benefit-card {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: white;
    border: 1px solid #dee2e6;
}

.preview-benefit-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}

@media (max-width: 1400px) {
    .modal-xl-preview .modal-dialog {
        max-width: 90vw !important;
    }
}

@media (max-width: 992px) {
    .modal-body-preview {
        flex-direction: column;
    }
    
    .form-section-preview {
        border-right: none;
        border-bottom: 2px solid #dee2e6;
        padding-right: 0;
        padding-bottom: 20px;
        max-height: none;
    }
    
    .preview-section {
        padding-left: 0;
        padding-top: 20px;
        max-height: none;
    }
}
