/* Ficha/style.css - Ajuste fino na tipografia do título */

/* --- Variáveis de Cores (Paleta Principal) --- */
:root {
    --main-blue: #0050D4; /* Azul principal vibrante */
    --dark-blue: #00389e; /* Azul mais escuro para hover/detalhes */
    --light-blue-bg: #e6efff; /* Azul muito claro para fundos sutis */
    --accent-blue: #29abe2; /* Um toque de azul ciano para contraste */
    --pure-white: #FFFFFF;
    --text-dark: #343a40; /* Texto quase preto para boa legibilidade */
    --text-gray: #6c757d; /* Texto cinza para descrições */
    --border-light: #e9ecef; /* Borda clara */
    --shadow-gentle: rgba(0, 0, 0, 0.05); /* Sombra suave */
    --error-red: #dc3545;
    --success-green: #28a745;
}

/* --- Reset Básico & Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--pure-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 0;
}

/* --- Partículas Flutuantes --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(0, 80, 212, 0.05);
    border-radius: 50%;
    animation: float 18s infinite ease-in-out;
    opacity: 0;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* --- Container Principal --- */
.container {
    background: var(--pure-white);
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-gentle);
    width: 100%;
    max-width: 960px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    animation: slideInFade 0.9s ease-out forwards;
    opacity: 0;
}

@keyframes slideInFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Header ---*/
header {
    text-align: center;
    padding: 3.5rem 2rem;
    background: var(--light-blue-bg);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

header .logo {
    max-width: 160px;
    margin-bottom: 20px;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.1));
    animation: bounceIn 1.5s ease-out;
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    20% { transform: scale3d(1.1, 1.1, 1.1); }
    40% { transform: scale3d(0.9, 0.9, 0.9); }
    60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80% { transform: scale3d(0.97, 0.97, 0.97); }
    100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.6em; 
    color: var(--main-blue);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1.1px;
    line-height: 1.29;
}

header h1 .highlight-title {
    font-size: 0.7em; 
    color: var(--main-blue); 
    display: block; 
    font-weight: 700;
    margin-top: -0.1em;
    letter-spacing: -0.8px;
}

header p.subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.02em; 
    color: var(--text-gray);
    max-width: 550px;
    margin: 0 auto;
    font-weight: 400;
}

/* --- Main Content --- */
main {
    padding: 3rem 2.5rem;
    flex-grow: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.section-block {
    width: 100%;
    max-width: 850px;
    animation: fadeInUp 0.7s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.section-block:nth-child(1) { animation-delay: 0.3s; }
.section-block:nth-child(2) { animation-delay: 0.6s; }
.section-block:nth-child(3) { animation-delay: 0.9s; } 

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2em;
    color: var(--main-blue);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-blue), var(--accent-blue));
    border-radius: 2px;
}

.text-block {
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Seção de Pergunta --- */
.question-section {
    background: var(--light-blue-bg);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 6px 18px var(--shadow-gentle);
    border: 1px solid var(--border-light);
    margin: 0 auto 30px auto;
}

.question-section p {
    font-size: 1.1em;
    margin-bottom: 25px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 30px;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--main-blue);
    color: var(--pure-white);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 80, 212, 0.25);
}

.btn-secondary {
    background: var(--pure-white);
    color: var(--main-blue);
    border: 1px solid var(--main-blue);
}

.btn-secondary:hover {
    background: var(--main-blue);
    color: var(--pure-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 80, 212, 0.25);
}

/* --- Grid de Regras --- */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 850px;
}

.rule-card {
    background: var(--pure-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 22px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--main-blue), var(--accent-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.rule-card:hover::before {
    transform: scaleX(1);
}

.rule-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05em;
    color: var(--main-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.rule-card h3::before {
    content: '✓';
    color: var(--main-blue);
    font-size: 1.0em;
    margin-right: 8px;
    flex-shrink: 0;
}

.rule-card p {
    font-size: 0.9em;
    color: var(--text-gray);
    margin-bottom: 0;
    flex-grow: 1;
    line-height: 1.5;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px 2rem;
    font-size: 0.85em;
    color: var(--text-gray);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    background: var(--light-blue-bg);
    font-weight: 400;
    width: 100%;
    border-radius: 0 0 15px 15px;
}

/* --- Estilos para Página de Consulta e Formulários --- */
.consulta-form-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: var(--main-blue);
    box-shadow: 0 0 0 4px rgba(0, 80, 212, 0.1);
}

/* --- Estilos para Mensagens de Status --- */
.status-message {
    padding: 20px 25px;
    margin-top: 25px;
    border-radius: 12px;
    text-align: center;
    line-height: 1.6;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.status-message strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.status-message i {
    margin-right: 10px;
    font-size: 1.2em;
}

.status-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #1c6c2e;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #8f232c;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-message.info {
    background: rgba(23, 162, 184, 0.1);
    color: #0f626f;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Estilos para Botões de Escolha e WhatsApp --- */
.choice-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-choice,
.btn-choice-secondary {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid;
    font-size: 1em;
    transition: all 0.2s ease;
}

.btn-choice {
    background-color: var(--main-blue);
    border-color: var(--main-blue);
    color: #fff;
}

.btn-choice:hover {
    background-color: #0040a8;
    border-color: #0040a8;
}

.btn-choice-secondary {
    background-color: transparent;
    border-color: #6c757d;
    color: #6c757d;
}

.btn-choice-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    border: 2px solid #25D366;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.2s ease;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
    border-color: #1DA851;
    color: #fff;
}

.btn-whatsapp i {
    margin-right: 8px;
}

/* --- NOVO ESTILO PARA CAIXA DE LINK 'VER REGRAS' --- */
.info-link-box {
    width: 100%;
    max-width: 550px;
    margin: 10px auto 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-link-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 80, 212, 0.08);
    border-color: #dbe8ff;
}

.info-link-box a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 1.05em;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.info-link-box a i {
    color: var(--main-blue);
    font-size: 1.2em;
}

.info-link-box a strong {
    color: var(--main-blue);
    font-weight: 700;
}


/* --- Ajustes Responsivos ---*/
@media (max-width: 992px) {
    .container {
        max-width: 98%;
        margin: 15px auto;
    }
    header {
        padding: 2.5rem 1.5rem;
    }
    header h1 {
        font-size: 2.2em;
    }
    header h1 .highlight-title {
        font-size: 0.75em;
    }
    header p.subtitle {
        font-size: 0.95em;
    }
    main {
        padding: 2rem 1.5rem;
    }
    .section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }
    .container {
        border-radius: 10px;
    }
    header {
        padding: 2rem 1rem;
        border-radius: 10px 10px 0 0;
    }
    header .logo {
        max-width: 120px;
    }
    header h1 {
        font-size: 1.8em;
    }
    header h1 .highlight-title {
        font-size: 0.8em;
    }
    header p.subtitle {
        font-size: 0.9em;
    }
    main {
        padding: 1.5rem 1rem;
        gap: 30px;
    }
    .section-title {
        font-size: 1.6em;
    }
    .text-block {
        font-size: 0.95em;
    }
    .question-section {
        padding: 2rem 1.5rem;
        margin-bottom: 25px;
        border-radius: 10px;
    }
    .question-section p {
        font-size: 1em;
    }
    .button-group {
        flex-direction: column;
        gap: 12px;
    }
    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9em;
    }
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .rule-card {
        padding: 18px;
        border-radius: 10px;
    }
    .rule-card h3 {
        font-size: 1em;
    }
    footer {
        font-size: 0.8em;
        padding: 15px 1rem;
        border-radius: 0 0 10px 10px;
    }
}