/*
  This file contains all necessary styles for the contact modal.
  It is self-contained and does not depend on main.css.
*/

.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark overlay */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none; /* Can't click it when hidden */
    transition: opacity 0.3s ease;
}

/* This class will be added by JavaScript to show the modal */
.contact-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal-content {
    position: relative;
    background-color: #1F2937;
    padding: 2rem;
    border-radius: calc(1rem - 3px); /* FIX THIS to fit inside the frame */
    /* Width is now controlled by the parent .neon-glow-frame */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.contact-modal-overlay.active .contact-modal-content {
    transform: scale(1); /* "Pop in" effect */
}

.contact-modal-close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    color: #1f2937;
    background-color: #d1d5db;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.contact-modal-frame {
    max-width: 450px;
    width: 90%;
}