/**
 * Responsive Search Form Styles
 * 
 * This file contains responsive styles for all search forms across the site
 * to ensure consistent appearance and behavior.
 */

/* Box sizing reset for better layout stability */
.search_filters_wrapper *,
.banner__search * {
    box-sizing: border-box;
}

/* Common search form styles */
.search_filters_wrapper,
.banner__search {
    box-sizing: border-box;
}

/* Banner search layout */
/* .banner__search-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    width: 100%;
} */

/* Input fields */
.search_keywords input,
.search_location input,
.banner__search-input1-job,
.banner__search-input2-location,
.keyword-search {
    height: 48px;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    padding: 0 12px;
    border: 1px solid #c5c5c5;
    border-radius: 4px;
    /* transition: border-color 0.2s, box-shadow 0.2s; */
}

/* Input focus state
.search_keywords input:focus,
.search_location input:focus,
.banner__search-input1-job:focus,
.banner__search-input2-location:focus,
.keyword-search:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 76, 149, 0.2);
} */

/* Input wrapper focus state */
.input-wrapper.focused,
.banner__search-input1.focused,
.banner__search-input2.focused {
    position: relative;
}

.input-wrapper.focused::after,
.banner__search-input1.focused::after,
.banner__search-input2.focused::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
}

/* Labels above inputs */
.search_keywords label,
.search_location label,
.banner__search-input1 label,
.banner__search-input2 label {
    display: block;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}


/* Ensure buttons look the same */
/* .search_submit_button,
.banner__search-submit-button,
.apply-filters {
    height: 48px;
    width: 128px;
    background-color: #FF6A3D;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    cursor: pointer;
    justify-content: center;
} */

/* Loading state */
.search-loading .search_submit_button,
.search-loading .banner__search-submit-button,
.search-loading .apply-filters {
    position: relative;
    color: transparent;
}

.search-loading .search_submit_button::after,
.search-loading .banner__search-submit-button::after,
.search-loading .apply-filters::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Location suggestions */
.location-suggestions {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #c5c5c5;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(104, 29, 29, 0.1);
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
}

.location-suggestion {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.location-suggestion:hover,
.location-suggestion.selected {
    background-color: #f0f7ff;
}

.location-suggestion strong {
    color: #034C95;
    font-weight: 600;
}

/* Search message for validation */
.search-message {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    margin-top: 8px;
    border-radius: 4px;
    display: none;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    z-index: 10;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1200px) {
    /* Jobs page search */
    .search-filters-wrapper {
        height: auto;
        min-height: 200px;
        padding: 24px 20px;
    }
    
    .search_jobs {
        flex-direction: column;
        gap: 16px;
    }
    
    .search_keywords,
    .search_location_wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .search_location_wrapper {
        flex-direction: column;
        gap: 16px;
    }
    
    .search_location {
        width: 100% !important;
    }
    
    .search_submit {
        width: 100%;
    }
    
    /* Banner search form */
    .banner__search {
        position: absolute;
        width: 1180px;
        height: 200px;
        left: 370px; 
        top: 366px;
        background: #FFFFFF;
        box-shadow: 0px 22px 30px rgba(8, 30, 52, 0.3);
        border-radius: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 56px 80px; /* כלול padding פנימי */
        box-sizing: border-box;
    }
    
    .banner__search-row {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .banner__search-form {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .banner__search-input1,
    .banner__search-input2 {
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .banner__search-input1-job,
    .banner__search-input2-location {
        width: 100%;
    }
    
    .banner__search-submit {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 50px 0 250px;
    }
    
    .banner h1 {
        font-size: 36px;
        line-height: 44px;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 80px;
    }
    
    .banner p {
        padding-left: 20px;
    }
    
    .banner__search {
        padding: 30px 15px;
        margin: 0 10px;
    }
    
    .search-page-header h1 {
        font-size: 32px;
        line-height: 40px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 30px 0 220px;
        min-height: 450px;
    }
    
    .banner h1 {
        font-size: 28px;
        line-height: 36px;
        padding-top: 50px;
    }
    
    .banner__search {
        padding: 20px 15px;
        margin: 0 5px;
    }
    
    .search-filters-wrapper {
        padding: 16px 12px;
    }
    
    .search_submit_button,
    .banner__search-submit-button,
    .apply-filters {
        padding: 10px 16px;
    }
}

.banner__search {
    overflow: hidden;
    position: relative;
}

/* Banner search layout */
.banner__search-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    width: 100%;
} 