/* Opinião do dono (templates/opiniao-dono.tpl, newsletter.tpl). Tokens de css/refinado.css. */
.op { max-width: 780px; margin: 0 auto; padding-bottom: 56px; }
.op [hidden] { display: none !important; }
.op-topo { padding: 12px 0 4px; }
.op-chapeu { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--gc-laranja-2, #f15921); }
body .op h1 { font-size: 32px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #18181b; margin: 6px 0 10px; }
body .op-topo p { font-size: 16px; line-height: 1.6; color: #3f3f46; margin: 0 0 12px; }
.op-vantagens { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; }
.op-vantagens li { font-size: 13.5px; color: #52525b; background: #fafafa; border: 1px solid #ececef; border-radius: 999px; padding: 6px 12px; }
.op-vantagens b { color: #18181b; }

.op-cartao { position: relative; border: 1px solid #ececef; border-radius: 20px; background: #fff; box-shadow: var(--gc-sombra-m, 0 12px 32px rgba(20, 20, 20, .09));
    padding: 22px 26px 26px; scroll-margin-top: 80px; }
.op-progresso { height: 6px; border-radius: 999px; background: #f4f4f5; overflow: hidden; margin-bottom: 12px; }
.op-progresso span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gc-laranja-3, #ff7b33), var(--gc-laranja, #ff5a00)); border-radius: 999px; transition: width .35s ease; }
.op-etapas { display: flex; justify-content: space-between; list-style: none; margin: 0 0 18px; padding: 0; counter-reset: etapa; }
.op-etapas li { counter-increment: etapa; font-size: 12.5px; color: #a1a1aa; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.op-etapas li::before { content: counter(etapa); width: 22px; height: 22px; border-radius: 50%; background: #f4f4f5; color: #71717a; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.op-etapas li.atual { color: #18181b; }
.op-etapas li.atual::before { background: var(--gc-laranja, #ff5a00); color: #fff; }
.op-etapas li.feito::before { content: '✓'; background: var(--gc-laranja-suave, #fff4ee); color: var(--gc-laranja-2, #f15921); }
.op-rascunho { font-size: 13.5px; color: #52525b; background: #fafafa; border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.op-rascunho button { border: 0; background: none; color: var(--gc-laranja-2, #f15921); font-weight: 700; cursor: pointer; font: inherit; padding: 0; }

body .op h2 { font-size: 23px; font-weight: 800; color: #18181b; margin: 4px 0 6px; letter-spacing: -.01em; }
.op-dica { font-size: 14.5px; color: #71717a; margin: 0 0 16px; }
.op-campo { display: flex; flex-direction: column; gap: 7px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; flex: 1; }
.op-campo > span, .op-campo legend { font-size: 14.5px; font-weight: 700; color: #27272a; padding: 0; margin-bottom: 7px; }
fieldset.op-campo legend + * { margin-top: 0; }
.op-campo small { font-weight: 400; color: #a1a1aa; }
.op-campo--curto { flex: 0 0 140px; }
.op-linha { display: flex; gap: 14px; flex-wrap: wrap; }
.op input[type=text], .op input[type=email], .op select, .op textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15.5px; color: #18181b; background: #fff;
    border: 1px solid #e4e4e7; border-radius: 12px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
.op select { height: 46px; padding-top: 0; padding-bottom: 0; }
.op textarea { resize: vertical; min-height: 84px; line-height: 1.5; margin-top: 8px; }
.op input:focus, .op select:focus, .op textarea:focus { outline: none; border-color: var(--gc-laranja, #ff5a00); box-shadow: var(--gc-anel, 0 0 0 4px rgba(255, 90, 0, .14)); }
.op select:disabled { background: #fafafa; color: #a1a1aa; }
.op-unidade { position: relative; display: block; }
.op-unidade em { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13.5px; color: #a1a1aa; pointer-events: none; }
.op-unidade--antes em { right: auto; left: 13px; }
.op-unidade--antes input { padding-left: 38px !important; }

/* marcas com logo */
.op-marcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 14px; }
.op-marcas button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border: 1px solid #ececef; border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: #3f3f46; transition: border-color .15s, transform .15s; }
.op-marcas button:hover { border-color: var(--gc-laranja-borda, #ffd2bb); transform: translateY(-1px); }
.op-marcas button.ativo { border-color: var(--gc-laranja, #ff5a00); background: var(--gc-laranja-suave, #fff4ee); box-shadow: var(--gc-anel, 0 0 0 4px rgba(255, 90, 0, .14)); }
.op-marcas img { width: 40px; height: 40px; object-fit: contain; }
.op-marcas span { font-size: 12px; font-weight: 600; }

/* opções (chips e cartões) */
.op-opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.op-opcoes label { position: relative; cursor: pointer; }
.op-opcoes input { position: absolute; opacity: 0; pointer-events: none; }
.op-opcoes span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: 1px solid #e4e4e7; border-radius: 999px; font-size: 14.5px; color: #3f3f46; background: #fff;
    transition: all .15s; user-select: none; }
.op-opcoes span small { color: #a1a1aa; font-size: 12px; }
.op-opcoes label:hover span { border-color: var(--gc-laranja-borda, #ffd2bb); }
.op-opcoes input:checked + span { border-color: var(--gc-laranja, #ff5a00); background: var(--gc-laranja-suave, #fff4ee); color: #18181b; font-weight: 600; }
.op-opcoes input:focus-visible + span { box-shadow: var(--gc-anel, 0 0 0 4px rgba(255, 90, 0, .14)); }
.op-opcoes input[type=checkbox]:checked + span::before { content: '✓'; font-weight: 900; color: var(--gc-laranja-2, #f15921); }
.op-opcoes--pos input:checked + span { border-color: #16a34a; background: #f0fdf4; }
.op-opcoes--pos input:checked + span::before { color: #16a34a !important; }
.op-opcoes--neg input:checked + span::before { color: #dc2626 !important; }
.op-opcoes--neg input:checked + span { border-color: #dc2626; background: #fef2f2; }
.op-opcoes--grandes { display: grid; grid-template-columns: 1fr 1fr; }
.op-opcoes--grandes span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 14px; padding: 14px 16px; height: 100%; box-sizing: border-box; }
.op-opcoes--grandes b { font-size: 15.5px; }
.op-opcoes--lista { flex-direction: column; flex-wrap: nowrap; }
.op-opcoes--lista span { border-radius: 12px; width: 100%; box-sizing: border-box; }
.op-opcoes--lista + input { margin-top: 4px; }

/* notas com rostos */
.op-notas { display: grid; gap: 4px; }
.op-nota { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 10px 12px; border-radius: 14px; transition: background .15s; }
.op-nota:nth-child(odd) { background: #fafafa; }
.op-nota.falta { background: #fef2f2; }
.op-nota-txt { display: flex; flex-direction: column; }
.op-nota-txt b { font-size: 15px; color: #18181b; }
.op-nota-txt small { font-size: 12.5px; color: #71717a; }
.op-rostos { display: flex; gap: 4px; }
.op-rostos label { position: relative; cursor: pointer; }
.op-rostos input { position: absolute; opacity: 0; pointer-events: none; }
.op-rostos span { display: flex; flex-direction: column; align-items: center; width: 50px; padding: 4px 0 3px; border-radius: 12px; border: 1px solid transparent; transition: transform .12s, background .15s; }
.op-rostos i { font-style: normal; font-size: 26px; line-height: 1.15; filter: grayscale(1); opacity: .55; transition: filter .15s, opacity .15s, transform .15s; }
.op-rostos em { font-style: normal; font-size: 10.5px; color: #a1a1aa; }
.op-rostos label:hover i { filter: none; opacity: 1; transform: scale(1.12); }
.op-rostos input:checked + span { background: #fff; border-color: var(--gc-laranja, #ff5a00); box-shadow: 0 6px 16px -10px rgba(255, 90, 0, .7); }
.op-rostos input:checked + span i { filter: none; opacity: 1; transform: scale(1.15); }
.op-rostos input:checked + span em { color: #18181b; font-weight: 700; }
.op-nao-sei span { width: auto; padding: 0 10px; justify-content: center; min-height: 46px; }
.op-media { margin-top: 12px; font-size: 15px; color: #3f3f46; }
.op-media b { color: var(--gc-laranja-2, #f15921); font-size: 18px; }

/* 0 a 10 */
.op-escala { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; }
.op-escala label { position: relative; cursor: pointer; }
.op-escala input { position: absolute; opacity: 0; pointer-events: none; }
.op-escala span { display: grid; place-items: center; height: 42px; border-radius: 10px; border: 1px solid #e4e4e7; font-weight: 800; font-size: 15px; color: #52525b; background: #fff; transition: all .12s; }
.op-escala label:hover span { transform: translateY(-2px); }
.op-er input:checked + span { background: #ef4444; border-color: #ef4444; color: #fff; }
.op-em input:checked + span { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.op-ev input:checked + span { background: #16a34a; border-color: #16a34a; color: #fff; }
.op-escala-leg { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; color: #a1a1aa; margin-top: 2px; }

/* identificação e consentimento */
.op-google { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.op-google-ok { margin: 0; padding: 10px 14px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; font-size: 14.5px; color: #14532d; }
.op-google-ok button { border: 0; background: none; color: var(--gc-laranja-2, #f15921); font: inherit; font-weight: 700; cursor: pointer; padding: 0; margin-left: 6px; }
.op-ou { font-size: 13px; color: #a1a1aa; }
.op-previa { font-size: 14px; color: #71717a; margin: -4px 0 16px; }
.op-previa b { color: #18181b; }
.op-aceite { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #ececef; border-radius: 14px; margin-bottom: 8px; cursor: pointer; font-size: 14px; line-height: 1.5; color: #3f3f46; }
.op-aceite input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--gc-laranja, #ff5a00); }
.op-aceite--news { background: #fafafa; }
.op-lgpd { font-size: 12.5px; line-height: 1.55; color: #71717a; margin: 10px 0 0; }
.op-lgpd a, .op-topo a { color: var(--gc-laranja-2, #f15921); }
.op-armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.op-erro { margin: 0; font-size: 13.5px; color: #dc2626; font-weight: 600; }
.op-erro:empty { display: none; }
.op-erro--geral { margin-top: 12px; }
.op-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #f4f4f5; }
.op-nav [data-op-avancar], .op-nav [data-op-enviar] { margin-left: auto; }
body .op-botao { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--gc-laranja, #ff5a00);
    background: var(--gc-laranja, #ff5a00); color: #fff; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; text-decoration: none; }
body .op-botao:hover { background: var(--gc-laranja-2, #f15921); color: #fff; text-decoration: none; }
body .op-botao:disabled { opacity: .6; cursor: wait; }
body .op-botao--sec { background: #fff; color: #27272a; border-color: #e4e4e7; }
body .op-botao--sec:hover { background: #fafafa; color: #18181b; }
.op-fim { text-align: center; padding: 22px 0 8px; }
.op-fim p { font-size: 15.5px; color: #3f3f46; line-height: 1.6; }
.op-selo { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #f0fdf4; color: #16a34a; font-size: 32px; font-weight: 900; margin-bottom: 6px; }
.op-contagem { text-align: center; font-size: 13.5px; color: #71717a; margin-top: 14px; }
.op-simples { text-align: center; padding: 40px 0 60px; max-width: 620px; }
.op-simples p { font-size: 16px; line-height: 1.6; color: #3f3f46; }
.op-simples .op-botao { margin: 6px 4px; }

@media (max-width: 640px) {
    body .op h1 { font-size: 25px; }
    .op-cartao { padding: 16px 14px 18px; border-radius: 16px; margin: 0 -4px; }
    .op-etapas li { font-size: 0; gap: 0; }
    .op-etapas li.atual { font-size: 12px; gap: 6px; }
    .op-nota { grid-template-columns: minmax(0, 1fr); padding: 10px 6px; }
    .op-rostos { justify-content: space-between; }
    .op-rostos span { width: 54px; }
    .op-escala { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .op-escala-leg { display: none; }
    .op-opcoes--grandes { grid-template-columns: 1fr; }
    .op-campo--curto { flex-basis: 100%; }
}

/* páginas de texto (política de privacidade) */
.op-texto { max-width: 760px; padding: 6px 0 48px; }
body .op-texto h1 { margin-bottom: 4px; }
body .op-texto h2 { font-size: 20px; margin: 30px 0 8px; }
body .op-texto h3 { font-size: 16px; font-weight: 800; margin: 18px 0 6px; color: #18181b; }
.op-texto p, .op-texto li { font-size: 15.5px; line-height: 1.7; color: #3f3f46; }
.op-texto ul { padding-left: 20px; margin: 6px 0 12px; }
.op-texto a { color: var(--gc-laranja-2, #f15921); }
.op-texto-data { font-size: 13.5px !important; color: #a1a1aa !important; margin-top: 0; }

/* Como tratamos os dados (templates/metodologia.tpl) e Sobre (templates/sobre.tpl), sobre o texto corrido de .op-texto */
.op-texto.mt, .op-texto.sb { max-width: 820px; }
.op-texto .mt-lide { font-size: 18px; line-height: 1.6; color: #27272a; margin: 14px 0 6px; }
.mt-fontes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 8px; }
.mt-fontes section { padding: 14px 0 12px; border-top: 1px solid #e4e4e7; }
body .op-texto .mt-fontes h3 { margin: 0 0 6px; font-size: 16px; }
.op-texto .mt-fontes p { margin: 0 0 3px; font-size: 14.5px; line-height: 1.55; }
.op-texto .mt-volta { margin-top: 32px; font-size: 14.5px; }
.sb-numeros { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 !important; margin: 26px 0 8px !important; }
.sb-numeros li { padding: 14px 0 0; border-top: 3px solid var(--gc-laranja, #ff5a00); }
.sb-numeros b { display: block; font-size: 28px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; color: #18181b; }
.op-texto .sb-numeros span { font-size: 13.5px; color: #71717a; }
.sb-lista li { margin-bottom: 6px; }
@media (max-width: 640px) {
  .mt-fontes { grid-template-columns: minmax(0, 1fr); }
  .op-texto .mt-lide { font-size: 16.5px; }
  .sb-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-numeros b { font-size: 24px; }
}
