* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #1e88e5;
    --secondary-color: #0d47a1;
    --accent-color: #43a047;
    --light-color: #f5f7fa;
    --dark-color: #333;
    --gray-color: #757575;
    --border-color: #ddd;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --warning-color: #ff9800;
    --error-color: #f44336;
}

body {
    background-color: #f9f9f9;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
}

.logo i {
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.9;
    color: white;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #388e3c;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)), url('/img/bus_1.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
    height: 100%;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Search Section */
.search-section {
    background-color: #ffffff87;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    transform: translateY(-40px);
    margin-top: 70px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--secondary-color);
    text-align: center;
}

.search-form {
    /*display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
     */
}
#input-information{
    display: flex;
    flex-direction: row;
    gap:5px;
}
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 15px;
}

.form-control {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}
.form-group.dates {
    max-width: 135px;
}
.form-group.destination {
    width: 280px;
}
.trip-type {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
   /* border: 1px solid var(--border-color);*/
}

.trip-option {
    flex: 1;
    text-align: center;
    padding: 7px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 11px !important;
    align-content: center;
}
.trip-arrival{
    text-align: right;
}
.trip-option.active {
    background-color: var(--primary-color);
    color: white;
}
.m-s-form{
    padding: 5px;
}
#pp-input-result{
    display: flex;
    flex-direction: column;
    max-height: 300px;
    overflow-y: scroll;
}
.station-val{
    font-size: 14px;
    padding: 5px;
}
.station-val:hover{
    background: #f2f5f7;
    cursor: pointer;
}
.search-btn {
    grid-column: 1 / -1;
    padding: 15px;
    background-color: var(--accent-color);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #388e3c;
}

/* Results Section */
.results-section {
    display: none;
    margin-bottom: 40px;
}

.trip-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.trip-info {
    flex: 1;
    min-width: 300px;
}

.trip-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.trip-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-color);
}

.trip-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-color);
}
.trip-prices {
    text-align: center;
    width: 200px;
}
.select-seats-btn {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.select-seats-btn:hover {
    background-color: var(--secondary-color);
}

/* Bus Layout Section */
.bus-layout-section {
    display: none;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.bus-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.bus-front {
    width: 200px;
    height: 40px;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.bus-body {
    display: grid;
    grid-template-columns: repeat(4, 60px);
    grid-auto-rows: 60px;
    gap: 10px;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.seat {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    user-select: none;
}

.seat:hover {
    transform: scale(1.05);
}

.seat.selected {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.seat.occupied {
    background-color: #e0e0e0;
    color: #bdbdbd;
    cursor: not-allowed;
}

.driver-seat {
    grid-column: 1;
    grid-row: 1 / 3;
    background-color: #555;
    color: white;
    cursor: default;
    font-size: 12px;
    text-align: center;
}

.aisle {
    grid-column: 2 / 4;
    grid-row: 1 / 7;
    background-color: transparent;
    border: none;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--gray-color);
}

.seat-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.available-color {
    background-color: white;
    border: 2px solid var(--border-color);
}

.selected-color {
    background-color: var(--accent-color);
}

.occupied-color {
    background-color: #e0e0e0;
}

.booking-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 10px;
}

.booking-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* Passenger Data Section */
.passenger-data-section {
    display: none;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 150px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -75px;
    width: 150px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step.active:not(:last-child)::after {
    background-color: var(--accent-color);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    z-index: 2;
}

.step.active .step-circle {
    background-color: var(--accent-color);
}

.step.completed .step-circle {
    background-color: var(--primary-color);
}

.step.completed:not(:last-child)::after {
    background-color: var(--primary-color);
}

.step-text {
    font-size: 14px;
    text-align: center;
    color: var(--gray-color);
}

.step.active .step-text {
    color: var(--dark-color);
    font-weight: 600;
}

.passenger-form {
    margin-bottom: 30px;
}

.passenger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f7ff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.passenger-title {
    font-size: 20px;
    color: var(--primary-color);
}

.passenger-seat {
    font-weight: 600;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-note {
    font-size: 14px;
    color: var(--gray-color);
    margin-top: 5px;
    font-style: italic;
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-control.error {
    border-color: var(--error-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}
.pays-select-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.pays-select {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pays-select:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.15);
}

.pays-select.selected {
    border-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
}

.pays-select.selected::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #48bb78;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.pays-select-img {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pays-select-img img {
    max-width: 100%;
    max-height: 100%;
}

.pays-select-labels {
    flex: 1;
}

.pays-select-label {
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

.pays-select-label i {
    color: #a0aec0;
    margin-left: 5px;
    transition: color 0.2s ease;
}

.pays-select-label i:hover {
    color: #667eea;
}
.pays-select.checked {
    border-color: #248305;
}
/* FAQ секция для SEO */
.faq-section { background-color: white; border-radius: 10px; padding: 30px; margin-top: 40px; box-shadow: var(--shadow); }
.faq-item { margin-bottom: 20px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.faq-question { font-size: 18px; font-weight: 700; color: var(--secondary-color); margin-bottom: 10px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question i { transition: transform 0.3s; }
.faq-answer { display: none; padding-top: 10px; color: var(--gray-color); line-height: 1.8; }
.faq-answer.active { display: block; }
.faq-question.active i { transform: rotate(180deg); }

/* Преимущества */
.benefits-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin: 40px 0; }
.benefit-card { background-color: white; border-radius: 10px; padding: 25px; text-align: center; box-shadow: var(--shadow); transition: transform 0.3s; }
.benefit-card:hover { transform: translateY(-5px); }
.benefit-icon { font-size: 48px; color: var(--primary-color); margin-bottom: 15px; }
.benefit-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.benefit-text { color: var(--gray-color); }
/* Responsive */
@media (max-width: 768px) {
    .form-group.dates {
        max-width: 100%;
    }
    .form-group.destination {
        width: 100%;
    }
    #input-information{
        flex-direction: column;
    }
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .trip-card {
        flex-direction: column;
        gap: 20px;
    }
    .trip-route {
        align-items: start;
        flex-direction: column;
    }
    .trip-details {
        flex-direction: column;
    }
    .trip-info {
        min-width: 100%;
    }
    .trip-prices {
        width: 100%;
    }
    .trip-arrival{
        text-align: left;
    }
    .bus-body {
        grid-template-columns: repeat(4, 50px);
        grid-auto-rows: 50px;
        gap: 8px;
        padding: 15px;
    }

    .booking-actions {
        flex-direction: column;
    }

    .booking-actions .btn {
        width: 100%;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .step {
        width: 100px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}