.contact-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 9999;
    overflow-y: auto;
    padding: 4rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.contact-modal-overlay[style*="display: flex"] {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal-content {
    background: #fff;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

@media (max-width: 600px) {
    .contact-modal-overlay {
        align-items: flex-start;
    }

    .contact-modal-content {
        margin-top: 2rem;
        padding: 1.5rem;
    }
}