* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f8;
    color: #1f2933;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

h1 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.intro {
    color: #52606d;
    margin-bottom: 24px;
}

.erros {
    background: #fde8e8;
    border: 1px solid #f8b4b4;
    color: #9b1c1c;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.erros ul {
    margin: 0;
    padding-left: 18px;
}

fieldset.pergunta {
    border: none;
    padding: 0;
    margin: 0 0 28px;
}

fieldset.pergunta legend {
    font-weight: 600;
    margin-bottom: 12px;
    padding: 0;
    white-space: normal;
}

.grade-notas {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.botao-nota {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 2px solid #cbd2d9;
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}

.botao-nota input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.botao-nota:has(input:checked),
.botao-nota.selecionado {
    background: #1992d4;
    border-color: #1992d4;
    color: #fff;
}

.rotulos-extremos {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #7b8794;
}

fieldset.pergunta input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #cbd2d9;
    border-radius: 8px;
    font-size: 1rem;
}

.opcoes-tipo {
    display: flex;
    gap: 12px;
}

.botao-opcao {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 2px solid #cbd2d9;
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}

.botao-opcao input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.botao-opcao:has(input:checked),
.botao-opcao.selecionado {
    background: #1992d4;
    border-color: #1992d4;
    color: #fff;
}

.botao-enviar {
    width: 100%;
    padding: 16px;
    background: #1992d4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

.agradecimento {
    text-align: center;
    padding: 48px 0;
}

.agradecimento h1 {
    color: #1992d4;
}
