/* --- Contact Modal Styles --- */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of everything */
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Start hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-content {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 550px; /* Max width for the modal */
    width: 90%; /* Responsive width */
    position: relative;
    transform: translateY(-20px); /* Start slightly above center */
    transition: transform 0.3s ease;
}

.contact-modal-overlay.active .contact-modal-content {
    transform: translateY(0); /* Slide into place */
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

.modal-close-btn:hover {
    color: var(--primary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.modal-header p {
    font-size: 1.05em;
    color: var(--text-color);
    margin-bottom: 0;
}

.modal-body .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: var(--light-bg);
    padding: 15px 20px;
    border-radius: 8px;
}

.modal-body .info-item i {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.modal-body .info-item h4 {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.modal-body .info-item p {
    margin-bottom: 0;
}

.modal-body .info-item p a {
    color: var(--text-color);
    font-weight: 500;
}

.modal-body .info-item p a:hover {
    color: var(--primary-color);
}

.modal-cta {
    text-align: center;
    margin-top: 30px;
}

.modal-cta p {
    font-size: 1em;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Responsive adjustments for Modal */
@media (max-width: 576px) {
    .contact-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    .modal-header h2 {
        font-size: 1.6em;
    }
    .modal-header p {
        font-size: 0.95em;
    }
    .modal-body .info-item {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }
    .modal-body .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .modal-body .info-item h4, .modal-body .info-item p {
        text-align: center;
    }
}