/* Reset básico e fontes */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5; /* Cinza claro para o fundo da página */
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #1c1c1e; /* Tom de cinza bem escuro, quase preto */
    color: #ffffff;
    padding: 1rem 0;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */ /* Sombra pode não ser necessária com fundo escuro */
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

nav .logo a {
    color: #dfff00; /* Amarelo neon para o logo */
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center; /* Alinhar itens verticalmente */
}

nav ul li {
    margin-left: 15px; /* Ajustei */
}

nav ul li a {
    color: #f5f5f7; /* Branco levemente acinzentado para links */
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #dfff00; /* Amarelo neon no hover */
    background-color: rgba(255,255,255,0.05); 
}

.login-button .btn {
    background-color: #dfff00; /* Amarelo neon */
    color: #1c1c1e; /* Texto escuro */
    padding: 0.5rem 1.2rem; /* Mais padding horizontal */
    text-decoration: none;
    border-radius: 20px; /* Mais arredondado */
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login-button .btn:hover {
    background-color: #c7eb00; /* Amarelo um pouco mais escuro no hover */
    color: #000000;
}

main {
    max-width: 100%; /* Permitir que a hero section ocupe toda a largura */
    margin: 0 auto;
    padding: 0;
    background-color: #f0f2f5; /* Cor de fundo geral da página */
    border-radius: 0;
    box-shadow: none;
}

/* ===== HERO SECTION MODERNA ===== */
.hero-modern {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 110%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    filter: brightness(0.9);
    transform: translateX(-9%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 2;
}

.hero-modern .container {
    position: relative;
    z-index: 3;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-content {
    color: white;
    padding: 1.0rem 0;
    z-index: 3;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.text-highlight {
    color: #FFD700;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #fff700, #ffed4e);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff700;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* ===== SEARCH CARD ===== */
.search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    margin-right: 0;
    z-index: 3;
    position: relative;
    min-width: 510px;
    width: 510px;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.search-header h3 i {
    color: #ffc107;
    margin-right: 0.5rem;
}

.search-header p {
    color: #6c757d;
    margin: 0;
}

.search-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-form .form-group {
    margin-bottom: 0;
    min-width: 200px;
}

.search-form label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.search-form label i {
    color: #ffc107;
    margin-right: 0.5rem;
    width: 16px;
}

.search-form .form-select,
.search-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    min-width: 200px;
}

.search-form .form-select:focus,
.search-form .form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    outline: none;
}

.btn-search {
    width: 100%;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.btn-search:active {
    transform: translateY(0);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: #ffc107;
}

.feature-icon-wrapper {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon {
    color: white;
    font-size: 1.8rem;
}

.feature-content h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.feature-content p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* ===== POPULAR TRIPS SECTION ===== */
.popular-trips-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.trip-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.trip-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.trip-header {
    padding: 1.5rem;
    position: relative;
}

.trip-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.trip-route-modern {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.route-point {
    flex: 1;
    text-align: center;
}

.route-point i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.route-point.origin i {
    color: #ffc107;
}

.route-point.destination i {
    color: #ff9800;
}

.route-point span {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.route-point small {
    color: #6c757d;
    font-size: 0.8rem;
}

.route-line {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 60px;
}

.route-line .line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ffc107 0%, #ff9800 100%);
    position: absolute;
}

.route-icon {
    background: white;
    color: #007bff;
    font-size: 1.2rem;
    padding: 0.3rem;
    border-radius: 50%;
    border: 2px solid #ffc107;
    position: relative;
    z-index: 1;
}

.trip-info {
    padding: 0 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trip-date-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
}

.trip-date-modern i {
    color: #007bff;
}

.trip-price-modern {
    text-align: right;
}

.price-from {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff9800;
}

.trip-actions-modern {
    padding: 1.5rem;
    border-top: 1px solid #f1f3f4;
}

.btn-reserve {
    width: 100%;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
    color: white;
    text-decoration: none;
}

.no-trips-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-trips-message i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.no-trips-message h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Seção Institucional */
.institutional-section {
    background: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    color: #f5f5f7;
    padding: 60px 0 40px;
    margin-top: 60px;
}

.footer-title {
    color: #dfff00;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 2px solid #dfff00;
    padding-bottom: 8px;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #f5f5f7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #dfff00;
    text-decoration: none;
}

.footer-links i {
    width: 18px;
    margin-right: 8px;
    color: #dfff00;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-info i {
    color: #dfff00;
    margin-right: 8px;
    width: 18px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(223, 255, 0, 0.1);
    color: #dfff00;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background-color: #dfff00;
    color: #1c1c1e;
    transform: translateY(-2px);
}

.company-info p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.company-info i {
    color: #dfff00;
    margin-right: 8px;
    width: 18px;
}

.security-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-badge {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.security-badge:hover {
    opacity: 1;
}

.guarantees-section {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.guarantees-section h6 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: bold;
}

.guarantee-item {
    padding: 20px 15px;
}

.guarantee-icon {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 15px;
    display: block;
}

.guarantee-item h6 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.guarantee-item p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Seção de Depoimentos */
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card .stars {
    color: #ffc107;
    font-size: 1rem;
    margin-bottom: 15px;
}

.testimonial-card .stars i {
    margin-right: 2px;
}

.testimonial-card p {
    color: #2c3e50;
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 60px;
}

.testimonial-author strong {
    color: #2c3e50;
    display: block;
    font-size: 1rem;
    margin-bottom: 5px;
}

.testimonial-author small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .features-grid,
    .trips-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-modern {
        min-height: 90vh;
    }
    
    .hero-modern .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-modern .row {
        justify-content: center;
    }
    
    .hero-content {
        padding-left: 1rem;
        margin-left: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .search-card {
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem;
        min-width: auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-form .form-group {
        min-width: auto;
        width: 100%;
    }
    
    .search-form .form-select,
    .search-form .form-control {
        min-width: auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .features-grid,
    .trips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .trip-route-modern {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .route-line {
        transform: rotate(90deg);
        height: 40px;
    }
    
    .trip-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .institutional-section {
        padding: 40px 0 30px;
        margin-top: 40px;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .guarantees-section {
        padding: 20px 15px;
    }
    
    .guarantee-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    .testimonial-card {
        margin-bottom: 20px;
    }
    
    .hero-overlay {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.6) 0%, rgba(255, 165, 0, 0.8) 100%);
    }
    
    .hero-image {
        width: 100%;
        transform: translateX(0);
    }
    
    .form-group, .form-select, .form-control {
        min-width: auto;
    }
}

/* Rodapé básico */
footer {
    text-align: center;
    padding: 25px 20px;
    background-color: #0d0d0f;
    color: #f8f9fa;
    font-size: 0.9rem;
    border-top: 1px solid #2c2c2e;
}

/* Estilos para formulários (exemplo) */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500; /* Um pouco menos forte que 600 */
    color: #495057;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-control, .form-select {
    border-radius: 6px; /* Bordas suavemente arredondadas */
    padding: 0.8rem 1rem; /* Padding interno */
    border: 1px solid #ced4da;
    height: auto;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe; /* Azul claro no focus, padrão Bootstrap */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Sombra no focus, padrão Bootstrap */
}

.btn-primary.btn-search-main {
    background-color: #dfff00; /* Amarelo neon */
    color: #1c1c1e; /* Texto escuro */
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold; /* Mais forte */
    flex: 0 0 auto; /* Não cresce, não encolhe, largura automática ou definida */
    height: calc(0.75rem * 2 + 1rem * 1.6 + 2px + 0.75rem); /* Alinhar altura com inputs */
    line-height: 1.6; /* Ajuste para centralizar texto verticalmente */
    text-transform: uppercase;
}

/* Ajustes para a imagem do herói como na referência */
.hero-section {
    background-color: #2d2d2f; /* Cinza escuro para a hero section */
    /* Para adicionar uma imagem de fundo depois: */
    /* background-image: url('../images/hero-background.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    padding: 80px 20px 120px 20px; /* Mais padding, especialmente inferior para o form sobrepor */
    text-align: left; /* Alinhar texto à esquerda como no embarca.ai */
    color: #ffffff;
    position: relative; /* Para elementos posicionados dentro ou pseudo-elementos */
}

.hero-section .container {
    max-width: 1200px; /* Para alinhar com o header */
    margin: 0 auto;
    position: relative; /* Para z-index do conteúdo de texto sobre imagem/gráfico */
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem; /* Grande */
    font-weight: 700;
    color: #dfff00; /* Amarelo neon */
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section p.subtitle {
    font-size: 1.5rem;
    color: #f5f5f7; /* Branco suave */
    margin-bottom: 2rem;
    max-width: 600px; /* Limitar largura do subtítulo */
}

/* Removendo a estilização antiga das estrelas, pois não está no novo design */
.hero-section .stars {
    display: none; 
}

.search-form-wrapper {
    /* Este wrapper ajudará a posicionar o card do formulário */
    position: relative;
    margin-top: -80px; /* Sobreposição com a hero section */
    z-index: 10;
}

.search-form-container {
    background-color: #ffffff;
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.1); 
    max-width: 1100px; /* Largo */
    margin: 0 auto 40px auto; /* Centralizado, com margem inferior */
}

.search-form-container h2 {
    display: none; /* Não temos título dentro do card no novo design */
}

.search-form-container p.intro-text {
    display: none; /* Não temos texto de introdução no novo design */
}

.search-form-fields {
    display: flex;
    flex-wrap: wrap; /* Quebra para telas menores */
    gap: 20px; /* Espaço entre os campos */
    align-items: flex-end; /* Alinha os botões e campos na base */
}

.search-form-fields .form-group {
    flex: 1 1 200px; /* Flex-grow, flex-shrink, base width */
    margin-bottom: 0; /* Removido margin-bottom individual, o gap cuida disso */
}

.search-form-fields label {
    font-weight: 600; /* Mais forte para os labels do form */
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.form-control, .form-select {
    border-radius: 8px; /* Mais arredondado */
    padding: 0.75rem 1rem;
    border: 1px solid #d1d1d6; /* Borda mais suave */
    height: auto;
    font-size: 1rem;
    width: 100%; /* Ocupar todo o espaço do flex item */
}

.input-group-icon {
    position: relative;
}

.input-group-icon .form-control {
    padding-left: 2.5rem; /* Espaço para o ícone */
}

.input-group-icon .icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8e8e93;
}

/* Estilos genéricos de form-group que estavam mais abaixo, movidos para cima e talvez redundantes */
/* Os estilos de .form-group e .form-group label já foram definidos dentro de .search-form-fields */
/* Se precisar de um .form-group genérico, descomente e ajuste. */
/*
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500; 
    color: #495057;
}
*/

footer {
    text-align: center;
    padding: 25px 20px; 
    background-color: #343a40; 
    color: #f8f9fa; 
    margin-top: 40px; 
    font-size: 0.9rem;
}

/* Responsive adjustments - Reativando com correção */

@media (max-width: 991px) { 
    .search-form-fields .form-group {
        flex-basis: calc(50% - 10px); 
    }
    .btn-primary.btn-search-main {
        flex-basis: 100%; 
        margin-top: 10px;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section p.subtitle {
        font-size: 1.3rem;
    }
    .feature-card {
        margin-bottom: 30px; 
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 60px 20px 100px 20px; 
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p.subtitle {
        font-size: 1.1rem;
        max-width: none;
    }
    .search-form-wrapper {
        margin-top: -60px; 
    }
    .search-form-container {
        padding: 20px;
    }
    .search-form-fields .form-group {
        flex-basis: 100%; 
    }
    nav .logo a {
        font-size: 1.6rem;
    }
    nav ul {
        flex-wrap: wrap; 
        justify-content: center;
    }
    nav ul li {
        margin: 5px;
    }
    .feature-section h2 {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }
    .feature-icon {
        font-size: 3rem;
    }
    .feature-card h4 {
        font-size: 1.15rem;
    }
}

/* Estilos para a Seção de Vantagens */
.feature-section {
    padding: 60px 0; /* Espaçamento vertical */
    background-color: #f0f2f5; /* Fundo da cor geral da página */
}

.feature-section h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 4rem; /* Mais espaço após o título */
    position: relative;
    display: inline-block; /* Para a linha abaixo ficar contida */
    padding-bottom: 10px;
}

/* Linha decorativa abaixo do título */
.feature-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #dfff00; /* Amarelo neon */
    border-radius: 2px;
}

.feature-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Para garantir alinhamento se as alturas variarem */
    border: 1px solid #e9ecef; /* Borda sutil */
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 3.5rem; /* Ícones maiores */
    margin-bottom: 1.5rem;
    color: #1c1c1e; /* Cor escura */
    /* Ou usar a cor secundária: color: #007bff; */
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #343a40;
}

.feature-card p {
    color: #6c757d; /* Cinza mais claro */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Estilos para a Seção de Viagens Populares */
.frequent-trips-section {
    padding: 60px 0;
    background-color: #ffffff; /* Fundo branco para esta seção */
}

.frequent-trips-section h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block; 
    padding-bottom: 10px;
}

.frequent-trips-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #dfff00; /* Amarelo neon */
    border-radius: 2px;
}

.trip-card-popular {
    background-color: #f8f9fa; /* Fundo levemente cinza para os cards */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; 
    border: 1px solid #e9ecef; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Para empurrar o botão para baixo */
}

.trip-card-popular:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.trip-card-popular h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #343a40;
    line-height: 1.4;
}

.trip-card-popular h5 i {
    font-size: 0.8em; /* Ícone de seta menor */
    color: #6c757d;
}

.trip-card-popular .trip-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.trip-card-popular .trip-price {
    font-size: 1rem;
    color: #ff9800; /* Laranja para o preço */
    margin-bottom: 1.2rem;
}

.trip-card-popular .trip-price strong {
    font-size: 1.2rem;
    font-weight: 700;
}

.trip-card-popular .btn-comprar {
    background-color: #dfff00; /* Amarelo neon */
    color: #1c1c1e; /* Texto escuro */
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease;
    align-self: center; /* Centralizar o botão se o card for maior */
    width: 80%; /* Largura do botão */
}

.trip-card-popular .btn-comprar:hover {
    background-color: #c7eb00; /* Amarelo um pouco mais escuro no hover */
    color: #000000;
    transform: translateY(-2px);
}

/* ESTILOS PARA COMPROVANTE DE PASSAGEM */
.comprovante-container {
    max-width: 850px; /* Um pouco mais largo */
    margin: 40px auto;
    padding: 0 15px; /* Adiciona padding lateral no container */
}

.comprovante {
    background-color: #ffffff;
    border-radius: 12px; /* Bordas mais suaves */
    box-shadow: 0 6px 25px rgba(0,0,0,0.08); /* Sombra mais sutil */
    overflow: hidden;
    position: relative;
    border: 1px solid #e9ecef; /* Borda leve */
}

.comprovante-header {
    background-color: #1c1c1e; /* Mesmo cinza escuro do header principal */
    padding: 25px 30px;
    text-align: center;
    color: #dfff00; /* Amarelo neon */
}

.comprovante-header h2 {
    margin: 0 0 5px 0;
    font-weight: 700; /* Mais forte */
    font-size: 1.8rem;
}

.comprovante-header p {
    margin: 0;
    font-size: 0.95rem;
    color: #f5f5f7; /* Branco suave */
}

.comprovante-body {
    padding: 25px 30px 30px 30px; /* Ajuste no padding */
}

.ticket-number {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.viagem-header { /* Header interno do comprovante com rota e QR */
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    background-color: #f8f9fa; /* Fundo levemente cinza */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.viagem-rota {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around; /* Espaçar melhor origem/destino */
}

.city-label {
    text-align: center;
}

.city-name {
    font-size: 1.5rem; /* Maior */
    font-weight: 600; /* Negrito */
    color: #343a40; /* Cinza escuro */
    margin-bottom: 2px;
}

.city-state {
    font-size: 0.85rem;
    color: #6c757d; /* Cinza mais claro */
    text-transform: uppercase;
}

.route-arrow {
    color: #adb5bd; /* Cinza para a seta */
    font-size: 1.8rem;
    margin: 0 20px;
}

.qr-code { /* Container do QR Code */
    /* width: 130px; */ /* Removido para img definir */
    /* height: 130px; */ /* Removido para img definir */
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background-color: #ffffff;
    text-align: center;
    margin-left: 25px; /* Espaçamento */
}

.qr-code img {
    max-width: 120px; /* Controlar tamanho da imagem */
    height: auto;
    display: block;
    margin-bottom: 5px;
}
.qr-code small {
    font-size: 0.7rem;
    color: #6c757d;
    word-break: break-all; /* Quebrar o código se for muito longo */
}


.info-section {
    margin-bottom: 28px; /* Mais espaço entre seções */
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f5; /* Linha divisória sutil */
}
.info-section:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.info-section h4 {
    margin-bottom: 18px; /* Mais espaço abaixo do título da seção */
    color: #212529; /* Preto suave */
    font-size: 1.25rem; /* Um pouco maior */
    font-weight: 600; /* Negrito */
    display: flex;
    align-items: center;
}

.info-section h4 i {
    margin-right: 10px; /* Espaço para o ícone */
    color: #1c1c1e; /* Cor do ícone (mesma do header) */
}

.info-row {
    display: flex; /* Lado a lado */
    flex-wrap: wrap; /* Quebrar se necessário em telas pequenas */
    margin-bottom: 10px; /* Espaço entre as linhas de info */
    font-size: 0.95rem; /* Tamanho base para info */
}
.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    flex: 0 0 170px; /* Largura fixa para o rótulo */
    font-weight: 600; /* Negrito para o rótulo */
    color: #495057; /* Cinza escuro para o rótulo */
    padding-right: 10px; /* Espaço entre label e value */
}

.info-value {
    flex: 1; /* O valor ocupa o restante do espaço */
    color: #343a40; /* Cinza um pouco mais escuro para o valor */
}

/* Para layout de colunas dentro das seções de info */
.info-section .row .col-md-6 {
    margin-bottom: 0; /* Resetar margem se estiver usando colunas Bootstrap */
}


.ticket-footer {
    margin-top: 30px;
    border-top: 1px dashed #ced4da; /* Linha tracejada mais visível */
    padding-top: 20px;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

.ticket-footer p {
    margin-bottom: 8px;
}

/* Ajustes para botões na página de comprovante */
.comprovante-container .text-center.mt-4.no-print .btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
}
.comprovante-container .text-center.mt-4.no-print .btn-primary {
    background-color: #dfff00;
    color: #1c1c1e;
    border-color: #dfff00;
}
.comprovante-container .text-center.mt-4.no-print .btn-primary:hover {
    background-color: #c7eb00;
    border-color: #c7eb00;
    color: #000;
}
.comprovante-container .text-center.mt-4.no-print .btn-outline-secondary {
    color: #495057;
    border-color: #adb5bd;
}
.comprovante-container .text-center.mt-4.no-print .btn-outline-secondary:hover {
    background-color: #e9ecef;
}


/* Melhorias para impressão */
@media print {
    body {
        background-color: #fff !important; /* Fundo branco para impressão */
        color: #000 !important; /* Texto preto */
        font-size: 10pt; /* Tamanho de fonte para impressão */
        margin: 0;
        padding: 0;
    }
    header, footer, .no-print { /* Ocultar header, footer e elementos no-print */
        display: none !important;
    }
    .container, .comprovante-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    .comprovante {
        box-shadow: none !important;
        border: 1px solid #ccc !important; /* Borda simples na impressão */
        border-radius: 0 !important;
        margin: 0;
    }
    .comprovante-header {
        background-color: #eee !important; /* Fundo cinza claro para o header na impressão */
        color: #000 !important;
        padding: 15px !important;
    }
    .comprovante-header h2 {
        font-size: 16pt !important;
    }
    .comprovante-body {
        padding: 15px !important;
    }
    .ticket-number { /* Ajustar número do ticket para impressão */
        position: static !important;
        text-align: right;
        background: none !important;
        color: #000 !important;
        padding: 0 0 10px 0 !important;
        font-size: 10pt !important;
        border: none !important;
    }
    .viagem-header {
        padding: 10px !important;
        margin-bottom: 15px !important;
        border: 1px solid #ddd !important;
    }
    .city-name {
        font-size: 12pt !important;
    }
    .qr-code {
        border: 1px solid #aaa !important;
        padding: 5px !important;
        margin-left: 15px !important;
    }
    .qr-code img {
        max-width: 100px !important;
    }
    .info-section {
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
    }
    .info-section h4 {
        font-size: 11pt !important;
        margin-bottom: 10px !important;
    }
    .info-label, .info-value {
        font-size: 9pt !important;
    }
    .info-label {
        flex-basis: 150px !important; /* Ajustar base do label na impressão */
    }
    .btn, .text-center.mt-4.no-print { /* Ocultar botões de ação na impressão */
        display: none !important;
    }
     .ticket-footer {
        font-size: 8pt !important;
        padding-top: 10px !important;
        margin-top: 15px !important;
    }
}

/* FIM ESTILOS PARA COMPROVANTE DE PASSAGEM */

@media (max-width: 991px) {
    .search-form-fields .form-group {
        flex-basis: calc(50% - 10px); 
    }
    .btn-primary.btn-search-main {
        flex-basis: 100%; 
        margin-top: 10px;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section p.subtitle {
        font-size: 1.3rem;
    }
    .feature-card {
        margin-bottom: 30px; 
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 60px 20px 100px 20px; 
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p.subtitle {
        font-size: 1.1rem;
        max-width: none;
    }
    .search-form-wrapper {
        margin-top: -60px; 
    }
    .search-form-container {
        padding: 20px;
    }
    .search-form-fields .form-group {
        flex-basis: 100%; 
    }
    nav .logo a {
        font-size: 1.6rem;
    }
    nav ul {
        flex-wrap: wrap; 
        justify-content: center;
    }
    nav ul li {
        margin: 5px;
    }
    .feature-section h2 {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }
    .feature-icon {
        font-size: 3rem;
    }
    .feature-card h4 {
        font-size: 1.15rem;
    }
}

/* ESTILOS PARA MINHAS VIAGENS */
.viagem-card-lista {
    border: 1px solid #e9ecef; /* Borda suave */
    transition: box-shadow 0.3s ease-in-out;
}

.viagem-card-lista:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important; /* Sombra sutil no hover */
}

.viagem-card-lista .card-header {
    background-color: #f8f9fa; /* Cinza bem claro, quase branco */
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1.25rem;
}

.viagem-card-lista .viagem-data-hora .badge {
    font-size: 0.9em;
    padding: 0.4em 0.7em;
}

.viagem-card-lista .card-title {
    font-size: 1.15rem; /* Tamanho do título da rota */
    font-weight: 500;
    color: #343a40;
}

.viagem-card-lista .card-body {
    padding: 1.25rem;
}

.viagem-card-lista .card-body p {
    font-size: 0.9rem; /* Tamanho dos detalhes da viagem */
    color: #495057; /* Cor do texto dos detalhes */
}

.viagem-card-lista .card-body p i.fa-fw {
    color: #6c757d; /* Cor dos ícones */
    width: 1.5em; /* Alinhamento dos ícones */
}

.viagem-card-lista .card-body strong {
    color: #212529; /* Cor para texto em negrito (labels) */
}

.viagem-card-lista .card-footer {
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa; /* Mesmo do header do card */
    border-top: 1px solid #e9ecef;
}

.viagem-card-lista .card-footer .btn {
    font-size: 0.85rem; /* Botões menores no footer */
    padding: 0.3rem 0.8rem;
}

.viagem-card-lista .card-footer .btn i{
    margin-right: 0.3rem;
}

/* Ajustes de cor para os badges de status se necessário */
.viagem-card-lista .badge.bg-info.text-dark { /* Para status 'Ativo' */
    background-color: #cfe2ff !important; /* Azul claro bootstrap info */
    color: #052c65 !important; /* Texto escuro para contraste */
}
/* FIM ESTILOS PARA MINHAS VIAGENS */

@media (max-width: 991px) {
    .search-form-fields .form-group {
        flex-basis: calc(50% - 10px); 
    }
    .btn-primary.btn-search-main {
        flex-basis: 100%; 
        margin-top: 10px;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section p.subtitle {
        font-size: 1.3rem;
    }
    .feature-card {
        margin-bottom: 30px; 
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 60px 20px 100px 20px; 
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p.subtitle {
        font-size: 1.1rem;
        max-width: none;
    }
    .search-form-wrapper {
        margin-top: -60px; 
    }
    .search-form-container {
        padding: 20px;
    }
    .search-form-fields .form-group {
        flex-basis: 100%; 
    }
    nav .logo a {
        font-size: 1.6rem;
    }
    nav ul {
        flex-wrap: wrap; 
        justify-content: center;
    }
    nav ul li {
        margin: 5px;
    }
    .feature-section h2 {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }
    .feature-icon {
        font-size: 3rem;
    }
    .feature-card h4 {
        font-size: 1.15rem;
    }
} 

/* ESTILOS PARA SELECIONAR POLTRONA */

/* Checkout Steps (Ajuste se necessário, herdará do comprovante?) */
.checkout-steps {
    display: flex;
    justify-content: space-around; /* Espaçar igualmente */
    max-width: 700px;
    margin: 30px auto 50px auto; /* Centralizar e adicionar margem */
    padding: 0 10px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 20px; /* Alinhar verticalmente com o centro dos números */
    left: 5%; /* Não começar exatamente na borda */
    right: 5%; /* Não terminar exatamente na borda */
    height: 4px;
    background-color: #e9ecef; /* Cinza claro para a linha */
    z-index: 1;
    border-radius: 2px;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex-basis: 100px; /* Base para cada passo */
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e9ecef; /* Fundo cinza claro para inativos */
    margin: 0 auto 8px;
    color: #6c757d; /* Cor do número inativo */
    font-weight: bold;
    font-size: 1rem;
    border: 3px solid #ffffff; /* Borda branca para destacar da linha */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.step.active .step-number {
    background: #ffda00; /* Amarelo primário */
    color: #343a40; /* Texto escuro */
    border-color: #ffffff;
}

.step.completed .step-number {
    background: #198754; /* Verde sucesso */
    color: white;
    border-color: #ffffff;
}

.step.completed .step-number i {
    font-size: 1.2em;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #495057;
}

.step.active .step-label {
    font-weight: 700;
    color: #000000;
}

/* FIM ESTILOS CHECKOUT STEPS */

/* Container e Layout do Ônibus */
.onibus-container-body {
    background-color: #f8f9fa; /* Fundo cinza claro para a área do ônibus */
    padding: 20px;
    border-radius: 0 0 8px 8px; /* Arredondar cantos inferiores */
    border-top: 1px solid #dee2e6;
}

/* Estilo moderno da frente do ônibus com volante */
.frente-onibus-moderna {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    margin: -20px -20px 30px -20px;
    text-align: center;
    border-bottom: 3px solid #FF6B00;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.1);
}

.volante-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.volante {
    width: 60px;
    height: 60px;
    border: 4px solid #1c1c1e;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 100%);
    box-shadow: 0 4px 15px rgba(28, 28, 30, 0.3);
    animation: volante-pulse 2s ease-in-out infinite;
}

.volante-centro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #dfff00;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(223, 255, 0, 0.4);
}

.volante-raio {
    position: absolute;
    background: #FF6B00;
    border-radius: 2px;
}

.volante-raio-1 {
    width: 3px;
    height: 25px;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.volante-raio-2 {
    width: 25px;
    height: 3px;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
}

.volante-raio-3 {
    width: 25px;
    height: 3px;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
}

.frente-texto {
    color: #1c1c1e;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

.frente-texto i {
    color: #FF6B00;
    font-size: 1.2rem;
    margin-right: 8px;
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes volante-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Manter estilo antigo como fallback */
.frente-onibus {
    background-color: #e9ecef;
    border-radius: 6px 6px 0 0;
    padding: 8px 15px;
    margin: -20px -20px 20px -20px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
}

.poltronas {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Espaço entre fileiras */
    align-items: center;
    padding: 10px 0;
    overflow-x: auto; /* Permitir rolagem horizontal se necessário */
}

.fileira {
    display: flex;
    justify-content: flex-start;
    gap: 8px; /* Espaço entre poltronas/corredor */
    width: max-content; /* Evitar quebra de linha desnecessária */
}

.poltrona {
    width: 45px; /* Tamanho da poltrona aumentado */
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 12px; /* Mais arredondado */
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #1c1c1e;
    transition: all 0.3s ease;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.poltrona::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 107, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poltrona-espaco {
    width: 40px;
    height: 45px;
    display: inline-block;
}

.corredor {
    width: 20px;
    height: 45px;
    display: inline-block;
}

.poltrona.disponivel:hover {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b3 100%);
    border-color: #FF6B00;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.poltrona.disponivel:hover::before {
    opacity: 1;
}

.poltrona.ocupada {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.poltrona.reservada-temp {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.poltrona.selecionada {
    border-color: #dfff00;
    background: linear-gradient(135deg, #dfff00 0%, #c7eb00 100%);
    color: #1c1c1e;
    font-weight: 800;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(223, 255, 0, 0.4);
    animation: poltrona-selected 0.5s ease;
}

@keyframes poltrona-selected {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.15) translateY(-5px); }
    100% { transform: scale(1.1) translateY(-3px); }
}

/* Legenda */
.legenda {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 20px; /* Espaçamento da legenda */
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    font-size: 0.85rem;
}

.poltrona-legenda {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 5px;
    border: 1px solid #adb5bd;
}

.poltrona-legenda.disponivel { 
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); 
    border-color: #e9ecef;
}
.poltrona-legenda.ocupada { 
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); 
    border-color: #dc3545; 
}
.poltrona-legenda.reservada-temp { 
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); 
    border-color: #ffc107; 
}
.poltrona-legenda.selecionada { 
    background: linear-gradient(135deg, #dfff00 0%, #c7eb00 100%); 
    border-color: #dfff00; 
}

/* Andares (se houver) */
.andar-indicator {
    font-weight: bold;
    color: #343a40;
    padding: 5px 10px;
    background-color: #e9ecef;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.andar-separator {
    height: 2px;
    background-color: #dee2e6;
    margin: 20px auto;
    width: 80%;
}

/* Coluna da Direita - Resumo e Passageiros */
.sticky-top {
    top: 20px; /* Ajustar espaçamento do topo */
}

#poltronas-selecionadas-info p {
    font-size: 0.95rem;
}

#valor-total {
    font-size: 1.3rem;
}

#dados-passageiros-container {
    max-height: 400px; /* Limitar altura e permitir scroll */
    overflow-y: auto;
    padding-right: 5px; /* Espaço para scrollbar */
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.passageiro-card {
    background-color: #f8f9fa; /* Fundo cinza claro para card passageiro */
    border: 1px solid #dee2e6;
}

.passageiro-card .form-label-sm {
    font-size: 0.8rem; /* Labels menores */
    margin-bottom: 0.2rem;
}

.passageiro-card .form-control-sm, .passageiro-card .form-select-sm {
    font-size: 0.9rem; /* Inputs menores */
    padding: 0.3rem 0.6rem;
}

.form-check-label {
    font-size: 0.95rem;
}

/* Corrigir cor do header do resumo */
.card-resumo .card-header { 
    /* Substituído pelo estilo padrão do Bootstrap .bg-primary */ 
}

/* Ajuste para botões, se necessário */
/* Botões modernos da página de seleção de poltrona */
#btn-continuar {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    border: 2px solid #ff6b35;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#btn-continuar:hover {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b35 100%);
    border-color: #ff8c42;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

#btn-continuar:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

#btn-continuar:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-color: #6c757d;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#btn-selecionar-volta {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 2px solid #2c3e50;
    color: #f1c40f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#btn-selecionar-volta:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-color: #34495e;
    color: #fff;
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
    transform: translateY(-2px);
}

#btn-selecionar-volta:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.3);
}

#btn-selecionar-volta:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-color: #6c757d;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Efeito de brilho nos botões */
#btn-continuar::before,
#btn-selecionar-volta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

#btn-continuar:hover::before,
#btn-selecionar-volta:hover::before {
    left: 100%;
}

/* Estilos modernos para campos de formulário */
.form-select {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-select:focus {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
    outline: 0;
}

.form-select:hover {
    border-color: #adb5bd;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.text-muted {
    color: #6c757d !important;
    font-size: 0.8rem;
    font-style: italic;
}

/* Estilo para o alert de informações de horário */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 1px solid #b6d4da;
    border-radius: 8px;
    color: #0c5460;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modernização dos cards */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
    padding: 1.5rem;
}

.sticky-top {
    transition: all 0.3s ease;
}

/* Estilos para campo de cupom de desconto */
.input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group .form-control {
    border: 2px solid #dee2e6;
    border-right: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 500;
    transition: all 0.3s ease;
}

.input-group .form-control:focus {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-color: #ff6b35;
    box-shadow: none;
    z-index: 3;
}

.input-group .btn-outline-primary {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 2px solid #2c3e50;
    border-left: none;
    color: #f1c40f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.input-group .btn-outline-primary:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-color: #34495e;
    color: #fff;
    transform: translateY(-1px);
}

/* Checkbox moderno */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #ff6b35;
    border-color: #ff6b35;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-check-label {
    color: #2c3e50;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Alert para cupom aplicado */
.alert-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Valor total destacado */
.text-success {
    color: #ff6b35 !important;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mensagens de cupom */
#cupom-mensagem {
    font-weight: 500;
    transition: all 0.3s ease;
}

#cupom-mensagem.text-success {
    color: #28a745 !important;
}

#cupom-mensagem.text-danger {
    color: #dc3545 !important;
}

/* Scrollbar (opcional, para Webkit) */
#dados-passageiros-container::-webkit-scrollbar {
    width: 6px;
}
#dados-passageiros-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
#dados-passageiros-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* FIM ESTILOS PARA SELECIONAR POLTRONA */


@media (max-width: 991px) {
    /* ... estilos existentes para 991px ... */
    .search-form-fields .form-group {
        flex-basis: calc(50% - 10px); 
    }
    .btn-primary.btn-search-main {
        flex-basis: 100%; 
        margin-top: 10px;
    }
    .hero-section h1 {
        font-size: 2.8rem;
    }
    .hero-section p.subtitle {
        font-size: 1.3rem;
    }
    .feature-card {
        margin-bottom: 30px; 
    }
    /* Adicionar ajustes específicos para selecionar poltrona se necessário */

} /* << FECHAMENTO CORRETO */

@media (max-width: 767px) {
    /* ... estilos existentes para 767px ... */
    .hero-section {
        padding: 60px 20px 100px 20px; 
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
    .hero-section p.subtitle {
        font-size: 1.1rem;
        max-width: none;
    }
    .search-form-wrapper {
        margin-top: -60px; 
    }
    .search-form-container {
        padding: 20px;
    }
    .search-form-fields .form-group {
        flex-basis: 100%; 
    }
    nav .logo a {
        font-size: 1.6rem;
    }
    nav ul {
        flex-wrap: wrap; 
        justify-content: center;
    }
    nav ul li {
        margin: 5px;
    }
    .feature-section h2 {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }
    .feature-icon {
        font-size: 3rem;
    }
    .feature-card h4 {
        font-size: 1.15rem;
    }
    /* Adicionar ajustes específicos para selecionar poltrona se necessário */
    .poltrona {
        width: 35px;
        height: 40px;
        font-size: 0.8rem;
    }
    .poltrona-espaco, .corredor {
        width: 15px;
        height: 40px;
    }
    .fileira {
        gap: 5px;
    }
} /* << FECHAMENTO CORRETO */

/* Estilos para dispositivos muito pequenos */
@media (max-width: 480px) {
    .hero-modern .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .search-card {
        padding: 1rem;
        margin: 0 5px;
    }
    
    .search-header h3 {
        font-size: 1.3rem;
    }
    
    .search-header p {
        font-size: 0.9rem;
    }
    
    .search-form .form-select,
    .search-form .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn-search {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    nav .logo img {
        width: 180px !important;
        height: 40px !important;
    }
}