﻿/* ================= ROOT VARIABLES ================= */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --success: #00b36b;
    --danger: #ff4d4d;
    --text-dark: #333;
    --text-muted: #777;
    --bg-light: #f9fbfd;
    --card-border: #e5e9f0;
}

/* ================= SECTION ================= */
.book-test-section {
    background: var(--bg-light);
    padding: 80px 0;
}


/* ================= TEST CARD ================= */
.test-wrapper {
    display: flex;
}

.test-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    padding: 24px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow .25s ease;
}

    .test-card:hover {
        box-shadow: 0 12px 22px rgba(0,0,0,0.12);
    }

.test-content {
    flex: 1;
}

/* ================= TEXT ================= */
.test-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.technical-name {
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.test-details p {
    font-size: 14px;
    margin-bottom: 6px;
    color: #444;
}

/* ================= PRICE ================= */
.pricing {
    border-top: 1px solid #eee;
    padding-top: 14px;
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discounted {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
}

.mrp {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: var(--danger);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 14px;
}

/* ================= BUTTONS ================= */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.cart-btn,
.view-btn {
    flex: 1;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: background .25s ease, box-shadow .25s ease;
}

.cart-btn {
    background: #fff;
    color: #000;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

    .cart-btn:hover,
    .cart-btn:focus-visible {
        background: var(--success);
        color: #fff;
    }

.view-btn {
    background: #fff;
    color: #000;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    text-align: center;
}

    .view-btn:hover,
    .view-btn:focus-visible {
        background: var(--primary);
        color: #fff;
    }

/* ================= PARAM BADGE ================= */ 
.param-badge {
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .pricing {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}


/* ================= SEARCH & FILTERS ================= */

.search-input {
    padding: 14px 18px;
    border-radius: 30px;
    font-size: 14px;
}

select.form-control {
    border-radius: 30px;
    padding: 10px 14px;
    font-size: 13px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .search-input {
        font-size: 13px;
        padding: 12px 16px;
    }
}

/* ================= FILTER CONTAINER ================= */
.filter-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
    text-align:center;
}

/* SEARCH BAR */
.search-input {
    text-align: center;
    height: 52px;
    font-size: 15px;
    border-radius: 30px;
    padding-left: 20px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    border: 1px solid #ddd;
}

/* DROPDOWNS */
.filter-select {
    text-align:center;
    height: 46px;
    border-radius: 30px;
    font-size: 14px;
    padding-left: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    border: 1px solid #ddd;
    background: #fff;
}

/* RESULT COUNT */
.result-count {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

/* Hide card completely when filtered */
.test-hidden {
    display: none !important;
}

/* CLEAR FILTER BUTTON */
.clear-btn {
    background: #f1f3f6;
    border: 1px solid #ddd;
    color: #333;
    padding: 10px 26px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all .25s ease;
}

    .clear-btn:hover {
        background: var(--primary);
        color: #fff;
        border-color: var(--primary);
    }

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.filter-chip {
    background: #e9f2ff;
    color: #0d6efd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .filter-chip span {
        cursor: pointer;
        font-weight: bold;
    }
    .filter-chip span:hover {
        color: var(--danger);
    }
    /* RESPONSIVE */
    @media (max-width: 576px) {
        .filter-box {
            padding: 20px 16px;
        }
    }

.no-test-message {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #888;
    margin-top: 40px;
}

