/* ========== VISITOR FORM MODAL ========== */

.visitor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.visitor-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visitor-modal-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 34, 77, 0.3);
    animation: slideUp 0.4s ease;
}

.visitor-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #f5f7fb;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visitor-modal-close:hover {
    background: #e31e24;
    color: white;
}

.visitor-modal-content h2 {
    color: #003d7a;
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.visitor-modal-content .form-group {
    margin-bottom: 20px;
}

.visitor-modal-content label {
    display: block;
    margin-bottom: 8px;
    color: #003d7a;
    font-weight: 600;
    font-size: 14px;
}

.visitor-modal-content input,
.visitor-modal-content select,
.visitor-modal-content textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8dfe8;
    border-radius: 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: #333;
    background: #f9fbfd;
    transition: all 0.3s ease;
}

.visitor-modal-content input:focus,
.visitor-modal-content select:focus,
.visitor-modal-content textarea:focus {
    outline: none;
    border-color: #0057b8;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.1);
}

.visitor-modal-content textarea {
    resize: vertical;
    font-family: 'Cairo', sans-serif;
}

.visitor-modal-content .btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width: 768px) {
    .visitor-modal-content {
        padding: 32px 24px;
    }

    .visitor-modal-content h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }
}