/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #333;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Utilities */
.flex-1 { flex: 1; }

/* Header */
.header {
    background: #001F3F;
    padding: 16px 24px;
    position: relative;
    z-index: 20;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-text {
    color: #00B0E8;
    font-size: 1.875rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.025em;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.header-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.icon-btn {
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background: #003366;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0 24px;
    background-image: linear-gradient(rgba(0, 31, 63, 0.5), rgba(0, 31, 63, 0.5)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=2000');
    background-size: cover;
    background-position: center;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 40px;
    width: 100%;
}

.hero h1 {
    color: white;
    font-size: 3.75rem;
    font-weight: 300;
}

.hero h1 strong {
    font-weight: 700;
}

/* Service Tabs */
.service-tabs {
    background: white;
}

.tabs-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 8px;
    position: relative;
    transition: all 0.2s;
}

.tab-icon {
    width: 80px;
    height: 80px;
}

.tab-label {
    font-size: 1.875rem;
    font-weight: 300;
    color: #6B7280;
    letter-spacing: -0.025em;
}

.tab-active .tab-label {
    color: #001F3F;
    font-weight: 500;
}

.tab-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #00B0E8;
}

/* Search Form */
.search-form {
    flex: 1;
    background: white;
    border-top: 1px solid #E5E7EB;
}

.form-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.form-group {
    padding: 24px 0;
    border-bottom: 1px solid #E5E7EB;
}

.form-label {
    display: block;
    color: #6B7280;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1.5rem;
    color: #1F2937;
    background: transparent;
    font-family: inherit;
    padding: 8px 0;
    font-weight: 300;
}

.form-input::placeholder {
    color: #9CA3AF;
    font-weight: 300;
}

/* Custom Select */
.select-wrapper {
    position: relative;
}

.custom-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px 0;
    font-size: 1.5rem;
    color: #1F2937;
    user-select: none;
}

.custom-select .placeholder {
    color: #9CA3AF;
    font-weight: 300;
}

.select-value {
    flex: 1;
}

.select-arrow {
    width: 20px;
    height: 20px;
    color: #6B7280;
    transition: transform 0.2s;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

/* Origem com pin */
.origem-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #9CA3AF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.radio-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #001F3F;
}

.pin-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.origem-wrapper .custom-select {
    flex: 1;
}

/* Input editável da Origem */
.origem-wrapper .origem-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.5rem;
    color: #1F2937;
    background: transparent;
    font-family: inherit;
    padding: 8px 0;
    font-weight: 300;
    min-width: 0;
}

.origem-wrapper .origem-input::placeholder {
    color: #9CA3AF;
    font-weight: 300;
}

.select-arrow-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B7280;
    flex-shrink: 0;
}

.select-arrow-btn .select-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.origem-wrapper.open .select-arrow-btn .select-arrow {
    transform: rotate(180deg);
}

/* Dropdown List */
.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: none;
    margin-top: 4px;
}

.dropdown-list.show {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 1rem;
    color: #1F2937;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dropdown-item:hover {
    background: #F3F4F6;
}

.dropdown-item-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uf-badge {
    background: #DBEAFE;
    color: #1E3A8A;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.dropdown-header {
    padding: 10px 16px;
    font-size: 0.78rem;
    color: #6B7280;
    font-weight: 500;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 1;
}

.dropdown-region {
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #1D4ED8;
    background: #EFF6FF;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-top: 1px solid #DBEAFE;
}

/* Search Button */
.form-actions {
    padding: 32px 0;
}

.btn-buscar {
    width: 100%;
    height: 64px;
    background: #E5E7EB;
    color: #6B7280;
    font-size: 1.25rem;
    font-weight: 400;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-buscar.active {
    background: #001F3F;
    color: white;
}

.btn-buscar.active:hover {
    background: #003366;
}

/* Service Cards */
.service-cards {
    background: white;
    padding: 64px 24px;
    border-top: 1px solid #F3F4F6;
}

.cards-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-icon {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
}

.card-icon svg {
    width: 128px;
    height: 128px;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1976D2;
    margin-bottom: 16px;
}

.card p {
    color: #6B7280;
    font-size: 1rem;
    line-height: 1.625;
    max-width: 280px;
}

/* Footer */
.footer {
    background: #001F3F;
    padding: 40px 16px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: white;
    transition: opacity 0.2s;
    padding: 0 4px;
}

.footer-item:hover {
    opacity: 0.8;
}

.footer-item svg {
    width: 32px;
    height: 32px;
}

.footer-item span {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.025em;
    text-align: center;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #001F3F;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    max-width: 90%;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: #10B981;
}

.toast.error {
    background: #EF4444;
}

.toast.info {
    background: #3B82F6;
}

/* Responsividade - Tablet */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .tab-icon { width: 64px; height: 64px; }
    .tab-label { font-size: 1.5rem; }
    .cards-container { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* Responsividade - Mobile */
@media (max-width: 768px) {
    .header { padding: 12px 16px; }
    .logo-text { font-size: 1.5rem; }
    .logo-icon { width: 24px; height: 24px; }
    .icon-btn svg { width: 16px; height: 16px; }
    
    .hero { min-height: 200px; padding: 0 16px; }
    .hero h1 { font-size: 2rem; }
    .hero-content { padding-bottom: 24px; }
    
    .tab { padding: 20px 4px; gap: 8px; }
    .tab-icon { width: 48px; height: 48px; }
    .tab-label { font-size: 0.875rem; }
    
    .form-container { padding: 0 16px; }
    .form-group { padding: 16px 0; }
    .form-label { font-size: 0.875rem; margin-bottom: 4px; }
    .form-input, .custom-select { font-size: 1.125rem; }
    .form-actions { padding: 24px 0; }
    .btn-buscar { height: 48px; font-size: 1rem; }
    
    .service-cards { padding: 40px 16px; }
    .cards-container { grid-template-columns: 1fr; gap: 32px; }
    .card-icon svg { width: 96px; height: 96px; }
    .card h3 { font-size: 1.125rem; }
    .card p { font-size: 0.875rem; }
    
    .footer { padding: 24px 8px; }
    .footer-item { gap: 8px; }
    .footer-item svg { width: 24px; height: 24px; }
    .footer-item span { font-size: 0.625rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .tab-icon { width: 40px; height: 40px; }
    .tab-label { font-size: 0.75rem; }
}

/* Subpages styling */
.page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    flex: 1;
}

.page-title {
    font-size: 2.5rem;
    color: #001F3F;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #6B7280;
    margin-bottom: 48px;
}

.back-btn {
    background: transparent;
    color: #001F3F;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 1rem;
    transition: background-color 0.2s;
    border-radius: 4px;
}

.back-btn:hover {
    background: #F3F4F6;
}

.info-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.info-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.info-card-header {
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 1.5rem;
    color: #1F2937;
    margin-bottom: 8px;
}

.info-card p {
    color: #6B7280;
    font-size: 1rem;
}

.btn-primary {
    background: #001F3F;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    background: #003366;
}

.btn-outline {
    background: transparent;
    color: #001F3F;
    border: 1px solid #001F3F;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #001F3F;
    color: white;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.form-page {
    max-width: 500px;
    margin: 0 auto;
}

.form-page .form-group {
    border: none;
    margin-bottom: 16px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9CA3AF;
}

.input-with-icon input {
    width: 100%;
    height: 48px;
    padding: 0 12px 0 44px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #001F3F;
}

.badge {
    display: inline-block;
    background: #001F3F;
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.875rem;
}

.badge-success {
    background: #DCFCE7;
    color: #166534;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.reservation-header {
    background: linear-gradient(to right, #001F3F, #003366);
    color: white;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.reservation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .reservation-grid {
        grid-template-columns: 1fr;
    }
    .page-title { font-size: 1.75rem; }
}

.detail-section {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.detail-section h3 {
    font-size: 1.5rem;
    color: #1F2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6B7280;
    font-size: 0.875rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
}

.passenger-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.passenger-card h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}
