/* Service Details Modal */
.service-modal-content {
    max-width: 900px;
    width: 92%;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--primary-yellow);
    color: var(--dark);
}

.service-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.service-modal-close {
    background: rgba(27,27,27,0.15);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--dark);
}

.service-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #ffcd00 #f0f0f0;
}

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

.service-modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.service-modal-body::-webkit-scrollbar-thumb {
    background: #ffcd00;
    border-radius: 10px;
}

.service-modal-body::-webkit-scrollbar-thumb:hover {
    background: #e6b800;
} 

/* Prevent any overflow issues inside modal */
#serviceModalBody, .service-modal-body {
    min-width: 0;
}

/* Reviews scroll container custom scrollbar */
.service-reviews-scroll {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #ffcd00 #f0f0f0;
}

.service-reviews-scroll::-webkit-scrollbar {
    width: 6px;
}

.service-reviews-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.service-reviews-scroll::-webkit-scrollbar-thumb {
    background: #ffcd00;
    border-radius: 10px;
}

.service-reviews-scroll::-webkit-scrollbar-thumb:hover {
    background: #e6b800;
}

.service-modal-grid > div {
    min-width: 0;
}

.service-modal-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.service-modal-image {
    background: var(--light-gray);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.service-modal-image img {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.service-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.5rem 0 1rem;
}

.service-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 205, 0, 0.2);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.service-price-big {
    font-size: 2rem;
    font-weight: 900;
    color: var(--dark);
    margin: 0.5rem 0 0.2rem;
}

.service-desc {
    color: var(--medium-gray);
    line-height: 1.8;
}

.service-features-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--light-gray);
}

.service-features-box h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.service-features-list {
    margin: 0;
    padding-left: 1.2rem;
}

.service-features-list li {
    margin: 0.35rem 0;
    color: #444;
}

.service-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

/* Rating */
.service-rating {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
}

.stars {
    display: inline-flex;
    gap: 0.3rem;
}

.star-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: #ccc;
    line-height: 1;
}

.star-btn.active {
    color: #ffb400;
}

.rating-text {
    margin-top: 0.5rem;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.review-box {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.6rem;
}

.review-box textarea {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.8rem;
    font-family: inherit;
}

.review-box textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
}

.review-actions {
    display: flex;
    gap: 0.6rem;
}

@media (max-width: 768px) {
    .review-actions {
        flex-direction: column;
    }
}


.btn-outline {
    background: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--primary-yellow);
}

@media (max-width: 768px) {
    /* Modal container fills screen nicely */
    #serviceDetailsModal {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .service-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 18px 18px 0 0;
        max-height: 92vh;
        display: flex;
        flex-direction: column;
    }

    .service-modal-header {
        padding: 1rem 1rem;
        flex-shrink: 0;
    }

    .service-modal-header h2 {
        font-size: 1.15rem;
        line-height: 1.2;
    }

    .service-modal-body {
        padding: 1rem;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #ffcd00 #f0f0f0;
    }

    .service-modal-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-modal-image {
        min-height: 160px;
        padding: 1rem;
    }

    .service-price-big {
        font-size: 1.6rem;
    }

    .service-chip {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .service-desc {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .service-features-box {
        padding: 0.9rem;
    }

    .service-features-list li {
        font-size: 0.95rem;
    }

    .service-actions {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .service-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .service-modal-header h2 {
        font-size: 1.05rem;
    }

    .service-modal-close {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .service-modal-image {
        min-height: 140px;
    }
}
