/* Container */

.search-container{
    max-width:1100px;
    margin:40px auto;
    padding:0 16px;
}

/* Layout */

.search-wrapper{
    display:flex;
    gap:12px;
    align-items:center;
}

.search-input-wrapper{
    position:relative;
    flex:1;
}

/* Search Icon */

.search-icon{
    position:absolute;
    left:16px;
    top:50%;
    transform:translateY(-50%);
    width:20px;
    height:20px;
    color:#9ca3af;
    z-index:2;
}

/* Input */

.search-input{
    width:100%;
    padding:14px 16px 14px 48px;
    border:1px solid #d1d5db;
    border-radius:12px;
    outline:none;
    font-size:16px;
    transition:.3s;
    box-sizing:border-box;
}

.search-input:focus{
    border-color:#3b82f6;
    box-shadow:0 0 0 3px rgba(59,130,246,.2);
}

/* Placeholder */

.search-placeholder{
    position:absolute;
    left:48px;
    top:50%;
    transform:translateY(-50%);
    color:#9ca3af;
    pointer-events:none;
    white-space:nowrap;
    overflow:hidden;
    width:400px;
    transition:all .5s ease;
}

.search-placeholder.opacity-0{
    opacity:0;
}

.search-placeholder.opacity-100{
    opacity:1;
}

.search-placeholder.hidden{
    display:none;
}

.search-placeholder.text-blue-500{
    color:#3b82f6;
}

.search-placeholder.-translate-y-2{
    transform:translateY(-12px);
}

.search-placeholder.-translate-y-1\/2{
    transform:translateY(-50%);
}

/* Button */

.search-btn{
    background:#ea580c;
    color:#fff;
    border:none;
    padding:14px 34px;
    border-radius:12px;
    cursor:pointer;
    font-size:16px;
    transition:.3s;
}

.search-btn:hover{
    background:#c2410c;
}

/* Responsive */

@media (max-width:640px){

    .search-wrapper{
        flex-direction:column;
    }

    .search-input-wrapper{
        width:100%;
    }

    .search-input{
        width:100%;
        height:48px;
    }

    .search-btn{
        width:100%;
        height:48px;
        padding:0;
        display:flex;
        align-items:center;
        justify-content:center;
    }

}