/* ==========================================================
   Youth Quota in Parliament - Lawmaker Search
   File: assets/css/lawmaker-search.css
   ========================================================== */

.yqp-search-section{
    position:relative;
    padding:90px 0;
    background:linear-gradient(135deg,#f5f9f8 0%,#eef7f1 100%);
    overflow:hidden;
}

.yqp-search-section::before{
    content:"";
    position:absolute;
    top:-120px;
    right:-120px;
    width:320px;
    height:320px;
    background:rgba(25,135,84,.08);
    border-radius:50%;
}

.yqp-search-section::after{
    content:"";
    position:absolute;
    bottom:-140px;
    left:-140px;
    width:350px;
    height:350px;
    background:rgba(13,110,253,.05);
    border-radius:50%;
}

.yqp-search-card{
    position:relative;
    z-index:2;
    background:#fff;
    border-radius:25px;
    padding:55px;
    box-shadow:0 20px 60px rgba(0,0,0,.08);
    transition:.35s;
}

.yqp-search-card:hover{
    transform:translateY(-4px);
    box-shadow:0 30px 70px rgba(0,0,0,.12);
}

.yqp-search-badge{
    display:inline-block;
    background:#198754;
    color:#fff;
    padding:10px 20px;
    border-radius:50px;
    font-size:13px;
    font-weight:700;
    letter-spacing:.8px;
    margin-bottom:20px;
}

.yqp-search-badge i{
    margin-right:6px;
}

.yqp-search-title{
    font-size:42px;
    font-weight:800;
    color:#1c2b36;
    margin-bottom:15px;
}

.yqp-search-subtitle{
    max-width:760px;
    margin:auto;
    color:#6b7280;
    font-size:18px;
    line-height:1.8;
    margin-bottom:40px;
}

.yqp-search-form-wrapper{
    position:relative;
    max-width:850px;
    margin:auto;
}

.yqp-search-input-wrapper{
    position:relative;
}

.yqp-search-icon{
    position:absolute;
    left:24px;
    top:50%;
    transform:translateY(-50%);
    font-size:22px;
    color:#198754;
    z-index:2;
}

.yqp-search-input{
    width:100%;
    height:72px;
    border:2px solid #dfe8e4;
    border-radius:60px;
    padding-left:70px;
    padding-right:65px;
    font-size:18px;
    background:#fff;
    transition:.3s;
}

.yqp-search-input:focus{
    outline:none;
    border-color:#198754;
    box-shadow:0 0 0 5px rgba(25,135,84,.12);
}

.yqp-search-spinner{
    position:absolute;
    right:25px;
    top:50%;
    transform:translateY(-50%);
    width:24px;
    height:24px;
    border:3px solid #d7d7d7;
    border-top:3px solid #198754;
    border-radius:50%;
    animation:yqpSearchSpin .8s linear infinite;
    display:none;
}

@keyframes yqpSearchSpin{

    from{
        transform:translateY(-50%) rotate(0deg);
    }

    to{
        transform:translateY(-50%) rotate(360deg);
    }

}

.yqp-search-results{
    position:absolute;
    left:0;
    right:0;
    top:82px;
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 18px 45px rgba(0,0,0,.15);
    max-height:480px;
    overflow-y:auto;
    z-index:999;

    /* Animation */
    opacity:0;
    visibility:hidden;
    transform:translateY(15px);
    transition:opacity .25s ease,
               transform .25s ease,
               visibility .25s ease;
}

/* Active State */
.yqp-search-results.yqp-search-show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

.yqp-search-result-item{
    display:flex;
    align-items:center;
    gap:18px;
    padding:18px 22px;
    border-bottom:1px solid #f1f1f1;
    transition:.25s;
    text-decoration:none;
    color:#222;
}

.yqp-search-result-item:last-child{
    border-bottom:none;
}

.yqp-search-result-item:hover{
    background:#f4fbf7;
}

.yqp-search-photo{
    width:65px;
    height:65px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid #198754;
    flex-shrink:0;
}

.yqp-search-details{
    flex:1;
}

.yqp-search-name{
    font-size:18px;
    font-weight:700;
    color:#1c2b36;
    margin-bottom:4px;
}

.yqp-search-meta{
    font-size:14px;
    color:#6c757d;
    margin-bottom:4px;
}

.yqp-search-constituency{
    font-size:15px;
    color:#198754;
    font-weight:600;
}

.yqp-search-profile-btn{
    display:inline-block;
    padding:8px 18px;
    background:#198754;
    color:#fff;
    border-radius:30px;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.3s;
}

.yqp-search-profile-btn:hover{
    background:#146c43;
    color:#fff;
}

.yqp-search-empty{
    padding:30px;
    text-align:center;
    color:#777;
    font-size:16px;
}

.yqp-search-footer{
    margin-top:35px;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
}

.yqp-search-footer span{
    display:flex;
    align-items:center;
    gap:8px;
    color:#5b6470;
    font-size:15px;
    font-weight:600;
}

.yqp-search-footer i{
    color:#198754;
}

/* Scrollbar */

.yqp-search-results::-webkit-scrollbar{
    width:8px;
}

.yqp-search-results::-webkit-scrollbar-thumb{
    background:#198754;
    border-radius:20px;
}

.yqp-search-results::-webkit-scrollbar-track{
    background:#f3f3f3;
}

/* Responsive */

@media(max-width:992px){

    .yqp-search-card{
        padding:40px 25px;
    }

    .yqp-search-title{
        font-size:34px;
    }

    .yqp-search-subtitle{
        font-size:16px;
    }

}

@media(max-width:768px){

    .yqp-search-section{
        padding:60px 0;
    }

    .yqp-search-title{
        font-size:28px;
    }

    .yqp-search-input{
        height:62px;
        font-size:16px;
    }

    .yqp-search-result-item{
        align-items:flex-start;
    }

    .yqp-search-photo{
        width:55px;
        height:55px;
    }

    .yqp-search-profile-btn{
        margin-top:10px;
    }

}

@media(max-width:576px){

    .yqp-search-card{
        border-radius:18px;
        padding:30px 18px;
    }

    .yqp-search-footer{
        flex-direction:column;
        align-items:center;
        gap:12px;
    }

}