/* Modern Search Overlay */
#search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease-in-out;
}

#search.open {
    opacity: 1;
    display: block;
}

#search form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    text-align: center;
}

#search label {
    display: block !important;
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 400;
}

#search input[type="search"] {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    font-size: 32px;
    text-align: center;
    outline: 0;
    padding: 15px 10px;
}

#search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#search input[type="submit"] {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin-top: 30px;
    background: #0093fe;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#search input[type="submit"]:hover {
    background: #0066cc;
}

#search .close {
    position: fixed;
    top: 20px;
    right: 20px;
    opacity: 1;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

#search .close:hover {
    color: #0093fe;
}
