/* A&A Solutions Calculator Iframe Styles v4.0.0 */

.aa-calculator-iframe-container {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    background: #f8f9fa;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.aa-calculator-iframe {
    width: 100%;
    height: 100vh;
    border: none;
    display: block;
    background: white;
}

/* Configuration notice styling */
.aa-calculator-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

.aa-calculator-notice p {
    margin: 0;
    font-size: 16px;
}

.aa-calculator-notice a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.aa-calculator-notice a:hover {
    text-decoration: underline;
}

/* Responsive iframe container */
@media (max-width: 768px) {
    .aa-calculator-iframe-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .aa-calculator-iframe {
        height: 100vh;
    }
}

/* Loading state */
.aa-calculator-iframe-container.loading::before {
    content: 'Loading calculator...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-family: system-ui, -apple-system, sans-serif;
    z-index: 1;
    pointer-events: none;
}

/* Hide loading when iframe loads */
.aa-calculator-iframe-container:not(.loading)::before {
    display: none;
}

/* Elementor compatibility */
.elementor-widget-shortcode .aa-calculator-iframe-container {
    margin: 0;
}

/* WordPress theme compatibility */
.entry-content .aa-calculator-iframe-container,
.post-content .aa-calculator-iframe-container,
.page-content .aa-calculator-iframe-container {
    max-width: none !important;
    width: 100% !important;
}

/* Ensure iframe is responsive */
.aa-calculator-iframe-container iframe {
    width: 100% !important;
    height: 100vh !important;
}

@media (max-width: 480px) {
    .aa-calculator-iframe-container iframe {
        height: 100vh !important;
    }
}