/* ================================
   SERVICE DETAILS POPUP
================================ */

.service-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 99999;
    opacity: 0;
}

/* Active popup */
.service-modal.show {
    display: flex;
    animation: modalFadeIn 0.35s ease forwards;
}

/* Popup box */
.service-modal-content {
    width: 950px;
    max-width: 100%;
    background: #fff;
    position: relative;
    border-radius: 8px;
    overflow: hidden;

    transform: translateX(-70px);
    opacity: 0;

    animation: modalSlideIn 0.5s ease forwards;
    animation-delay: 0.05s;
}

/* Two-column layout */
.service-modal-inner {
    display: flex;
    align-items: stretch;
}

/* Image */
.service-modal-image {
    width: 45%;
    min-height: 300px;
}

.service-modal-image img {
    width: 100%;
    height: 100%;
    /*min-height: 500px;*/
    object-fit: cover;
    display: block;
}

/* Text */
.service-modal-text {
    width: 55%;
    padding: 55px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Service number */
.modal-service-number {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* Title */
.service-modal-text h2 {
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 15px;
}

/* Divider */
.modal-divider {
    width: 55px;
    height: 3px;
    margin-bottom: 22px;
}

/* Description */
.service-modal-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Included heading */
.service-modal-text h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

/* Features */
#modalFeatures {
    padding: 0;
    margin: 0 0 25px;
    list-style: none;
}

#modalFeatures li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 15px;
}

#modalFeatures li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Close button */
.close-modal {
    position: absolute;
    right: 18px;
    top: 15px;
    width: 40px;
    height: 40px;
    border: 0;
    background: rgba(0,0,0,.06);
    border-radius: 50%;
    font-size: 28px;
    line-height: 35px;
    cursor: pointer;
    z-index: 5;
    transition: all .3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Animations */

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateX(-70px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ================================
   MOBILE
================================ */

@media (max-width: 767px) {

    .service-modal {
        padding: 15px;
    }

    .service-modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .service-modal-inner {
        display: block;
    }

    .service-modal-image,
    .service-modal-text {
        width: 100%;
    }

    .service-modal-image {
        min-height: 220px;
        height: 220px;
    }

    .service-modal-image img {
        min-height: 220px;
        height: 220px;
    }

    .service-modal-text {
        padding: 35px 25px;
    }

    .service-modal-text h2 {
        font-size: 28px;
    }

}