*{box-sizing:border-box}body{margin:0;background:#f3f4f6;color:#2b2b33;font-family:Manrope,Arial,sans-serif}.app{min-height:100vh}.topbar{height:68px;background:#fff;border-bottom:1px solid #e8e9ee;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:10px;color:#2d398e;text-decoration:none;font-weight:800;letter-spacing:.02em}.brand-mark{width:34px;height:34px;border-radius:10px;background:#2d398e;color:#fff;display:grid;place-items:center}.nav{display:flex;gap:18px;align-items:center}.nav a{color:#555765;text-decoration:none;font-size:13px;font-weight:700}.nav a:hover{color:#2d398e}.container{max-width:1120px;margin:0 auto;padding:28px 20px}.narrow{max-width:680px}.hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.hero h1{margin:0;color:#2d398e;font-size:28px}.muted{color:#777987}.card{background:#fff;border-radius:18px;padding:24px;box-shadow:0 2px 8px rgba(20,20,40,.05);margin-bottom:20px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{background:#fff;border-radius:16px;padding:20px}.stat .label{font-size:12px;color:#777987;font-weight:700;text-transform:uppercase}.stat .value{font-size:28px;font-weight:800;color:#2d398e;margin-top:8px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.field{margin-bottom:4px}.field label{display:block;font-size:13px;font-weight:800;margin-bottom:7px;color:#555765}.field input,.field select,.field textarea{width:100%;padding:12px 13px;border:1px solid #d8d9de;border-radius:10px;background:#fff;font:inherit;color:#2b2b33}.field textarea{min-height:110px;resize:vertical}.btn{display:inline-block;border:0;border-radius:10px;padding:12px 18px;background:#da1c5c;color:#fff;text-decoration:none;font:700 14px Manrope;cursor:pointer}.btn.blue{background:#2d398e}.btn.light{background:#fff;color:#2d398e;border:1px solid #d8d9de}.btn.danger{background:#b0154c}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px 10px;border-bottom:1px solid #eee;text-align:left;font-size:13px}.table th{font-size:11px;color:#777987;text-transform:uppercase}.badge{display:inline-block;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}.badge.green{background:#e8f7f5;color:#1f8478}.badge.yellow{background:#fff7de;color:#8a6d06}.badge.red{background:#fce8ef;color:#b0154c}.linkbox{background:#f7f7f9;border:1px solid #eaebef;border-radius:12px;padding:16px;word-break:break-all}.login{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(430px,100%);background:#fff;padding:32px;border-radius:20px;box-shadow:0 8px 30px rgba(20,20,40,.08)}.login-card h1{color:#2d398e;margin-top:0}.flash{padding:13px 16px;border-radius:10px;margin:18px 0;font-size:13px;font-weight:700}.flash.success{background:#e8f7f5;color:#1f8478}.flash.error{background:#fce8ef;color:#b0154c}.center{text-align:center}.nps{display:grid;grid-template-columns:repeat(11,1fr);gap:7px}.nps label{cursor:pointer}.nps input{display:none}.nps span{display:grid;place-items:center;height:46px;border:1px solid #d8d9de;border-radius:10px;font-weight:800}.nps input:checked+span{background:#2d398e;color:#fff;border-color:#2d398e}.survey-card{max-width:680px;margin:30px auto}.survey-header{text-align:center;margin-bottom:26px}.survey-header h1{color:#2d398e}.option{display:block;margin:8px 0;padding:12px 14px;border:1px solid #dddfe5;border-radius:10px;cursor:pointer}.option input{margin-right:8px}.footer{text-align:center;padding:30px;color:#999;font-size:12px}@media(max-width:800px){.grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.topbar{height:auto;padding:14px 18px;align-items:flex-start}.nav{gap:10px;flex-wrap:wrap;justify-content:flex-end}.nps{gap:4px}}@media(max-width:520px){.grid{grid-template-columns:1fr 1fr}.container{padding:20px 14px}.hero{align-items:flex-start;flex-direction:column}.nav a{font-size:11px}}


/* ==========================================================================
   IUNGO - PÁGINAS PÚBLICAS
   Pesquisa de satisfação + Obrigado
   IMPORTANTE: estilos totalmente isolados para não afetar o dashboard
   ========================================================================== */

:root {
    --iungo-pink: #DA1C5C;
    --iungo-pink-dark: #B0154C;
    --iungo-pink-soft: #FCE8EF;

    --iungo-blue: #2D398E;
    --iungo-blue-dark: #24307B;

    --iungo-teal: #3CBEB6;

    --iungo-text: #2B2B33;
    --iungo-text-muted: #5A5B66;
    --iungo-text-faint: #9A9BA5;

    --iungo-border: #D8D9DE;
    --iungo-border-soft: #EAEBEF;

    --iungo-bg: #F3F4F6;
    --iungo-card-bg: #FFFFFF;

    --iungo-shadow:
        0 12px 35px rgba(20, 20, 40, 0.08);

    --iungo-shadow-hover:
        0 18px 45px rgba(20, 20, 40, 0.12);

    --iungo-radius-lg: 20px;
    --iungo-radius-md: 12px;
    --iungo-radius-sm: 10px;

    --iungo-font:
        'Manrope',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
}


/* ==========================================================================
   FUNDO DAS PÁGINAS PÚBLICAS
   :has() garante que o dashboard não seja afetado
   ========================================================================== */

body:has(.survey-card),
body:has(.login-card) {
    background:
        linear-gradient(
            180deg,
            #F7F8FA 0%,
            #F3F4F6 100%
        );

    font-family: var(--iungo-font);
    color: var(--iungo-text);

    min-height: 100vh;
}


/* ==========================================================================
   PESQUISA - CONTAINER
   ========================================================================== */

body:has(.survey-card) .container {
    width: 100%;
    max-width: 680px;

    margin: 0 auto;

    padding:
        34px 20px
        60px;
}


body:has(.survey-card) .survey-card {
    background: #FFFFFF;

    border-radius: var(--iungo-radius-lg);

    border: 1px solid rgba(216, 217, 222, 0.65);

    box-shadow: var(--iungo-shadow);

    padding:
        clamp(26px, 5vw, 42px);

    margin-top: 0;

    transition:
        box-shadow .2s ease,
        transform .2s ease;
}


/* ==========================================================================
   LOGO - PESQUISA
   ========================================================================== */

body:has(.survey-card) .survey-header .brand {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 24px;
}


/*
   Caso esteja usando o logo textual:
   <span class="brand-mark">I</span>
   <span>IUNGO</span>
*/

body:has(.survey-card) .survey-header .brand-mark {
    width: 48px;
    height: 48px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--iungo-blue);

    color: #FFFFFF;

    font-size: 24px;
    font-weight: 800;

    box-shadow:
        0 6px 16px rgba(45, 57, 142, 0.20);
}


body:has(.survey-card) .survey-header .brand span:last-child {
    color: var(--iungo-blue);

    font-size: 23px;

    font-weight: 800;

    letter-spacing: -0.02em;
}


/* ==========================================================================
   CABEÇALHO DA PESQUISA
   ========================================================================== */

body:has(.survey-card) .survey-header {
    text-align: center;

    margin-bottom: 34px;
}


body:has(.survey-card) .survey-header h1 {
    margin: 0 0 12px;

    color: var(--iungo-blue);

    font-size:
        clamp(24px, 4vw, 30px);

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -0.025em;
}


body:has(.survey-card) .survey-header .muted {
    max-width: 540px;

    margin:
        0 auto 8px;

    color: var(--iungo-text-muted);

    font-size: 15px;

    line-height: 1.6;
}


body:has(.survey-card) .survey-header strong {
    color: var(--iungo-blue);
}


/* ==========================================================================
   CAMPOS
   ========================================================================== */

body:has(.survey-card) .field {
    margin-bottom: 28px;
}


body:has(.survey-card) .field > label {
    display: block;

    margin-bottom: 13px;

    color: var(--iungo-text);

    font-size: 15px;

    line-height: 1.45;

    font-weight: 700;
}


/* ==========================================================================
   NPS
   ========================================================================== */

body:has(.survey-card) .nps {
    display: grid;

    grid-template-columns:
        repeat(11, minmax(0, 1fr));

    gap: 6px;

    width: 100%;
}


body:has(.survey-card) .nps label {
    display: block;

    margin: 0;
}


body:has(.survey-card) .nps input[type="radio"] {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


body:has(.survey-card) .nps span {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 44px;

    border:
        1px solid var(--iungo-border);

    border-radius: 10px;

    background: #FFFFFF;

    color: var(--iungo-text);

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        all .15s ease;
}


body:has(.survey-card) .nps span:hover {
    border-color: var(--iungo-pink);

    color: var(--iungo-pink);

    transform:
        translateY(-2px);

    box-shadow:
        0 4px 10px rgba(218, 28, 92, 0.10);
}


body:has(.survey-card)
.nps input[type="radio"]:checked + span {
    border-color: var(--iungo-pink);

    background: var(--iungo-pink);

    color: #FFFFFF;

    box-shadow:
        0 5px 14px rgba(218, 28, 92, 0.22);

    transform:
        translateY(-1px);
}


/* ==========================================================================
   OPÇÕES
   ========================================================================== */

body:has(.survey-card) .option {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin:
        0 7px 9px 0;

    padding:
        11px 16px;

    border:
        1px solid var(--iungo-border);

    border-radius: var(--iungo-radius-sm);

    background: #FFFFFF;

    color: var(--iungo-text);

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        all .15s ease;
}


body:has(.survey-card) .option:hover {
    border-color: var(--iungo-pink);

    transform:
        translateY(-1px);
}


body:has(.survey-card)
.option input[type="radio"],
body:has(.survey-card)
.option input[type="checkbox"] {
    accent-color: var(--iungo-pink);

    width: 16px;
    height: 16px;
}


body:has(.survey-card)
.option:has(input:checked) {
    border-color: var(--iungo-pink);

    background:
        var(--iungo-pink-soft);

    color:
        var(--iungo-pink-dark);

    box-shadow:
        0 3px 10px rgba(218, 28, 92, 0.07);
}


/* ==========================================================================
   TEXTAREA
   ========================================================================== */

body:has(.survey-card) textarea {
    width: 100%;

    min-height: 115px;

    padding: 13px 14px;

    border:
        1px solid var(--iungo-border);

    border-radius:
        var(--iungo-radius-sm);

    background: #FFFFFF;

    color: var(--iungo-text);

    font-size: 15px;

    line-height: 1.5;

    resize: vertical;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


body:has(.survey-card) textarea::placeholder {
    color: var(--iungo-text-faint);
}


body:has(.survey-card) textarea:focus {
    outline: none;

    border-color:
        var(--iungo-pink);

    box-shadow:
        0 0 0 4px
        rgba(218, 28, 92, 0.08);
}


/* ==========================================================================
   ERRO
   ========================================================================== */

body:has(.survey-card) .flash.error {
    margin:
        0 0 24px;

    padding:
        13px 15px;

    border-radius:
        var(--iungo-radius-sm);

    background:
        var(--iungo-pink-soft);

    color:
        var(--iungo-pink-dark);

    border:
        1px solid rgba(218, 28, 92, 0.12);

    font-size: 14px;

    font-weight: 600;
}


/* ==========================================================================
   BOTÃO ENVIAR
   ========================================================================== */

body:has(.survey-card) .actions {
    margin-top: 32px;
}


body:has(.survey-card) .actions .btn {
    width: 100%;

    min-height: 52px;

    padding:
        14px 20px;

    border: none;

    border-radius:
        var(--iungo-radius-md);

    background:
        var(--iungo-pink);

    color: #FFFFFF;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 6px 16px
        rgba(218, 28, 92, 0.18);

    transition:
        all .15s ease;
}


body:has(.survey-card) .actions .btn:hover {
    background:
        var(--iungo-pink-dark);

    box-shadow:
        0 8px 20px
        rgba(218, 28, 92, 0.25);

    transform:
        translateY(-1px);
}


body:has(.survey-card) .actions .btn:active {
    transform:
        translateY(1px);
}


/* ==========================================================================
   PÁGINA OBRIGADO
   ========================================================================== */

body:has(.login-card) .login {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        30px 20px;
}


body:has(.login-card) .login-card {
    width: 100%;

    max-width: 460px;

    padding:
        clamp(30px, 6vw, 46px);

    background:
        #FFFFFF;

    border:
        1px solid rgba(216, 217, 222, 0.65);

    border-radius:
        var(--iungo-radius-lg);

    box-shadow:
        var(--iungo-shadow);

    text-align: center;
}


/* ==========================================================================
   LOGO - OBRIGADO
   ========================================================================== */

body:has(.login-card) .login-card .brand {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    margin-bottom: 25px;
}


body:has(.login-card) .login-card .brand-mark {
    width: 58px;
    height: 58px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background:
        var(--iungo-blue);

    color: #FFFFFF;

    font-size: 28px;

    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(45, 57, 142, 0.20);
}


body:has(.login-card) .login-card .brand span:last-child {
    color:
        var(--iungo-blue);

    font-size: 26px;

    font-weight: 800;

    letter-spacing:
        -0.025em;
}


/* ==========================================================================
   TEXTO OBRIGADO
   ========================================================================== */

body:has(.login-card) .login-card h1 {
    margin:
        0 0 12px;

    color:
        var(--iungo-blue);

    font-size:
        clamp(25px, 5vw, 30px);

    line-height: 1.2;

    font-weight: 800;

    letter-spacing:
        -0.025em;
}


body:has(.login-card) .login-card .muted {
    color:
        var(--iungo-text-muted);

    font-size: 15px;

    line-height: 1.6;
}


/* ==========================================================================
   PROTOCOLO
   ========================================================================== */

body:has(.login-card) .protocol {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 15px;

    padding:
        7px 14px;

    border-radius:
        999px;

    background:
        var(--iungo-pink-soft);

    color:
        var(--iungo-pink-dark);

    font-size: 13px;

    font-weight: 700;

    border:
        1px solid rgba(218, 28, 92, 0.10);
}


/* ==========================================================================
   LINK / ELEMENTOS EXTRAS DA PÁGINA OBRIGADO
   ========================================================================== */

body:has(.login-card) .login-card a {
    color:
        var(--iungo-pink);

    font-weight: 700;
}


body:has(.login-card) .login-card a:hover {
    color:
        var(--iungo-pink-dark);
}


/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 600px) {

    body:has(.survey-card) .container {
        padding:
            20px 14px 40px;
    }


    body:has(.survey-card) .survey-card {
        padding:
            24px 18px;
    }


    body:has(.survey-card) .survey-header {
        margin-bottom: 28px;
    }


    body:has(.survey-card) .survey-header .brand-mark {
        width: 44px;
        height: 44px;

        border-radius: 12px;

        font-size: 21px;
    }


    body:has(.survey-card)
    .survey-header .brand span:last-child {
        font-size: 21px;
    }


    body:has(.survey-card) .survey-header h1 {
        font-size: 24px;
    }


    body:has(.survey-card) .nps {
        gap: 4px;
    }


    body:has(.survey-card) .nps span {
        height: 40px;

        border-radius: 8px;

        font-size: 13px;
    }


    body:has(.survey-card) .option {
        width: 100%;

        margin-right: 0;

        padding:
            11px 13px;
    }


    body:has(.login-card) .login {
        padding:
            20px 14px;
    }


    body:has(.login-card) .login-card {
        padding:
            30px 20px;
    }


    body:has(.login-card)
    .login-card .brand-mark {
        width: 52px;
        height: 52px;

        font-size: 25px;
    }


    body:has(.login-card)
    .login-card .brand span:last-child {
        font-size: 23px;
    }
}


@media (max-width: 380px) {

    body:has(.survey-card) .nps {
        gap: 3px;
    }


    body:has(.survey-card) .nps span {
        height: 37px;

        font-size: 12px;
    }


    body:has(.survey-card) .survey-card {
        padding:
            22px 15px;
    }
}
