/* Quote Engine — layout and theme on top of Bootstrap */

.quote-engine-card {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    overflow-x: hidden;
}

#quote_form_wrapper {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition:
        opacity 0.55s ease,
        max-height 0.55s ease,
        visibility 0s linear 0.55s;
}

#quote_form_wrapper.qe-visible {
    opacity: 1;
    visibility: visible;
    max-height: 4000px;
    transition:
        opacity 0.55s ease,
        max-height 0.55s ease,
        visibility 0s linear 0s;
}

@media (max-width: 575.98px) {
    .quote-engine-card {
        padding: 1.25rem;
    }
}

.quote-engine-card .section-label {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}

.quote-engine-card .counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.quote-engine-card .input-group .room-input {
    max-width: 5rem;
    font-weight: 600;
}

.quote-engine-card .input-group {
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
}

.quote-engine-card .qe-frequency-group {
    width: 100%;
}

.quote-engine-card .qe-frequency-group .frequency-btn {
    flex: 1 1 auto;
    min-width: min(100%, 7.5rem);
    white-space: normal;
    line-height: 1.2;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.quote-engine-card .note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.35rem;
    text-align: left;
}

.quote-engine-card .frequency-btn.active {
    color: #fff;
    background-color: rgb(251, 176, 59);
    border-color: rgb(251, 176, 59);
}

.quote-engine-card .results {
    padding: 1rem 0.5rem;
    border-radius: 0.375rem;
    background: #f8f9fa;
}

.quote-engine-card .qe-plan {
    padding: 1rem 0.75rem 1.25rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.quote-engine-card .qe-plan-title {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    text-align: center;
    color: #222;
}

.quote-engine-card .result-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

.quote-engine-card .result-value {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    margin-top: 0.25rem;
}
