/* Flexible Quote Options Styles */

/* Base flexible layout */
.aa-quote-options-flexible {
    display: flex;
    background: #FFD400;
    margin: 60px 10px 0px 0px !important;
    padding: 25px 25px;
    justify-content: center;
    align-items: stretch;
}

/* Single quote layout (1 quote) */
.aa-quote-options-flexible .col-lg-8.mx-auto {
    max-width: 500px;
}

/* Two quotes layout */
.aa-quote-options-flexible .col-lg-6 {
    display: flex;
    flex-direction: column;
}

/* Three quotes layout - keep existing */
.aa-quote-options-flexible .col-lg-4 {
    display: flex;
    flex-direction: column;
}

/* Ensure all quote tiles have equal height */
.aa-quote-options-flexible .quote-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    margin: 15px;
}

/* Make quote content fill available space */
.aa-quote-options-flexible .quote-tile > .row {
    flex-grow: 1;
}

/* Keep footer at bottom */
.aa-quote-options-flexible .quote-tile-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    padding: 25px 0px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .aa-quote-options-flexible .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 992px) {
    .aa-quote-options-flexible {
        flex-direction: column;
        align-items: center;
    }
    
    .aa-quote-options-flexible .col-lg-4,
    .aa-quote-options-flexible .col-lg-6,
    .aa-quote-options-flexible .col-lg-8 {
        flex: none;
        max-width: 400px;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .aa-quote-options-flexible .quote-tile {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .aa-quote-options-flexible {
        padding: 15px;
        margin: 20px 5px 0px 0px !important;
    }

}

/* Enhanced comparison table for flexible layouts */
.compare-table .row .col-lg-4.col-md-6:nth-child(2) {
    background-color: #89bec130;
}

.compare-table .row .col-lg-6:nth-child(2) {
    background-color: #89bec130;
}

.compare-table .row .col-lg-8:only-child {
    background-color: #f8f9fa;
    text-align: center;
}

/* Animation for quote cards */
.aa-quote-options-flexible .quote-tile {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aa-quote-options-flexible .quote-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Loading states */
.quote-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.quote-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FFD400;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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