/* Apple-Style SRT Request Page CSS */

/* SRT Form Card Specific Styles */
.srt-form-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.srt-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

/* iframe Container */
.iframe-container {
    width: 100%;
    height: 100%;
    min-height: 75vh;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.iframe-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(88, 86, 214, 0.1) 100%);
    pointer-events: none;
    border-radius: 16px;
    z-index: 1;
}

/* iframe Styling */
.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 75vh;
    border-radius: 16px;
    background: transparent;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Loading Animation */
.iframe-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #007aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 0;
}

.iframe-container iframe[src] + ::after {
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hover Effects */
.srt-form-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.15);
}

.srt-form-card:hover .iframe-container {
    border-color: rgba(0, 122, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .srt-form-card {
        padding: 1.5rem;
        min-height: 75vh;
    }
    
    .iframe-container {
        min-height: 70vh;
    }
    
    .iframe-container iframe {
        min-height: 70vh;
    }
}

@media (max-width: 768px) {
    .srt-form-card {
        padding: 1rem;
        margin: 1rem;
        min-height: 70vh;
    }
    
    .iframe-container {
        min-height: 65vh;
        border-radius: 12px;
    }
    
    .iframe-container iframe {
        min-height: 65vh;
        border-radius: 12px;
    }
    
    .iframe-container::before {
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .srt-form-card {
        padding: 0.75rem;
        margin: 0.5rem;
        min-height: 65vh;
        border-radius: 16px;
    }
    
    .iframe-container {
        min-height: 60vh;
        border-radius: 12px;
    }
    
    .iframe-container iframe {
        min-height: 60vh;
        border-radius: 12px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.srt-form-card {
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Accessibility improvements */
.iframe-container iframe:focus {
    outline: 2px solid #007aff;
    outline-offset: 4px;
}

/* Print styles */
@media print {
    .srt-form-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .iframe-container::before {
        display: none;
    }
}
