/* Ported from resources/views/frontend/pages/health-packages/index.blade.php <style> */

/* List View */
.hp-grid.list-view{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.hp-grid.list-view .hp-card{
    width:100%;
    display:flex;
    flex-direction:column;
    height:auto !important;
    min-height:auto !important;
    padding:20px;
}

.hp-grid.list-view .hp-card h3{
    margin-bottom:10px;
}

.hp-grid.list-view .hp-card .desc{
    margin-bottom:15px;
}

.hp-grid.list-view .hp-card .hp-book-btn{
    width:250px;
    margin-top:15px;
}

.hp-card{
    display:flex;
    flex-direction:column;
    height:100%;
}

.hp-price-wrap{
    margin-top:auto;
}


.custom-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-top:30px;
}

.custom-pagination a,
.custom-pagination span{
    padding:10px 16px;
    border:1px solid #ddd;
    border-radius:6px;
    text-decoration:none;
    color:#333;
    background:#fff;
}

.custom-pagination a.active{
    background:#198754;
    border-color:#198754;
    color:#fff;
}


.no-package-found i{
    font-size:48px;
    color:#198754;
    margin-bottom:15px;
}

.no-package-found h3{
    color:#198754;
    margin-bottom:10px;
    font-size:28px;
}

.no-package-found p{
    color:#6c757d;
    font-size:16px;
}

.hp-grid{
    width:100%;
}

.no-package-found{
    grid-column:1 / -1;
    width:100%;
    min-height:350px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;

    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:12px;

    padding:40px;
}

#showingResult{
    text-align:center;
    margin-top:10px;
    margin-bottom:30px;
    color:#666;
    font-size:14px;
}

.custom-booking-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    z-index:9999;
    overflow-y:auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 10px;
    box-sizing: border-box;
}

.booking-modal-content{
    background:#fff;
    width:95%;
    max-width:900px;
    margin:40px auto;
    padding:35px;
    border-radius:16px;
    position:relative;
    box-sizing: border-box;
}

.booking-modal-content .close-modal {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-modal-content .close-modal:hover {
    background: #fee2e2;
    color: #dc2626;
}

.booking-form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px;
}

.form-group.full-width{
    grid-column:1/-1;
}

@media(max-width:768px){
    .custom-booking-modal {
        padding: 10px;
    }
    .booking-modal-content {
        margin: 15px auto;
        padding: 25px 15px 20px;
        width: 100%;
        border-radius: 12px;
    }
    .booking-form-grid{
        grid-template-columns:1fr;
        gap: 12px;
    }
}

.form-group{
    margin-bottom:15px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    border:1px solid #ddd;
    border-radius:8px;
    padding:12px;
    font-size:16px;
    min-height:44px;
    box-sizing:border-box;
}

.form-group input:disabled{
    background:#f5f5f5;
}

.submit-booking-btn{
    width:100%;
    min-height:48px;
    background:#e31e24;
    color:#fff;
    border:none;
    padding:14px;
    border-radius:8px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.is-invalid{
    border:1px solid #dc3545 !important;
}

.text-danger{
    color:#dc3545;
    font-size:13px;
    margin-top:5px;
    display:block;
}

.hp-tests-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 15px;
    border: 1px solid #1f4068;
    background: #fff;
    color: #1f4068;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hp-tests-btn:hover {
    background: #1f4068;
    color: #fff;
}
.tests-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;

    overscroll-behavior: contain;
}

/* Modal Box */
.tests-modal-content {
    background: #ffffff;

    width: 700px;
    max-width: 95%;
    max-height: 80vh;

    border-radius: 16px;
    position: relative;

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

/* Modal Title */
#testsModalTitle {
    margin: 0;
    padding: 25px 65px 20px 25px;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;

    color: #111827;

    /* Long title cut na ho */
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;

    border-bottom: 1px solid #e5e7eb;
}

/* Close Button */
.close-tests-modal {
    position: absolute;
    right: 16px;
    top: 14px;

    width: 36px;
    height: 36px;

    border: none;
    border-radius: 50%;

    background: #f1f5f9;
    color: #475569;

    font-size: 22px;
    line-height: 36px;

    text-align: center;
    cursor: pointer;

    padding: 0;

    z-index: 2;
}

.close-tests-modal:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Tests List */
#testsList {
    padding: 20px 25px 25px;

    max-height: 55vh;
    overflow-y: auto;

    box-sizing: border-box;
}

  /* Test List */
#testsList {
    padding: 20px 24px 24px;
    max-height: 55vh;
    overflow-y: auto;
}

/* Individual Test */
.test-item {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 13px 16px;
    margin-bottom: 10px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;

    color: #1e293b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;

    transition: all 0.2s ease;
}

/* Number Circle */
.test-number {
    min-width: 30px;
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8f7ef;
    color: #198754;

    border-radius: 50%;

    font-size: 13px;
    font-weight: 700;
}

/* Test Name */
.test-name {
    flex: 1;
    color: #334155;
    font-size: 15px;
    font-weight: 500;
}

/* Hover */
.test-item:hover {
    background: #f0fdf4;
    border-color: #b7e4c7;
    transform: translateX(2px);
}

/* Last item */
.test-item:last-child {
    margin-bottom: 0;
}

/* No Tests */
.no-tests {
    padding: 25px 20px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
.test-item:last-child {
    margin-bottom: 0;
}

/* No tests */
#testsList .test-item:only-child {
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}

/* Scrollbar */
#testsList::-webkit-scrollbar {
    width: 6px;
}

#testsList::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#testsList::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}


/* Mobile */
@media (max-width: 600px) {

    .tests-modal {
        padding: 15px;
    }

    .tests-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 12px;
    }

    #testsModalTitle {
        padding: 20px 55px 18px 20px;
        font-size: 18px;
    }

    #testsList {
        padding: 15px 20px 20px;
        max-height: 60vh;
    }

    .test-item {
        font-size: 13px;
        padding: 11px 12px;
    }
}

.hp-card-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 15px;
}

.hp-card-actions a {
    flex: 1;
    width: 50%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.hp-view-tests {
    background: #fff;
    color: #1f4068 !important;
    border: 1px solid #1f4068;
}

.hp-card-actions .hp-book-btn {
    background: #1f4068;
    color: #fff !important;
    border: 1px solid #1f4068;
    margin-top: 0;
}
