/* ============================================
   Qualité Benefícios — Canal de Denúncia
   Herda paleta da landing/EAD pra consistência visual
   ============================================ */

:root {
    --orange: #E87722;
    --orange-light: #F5A05A;
    --orange-dark: #C45F12;
    --orange-soft: rgba(232, 119, 34, 0.10);
    --navy: #0B1E3F;
    --navy-deep: #061530;
    --navy-light: #1A3160;
    --cream: #FBF7F2;
    --white: #FFFFFF;
    --ink: #16223A;
    --muted: #5B6B86;
    --success: #2E8B57;
    --line: rgba(11, 30, 63, 0.10);
    --line-soft: rgba(11, 30, 63, 0.05);
    --shadow-sm: 0 4px 16px rgba(11, 30, 63, 0.06);
    --shadow-md: 0 12px 32px rgba(11, 30, 63, 0.10);
    --shadow-lg: 0 24px 60px rgba(11, 30, 63, 0.18);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: #F5F1EB;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { color: var(--orange-dark); text-decoration: underline; }
a:hover { color: var(--orange); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}
h1 em, h2 em, h3 em {
    font-style: italic;
    color: var(--orange);
}

/* ========== Header ========== */
.app-header {
    background: var(--navy);
    color: #fff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: var(--shadow-md);
}
.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.header-logo {
    display: flex; align-items: center; gap: 10px;
    min-height: 40px;
}
.header-logo .brand-logo {
    max-height: 44px; width: auto; display: block;
    filter: brightness(1.05);
}
.header-logo .brand-fallback {
    display: none;
    align-items: center; gap: 10px;
}
.header-logo.no-logo .brand-logo { display: none; }
.header-logo.no-logo .brand-fallback { display: flex; }
.header-logo .mark {
    width: 36px; height: 36px;
    background: var(--orange);
    border-radius: 10px;
    display: grid; place-items: center;
    font-family: var(--font-serif); font-weight: 800; font-size: 1.15rem;
}
.header-logo .name {
    font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem;
}
.header-logo .name em { color: var(--orange-light); font-weight: 500; }

.header-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* ========== Layout principal ========== */
.shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.intro {
    margin-bottom: 32px;
}
.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 12px;
}
.intro h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.intro p {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 60ch;
}

/* ========== Garantias (cards de confiança) ========== */
.guarantees {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}
.guarantee {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.guarantee .icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    display: grid; place-items: center;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.guarantee strong {
    display: block;
    color: var(--navy);
    font-size: 0.92rem;
    margin-bottom: 4px;
}
.guarantee span {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ========== Formulário ========== */
.form-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-section {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line-soft);
}
.form-section:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.form-section h2 {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    margin-bottom: 4px;
    font-weight: 700;
}
.form-section .section-hint {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}
.form-group label .required {
    color: var(--orange);
    margin-left: 2px;
}
.form-group label .optional {
    color: var(--muted);
    font-weight: 400;
    font-size: 0.78rem;
    margin-left: 6px;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--cream);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-group select { cursor: pointer; }
.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--white);
}
.form-group .field-error {
    display: block;
    font-size: 0.78rem;
    color: var(--orange-dark);
    margin-top: 6px;
    min-height: 1em;
}

/* Honeypot — invisível pro usuário, visível pro bot */
.hp-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ===== Radio cards (modo de identificação) ===== */
.radio-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}
.radio-card {
    display: block;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--cream);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.radio-card:hover { border-color: var(--orange-light); }
.radio-card.selected {
    border-color: var(--orange);
    background: var(--orange-soft);
}
.radio-card input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--orange);
}
.radio-card .rc-title {
    display: inline;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.92rem;
}
.radio-card .rc-desc {
    display: block;
    margin-top: 6px;
    margin-left: 24px;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

.id-fields {
    display: none;
    margin-top: 18px;
    padding: 18px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--line);
}
.id-fields.show { display: block; }
.id-fields .grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ===== Checkbox termo ===== */
.checkbox-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: var(--cream);
    border-radius: var(--radius-sm);
}
.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--orange);
    flex-shrink: 0;
}
.checkbox-group label {
    font-size: 0.88rem;
    color: var(--ink);
    line-height: 1.5;
    margin: 0;
}

/* ===== Botão ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
    white-space: nowrap;
    text-decoration: none;
}
.btn-primary {
    background: var(--orange);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(232, 119, 34, 0.32);
}
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(232, 119, 34, 0.44);
}
.btn-primary:disabled {
    background: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.6;
}
.btn-ghost {
    background: transparent;
    color: var(--navy) !important;
    border: 1.5px solid var(--line);
}
.btn-ghost:hover {
    background: var(--cream);
    border-color: var(--navy);
}

.form-submit {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

/* ===== Mensagem de erro global do form ===== */
.form-error {
    display: none;
    background: rgba(196, 95, 18, 0.08);
    border: 1px solid rgba(196, 95, 18, 0.25);
    color: var(--orange-dark);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-top: 12px;
}
.form-error.show { display: block; }

/* ============================================
   PÁGINA DE CONFIRMAÇÃO (enviado.html)
   ============================================ */
.confirm-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--line-soft);
}
.confirm-icon {
    width: 72px; height: 72px;
    background: rgba(46, 139, 87, 0.12);
    color: var(--success);
    border-radius: 50%;
    display: grid; place-items: center;
    margin: 0 auto 24px;
    font-size: 2.2rem;
}
.confirm-card h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.confirm-card .lead {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 28px;
}
.protocolo-box {
    background: var(--cream);
    border: 2px dashed var(--orange);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 28px auto;
    max-width: 380px;
}
.protocolo-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 8px;
}
.protocolo-value {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--orange-dark);
    font-weight: 800;
    letter-spacing: 0.05em;
    user-select: all;
}
.confirm-actions {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.confirm-note {
    margin-top: 36px;
    padding: 18px;
    background: var(--orange-soft);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: left;
}
.confirm-note strong { color: var(--navy); }

/* ============================================
   PÁGINA DE POLÍTICA (politica.html)
   ============================================ */
.policy-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-soft);
}
.policy-card h1 { font-size: 1.8rem; margin-bottom: 8px; }
.policy-card .lead { color: var(--muted); margin-bottom: 28px; }
.policy-card h2 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    margin-top: 28px;
    margin-bottom: 10px;
}
.policy-card p, .policy-card li {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 10px;
}
.policy-card ul { padding-left: 22px; }

/* ============================================
   Responsivo
   ============================================ */
@media (max-width: 640px) {
    .header-inner { padding: 0 16px; }
    .header-title { display: none; }
    .shell { padding: 28px 16px 60px; }
    .intro h1 { font-size: 1.6rem; }
    .guarantees { grid-template-columns: 1fr; }
    .form-card { padding: 24px 20px; }
    .id-fields .grid-2 { grid-template-columns: 1fr; }
    .confirm-card { padding: 32px 24px; }
}
