/* Стили для страницы поиска */
.search-results {
    padding: 40px 0;
}

.search-header {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-header h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
}

.search-params {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.param-item {
    display: flex;
    flex-direction: column;
}

.param-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.param-value {
    font-weight: 600;
    color: #333;
}

.results-count {
    color: #667eea;
    font-weight: 600;
    margin-top: 10px;
}

.flight-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.flight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.airline-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.airline-logo {
    width: 50px;
    height: 50px;
    background-color: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.airline-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.flight-number {
    color: #666;
    font-size: 14px;
}

.flight-class {
    background-color: #e6f7ff;
    color: #1890ff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.flight-details {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.route-info {
    text-align: center;
}

.city-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.airport-name {
    color: #666;
    font-size: 14px;
}

.time {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.date {
    color: #666;
    font-size: 14px;
}

.flight-duration {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.duration-value {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.flight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.price-info {
    text-align: right;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
}

.per-passenger {
    font-size: 12px;
    color: #999;
}

.btn-book {
    background-color: #667eea;
    color: white;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-book:hover {
    background-color: #5a67d8;
}

.no-flights {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-flights h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

.btn-back {
    background-color: #667eea;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}

.filters-sidebar {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filters-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.filter-option label {
    color: #555;
    cursor: pointer;
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-apply {
    background-color: #667eea;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.btn-apply:hover {
    background-color: #5a67d8;
}

.search-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .search-layout {
        grid-template-columns: 1fr;
    }
    
    .flight-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .flight-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .price-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .search-params {
        flex-direction: column;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flight-card {
    animation: fadeIn 0.5s ease-out;
}
/* Добавим в существующие CSS файлы */

input.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

input.error + .error-message {
    display: block;
}