
.esp-search-wrapper {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    font-family: inherit;
}

.esp-search-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
    text-align: center;
}

.esp-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.esp-select-group {
    flex: 1;
    min-width: 200px;
}

.esp-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    height: 45px;
    
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2012%2012%22%3E%3Ctitle%3Edown-arrow%3C%2Ftitle%3E%3Cg%20fill%3D%22%23333333%22%3E%3Cpath%3D%22M10.293%2C3.293%20L6%2C7.586%20L1.707%2C3.293%20A1%2C1%200%200%2C0%200.293%2C4.707%20l5%2C5%20a1%2C1%200%200%2C0%201.414%2C0%20l5%2C-5%20a1%2C1%200%201%2C0%20-1.414%2C-1.414%20z%22%20fill%3D%22%23333333%22%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 12px !important;
    padding-right: 35px !important; 
}

.esp-select:disabled {
    background-color: #f1f1f1;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.esp-btn-group {
    flex: 0 1 auto;
    min-width: 150px;
}

.esp-btn {
    width: 100%;
    height: 45px;
    padding: 0 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.esp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* MEDIA QUERIES ZA MOBILNE NAPRAVE */
@media screen and (max-width: 767px) {
    /* 1. OPCIJA: Stacked (Eno pod drugim) */
    .esp-search-form.esp-mobile-layout-stacked {
        flex-direction: column;
    }
    .esp-search-form.esp-mobile-layout-stacked .esp-select-group, 
    .esp-search-form.esp-mobile-layout-stacked .esp-btn-group {
        width: 100%;
        min-width: 100%;
    }

    /* 2. OPCIJA: Inline (Vse v eni vrstici) */
    .esp-search-form.esp-mobile-layout-inline {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }
    .esp-search-form.esp-mobile-layout-inline .esp-select-group,
    .esp-search-form.esp-mobile-layout-inline .esp-btn-group {
        min-width: 0;
        flex: 1 1 0;
    }
    .esp-search-form.esp-mobile-layout-inline .esp-select {
        font-size: 11px;
        padding: 5px 15px 5px 5px !important;
        background-position: right 5px center !important;
        background-size: 8px !important;
    }
    .esp-search-form.esp-mobile-layout-inline .esp-btn {
        font-size: 11px;
        padding: 0 5px;
    }
}
