/* ================================================================
   #cfr-popup — Contact Form Result Popup
   ALL selectors live under #cfr-popup.
   Zero global overrides. Safe to load on any page.
   ================================================================ */

/* ── Overlay ── */
#cfr-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

#cfr-popup.cfr-popup--visible {
    display: flex;
    animation: cfr-fade-in 0.25s ease;
}

@keyframes cfr-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Box ── */
#cfr-popup #cfr-popup__box {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    animation: cfr-slide-up 0.3s ease;
}

@keyframes cfr-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Icon circle ── */
#cfr-popup #cfr-popup__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 1.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
}

#cfr-popup #cfr-popup__icon.cfr-popup--success {
    background: #e6f9f0;
    color: #22a06b;
}

#cfr-popup #cfr-popup__icon.cfr-popup--error {
    background: #fff0f0;
    color: #e53e3e;
}

/* ── Title ── */
#cfr-popup #cfr-popup__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.6rem 0;
    padding: 0;
    color: #1a1a1a;
    line-height: 1.3;
    border: none;
    background: none;
}

/* ── Message ── */
#cfr-popup #cfr-popup__message {
    font-size: 0.95rem;
    color: #555555;
    margin: 0 0 1.75rem 0;
    padding: 0;
    line-height: 1.6;
    background: none;
    border: none;
}

/* ── Close button ── */
#cfr-popup #cfr-popup__close {
    display: inline-block;
    padding: 0.65rem 2rem;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    outline: none;
}

#cfr-popup #cfr-popup__close:hover {
    background: #333333;
    color: #ffffff;
    text-decoration: none;
}

#cfr-popup #cfr-popup__close:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 3px;
}

#contactFormSubmit #cfr-countdown {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.8em;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 0 5px;
    vertical-align: middle;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    #cfr-popup #cfr-popup__box {
        padding: 2rem 1.25rem;
    }

    #cfr-popup #cfr-popup__title {
        font-size: 1.2rem;
    }

    #cfr-popup #cfr-popup__message {
        font-size: 0.875rem;
    }
}