/* TKT Insurance Styles - Layout Atualizado e Otimizado */

.tkt-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* --- STEPS CONTAINERS --- */
.step-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* --- BARRA DE BUSCA HORIZONTAL (STEP 1) --- */
.search-bar-inline {
    display: flex;
    flex-wrap: wrap; /* Permite quebrar linha em telas pequenas */
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    align-items: center;
    margin-bottom: 30px;
}

.form-group-inline {
    flex: 1; /* Faz os campos dividirem o espaço igualmente */
    min-width: 220px; /* Evita que o campo esmague demais antes de quebrar a linha */
}

.form-group-inline.btn-container {
    flex: 0 0 auto; /* O botão ocupa apenas a largura dele mesmo */
}

/* Equalizando alturas e estilo base de todos os inputs */
.form-group-inline input, 
.form-group-inline select, 
.pax-trigger-btn,
#btn-get-quote {
    width: 100%;
    height: 52px; /* CRAVADO: Todos do mesmo tamanho */
    margin: 0;
    padding: 0 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #334155;
    background-color: #f8fafc;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s;
    display: flex;
    align-items: center; /* Alinha o texto interno no meio verticalmente */
}

/* Interações de Hover/Focus */
.form-group-inline input:focus, 
.form-group-inline select:focus, 
.pax-trigger-btn:hover {
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Estilizando o placeholder falso do Select */
.form-group-inline select:invalid {
    color: #94a3b8;
}

/* Botão Pesquisar integrado na barra */
#btn-get-quote {
    background-color: #1d4ed8;
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    padding: 0 35px; /* Botão um pouco mais largo */
    box-shadow: 0 4px 6px rgba(29, 78, 216, 0.3);
}

#btn-get-quote:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(29, 78, 216, 0.4);
}

/* Responsivo para celular: empilha os campos */
@media (max-width: 900px) {
    .search-bar-inline {
        flex-direction: column;
        padding: 15px;
    }
    .form-group-inline, .form-group-inline.btn-container {
        width: 100%;
    }
    #btn-get-quote {
        width: 100%;
        justify-content: center;
    }
}

/* --- LÓGICA DOS ÍCONES DENTRO DOS CAMPOS --- */
.form-group-inline.has-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #94a3b8;
    pointer-events: none; /* Faz o clique atravessar o ícone e focar no input */
    z-index: 2;
    transition: color 0.3s;
}

/* Empurra o texto para não encavalar no ícone */
.form-group-inline.has-icon input,
.form-group-inline.has-icon select,
.pax-trigger-btn.has-icon {
    padding-left: 46px !important; 
}

/* Ícone de setinha do botão de passageiros fica na direita */
.pax-trigger-btn {
    position: relative;
}
.pax-trigger-btn .chevron-icon {
    width: 18px;
    height: 18px;
    color: #94a3b8;
    margin-left: auto; /* Empurra pra direita */
}

/* Efeito azul no ícone quando o campo está focado ou em hover */
.form-group-inline.has-icon input:focus ~ .input-icon,
.form-group-inline.has-icon select:focus ~ .input-icon,
.pax-trigger-btn.has-icon:hover .input-icon,
.pax-trigger-btn.has-icon:hover .chevron-icon {
    color: #2563eb;
}

/* Ajuste no botão pesquisar para alinhar Lupa e Texto */
#btn-get-quote {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- STEP 2: CARDS (LAYOUT CORRIGIDO) --- */

.plans-grid {
    display: grid;
    /* Garante largura mínima de 300px para evitar encavalamento */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
    align-items: start; /* Alinha no topo */
}

.plan-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Cabeçalhos dos Cards */
.plan-header {
    padding: 20px;
    color: #ffffff;
    position: relative;
}
.plan-header h3 {
    font-size: 24px;
    margin: 0 0 5px 0;
    color: white;
    font-weight: 700;
}
.plan-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.plan-header-basic { background-color: #dc2626; } /* Vermelho */
.plan-header-euro { background-color: #0ea5e9; } /* Azul Claro */
.plan-header-intermediate { background-color: #b91c1c; } /* Vinho */
.plan-header-premium { background-color: #1e40af; } /* Azul Escuro */

.premium-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #eab308;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
}

/* Conteúdo Interno do Card */
.plan-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.plan-price {
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}
.plan-price .amount {
    font-size: 26px;
    font-weight: 700;
    color: #1e40af;
}
.plan-price .description {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.covid-badge {
    display: inline-block;
    background-color: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 5px;
}

/* Lista de Coberturas Resumida (Destaques) */
.coverage-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.coverage-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #475569;
}
.coverage-item svg {
    width: 18px;
    height: 18px;
    color: #10b981;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- LISTA COMPLETA (NOVO DESIGN ZEBRADO) --- */
.tkt-full-coverage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tkt-full-coverage-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    line-height: 1.4;
}

.tkt-full-coverage-list li:nth-child(even) {
    background-color: #f8fafc; /* Zebrado */
}

.tkt-full-coverage-list li:hover {
    background-color: #eef2ff;
}

.cov-name {
    color: #334155;
    font-weight: 500;
    padding-right: 15px;
    text-align: left;
    flex: 1;
}

.cov-value {
    color: #1e40af;
    font-weight: 700;
    white-space: nowrap;
    background: #dbeafe;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

/* --- ESTILO STEP 3: DADOS DOS PASSAGEIROS (PREMIUM UI) --- */

/* Container dos Cards */
#passenger-details-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* O Cartão do Passageiro */
.passenger-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px; /* Bordas mais arredondadas */
    padding: 30px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.2s;
}

.passenger-card:hover {
    border-color: #cbd5e1;
}

/* Cabeçalho do Card (Pax 1, Pax 2...) */
.pax-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.pax-icon-circle {
    width: 40px; height: 40px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.pax-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
}

.pax-header span.tag {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Grid do Formulário */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Colunas */
    gap: 20px;
    margin-bottom: 20px;
}

/* Inputs Bonitos */
.form-group-modern label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.form-group-modern label svg {
    width: 14px; height: 14px;
    margin-right: 6px;
    color: #94a3b8;
}

.form-group-modern input, 
.form-group-modern select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8fafc;
    transition: all 0.3s;
    box-sizing: border-box;
    color: #334155;
}

.form-group-modern input:focus, 
.form-group-modern select:focus {
    background-color: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-group-modern input:disabled {
    background-color: #e2e8f0;
    cursor: not-allowed;
    color: #64748b;
}

/* Seção do Responsável (Amarelo Suave) */
.responsible-section {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}
.responsible-header {
    display: flex;
    align-items: center;
    color: #92400e;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Seção de Endereço (Azul Suave) */
.address-section {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}
.address-header {
    display: flex;
    align-items: center;
    color: #0369a1;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14px;
    border-bottom: 1px solid #e0f2fe;
    padding-bottom: 10px;
}

/* Responsivo Mobile */
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; gap: 10px; }
    .passenger-card { padding: 20px; }
}

/* --- BOTÕES E ANIMAÇÕES --- */
.buy-button {
    display: block;
    width: 100%;
    margin-top: 15px;
    background-color: #dc2626;
    color: white;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.4);
}
.buy-button:hover { background-color: #b91c1c; }

.details-button {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    margin-top: 15px;
    z-index: 10;
    position: relative;
}
.details-button:hover { background-color: #dbeafe; }
.details-button svg {
    margin-left: 8px;
    transition: transform 0.3s;
}
.details-button.open svg { transform: rotate(180deg); }

.details-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.5s;
    opacity: 0;
    background-color: #fff;
    border-top: 1px solid transparent;
}
.details-content.open { 
    max-height: 2000px; 
    opacity: 1;
    border-top: 1px solid #e2e8f0;
}

/* Loader */
#tkt-loading {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 20px;
    font-weight: bold;
    color: #1e40af;
}

/* --- FLATPICKR CORREÇÕES (SETAS) --- */
.flatpickr-current-month .numInputWrapper span.arrowUp, 
.flatpickr-current-month .numInputWrapper span.arrowDown {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
}
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: #000 !important; 
    top: 30% !important;
}
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: #000 !important;
    top: 30% !important;
}
.flatpickr-current-month .numInputWrapper {
    overflow: visible !important; 
    width: 70px !important;
}
.flatpickr-current-month .numInputWrapper input.numInput.cur-year {
    padding-right: 20px !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .plans-grid { grid-template-columns: 1fr; }
}

/* Botões Gerais */
.btn-primary {
    background: #1e40af;
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}
.btn-secondary {
    background: #94a3b8;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
/* --- CORREÇÃO DE ALINHAMENTO ÍCONE vs TEXTO --- */

.responsible-header, 
.address-header {
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    font-size: 16px !important; /* Aumenta o texto (antes estava pequeno) */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Garante que o ícone tenha um tamanho fixo e proporcional ao texto novo */
.responsible-header svg, 
.address-header svg {
    width: 24px !important; 
    height: 24px !important;
    margin-right: 10px; /* Espaço entre ícone e texto */
    flex-shrink: 0; /* Impede o ícone de amassar */
}

/* Corrigir cor do header do responsável para combinar com o fundo amarelo */
.responsible-header {
    color: #92400e; 
}

/* --- CORREÇÃO DOS BOTÕES DE AÇÃO (Voltar / Finalizar) --- */

.action-buttons {
    display: flex;
    justify-content: space-between; /* "Voltar" na esquerda, "Finalizar" na direita */
    align-items: center;
    
    /* Afastamento Superior */
    margin-top: 40px;
    padding-top: 25px;
    
    /* Linha sutil para separar visualmente do formulário */
    border-top: 1px solid #e2e8f0; 
    gap: 20px; /* Garante espaço caso a tela encolha */
}

/* Estilo específico para o botão "Voltar" (Cinza/Neutro) */
.btn-secondary {
    background-color: #94a3b8; /* Cinza azulado */
    color: white;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none; /* Caso seja um link */
}

.btn-secondary:hover {
    background-color: #64748b;
}

/* Estilo específico para o botão "Finalizar / Ver Planos" (Azul/Destaque) */
.btn-primary, #btn-add-to-cart, #btn-get-quote {
    background-color: #1d4ed8; /* Azul Sucesso */
    color: white;
    padding: 14px 40px; /* Um pouco mais largo */
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover, #btn-add-to-cart:hover, #btn-get-quote:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px); /* Leve efeito de subida */
    box-shadow: 0 8px 12px rgba(22, 163, 74, 0.4);
}

/* --- AJUSTE RESPONSIVO (CELULAR) --- */
@media (max-width: 600px) {
    .action-buttons {
        flex-direction: column-reverse; /* "Voltar" vai para baixo */
        gap: 15px;
    }
    
    .btn-secondary, 
    .btn-primary, 
    #btn-add-to-cart {
        width: 100%; /* Botões ocupam a largura total no celular */
        justify-content: center;
        display: flex;
    }
}

/* --- BOTÃO TRIGGER PASSAGEIROS --- */
.pax-trigger-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    font-size: 15px;
    color: #334155;
    transition: all 0.3s;
    box-sizing: border-box;
}
.pax-trigger-btn:hover { border-color: #2563eb; }
.pax-trigger-btn svg { width: 18px; height: 18px; color: #94a3b8; }

/* --- MODAL DE PASSAGEIROS --- */
.tkt-modal {
    display: none; 
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65); /* Fundo escuro transparente */
    backdrop-filter: blur(3px); /* Efeito blur de fundo */
    align-items: center;
    justify-content: center;
}

.tkt-modal-content {
    background-color: #fff;
    margin: auto;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.tkt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.tkt-modal-header h4 { margin: 0; color: #1e293b; font-size: 18px; font-weight: 700; }
.tkt-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.tkt-modal-close:hover { color: #dc2626; }

.tkt-modal-body { padding: 20px 25px; }
.tkt-modal-subtitle { margin: 0 0 15px 0; color: #64748b; font-size: 14px; font-weight: 500; }

.tkt-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

/* Seletores numéricos limpos (sem fundo) para o Modal */
.tkt-modal-body .age-selectors { border: none; padding: 0; background: transparent; }
.age-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #e2e8f0; }
.age-row:last-child { border-bottom: none; }
.age-row span { font-size: 15px; font-weight: 600; color: #334155; }
.qty-control { display: flex; align-items: center; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.qty-btn { background: #f1f5f9; border: none; width: 36px; height: 36px; font-size: 20px; font-weight: bold; color: #2563eb; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: background 0.2s; }
.qty-btn:hover { background: #e2e8f0; }
.qty-val { width: 40px; text-align: center; border: none; border-left: 1px solid #cbd5e1; border-right: 1px solid #cbd5e1; font-size: 15px; font-weight: 700; color: #0f172a; padding: 0; outline: none; background: #fff; }