/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Poppins", sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #e698df, #5c2faf);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
}

/* VARIÁVEIS */
:root {
    --primary: #0D6EFD;
    --primary-hover: #0B5ED7;
    --success: #198754;
    --danger: #dc3545;
    --text: #FFFFFF;
    --glass: rgba(255, 255, 255, .08);
    --border: rgba(255, 255, 255, .20);
}

/* VÍDEO DE FUNDO */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .60);
    z-index: -1;
    pointer-events: none;
}

/* HERO */
.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 20px 80px 20px;
    z-index: 10;
    overflow: hidden;
}

.hero-content-box {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    position: fixed;
    top: 20px;
    left: 5%;
    width: 110px;
    opacity: .85;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .5));
    z-index: 20;
}

.hero h1 {
    font-size: 2.35rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero p {
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

/* BOTÕES & ACESSIBILIDADE DE FOCO */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
       text-shadow:  2px 2px 3px black;
    color: white;
    background: linear-gradient(135deg, #e035b8, #7a3ee3);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(219, 24, 123, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #5f0b58;
    transform: translateY(-3px);
}

/* Estilo geral para botões comuns de formulário */
.form-card button,
.comprovante button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(190, 17, 104, 0.4);
    cursor: pointer;
    font-size: 15px;
     background: linear-gradient(135deg, #e035b8, #7a3ee3);
    color: white;
    transition: all 0.3s ease;
}

.form-card button:hover,
.comprovante button:hover {
    transform: translateY(-2px);
}

.input-group input:focus-visible,
button:focus-visible,
.btn-primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* FORMULÁRIO */
.form-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10;
    overflow-y: auto;
}

.form-card {
    width: 400px;
    max-width: 100%;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    animation: aparecerFormulario .8s ease;
}

.form-card h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    text-shadow: 2px 2px 3px black;
}

.input-group label {
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, .95);
    text-shadow: 2px 2px 3px black;
}

.input-group input {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    background: rgba(255, 255, 255, .9);
    color: #333;
    transition: box-shadow .3s ease, border-color .3s ease, transform .2s ease;
}

.input-group input:hover {
    border-color: rgba(13, 110, 253, .5);
}

.input-group input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 10px rgba(13, 110, 253, .45);
    transform: translateY(-1px);
}

.input-group select.select-customizado,
.form-card select {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #333333;
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    border-radius: 8px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group select.select-customizado:focus,
.form-card select:focus {
    background-color: #ffffff;
    border-color: #DB187B;
    box-shadow: 0 0 0 3px rgba(219, 24, 123, 0.15);
}

/* CABEÇALHO (HEADER) */
.site-header {
    height: 65px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #073b7a, #9c1267);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo-header {
    position: absolute;
    left: 80px;
    width: 130px;
    height: auto;
    border-radius: 6px;
}

/* RODAPÉ (FOOTER) */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    max-height: 55px;
    padding: 12px 20px;
    text-align: center;
    align-content: center;
    align-items: center;
    background: linear-gradient(to right, #003B70, #DB187B);
    color: #ffffff;
    font-size: 0.55rem;
    z-index: 50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.site-footer p {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 3px black;
}

/* --- ESTRUTURA DE CONSULTA PROTOCOLO (UNIFICADA) --- */
.consulta-container {
    position: fixed;
    top: 80px;
    right: 15px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: auto;
    height: auto;
}

.consulta-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg, #ff0099, #7a2cff);
    box-shadow: 0 8px 25px rgba(255, 0, 150, .4);
    border: none;
    padding: 0 !important;
}

.consulta-box {
    position: absolute;
    top: 60px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: all .3s ease;
}

.consulta-container.ativo .consulta-box {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.consulta-box input {
    width: 220px;
    height: 40px;
    background: transparent;
    border-radius: 58px;
    border: none;
    box-shadow: 2px 2px 3px black;
    outline: none;
    color: white;
    padding-left: 15px;
}

.consulta-box input::placeholder {
    color: rgba(255, 255, 255, .7);
}

.consulta-box button {
    height: 40px;
    padding: 0 20px !important;
    border: none;
    border-radius: 30px;
    color: white;
    background: linear-gradient(135deg, #ff0099, #7a2cff);
    cursor: pointer;
    width: auto;
}

/* Balão de Dica Animado */
.consulta-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 18, 28, 0.95);
    color: #ffffff;
    font-size: 11px;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Texto interno com transição suave */
.consulta-tooltip span {
    display: inline-block;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: translateY(0);
}

/* Classe aplicada via JS ao trocar a frase */
.consulta-tooltip span.escondido {
    opacity: 0;
    transform: translateY(-5px);
}

/* Esconde o balão inteiro quando a caixa de busca estiver aberta */
.consulta-container.ativo .consulta-tooltip {
    opacity: 0;
    pointer-events: none;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-zap 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background-color: #ffffff;
    color: #333333;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

@keyframes pulse-zap {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* COMPROVANTE & MENSAGENS */
.loading,
.mensagem {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    text-align: center;
}

.loading h3,
.mensagem h2 {
    margin-top: 15px;
}

.loading p,
.mensagem p {
    opacity: .8;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, .3);
    border-top-color: #0D6EFD;
    border-radius: 50%;
    animation: girar 1s linear infinite;
}

@keyframes girar {
    to {
        transform: rotate(360deg);
    }
}

.icone {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    margin-bottom: 15px;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    background: var(--success);
}

.erro .icone {
    background: var(--danger);
}

.comprovante {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 90%;
    padding: 30px;
    background: white;
    color: black;
    border-radius: 15px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cabecalho-comprovante {
    text-align: center;
}

.cabecalho-comprovante img {
    width: 100px;
}

.comprovante p {
    margin: 12px 0;
}

.esconder {
    display: none !important;
}

.protocolo {
    margin-top: 30px !important;
    padding: 15px;
    border: 2px dashed #333;
    text-align: center;
    font-size: 18px !important;
}

.tomarindo-img {
    width: 100%;
    max-width: 58px;
}

@keyframes aparecerFormulario {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* IMPRESSÃO */
@media print {

    .site-header,
    .site-footer,
    .whatsapp-float,
    .overlay,
    #formulario,
    #loading,
    #sucesso,
    #erro,
    .consulta-container {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .comprovante {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        transform: none;
        background: #ce2add !important;
        color: white !important;
        padding: 40px;
        font-family: Arial, sans-serif;
        border: 2px solid #db187b;
        box-shadow: none;
        border-radius: 15px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cabecalho-comprovante h2,
    .cabecalho-comprovante h3,
    .comprovante p,
    .comprovante strong {
        color: white !important;
    }

    .comprovante button {
        display: none !important;
    }
}
.consulta-box button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
