/* Service Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.modal-container {
    background-color: var(--background-color);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
    color: var(--text-color);
}

.modal-close:hover {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 90vh;
}

@media (min-width: 768px) {
    .modal-container {
        flex-direction: row;
        height: auto;
        overflow: hidden;
        /* Container handles overflow */
    }

    .modal-body {
        flex-direction: row;
        width: 100%;
        overflow: hidden;
        /* Body doesn't need scroll, individual cols might */
        max-height: 80vh;
    }

    .modal-image-col {
        width: 40%;
        flex-shrink: 0;
    }

    .modal-image-col img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .modal-content-col {
        width: 60%;
        padding: 40px;
        overflow-y: auto;
        /* Scroll text if needed */
    }
}

.modal-image-col img {
    width: 100%;
    height: 250px;
    /* Mobile height */
    object-fit: cover;
}

.modal-content-col {
    padding: 24px;
}

.modal-content-col .section-title {
    margin-bottom: 24px;
    color: var(--primary-color);
}

.modal-details-content {
    margin-bottom: 32px;
}

.modal-details-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 16px;
}

.modal-details-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.modal-details-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 24px;
    list-style: none;
}

.modal-details-content li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.view-more-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 8px 16px;
    font-size: 14px;
}

#modal-number {
    font-size: 64px;
    color: rgba(27, 122, 74, 0.1);
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
    font-weight: 700;
    pointer-events: none;
}