@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

*{
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    scroll-padding-top: 2rem;
    scroll-behavior: smooth;
}

:root{
    --main-color: #ff2c1f;
    --text-color: #020307;
    --bg-color: #ffffff;
    --soft-text: #d5ddf5;
    --card-border: #d9e2ff;
    --card-bg: rgba(255, 255, 255, 0.98);
    --input-shadow: rgba(5, 81, 233, 0.12);
}

html::-webkit-scrollbar{
    width: 0.5rem;
    background: var(--text-color);
}

html::-webkit-scrollbar-thumb{
    background: var(--main-color);
    border-radius: 5rem;
}

body{
    min-height: 100vh;
    background: linear-gradient(180deg, #020307 0%, #08142f 55%, #020307 100%);
    color: var(--bg-color);
    font-size: 18px;
}

header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 100px;
    transition: 0.5s;
    backdrop-filter: blur(10px);
    background: rgba(2, 3, 7, 0.35);
}

header.shadow{
    background: var(--bg-color);
    box-shadow: 0 0 4px rgb(14 55 54 / 15%);
}

header.shadow .navbar a,
header.shadow .logo,
header.shadow .search-icon a,
header.shadow #menu-icon{
    color: var(--text-color);
}

.logo{
    font-size: 1.1rem;
    font-weight: 600;
    align-items: center;
    color: var(--bg-color);
    display: flex;
    column-gap: 0.5rem;
}

.bx{
    color: var(--main-color);
}

.navbar{
    display: flex;
    column-gap: 2.5rem;
}

.navbar li{
    position: relative;
}

.navbar a{
    font-size: 1rem;
    font-weight: 500;
    color: var(--bg-color);
}

.navbar a::after{
    content: '';
    width: 0;
    height: 2px;
    background: var(--main-color);
    position: absolute;
    bottom: -4px;
    left: 0;
    transition: 0.4s all linear;
}

.navbar a:hover::after,
.navbar .home-active::after{
    width: 100%;
}

#menu-icon{
    font-size: 24px;
    cursor: pointer;
    z-index: 1000001;
    display: none;
}

.search-icon a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    font-size: 1.45rem;
}

.btn{
    padding: 0.7rem 1.4rem;
    background: var(--main-color);
    color: var(--bg-color);
    font-weight: 500;
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.btn:hover{
    background: #fa1216;
}

.search-page{
    padding: 8rem 1.5rem 2rem;
}

.search-hero{
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.eyebrow{
    color: #ff9b93;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.search-hero h1{
    font-size: clamp(2rem, 5vw, 3.6rem);
    margin-bottom: 1rem;
}

.search-guide{
    color: var(--soft-text);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

.container{
    display: flex;
    justify-content: center;
    padding: 1rem 0 2rem;
}

.wrapper{
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 1.25rem;
}

.search-label{
    display: block;
    color: #12203f;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.search-field{
    position: relative;
}

input{
    width: 100%;
    border: 2px solid var(--card-border);
    height: 58px;
    border-radius: 14px;
    padding: 0 60px 0 16px;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(5, 81, 233, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus{
    outline: none;
    border-color: #0551e9;
    box-shadow: 0 0 0 4px var(--input-shadow);
}

button{
    position: absolute;
    border: none;
    background: none;
    top: 4px;
    right: 4px;
    height: 50px;
    line-height: 50px;
    padding: 0;
    width: 50px;
    cursor: pointer;
}

button:focus{
    outline: none;
}

button i{
    width: 100%;
    color: #0551e9;
    line-height: 50px;
    font-size: 22px;
}

.search-hint{
    color: #56627a;
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

.results{
    padding: 0;
    margin-top: 0.9rem;
}

.results ul{
    margin: 0;
    padding: 0;
}

.results ul li{
    border-radius: 12px;
    opacity: 0;
    display: none;
    padding: 0;
    transition: all 0.25s linear;
    overflow: hidden;
}

.show .results ul li{
    opacity: 1;
    display: block;
}

.results ul li + li{
    margin-top: 0.55rem;
}

.results ul li a{
    display: block;
    padding: 0.95rem 1rem;
    background: #f3f6ff;
    color: #12203f;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.results ul li a:hover,
.results ul li a:focus{
    background: #e8eeff;
    border-color: #bfd1ff;
}

.results-empty{
    margin-top: 0.9rem;
    color: #6d7b98;
    font-size: 0.95rem;
}

.request-section{
    padding: 0 1.5rem 2rem;
}

.request-wrap{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.footer{
    max-width: 968px;
    margin: 1rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.social{
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}

.social .bx{
    background: var(--bg-color);
    padding: 2px;
    font-size: 2rem;
    border-radius: 50%;
    border: 4px solid rgb(2, 3, 7, 0.4);
    color: var(--main-color);
}

.social .bx:hover{
    background: var(--main-color);
    color: var(--bg-color);
    transition: 0.2s all linear;
}

.copyright{
    padding: 20px;
    text-align: center;
    color: var(--bg-color);
}

@media (max-width: 991px){
    header{
        padding: 18px 4%;
    }
}

@media (max-width: 774px){
    header{
        padding: 12px 4%;
    }

    #menu-icon{
        display: initial;
        color: var(--bg-color);
    }

    .navbar{
        position: absolute;
        top: -570px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        row-gap: 1.4rem;
        padding: 20px;
        box-shadow: 4px 4px 0 4px rgb(14 55 54 / 15%);
        transition: 0.2s all linear;
        text-align: center;
        width: 100%;
    }

    .navbar a{
        color: var(--text-color);
    }

    .navbar a:hover{
        color: var(--main-color);
        border-bottom: 1px solid var(--main-color);
    }

    .navbar a::after{
        display: none;
    }

    .navbar.active{
        top: 100%;
    }

    .btn{
        padding: 0.6rem 1.2rem;
    }

    .search-page{
        padding-top: 7rem;
    }
}

@media (max-width: 472px){
    .footer{
        flex-direction: column;
        align-items: center;
        row-gap: 1rem;
    }

    .container{
        width: 100%;
    }

    header{
        padding: 6px 4%;
    }

    .search-hero h1{
        font-size: 1.8rem;
    }

    .search-guide{
        font-size: 0.95rem;
    }

    .wrapper{
        padding: 1rem;
    }
}
