body{
    background-color: grey;
}

/* Minimalist Black Popup Modal */
#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

#popup-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    padding: 40px 30px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    height: auto;
    animation: slideIn 0.4s ease-out forwards;
}

#popup-box h2 {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#popup-box p {
    color: #999;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: 300;
}

/* Form Styling */
#popup-box .form-control {
    background: #111;
    border: 1px solid #333;
    padding: 15px 20px;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

#popup-box .form-control:focus {
    outline: none;
    border-color: #666;
    background: #1a1a1a;
}

#popup-box .form-control::placeholder {
    color: #666;
    font-weight: 300;
    text-align: center;
}

/* Button Styling */
#popup-box .send_message {
    background: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: 10px;
}

#popup-box .send_message:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* Close Button */
.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup:hover {
    color: #ffffff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #popup-box {
        width: 95%;
        padding: 30px 20px;
    }
    
    #popup-box h2 {
        font-size: 20px;
    }
}

/* Loading State */
#popup-box.loading .send_message {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

#popup-box.loading .send_message::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}