/* Google Form Integration Styles */
/* Responsive design for embedded Google Form */

/* Google Form Wrapper */
.google-form-wrapper {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Form Header */
.form-header {
    background: linear-gradient(135deg, #F04A00 0%, #00004D 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.form-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.form-header p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

/* Google Form Container - Clean Integration */
.google-form-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Google Form Iframe - Exact Specifications with Responsiveness */
.google-form-iframe {
    width: 640px;
    height: 1266px;
    max-width: 100%;
    border: none;
    background: white;
    display: block;
    margin: 0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #666;
    text-align: center;
    line-height: 1266px;
    transition: all 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .google-form-container {
        max-width: 100%;
        margin: 0;
        border-radius: 4px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
    
    .google-form-iframe {
        width: 100%;
        max-width: 100%;
        height: 1200px;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .google-form-container {
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }
    
    .google-form-iframe {
        width: 100%;
        height: 1100px;
        border-radius: 0;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .google-form-iframe {
        height: 1000px;
    }
}

/* Placeholder Styling (before Google Form is integrated) */
.google-form-placeholder {
    padding: 3rem 2rem;
    text-align: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 1rem;
}

.placeholder-content {
    max-width: 600px;
    margin: 0 auto;
}

.placeholder-icon {
    font-size: 4rem;
    color: #4285f4;
    margin-bottom: 1.5rem;
}

.google-form-placeholder h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.google-form-placeholder p {
    color: #5a6c7d;
    margin-bottom: 1.5rem;
}

.google-form-placeholder ol {
    text-align: left;
    display: inline-block;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.google-form-placeholder ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.placeholder-code {
    background: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #1a73e8;
    overflow-x: auto;
}

.placeholder-code code {
    background: none;
    color: inherit;
    font-size: inherit;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Fallback Contact Info */
.fallback-contact-info {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.fallback-contact-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.contact-methods-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact-method-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}

.contact-method-inline:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

.contact-method-inline i {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-header {
        padding: 1.5rem 1rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .form-header p {
        font-size: 0.9rem;
    }
    
    .google-form-wrapper iframe {
        min-height: 700px;
    }
    
    .google-form-placeholder {
        padding: 2rem 1rem;
        margin: 0.5rem;
    }
    
    .placeholder-icon {
        font-size: 3rem;
    }
    
    .google-form-placeholder h4 {
        font-size: 1.25rem;
    }
    
    .placeholder-code {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .contact-methods-inline {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-method-inline {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .form-header {
        padding: 1rem;
    }
    
    .form-header h3 {
        font-size: 1.25rem;
    }
    
    .google-form-wrapper iframe {
        min-height: 600px;
    }
    
    .google-form-placeholder {
        padding: 1.5rem 0.75rem;
    }
    
    .placeholder-icon {
        font-size: 2.5rem;
    }
    
    .google-form-placeholder ol {
        padding-left: 1.2rem;
    }
}

/* Integration with existing contact section */
.contact-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Contact form container adjustments */
.contact-form-container {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Ensure contact info section maintains its width */
.contact-info {
    flex: 0 0 350px;
    max-width: 350px;
}

/* Responsive layout adjustments */
@media (max-width: 1024px) {
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form-container {
        width: 100%;
        max-width: none;
        flex: none;
    }
    
    .contact-info {
        max-width: 100%;
    }
    
    .contact-form-container {
        justify-content: center;
    }
}

/* Ensure Google Form iframe responsiveness */
.google-form-container {
    position: relative;
    overflow: hidden;
}

/* Additional responsive iframe adjustments */
.google-form-iframe {
    transform-origin: top left;
    transition: all 0.3s ease;
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .google-form-container {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .google-form-iframe {
        height: 950px !important;
        min-height: 750px;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .google-form-iframe {
        height: 900px !important;
    }
}

/* Loading indicator for Google Form */
.google-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.google-form-wrapper.loading::before {
    opacity: 1;
    content: 'Chargement du formulaire...';
    font-weight: 500;
    color: #666;
}

/* Accessibility improvements */
.google-form-wrapper iframe {
    border: 1px solid #e1e8ed;
}

.google-form-wrapper:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .google-form-placeholder,
    .google-form-wrapper iframe {
        display: none;
    }
    
    .fallback-contact-info {
        display: block !important;
        background: white !important;
        border: 1px solid #000 !important;
        padding: 1rem !important;
    }
    
    .contact-method-inline {
        background: white !important;
        color: #000 !important;
        border: 1px solid #000 !important;
    }
}