/* ============================================
   SEARCH FORM STYLES
   ============================================ */

.search-form {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-group label svg {
    width: 16px;
    height: 16px;
    color: #f9b442;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    color: #1f2937;
    background: white;
    transition: all 0.3s ease;
    font-family: 'Figtree', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #f9b442;
    box-shadow: 0 0 0 3px rgba(249, 180, 66, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input[type="date"],
.form-group input[type="time"] {
    cursor: pointer;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23374151'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-submit {
    grid-column: 1 / -1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: 'Figtree', sans-serif;
}

.btn-primary {
    background: #f9b442;
    color: #000;
    box-shadow: 0 4px 12px rgba(249, 180, 66, 0.3);
}

.btn-primary:hover {
    background: #e39f2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 180, 66, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    width: 100%;
}

/* Form Validation States */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Loading State */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled:hover {
    transform: none;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .search-form {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .form-grid {
        gap: 1.25rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.75rem 0.875rem;
        font-size: 0.9375rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Dark Input Backgrounds for Better Contrast */
.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(0.5);
}

/* Autocomplete Dropdown Positioning */
.form-group {
    position: relative;
}

/* Yandex Suggestions Container */
.yandex-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #fef3e2;
}

.suggestion-item i {
    color: #f9b442;
    margin-right: 8px;
}
