
:root {
    --blue: #1687c9;
    --blue-dark: #124b6b;
    --navy: #123d58;
    --orange: #f29a38;
    --ink: #183345;
    --muted: #718391;
    --line: #e4edf2;
    --bg: #f3f7fa;
}

/* ========================================
   CONFIGURAÇÕES GERAIS
======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

/* ========================================
   CABEÇALHO E LOGO
======================================== */

.site-header,
.admin-nav {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 10px;
    letter-spacing: 1.4px;
    color: var(--muted);
    font-weight: 700;
}

/* NOVA MEDIDA DA LOGO */
.brand-logo,
.brand img {
    width: 85px !important;
    height: 38px !important;
    max-width: 85px !important;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
}

.brand strong {
    display: block;
    color: var(--navy);
    font-size: 12px;
    letter-spacing: .7px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--blue);
    color: white;
    font-weight: 900;
    font-size: 17px;
    letter-spacing: -1px;
}

.header-tag,
.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--blue);
}

/* ========================================
   PÁGINA INICIAL
======================================== */

.form-shell {
    max-width: 960px;
    padding-top: 42px;
    padding-bottom: 48px;
    min-height: calc(100vh - 130px);
}

.intro-card,
.form-card,
.success-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(25, 66, 91, .07);
    overflow: hidden;
}

.intro-card {
    min-height: 500px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    position: relative;
}

.intro-copy {
    padding: 65px 58px;
    position: relative;
    z-index: 1;
}

.intro-copy h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -2px;
    font-weight: 850;
    color: var(--navy);
    margin: 18px 0;
}

.intro-copy h1 span {
    color: var(--orange);
}

.intro-copy p {
    max-width: 520px;
    color: #627887;
    line-height: 1.8;
    margin-bottom: 28px;
}

.intro-art {
    background: linear-gradient(145deg, #eaf6fc, #d6ebf7);
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.art-circle {
    width: 300px;
    height: 300px;
    border: 35px solid rgba(22, 135, 201, .16);
    border-radius: 50%;
    box-shadow:
        0 0 0 35px rgba(242, 154, 56, .13),
        0 0 0 70px rgba(22, 135, 201, .07);
}

.art-label {
    position: absolute;
    background: var(--blue);
    color: white;
    padding: 22px 27px;
    border-radius: 15px;
    transform: rotate(-7deg);
    font-size: 12px;
    letter-spacing: 2px;
    box-shadow: 0 12px 30px #1687c944;
}

.art-label b {
    font-size: 18px;
}

/* ========================================
   BOTÕES
======================================== */

.btn-primary-custom {
    background: var(--blue);
    border: 0;
    color: #fff;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 8px 18px #1687c933;
}

.btn-primary-custom:hover {
    background: var(--blue-dark);
    color: #fff;
}

.btn-primary-custom span {
    font-size: 17px;
    margin-left: 10px;
}

.btn-light-custom {
    background: #f1f5f7;
    color: #526b7b;
    border: 0;
    border-radius: 10px;
    padding: 13px 19px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ========================================
   FORMULÁRIO
======================================== */

.form-card {
    padding: 36px 42px;
}

.form-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-title {
    font-size: 27px;
    font-weight: 800;
    color: var(--navy);
    margin-top: 5px;
}

.step-count {
    font-size: 12px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 1px;
}

.progress-track {
    height: 5px;
    background: #eaf1f5;
    border-radius: 10px;
    margin: 22px 0 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 33.33%;
    background: linear-gradient(90deg, var(--blue), var(--orange));
    transition: width .25s;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.section-help {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.form-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 1px solid #dce7ed;
    border-radius: 9px;
    padding: 12px 13px;
    font-size: 13px;
    color: var(--ink);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 .2rem #1687c91c;
}

/* ========================================
   OPÇÕES E SELEÇÕES
======================================== */

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.choice,
.check-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    color: #4f6573;
    cursor: pointer;
    transition: .15s;
}

.choice:has(input:checked),
.check-choice:has(input:checked) {
    border-color: var(--blue);
    background: #eef8fd;
    color: var(--blue-dark);
}

.choice input,
.check-choice input {
    accent-color: var(--blue);
}

.check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.compact {
    grid-template-columns: repeat(3, 1fr);
}

/* ========================================
   AÇÕES DO FORMULÁRIO
======================================== */

.form-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 30px;
}

.privacy-note {
    font-size: 11px;
    color: #8495a0;
    margin-top: 25px;
    max-width: 450px;
}

/* ========================================
   TELA DE SUCESSO
======================================== */

.success-card {
    max-width: 650px;
    margin: 30px auto;
    padding: 55px 35px;
}

.success-icon {
    margin: 0 auto 20px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e9f7ef;
    color: #22975a;
    font-size: 32px;
    font-weight: 800;
}

.success-card h1 {
    font-weight: 850;
    color: var(--navy);
    margin: 12px 0;
}

.success-card p {
    color: var(--muted);
    line-height: 1.7;
}

.protocol {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: #f2f8fb;
    padding: 15px 25px;
    border-radius: 10px;
    margin-top: 14px;
}

.protocol small {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--muted);
}

.protocol strong {
    font-size: 19px;
    color: var(--blue);
    letter-spacing: 1px;
}

/* ========================================
   RODAPÉ
======================================== */

.site-footer {
    text-align: center;
    color: #94a4ae;
    font-size: 9px;
    letter-spacing: 1.5px;
    padding: 20px;
}

/* ========================================
   PAINEL ADMINISTRATIVO
======================================== */

.admin-page {
    background: #f3f7fa;
}

.admin-nav {
    padding: 13px 0;
}

.admin-welcome {
    font-size: 12px;
    color: var(--muted);
}

.logout-link {
    font-size: 12px;
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.dashboard-wrap {
    padding: 36px 28px;
    max-width: 1500px;
}

.dashboard-wrap h1 {
    font-weight: 850;
    color: var(--navy);
    font-size: 30px;
    margin: 5px 0;
}

/* ========================================
   CARDS E INDICADORES
======================================== */

.stat-card,
.panel-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(25, 66, 91, .035);
}

.stat-card {
    border-left: 4px solid var(--blue);
}

.stat-card.orange {
    border-left-color: var(--orange);
}

.stat-card span,
.stat-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.stat-card strong {
    display: block;
    font-size: 34px;
    color: var(--navy);
    font-weight: 850;
    margin: 7px 0;
}

.panel-card h5 {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
}

.panel-card canvas {
    max-height: 270px;
}

/* ========================================
   TABELAS
======================================== */

.table {
    font-size: 12px;
}

.table thead th {
    font-size: 10px;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #8495a0;
    border-bottom-color: var(--line);
}

.table td {
    color: #506776;
    border-bottom-color: #edf2f5;
}

.mini-tag {
    background: #eef7fc;
    color: var(--blue-dark);
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 10px;
}

/* ========================================
   LOGIN ADMINISTRATIVO
======================================== */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
    background: linear-gradient(140deg, #eaf5fb, #f6f9fb);
}

.login-card {
    width: min(100%, 430px);
    background: white;
    padding: 35px;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 55px #19425b12;
}

.login-card h2 {
    font-weight: 850;
    color: var(--navy);
    font-size: 25px;
}

.login-card p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 25px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: var(--blue);
    text-decoration: none;
}

/* ========================================
   SEGURANÇA
======================================== */

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 767px) {

    .form-shell {
        padding: 20px 12px 35px;
    }

    .intro-card {
        grid-template-columns: 1fr;
    }

    .intro-copy {
        padding: 38px 25px;
    }

    .intro-art {
        min-height: 190px;
    }

    .art-circle {
        width: 155px;
        height: 155px;
        border-width: 20px;
    }

    .art-label {
        padding: 12px 17px;
    }

    .form-card {
        padding: 25px 20px;
    }

    .choice-grid,
    .check-grid {
        grid-template-columns: 1fr;
    }

    .compact {
        grid-template-columns: repeat(3, 1fr);
    }

    .step-title {
        font-size: 22px;
    }

    .dashboard-wrap {
        padding: 25px 12px;
    }

    .admin-welcome {
        display: none;
    }

    .header-tag {
        font-size: 8px;
    }

    .form-actions .btn {
        padding: 12px 14px;
        font-size: 10px;
    }

    .brand-logo,
    .brand img {
        width: 85px !important;
        height: 34px !important;
        max-width: 75px !important;
    }
}
.site-header .brand img,
.admin-nav .brand img,
.brand img.brand-logo {
    display: block !important;
    width: 80px !important;
    height: 45px !important;
    max-width: 80px !important;
    max-height: 45px !important;
    object-fit: contain !important;
}


/* IMAGEM LATERAL - AJUSTE FINAL */

.intro-card {
    align-items: stretch;
}

.intro-art {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100%;
    align-self: stretch;
    overflow: hidden;
    padding: 0;
}

.feira-banner {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
}

/* CELULAR */

@media (max-width: 767px) {
    .intro-art {
        height: 320px;
        min-height: 320px;
    }

    .feira-banner {
        height: 100% !important;
    }
}
