/* =========================
   SEARCH WIDGET
   ========================= */

.search-widget {
    position: relative;
    display: inline-block;
}

/* Search Icon Button */
.search-widget .search-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.search-widget .search-icon-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.search-widget .search-icon-btn svg {
    width: 28px;
    height: 28px;
}

/* Search Overlay */
.search-widget .search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-widget .search-overlay.show {
    display: flex;
    opacity: 1;
}

/* Search Container */
.search-widget .search-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.search-widget .search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10;
}

.search-widget .search-close:hover {
    transform: rotate(90deg);
    opacity: 0.8;
}

/* Search Form */
.search-widget .search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-widget .search-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-widget .search-field-group label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Select & Input */
.search-widget .search-category,
.search-widget .search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.search-widget .search-category:focus,
.search-widget .search-input:focus {
    border-color: #0066cc;
    background: rgba(255, 255, 255, 0.15);
}

.search-widget .search-category option {
    background: #222;
    color: #fff;
}

.search-widget .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Submit Button */
.search-widget .search-submit {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.search-widget .search-submit:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

.search-widget .search-submit:active {
    transform: translateY(0);
}

/* Prevent body scroll when search open */
body.search-open {
    overflow: hidden;
}

/* =========================
   Responsive
   ========================= */
@media screen and (max-width: 768px) {
    .search-widget .search-container {
        width: 95%;
        padding: 30px 20px;
    }
    
    .search-widget .search-close {
        top: 10px;
        right: 10px;
    }
    
    .search-widget .search-category,
    .search-widget .search-input {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .search-widget .search-submit {
        font-size: 16px;
        padding: 15px 30px;
    }
}