/* =====================================================================
   COB · Pesquisa de Satisfação · Estilos da pesquisa pública
   Identidade oficial: roxo #3D00BF · teal #11E5B3 · royal #4054DB
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --purple: #3D00BF;
    --purple-deep: #2E0090;
    --teal: #11E5B3;
    --teal-deep: #0bbf94;
    --royal: #4054DB;
    --paper: #f6f5fb;
    --ink: #1c1830;
    --muted: #6f6a85;
    --light: #ece9f7;
    --red: #c0392b;
    --gold: #d08b00;
}

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

html, body {
    font-family: 'Montserrat', sans-serif;
    color: var(--ink);
    background: radial-gradient(1200px 600px at 80% -10%, rgba(17, 229, 179, .12), transparent),
                linear-gradient(165deg, var(--paper) 0%, #ece9f7 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body { padding: 32px 18px 64px; }

.container { max-width: 780px; margin: 0 auto; }

/* ─── Animações ──────────────────────────────────── */
.cob-card { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

/* ─── Logo ──────────────────────────────────────── */
.logo { display: block; height: 44px; width: auto; }
.logo-mark { display: block; height: 36px; width: auto; }

/* ─── Header da pesquisa ────────────────────────── */
.header-survey {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.header-survey .progress-wrap { flex: 1; }
.header-survey .pct {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

/* ─── Barra de progresso ────────────────────────── */
.progress {
    height: 6px;
    background: rgba(61, 0, 191, .12);
    border-radius: 99px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--royal) 60%, var(--teal));
    border-radius: 99px;
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

/* ─── Hero da home ──────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 70%);
    border-radius: 24px;
    padding: 48px 44px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(61, 0, 191, .34);
    margin-top: 36px;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -50px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--teal);
    opacity: .16;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: 90px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--royal);
    opacity: .35;
}
.hero > * { position: relative; z-index: 1; }
.hero .kicker {
    color: var(--teal);
    letter-spacing: .24em;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero h1 {
    font-weight: 800;
    font-size: 40px;
    line-height: 1.08;
    margin-bottom: 18px;
    letter-spacing: -.5px;
}
.hero p {
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.6;
    max-width: 520px;
    margin-bottom: 22px;
    font-weight: 400;
}
.hero p strong { color: var(--teal); font-weight: 600; }

/* ─── Botões ─────────────────────────────────────── */
.btn {
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }

.btn-teal {
    background: var(--teal);
    color: var(--purple-deep);
    font-weight: 700;
    font-size: 16px;
    padding: 15px 34px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(17, 229, 179, .45);
}
.btn-purple {
    background: var(--purple);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 13px 30px;
    border-radius: 11px;
}
.btn-purple:disabled {
    background: rgba(61, 0, 191, .2);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 4px;
}

/* ─── Stats da home ──────────────────────────────── */
.stats {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.stat {
    flex: 1 1 150px;
    background: #fff;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(61, 0, 191, .08);
}
.stat .v {
    font-size: 26px;
    font-weight: 800;
    color: var(--purple);
    letter-spacing: -.5px;
}
.stat .l {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
}

/* ─── Card de pesquisa ───────────────────────────── */
.card {
    background: #fff;
    border-radius: 22px;
    padding: 38px 38px 30px;
    border: 1px solid rgba(61, 0, 191, .08);
    box-shadow: 0 16px 44px rgba(61, 0, 191, .10);
}
.card .kicker {
    color: var(--purple);
    letter-spacing: .18em;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.card h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    line-height: 1.18;
    letter-spacing: -.3px;
}
.card .lede {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
    font-weight: 400;
}

/* ─── Inputs ─────────────────────────────────────── */
.label {
    font-size: 13px;
    font-weight: 600;
    color: var(--purple);
    display: block;
    margin-bottom: 5px;
}
input[type="text"], input[type="email"], select, textarea {
    width: 100%;
    padding: 13px 15px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    border: 1.5px solid rgba(61, 0, 191, .16);
    border-radius: 11px;
    margin-bottom: 14px;
    color: var(--ink);
    background: var(--paper);
    font-weight: 500;
}
textarea {
    min-height: 130px;
    resize: vertical;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(61, 0, 191, .16);
}

/* ─── Opções (radio buttons grandes) ─────────────── */
.opt {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 15px 18px;
    margin-bottom: 10px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid rgba(61, 0, 191, .14);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all .2s;
}
.opt:hover {
    border-color: var(--purple);
    background: rgba(61, 0, 191, .05);
}
.opt.selected {
    background: rgba(61, 0, 191, .07);
    border-color: var(--purple);
}
.opt .radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(61, 0, 191, .25);
    background: transparent;
    transition: all .2s;
}
.opt.selected .radio {
    border-color: var(--purple);
    background: var(--purple);
    box-shadow: inset 0 0 0 3px #fff;
}

/* ─── Escala NPS ────────────────────────────────── */
.nps-scale {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 7px;
    margin-bottom: 12px;
}
.nps-btn {
    aspect-ratio: 1;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    background: #fff;
    color: var(--purple);
    border: 1.5px solid rgba(61, 0, 191, .18);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: transform .15s;
}
.nps-btn:hover { transform: scale(1.08); }
.nps-btn.selected { color: #fff; }
.nps-btn.selected.det { background: var(--red); border-color: var(--red); }
.nps-btn.selected.neu { background: var(--gold); border-color: var(--gold); }
.nps-btn.selected.pro { background: var(--teal-deep); border-color: var(--teal-deep); }
.nps-legend {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
    padding: 0 2px;
}
.classif-pill {
    margin-top: 18px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(17, 229, 179, .14);
    font-size: 13.5px;
    color: var(--purple-deep);
    font-weight: 500;
}
.classif-pill strong { font-weight: 700; }

/* ─── Chips de diferenciais ──────────────────────── */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.chip {
    padding: 11px 16px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 500;
    background: #fff;
    color: var(--purple);
    border: 1.5px solid rgba(61, 0, 191, .18);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .2s;
}
.chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(61, 0, 191, .18);
}
.chip.selected {
    background: var(--purple);
    color: #fff;
    font-weight: 700;
    border-color: var(--purple);
    box-shadow: 0 4px 14px rgba(61, 0, 191, .25);
}
.chip-counter {
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 500;
    margin: 0 0 6px;
}

/* ─── Navegação inferior do card ────────────────── */
.nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

/* ─── Box de aviso ───────────────────────────────── */
.aviso {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(17, 229, 179, .12);
    border-left: 3px solid var(--teal-deep);
    margin-bottom: 22px;
}
.aviso p {
    font-size: 14px;
    color: var(--purple-deep);
    line-height: 1.55;
    margin: 0;
    font-weight: 500;
}
.aviso strong { font-weight: 700; }

/* ─── Tela de agradecimento ──────────────────────── */
.thanks {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 70%);
    border-radius: 24px;
    padding: 60px 44px;
    color: #fff;
    text-align: center;
    box-shadow: 0 24px 60px rgba(61, 0, 191, .34);
    position: relative;
    overflow: hidden;
}
.thanks::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--teal);
    opacity: .14;
}
.thanks > * { position: relative; }
.thanks .icon { margin-bottom: 18px; display: inline-flex; }
.thanks h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -.5px;
}
.thanks p {
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    max-width: 460px;
    margin: 0 auto 32px;
    line-height: 1.6;
    font-weight: 400;
}
.thanks .btn-secondary {
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 28px;
    border-radius: 11px;
    border: 1.5px solid rgba(255, 255, 255, .35);
}

/* ─── Responsivo ─────────────────────────────────── */
@media (max-width: 600px) {
    body { padding: 20px 14px 48px; }
    .hero { padding: 36px 28px; border-radius: 20px; }
    .hero h1 { font-size: 32px; }
    .card { padding: 28px 24px 24px; border-radius: 18px; }
    .card h2 { font-size: 22px; }
    .nps-scale { gap: 4px; }
    .nps-btn { font-size: 14px; }
    .thanks { padding: 44px 28px; }
    .thanks h2 { font-size: 28px; }
}
