/**
 * Contact form popup
 */

.contact-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.contact-popup-open {
    overflow: hidden;
}

.contact-popup__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

.contact-popup.is-open .contact-popup__dialog {
    transform: translateY(0) scale(1);
}

.contact-popup__close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: #f0f4f4;
    color: #333;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.contact-popup__close:hover {
    background: #e0f7f6;
    color: #20b2aa;
}

.contact-popup__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 2rem 0.5rem 0;
    line-height: 1.3;
}

.contact-popup__subtitle {
    font-size: 0.96875rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.contact-form--popup {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
}

.contact-form--popup .contact-form__submit {
    width: 100%;
}

@media (max-width: 768px) {
    .contact-popup {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .contact-popup__dialog {
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        padding: 1.75rem 1.25rem 1.25rem;
    }

    .contact-popup__title {
        font-size: 1.3125rem;
    }
}
