/* Service Detail Modal Styles */
.service-detail-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-detail-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s forwards;
}

.service-modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(-50px) scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    -ms-overflow-style: none;
}

.service-detail-modal.show .service-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.service-modal-content::-webkit-scrollbar {
    width: 6px;
}

.service-modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.service-modal-header {
    padding: 2rem;
    background: linear-gradient(135deg, #f8faff 0%, #eeeeff 100%);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 5;
}

.service-modal-header h2 {
    margin: 0;
    color: #2B2B7B;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.service-modal-body p {
    color: #4F5B76;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    animation: fadeInUp 0.5s 0.2s forwards;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInRight 0.5s forwards;
    opacity: 0;
}

.service-feature:nth-child(1) {
    animation-delay: 0.3s;
}

.service-feature:nth-child(2) {
    animation-delay: 0.4s;
}

.service-feature:nth-child(3) {
    animation-delay: 0.5s;
}

.service-feature:nth-child(4) {
    animation-delay: 0.6s;
}

.service-feature i {
    color: #B8860B;
    font-size: 1.2rem;
}

.service-feature span {
    font-weight: 500;
    color: #0A2540;
}

.close-service-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2B2B7B;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    border: none;
    transform: translateY(1px);
}

.close-service-modal:hover {
    background: #2B2B7B;
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(43, 43, 123, 0.2);
}

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

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-modal-content {
        width: 95%;
        max-height: 80vh;
        margin: 10vh auto;
    }

    .service-modal-header h2 {
        font-size: 1.8rem;
    }

    .service-modal-body {
        padding: 1.5rem;
    }

    .service-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .service-modal-header {
        padding: 1.5rem 1rem;
    }

    .service-modal-header h2 {
        font-size: 1.5rem;
    }

    .service-modal-body {
        padding: 1.2rem;
    }

    .service-modal-body p {
        font-size: 1rem;
    }

    .close-service-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}