/* ==========================================================================
   Keystone Popup — popup.css
   ========================================================================== */

/* ── Shared overlay base ─────────────────────────────────────────────────── */

.custom-popup-overlay,
.get-a-quote-overlay {
    display: none;
    position: fixed;
    inset: 0;                       /* top/right/bottom/left: 0 */
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.custom-popup-overlay.is-visible,
.get-a-quote-overlay.is-visible {
    display: flex;
}

/* ── Standard popup card ─────────────────────────────────────────────────── */

.custom-popup {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.custom-popup__heading {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.25;
}

.custom-popup__body {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.custom-popup__body p:last-child {
    margin-bottom: 0;
}

.custom-popup__cta {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #111;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.custom-popup__cta:hover {
    background: #333;
    color: #fff;
}

/* ── Quote popup card ────────────────────────────────────────────────────── */

.quote-popup {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.quote-popup__form h2 {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
    line-height: 1.25;
}

/* ── Shared close button ─────────────────────────────────────────────────── */

.custom-popup__close,
.quote-popup__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.custom-popup__close:hover,
.quote-popup__close:hover {
    color: #111;
    background: #f0f0f0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .custom-popup,
    .quote-popup {
        padding: 1.25rem;
    }

    .custom-popup__heading,
    .quote-popup__form h2 {
        font-size: 1.25rem;
    }
}
