/* ===================================
   Search Form Styles
   =================================== */

/* Wrapper */
.search-form-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Grid Layout */
.search-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    align-items: end;
}

/* Form Field */
.form-field {
    display: flex;
    flex-direction: column;
}

/* Label */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

/* Custom Select */
.form-select-custom {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23333' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.form-select-custom:hover {
    border-color: #7166f0;
    background-color: #fff;
}

.form-select-custom:focus {
    border-color: #7166f0;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(113, 102, 240, 0.1);
}

.form-select-custom option {
    padding: 10px;
    font-weight: 400;
    background-color: #fff;
}

/* Input */
.form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:hover {
    border-color: #7166f0;
    background-color: #fff;
}

.form-input:focus {
    border-color: #7166f0;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(113, 102, 240, 0.1);
}

.form-input::placeholder {
    color: #999;
    font-weight: 400;
}

/* Checkbox Field */
.form-field-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #7166f0;
}

.checkbox-label span {
    line-height: 1;
}

/* Search Button */
.form-field-button {
    display: flex;
    align-items: flex-end;
}

.search-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background-color: #ffc107;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn:hover {
    background-color: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

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

.search-btn i {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .search-form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .search-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-form-wrapper {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .search-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .form-select-custom,
    .form-input,
    .search-btn {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .form-select-custom {
        padding-right: 35px;
    }
}
