:root {
    --bg: #f4f6f8;
    --card: #fff;
    --text: #1f2937;
    --muted: #667085;
    --line: #e5e7eb;
    --primary: #1565c0;
    --primary-dark: #0d47a1;
    --yes: #18794e;
    --no: #b42318;
}
* { box-sizing: border-box; }
body {
    margin: 0; min-height: 100vh; padding: 24px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}
.card {
    width: 100%; max-width: 650px; background: var(--card);
    border: 1px solid var(--line); border-radius: 18px;
    overflow: hidden; box-shadow: 0 10px 30px rgba(16,24,40,.08);
}
.header { padding: 28px 30px 20px; border-bottom: 1px solid var(--line); text-align: center; }
/* Pode substituir a classe .brand por esta abaixo */
.brand-logo {
    max-height: 60px; /* Você pode aumentar ou diminuir esse número para ajustar o tamanho da logo */
    width: auto;
    margin: 0 auto 12px auto;
    display: block;
}
.subtitle { margin: 0; color: var(--muted); line-height: 1.5; }
.content { padding: 28px 30px 32px; }
.ticket {
    padding: 12px 14px; background: #f8fafc; border: 1px solid var(--line);
    border-radius: 10px; margin-bottom: 24px;
}
.question-title { display: block; font-weight: 700; margin-bottom: 14px; line-height: 1.4; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.choice input { position: absolute; opacity: 0; }
.choice label {
    display: flex; align-items: center; justify-content: center;
    padding: 14px; border: 1px solid #cfd4dc; border-radius: 10px;
    font-weight: 700; cursor: pointer; background: #fff;
}
#decision-yes:checked + label { border-color: var(--yes); background: #edf9f2; color: var(--yes); }
#decision-no:checked + label { border-color: var(--no); background: #fff1f0; color: var(--no); }
.panel { display: none; margin: 8px 0 26px; }
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 3px; }
.stars input { display: none; }
.stars label { cursor: pointer; font-size: 42px; color: #c7cbd1; line-height: 1; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #f5a623; }
textarea {
    width: 100%; min-height: 130px; padding: 12px 14px;
    border: 1px solid #cfd4dc; border-radius: 10px;
    font: inherit; resize: vertical;
}
.btn-primary {
    width: 100%; border: 0; border-radius: 10px; padding: 14px 18px;
    background: var(--primary); color: #fff; font-size: 16px;
    font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
    background: #fff; color: var(--text); font-size: 16px;
    font-weight: 700; cursor: pointer; transition: background 0.2s;
}
.btn-secondary:hover { background: #f9fafb; }

.notice { text-align: center; padding: 20px 8px; }
.icon { font-size: 48px; margin-bottom: 14px; }
.success { color: var(--yes); } 
.error { color: var(--no); }
.footer { margin-top: 22px; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.5; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Controladores de Tela */
.view { display: none; }
.view.active { display: block; }

/* ======== ESTILOS DO MODAL ======== */
.modal-overlay {
    display: none; /* Escondido por padrão */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundo escuro transparente */
    align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-overlay.active { display: flex; } /* Classe que faz o modal aparecer */
.modal-content {
    background: var(--card); padding: 24px; border-radius: 12px;
    width: 90%; max-width: 400px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-content h3 { margin-top: 0; margin-bottom: 12px; color: var(--text); }
.modal-content p { color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.modal-actions { display: flex; gap: 12px; }

@media(max-width:520px){
  body { padding: 12px; }
  .header, .content { padding-left: 20px; padding-right: 20px; }
  .choice-grid { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
}