﻿/* ============================= */
/* TARIFF HEADER */
/* ============================= */
body {
    background: #f4f6fb;
}

.tariff-wrapper {
    max-width: 95%;
    margin: auto;
    background: #f9fafb;
    padding: 10px;
    border-radius: 12px;
}

.tariff-header {
    background: linear-gradient( 135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.82) );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 18px;
    border-left: 4px solid rgba(30,102,220,0.85);
    box-shadow: 0 8px 24px rgba(15,23,42,0.08);
}

    .tariff-header h1 {
        margin: 0;
        font-size: 28px;
        color: #1f2937;
        font-weight: 700;
        line-height: 1.3;
    }

    .tariff-header p {
        margin-top: 4px;
        color: #6b7280;
        font-size: 14px;
        line-height: 1.5;
    }

/* ============================= */
/* CATEGORY BUTTONS */
/* ============================= */

.category-container {
    display: flex;
    flex-wrap: wrap; /* IMPORTANT */
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

    .category-container::-webkit-scrollbar {
        display: none;
    }

.category-btn {
    border: 1px solid rgba(255,255,255,0.25);
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .category-btn:hover {
        transform: translateY(-1px);
    }

    .category-btn.active {
        background: linear-gradient( 135deg, rgba(30,102,220,0.92), rgba(20,80,184,0.88) );
        color: #fff;
        border: 1px solid rgba(255,255,255,0.18);
        box-shadow: 0 4px 14px rgba(13,110,253,0.18);
    }

/* ============================= */
/* SEARCH BOX */
/* ============================= */

.search-container {
    position: sticky;
    top: 10px;
    z-index: 999;
    background: transparent;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.search-box {
    width: 100%;
    padding: 15px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

    .search-box:focus {
        border-color: rgba(30,102,220,0.55);
        box-shadow: 0 0 0 4px rgba(13,110,253,0.10);
    }

/* ============================= */
/* SERVICE GROUP */
/* ============================= */

.service-group {
    background: rgba(255,255,255,0.70);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 10px 30px rgba(15,23,42,0.08);
    scroll-margin-top: 100px;
}

/* ============================= */
/* SERVICE HEADER */
/* ============================= */

.service-header {
    padding: 20px 24px;
    background: linear-gradient( 135deg, rgba(30,102,220,0.88), rgba(20,80,184,0.82) );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(13,110,253,0.15);
}

    .service-header:hover {
        opacity: 0.96;
    }

/* ============================= */
/* SERVICE LEFT */
/* ============================= */

.service-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ============================= */
/* EMOJI ICON */
/* ============================= */

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
}

/* ============================= */
/* SERVICE TITLE */
/* ============================= */

.service-title {
    font-size: 24px;
    font-weight: 700;
}

.service-count {
    font-size: 13px;
    opacity: 0.92;
    margin-top: 4px;
}

.service-toggle {
    font-size: 28px;
    font-weight: bold;
}

/* ============================= */
/* SUBSERVICE CONTAINER */
/* ============================= */

.subservice-container {
    display: none;
    padding: 24px;
    background: rgba(248,250,252,0.72);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================= */
/* SUBSERVICE CARD */
/* ============================= */

.subservice-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.subservice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.subservice-name {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.subservice-price {
    background: rgba(30,102,220,0.10);
    color: #1450b8;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
}

/* ============================= */
/* PRICE GRID */
/* ============================= */

.price-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.price-box {
    background: rgba(248,250,252,0.85);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.18);
}

.price-label {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.price-value {
    font-size: 22px;
    font-weight: 700;
}

.govt-price {
    color: #dc3545;
}

.service-price {
    color: #198754;
}

.total-price {
    color: #1450b8;
}

/* ============================= */
/* ORDER BUTTON */
/* ============================= */

.order-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient( 135deg, #c4161c, #9f1015 );
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .order-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(196,22,28,0.25);
    }

/* ============================= */
/* LOAD MORE */
/* ============================= */

.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    background: linear-gradient( 135deg, rgba(30,102,220,0.92), rgba(20,80,184,0.88) );
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(13,110,253,0.18);
    transition: all 0.3s ease;
}

    .load-more-btn:hover {
        transform: translateY(-1px);
    }

/* ============================= */
/* MOBILE */
/* ============================= */

@media screen and (max-width:768px) {

    .tariff-wrapper {
        padding: 12px;
    }

    .tariff-header {
        padding: 14px 16px;
    }

        .tariff-header h1 {
            font-size: 22px;
            line-height: 1.4;
        }

        .tariff-header p {
            font-size: 13px;
            margin-top: 2px;
        }

    .service-header {
        padding: 16px;
    }

    .service-title {
        font-size: 18px;
    }

    .service-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .subservice-container {
        padding: 15px;
    }

    .subservice-card {
        padding: 16px;
    }

    .subservice-name {
        font-size: 17px;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .order-btn {
        width: 100%;
        text-align: center;
    }
}


