/* Vendor Forms Desktop CSS - Centered and Optimized */

/* Main container styling */
.form-container {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px auto 60px;
    max-width: 1800px;
    width: 95%;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Form heading */
.form-container h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.form-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 2px;
}

/* iframe wrapper and styling */
.iframe-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    background: #f8f9fa;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.iframe-wrapper iframe {
    border: none;
    width: 100%;
    min-height: 1481px;
    background: #ffffff;
    border-radius: 12px;
}







/* Desktop-specific optimizations */
@media (min-width: 1200px) {
    .form-container {
        max-width: 1600px;
        padding: 50px;
    }
    
    .form-container h2 {
        font-size: 2.8rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .form-container {
        max-width: 1400px;
        padding: 45px;
    }
    
    .form-container h2 {
        font-size: 2.6rem;
    }
}

/* Large desktop screens */
@media (min-width: 1400px) {
    .form-container {
        max-width: 1800px;
        padding: 60px;
    }
    
    .form-container h2 {
        font-size: 3rem;
    }
    
    .iframe-wrapper iframe {
        min-height: 1600px;
    }
}

/* Tablet and mobile adjustments */
@media (max-width: 768px) {
    .form-container {
        margin: 10px 20px 40px;
        padding: 25px;
        border-radius: 10px;
    }
    
    .form-container h2 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .iframe-wrapper iframe {
        min-height: 1200px;
    }
}

@media (max-width: 480px) {
    .form-container {
        margin: 5px 15px 30px;
        padding: 20px;
        border-radius: 8px;
    }
    
    .form-container h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .form-container h2::after {
        width: 60px;
    }
    
    .iframe-wrapper iframe {
        min-height: 1000px;
    }
}

/* Loading state for iframe */
.iframe-wrapper iframe[loading] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* Smooth transitions */
.form-container,
.iframe-wrapper,
.iframe-wrapper iframe {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.iframe-wrapper:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .form-container {
        box-shadow: none;
        border: 1px solid #ccc;
        margin: 0;
        padding: 20px;
    }
    
    .iframe-wrapper iframe {
        min-height: auto;
    }
}