/* 
 * Search Form Figma Design Styles
 * Стили для формы поиска по дизайну из Figma
 * Применяются только к [acadp_search_form]
 */

/* Подключаем шрифт Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Основной контейнер формы поиска */
.acadp-search-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Заголовок "Фильтры" */
.acadp-search-form .acadp-filters-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
}

.acadp-search-form .acadp-filters-title:hover {
    background-color: #f9fafb;
}

.acadp-search-form .acadp-filters-title.expanded {
    border-bottom: 1px solid #e5e7eb;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.acadp-search-form .acadp-filters-title svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

/* Поле поиска по ключевым словам */
.acadp-search-form .acadp-search-keyword {
    margin-bottom: 20px;
}

.acadp-search-form .acadp-search-keyword input {
    width: 100%;
    height: 40px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
}

.acadp-search-form .acadp-search-keyword input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.acadp-search-form .acadp-search-keyword input::placeholder {
    color: #9ca3af;
}

/* Выпадающий список категории */
.acadp-search-form .acadp-category-select {
    margin-bottom: 20px;
}

.acadp-search-form .acadp-category-select select {
    width: 100%;
    height: 40px;
    padding: 10px 40px 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m8 6 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acadp-search-form .acadp-category-select select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Секция фильтров */
.acadp-search-form .acadp-filters-section {
    margin-bottom: 24px;
}

/* Заголовок секции фильтра */
.acadp-search-form .acadp-filter-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
    cursor: pointer;
}

.acadp-search-form .acadp-filter-section-title .acadp-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.acadp-search-form .acadp-filter-section-title.expanded .acadp-arrow {
    transform: rotate(90deg);
}

/* Кнопки дней недели (множественный выбор) */
.acadp-search-form .acadp-weekdays-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.acadp-search-form .acadp-weekday-button {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.acadp-search-form .acadp-weekday-button:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.acadp-search-form .acadp-weekday-button.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Кнопки типов кухни (одиночный выбор) */
.acadp-search-form .acadp-cuisine-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.acadp-search-form .acadp-cuisine-button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.acadp-search-form .acadp-cuisine-button:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.acadp-search-form .acadp-cuisine-button.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Кнопки "Детям" (множественный выбор) */
.acadp-search-form .acadp-children-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.acadp-search-form .acadp-children-button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.acadp-search-form .acadp-children-button:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.acadp-search-form .acadp-children-button.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Выпадающие списки для других фильтров */
.acadp-search-form .acadp-filter-dropdown {
    margin-bottom: 16px;
}

.acadp-search-form .acadp-filter-dropdown select {
    width: 100%;
    height: 40px;
    padding: 10px 40px 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acadp-search-form .acadp-filter-dropdown select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Кнопки действий */
.acadp-search-form .acadp-action-buttons {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.acadp-search-form .acadp-button-reset {
    flex: 1;
    padding: 12px 24px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #6b7280;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.acadp-search-form .acadp-button-reset:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #374151;
}

.acadp-search-form .acadp-button-apply {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 9.113px;
    background: linear-gradient(90deg, #24BDFF 5.77%, #2155FC 157.69%), #2E6AFA;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.acadp-search-form .acadp-button-apply:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.acadp-search-form .acadp-button-apply:active {
    transform: translateY(0);
}

/* Секция фильтров */
.acadp-search-form .acadp-filters-section {
    display: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
}

.acadp-search-form .acadp-filters-section.expanded {
    display: block !important;
}

/* Секция фильтров - СКРЫТА по умолчанию */
.acadp-search-form .acadp-filters-section {
    display: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
}

/* Заголовок "Фильтры" - стрелка вправо по умолчанию */
.acadp-search-form .acadp-filters-title .acadp-arrow {
    transform: rotate(0deg) !important;
    transition: transform 0.2s ease !important;
}

/* Заголовок "Фильтры" - стрелка вниз при развернутом состоянии */
.acadp-search-form .acadp-filters-title.expanded .acadp-arrow {
    transform: rotate(90deg) !important;
}

/* ПРИНУДИТЕЛЬНОЕ ИСПРАВЛЕНИЕ - acadp-filters-title должен быть кликабельным */
.acadp-search-form .acadp-filters-title {
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Убираем любые блокирующие стили */
.acadp-search-form .acadp-filters-title * {
    pointer-events: auto !important;
}

/* Скрытие секций фильтров */
.acadp-search-form .acadp-filter-section-content {
    display: none;
}

.acadp-search-form .acadp-filter-section-content.expanded {
    display: block;
}

/* Стили для поля категории в figma форме */
.acadp-search-form.acadp-form-figma select[name="c"],
.acadp-search-form.acadp-form-figma select#c,
.acadp-search-form.acadp-form-figma .acadp-category-field,
.acadp-search-form.acadp-form-figma select.acadp-category-field {
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 8px 12px !important;
}

/* Стили для option элементов в figma форме */
.acadp-search-form.acadp-form-figma select[name="c"] option,
.acadp-search-form.acadp-form-figma select#c option {
    font-size: 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .acadp-search-form {
        padding: 16px;
        margin: 20px auto;
        border-radius: 15px;
        width: 95%;
        max-width: 400px;
        display: block !important;
    }
    
    .acadp-search-form .acadp-weekdays-buttons,
    .acadp-search-form .acadp-cuisine-buttons,
    .acadp-search-form .acadp-children-buttons {
        gap: 6px;
    }
    
    .acadp-search-form .acadp-weekday-button,
    .acadp-search-form .acadp-cuisine-button,
    .acadp-search-form .acadp-children-button {
        font-size: 14px;
        padding: 10px 16px;
        min-height: 44px;
    }
    
    .acadp-search-form .acadp-action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .acadp-search-form .acadp-button-reset,
    .acadp-search-form .acadp-button-apply {
        width: 100%;
    }
    
    /* Исправление для select полей на мобильных */
    .acadp-search-form .acadp-form-select,
    .acadp-search-form .acadp-category-select select,
    .acadp-search-form .acadp-filter-dropdown select,
    .acadp-search-form .acadp-search-keyword input {
        padding: 12px 45px 12px 16px; /* Увеличил padding для мобильных */
        font-size: 16px; /* Предотвращает зум на iOS */
        min-height: 50px; /* Увеличил высоту для лучшего тапа */
        background-position: right 14px center; /* Сдвинул стрелку */
        height: 50px !important;
    }
}

/* Стили для кастомных полей */
.acadp-search-form .acadp-form-group-custom-field {
    margin-bottom: 16px;
}

.acadp-search-form .acadp-form-group-custom-field .acadp-form-label {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

/* Стили для checkbox полей (множественный выбор) */
.acadp-search-form .acadp-form-checkbox-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border: none;
    padding: 0;
    max-height: none;
    overflow: visible;
}

.acadp-search-form .acadp-form-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin: 0;
}

.acadp-search-form .acadp-form-checkbox-group label:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.acadp-search-form .acadp-form-checkbox-group input[type="checkbox"] {
    display: none;
}

.acadp-search-form .acadp-form-checkbox-group input[type="checkbox"]:checked + label,
.acadp-search-form .acadp-form-checkbox-group label.checked {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Стили для radio полей (одиночный выбор) */
.acadp-search-form .acadp-form-radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border: none;
    padding: 0;
    max-height: none;
    overflow: visible;
}

.acadp-search-form .acadp-form-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin: 0;
}

.acadp-search-form .acadp-form-radio-group label:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.acadp-search-form .acadp-form-radio-group input[type="radio"] {
    display: none;
}

.acadp-search-form .acadp-form-radio-group input[type="radio"]:checked + label,
.acadp-search-form .acadp-form-radio-group label.checked {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Стили для select полей */
.acadp-search-form .acadp-form-select {
    width: 100%;
    height: 40px;
    padding: 10px 40px 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.acadp-search-form .acadp-form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Стили для option элементов */
.acadp-search-form .acadp-form-select option {
    padding: 12px 16px; /* Увеличил padding */
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4; /* Улучшил межстрочный интервал */
    font-size: 16px; /* Убедился что размер шрифта одинаковый */
}

/* Стили для text полей */
.acadp-search-form .acadp-form-input {
    width: 100%;
    height: 40px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
}

.acadp-search-form .acadp-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.acadp-search-form .acadp-form-input::placeholder {
    color: #9ca3af;
}

/* Стили для textarea полей */
.acadp-search-form .acadp-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: #ffffff;
    transition: border-color 0.2s ease;
    resize: vertical;
    min-height: 80px;
}

.acadp-search-form .acadp-form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.acadp-search-form .acadp-form-textarea::placeholder {
    color: #9ca3af;
}

/* Стили для number полей */
.acadp-search-form .acadp-form-input[type="number"] {
    width: 100%;
    height: 40px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
}

.acadp-search-form .acadp-form-input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Стили для date полей */
.acadp-search-form .acadp-form-control-date-picker {
    width: 100%;
    height: 40px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.acadp-search-form .acadp-form-control-date-picker:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Стили для checkbox и radio лейблов */
.acadp-search-form .acadp-checkbox-label,
.acadp-search-form .acadp-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin: 0;
}

.acadp-search-form .acadp-checkbox-label:hover,
.acadp-search-form .acadp-radio-label:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.acadp-search-form .acadp-checkbox-label input[type="checkbox"],
.acadp-search-form .acadp-radio-label input[type="radio"] {
    display: none;
}

.acadp-search-form .acadp-checkbox-label input[type="checkbox"]:checked + span,
.acadp-search-form .acadp-checkbox-label.checked,
.acadp-search-form .acadp-radio-label input[type="radio"]:checked + span,
.acadp-search-form .acadp-radio-label.checked {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Стили для активных checkbox и radio лейблов */
.acadp-search-form .acadp-checkbox-label:has(input[type="checkbox"]:checked),
.acadp-search-form .acadp-radio-label:has(input[type="radio"]:checked),
.acadp-search-form .acadp-checkbox-label.checked,
.acadp-search-form .acadp-radio-label.checked {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

/* Fallback для браузеров без поддержки :has() */
.acadp-search-form .acadp-checkbox-label input[type="checkbox"]:checked + span,
.acadp-search-form .acadp-radio-label input[type="radio"]:checked + span {
    color: #ffffff;
}

/* Стили для скрытых полей */
.acadp-search-form input[type="hidden"] {
    display: none;
}

/* Сообщение "нет фильтров" */
.acadp-search-form .acadp-no-filters {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin: 16px 0;
    text-align: center;
}

.acadp-search-form .acadp-no-filters-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.acadp-search-form .acadp-no-filters-text {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
}

/* Красивый спиннер загрузки */
.acadp-search-form .acadp-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin: 16px 0;
}

.acadp-search-form .acadp-spinner-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.acadp-search-form .acadp-spinner-dots div {
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    animation: acadp-bounce 1.4s ease-in-out infinite both;
}

.acadp-search-form .acadp-spinner-dots div:nth-child(1) {
    animation-delay: -0.32s;
}

.acadp-search-form .acadp-spinner-dots div:nth-child(2) {
    animation-delay: -0.16s;
}

.acadp-search-form .acadp-spinner-dots div:nth-child(3) {
    animation-delay: 0s;
}

@keyframes acadp-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.acadp-search-form .acadp-loading-spinner span {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
}

/* Адаптивность для спиннера и сообщений */
@media (max-width: 768px) {
    .acadp-search-form .acadp-loading-spinner {
        padding: 30px 15px;
    }
    
    .acadp-search-form .acadp-loading-spinner span {
        font-size: 14px;
    }
    
    .acadp-search-form .acadp-spinner-dots div {
        width: 10px;
        height: 10px;
    }
    
    .acadp-search-form .acadp-no-filters {
        padding: 30px 15px;
    }
    
    .acadp-search-form .acadp-no-filters-icon {
        font-size: 28px;
    }
    
    .acadp-search-form .acadp-no-filters-text {
        font-size: 14px;
    }
}

/* Шрифт Montserrat для всей формы поиска */
.acadp-search-form,
.acadp-search-form *,
.acadp-search-form input,
.acadp-search-form select,
.acadp-search-form button,
.acadp-search-form .acadp-form-control,
.acadp-search-form .acadp-form-select,
.acadp-search-form .acadp-button-primary,
.acadp-search-form .acadp-filters-title,
.acadp-search-form .acadp-search-keyword,
.acadp-search-form .acadp-form-group,
.acadp-search-form .acadp-form-label,
.acadp-search-form .acadp-form-control,
.acadp-search-form .acadp-form-select,
.acadp-search-form .acadp-button,
.acadp-search-form .acadp-button-primary,
.acadp-search-form .acadp-button-secondary {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
}

/* Дополнительные стили для максимальной специфичности */
html body .acadp-search-form,
html body .acadp-search-form *,
html body .acadp-search-form input,
html body .acadp-search-form select,
html body .acadp-search-form button,
html body .acadp-search-form .acadp-form-control,
html body .acadp-search-form .acadp-form-select,
html body .acadp-search-form .acadp-button-primary {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
}

/* Универсальные стили для всех полей ввода - одинаковые размеры */
.acadp-search-form input,
.acadp-search-form select,
.acadp-search-form .acadp-form-control,
.acadp-search-form .acadp-form-select,
.acadp-search-form .acadp-form-input,
.acadp-search-form .acadp-form-control-date-picker {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

/* Кнопка "Фильтры" - такие же размеры как поля */
.acadp-search-form .acadp-filters-title {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
    /* ВАЖНО: Сохраняем интерактивность */
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
}

/* ПРИНУДИТЕЛЬНО: Стрелочка вправо для поля "Тип объекта" */
.acadp-search-form .acadp-category-select select,
.acadp-search-form .acadp-category-select select:focus,
.acadp-search-form .acadp-category-select select:hover,
.acadp-search-form .acadp-category-select select:active,
.acadp-search-form .acadp-category-select select:visited,
html body .acadp-search-form .acadp-category-select select,
html body .acadp-search-form .acadp-category-select select:focus,
html body .acadp-search-form .acadp-category-select select:hover,
html body .acadp-search-form .acadp-category-select select:active {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m8 6 4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
}

/* ДОПОЛНИТЕЛЬНО: Универсальные стили для всех select полей */
.acadp-search-form select,
.acadp-search-form .acadp-form-select,
.acadp-search-form .acadp-category-select select,
.acadp-search-form .acadp-filter-dropdown select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m8 6 4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
}

/* МАКСИМАЛЬНЫЙ ПРИОРИТЕТ: Принудительно стрелочка вправо */
html body .acadp-search-form .acadp-category-select select,
html body .acadp-search-form .acadp-category-select select *,
html body .acadp-search-form .acadp-category-select select:before,
html body .acadp-search-form .acadp-category-select select:after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m8 6 4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
}
