﻿/* استایل اختصاصی حالت موبایل و تبلت برای صفحه ServiceDetails.aspx */
@media (max-width: 991.98px) {
    body {
        overflow-x: hidden;
    }

    .navbar-custom {
        padding: 12px 0;
    }

        .navbar-custom .navbar-brand {
            font-size: 1.25rem;
        }

        .navbar-custom .navbar-toggler {
            padding: 6px 10px;
            border-radius: 8px;
            font-size: 1rem;
        }

        .navbar-custom .navbar-collapse {
            padding-top: 12px;
            padding-bottom: 6px;
            border-top: 1px solid #eceff2;
            margin-top: 10px;
        }

        .navbar-custom .navbar-nav {
            gap: 4px;
        }

        .navbar-custom .nav-link {
            margin: 0;
            padding: 8px 6px;
            font-size: 0.95rem;
        }

        .navbar-custom .navbar-actions {
            width: 100%;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 8px !important;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #eceff2;
        }

            .navbar-custom .navbar-actions .nav-link {
                padding: 6px 4px;
            }

            .navbar-custom .navbar-actions .btn-outline-custom {
                padding: 8px 14px;
                font-size: 0.88rem;
                white-space: nowrap;
            }
}

@media (max-width: 767.98px) {
    .top-bar {
        font-size: 0.78rem;
        padding: 6px 0;
    }

        .top-bar .container {
            gap: 6px 12px;
            justify-content: center !important;
        }

        .top-bar .info-item {
            font-size: 0.78rem;
            line-height: 1.4;
        }

    .breadcrumb-custom {
        padding: 10px 0 4px;
        font-size: 0.8rem;
    }

        .breadcrumb-custom .breadcrumb {
            flex-wrap: wrap;
            gap: 4px;
        }

    .page-header {
        padding: 16px 0 12px;
    }

        .page-header h1 {
            font-size: 1.38rem;
            line-height: 1.4;
            margin-bottom: 6px;
        }

        .page-header p {
            font-size: 0.85rem;
            margin-bottom: 0;
        }

    .main-card {
        border-radius: 12px;
        margin-bottom: 18px;
    }

        .main-card .image-placeholder img {
            max-width: 100%;
            height: auto;
            max-height: 220px;
            object-fit: contain;
        }

        .main-card .content {
            padding: 16px 14px;
        }

    .service-price-banner {
        padding: 12px;
        border-radius: 10px;
        flex-direction: column;
        align-items: stretch !important;
        gap: 8px;
    }

        .service-price-banner .fs-5 {
            font-size: 1rem !important;
        }

        .service-price-banner .badge {
            width: 100%;
            font-size: 0.8rem;
            white-space: normal;
            line-height: 1.5;
        }

    .main-card .content h4 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .main-card .content p {
        font-size: 0.88rem;
        line-height: 1.85 !important;
    }

    .info-box {
        padding: 16px 14px;
        border-radius: 12px;
    }

        .info-box h5 {
            font-size: 1rem;
            margin-bottom: 12px;
        }

        .info-box ul {
            font-size: 0.85rem;
            line-height: 1.75;
            padding-right: 18px;
            margin-bottom: 0;
        }

    .steps-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
        margin-top: 12px;
    }

        .steps-container::before {
            display: none;
        }

    .step-item {
        padding: 8px 6px;
        border-radius: 10px;
        background: #f8f9fa;
    }

    .step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.92rem;
        margin-bottom: 6px;
    }

    .step-item p {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .action-buttons {
        display: flex;
        flex-direction: column-reverse;
        gap: 12px;
        margin-top: 20px;
    }

        .action-buttons .btn-outline-custom {
            width: 100%;
            min-height: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.9rem;
        }

        .action-buttons .action-order-group {
            flex-direction: column;
            align-items: stretch !important;
            gap: 8px !important;
            width: 100%;
        }

            .action-buttons .action-order-group span {
                text-align: center;
                font-size: 0.84rem !important;
            }

        .action-buttons .btn-order {
            width: 100%;
            min-height: 46px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-size: 0.94rem;
            border-radius: 10px;
            padding: 10px 14px;
        }

    .related-services {
        margin-top: 28px;
    }

        .related-services h4 {
            font-size: 1.1rem;
            margin-bottom: 14px;
        }

    .related-card {
        padding: 16px 14px;
        border-radius: 12px;
    }

        .related-card h6 {
            font-size: 0.96rem;
        }

    .footer {
        padding: 28px 0 16px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
        margin-top: 32px;
        font-size: 0.85rem;
    }

        .footer .row {
            row-gap: 20px;
        }

        .footer h6 {
            margin-bottom: 10px;
            font-size: 0.95rem;
        }

        .footer .contact-info li {
            align-items: flex-start;
            word-break: break-word;
        }

    .footer-bottom {
        margin-top: 14px;
        padding-top: 14px;
        font-size: 0.76rem;
    }
}

@media (max-width: 380px) {
    .page-header h1 {
        font-size: 1.2rem;
    }

    .navbar-custom .navbar-brand {
        font-size: 1.12rem;
    }
}
