/* ============================================================
   PESQUISA CCT 2026/2027 LATAM - AEROSP
   Folha de estilos
   ============================================================ */

/* ===== RESET BÁSICO ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== FUNDO FIXO (compatível com celular) ===== */
/* Em vez de background-attachment: fixed no body,
   criamos uma camada fixa separada que funciona em qualquer dispositivo */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 20px;
    color: #333;
    position: relative;
}

video{
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
}

#link-aerosp {
    color: #f9f9fa;
    text-decoration: none;
}

.logo-footer {
    width: 50px;
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Camada de fundo fixa - fica atrás de tudo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('latam.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ===== CABEÇALHO ===== */
.header {
    background: linear-gradient(135deg, #003f83 0%, #f12424 100%);
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.logo-area {
    margin-bottom: 15px;
}

.logo {
    max-width: 120px;
    height: auto;
}

.header h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 8px;
}

.data-base {
    font-size: 0.95em;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
}

/* ===== INTRODUÇÃO ===== */
.intro {
    padding: 25px 30px 0;
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}

/* ===== SEÇÕES (FIELDSET) ===== */
.secao {
    border: none;
    border-top: 3px solid #1a3a5c;
    margin: 30px;
    padding: 0;
    padding-top: 20px;
}

.secao legend {
    font-size: 1.3em;
    font-weight: bold;
    color: #1a3a5c;
    padding: 0 10px;
    background: #f0f4f8;
    border-radius: 5px;
    padding: 5px 15px;
}

/* ===== PERGUNTAS ===== */
.pergunta {
    margin-bottom: 30px;
    padding: 5px 0;
}

.titulo-pergunta {
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.5;
}

.descricao {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-style: italic;
}

.limite {
    font-size: 0.85em;
    color: #e67e22;
    font-weight: normal;
    margin-left: 5px;
}

.badge {
    display: inline-block;
    background: #1a3a5c;
    color: #fff;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    font-size: 0.85em;
    margin-right: 5px;
    vertical-align: middle;
}

/* ===== OPÇÕES ===== */
.opcoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 10px;
}

.opcao {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95em;
}

.opcao:hover {
    background: #e8f0fe;
    border-color: #1a3a5c;
}

.opcao input[type="radio"],
.opcao input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #1a3a5c;
    cursor: pointer;
    flex-shrink: 0;
}

.opcao input:checked ~ span {
    font-weight: 600;
    color: #1a3a5c;
}

.opcao span {
    line-height: 1.4;
}

/* ===== SUBLISTA (BENEFÍCIO VIAGEM) ===== */
.sublista {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 0.9em;
    color: #666;
    list-style: disc;
}

.sublista li {
    margin-bottom: 3px;
}

/* ===== CAMPO "OUTROS" ===== */
.outros-checkbox {
    flex-wrap: wrap;
    align-items: center;
}

.input-outros {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9em;
    margin-left: 10px;
}

.input-outros:focus {
    outline: none;
    border-color: #1a3a5c;
    box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.2);
}

/* Campo "Outros" desabilitado (quando checkbox não está marcado) */
.input-outros:disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===== TEXTAREA ===== */
.textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95em;
    font-family: inherit;
    resize: vertical;
}

.textarea:focus {
    outline: none;
    border-color: #1a3a5c;
    box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.2);
}

/* ===== BOTÃO DE ENVIO ===== */
.enviar-area {
    padding: 20px 30px 40px;
    text-align: center;
}

.btn-enviar {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border: none;
    padding: 15px 50px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-enviar:active {
    transform: translateY(0);
}

/* ===== RODAPÉ ===== */
.footer {
    background: linear-gradient(135deg, #003f83 0%, #f12424 100%);
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 20px;
    font-size: 0.85em;
    opacity: 0.9;
}

/* ===== PÁGINA OBRIGADO ===== */
.obrigado-box {
    text-align: center;
    padding: 60px 30px;
}

.check-icon {
    font-size: 4em;
    color: #27ae60;
    margin-bottom: 20px;
}

.obrigado-box h1 {
    color: #1a3a5c;
    margin-bottom: 15px;
}

.obrigado-box p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

.destaque {
    font-style: italic;
    line-height: 1.6;
    max-width: 600px;
    margin: 20px auto;
}

.subdestaque {
    color: #1a3a5c;
    font-weight: bold;
    font-size: 1em;
    margin-top: 20px;
}

/* ===== TABELA DE RELATÓRIO ===== */
.relatorio-header {
    background: #1a3a5c;
    color: #fff;
    padding: 30px;
    text-align: center;
}

.relatorio-header h1 {
    margin-bottom: 10px;
}

.relatorio-body {
    padding: 30px;
}

.relatorio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #1a3a5c;
}

.stat-label {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-top: 5px;
}

.tabela-resultados {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.tabela-resultados th {
    background: #1a3a5c;
    color: #fff;
    padding: 12px 15px;
    text-align: left;
    font-size: 0.9em;
}

.tabela-resultados td {
    padding: 10px 15px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9em;
}

.tabela-resultados tr:nth-child(even) {
    background: #f8f9fa;
}

.barra-percent {
    display: inline-block;
    height: 24px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 4px;
    color: #fff;
    line-height: 24px;
    text-align: center;
    font-size: 0.85em;
    font-weight: bold;
    min-width: 40px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 600px) {
    .header h1 { font-size: 1.4em; }
    .secao { margin: 20px 15px; }
    .intro { padding: 20px 15px 0; }
    .opcao { padding: 10px; font-size: 0.9em; }
    .btn-enviar { padding: 12px 30px; font-size: 1em; }
}
