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

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f6f8;
    color: #222;

    min-height: 100vh;

    padding: 30px 15px;
}

.container {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    background: #ffffff;

    border-radius: 12px;

    padding: 30px;

    box-shadow:
        0 4px 16px
        rgba(0, 0, 0, 0.08);
}


/* =========================
   CABEÇALHO
========================= */

.header {
    margin-bottom: 30px;
}

.header h1 {
    color: #4f681b;
    margin-bottom: 5px;
}

.header h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.header p {
    line-height: 1.5;
    margin-bottom: 15px;
}

.escala-info {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    font-size: 13px;
}

.escala-info span {
    background: #eef3e3;

    padding: 7px 10px;

    border-radius: 6px;
}


/* =========================
   PROGRESSO
========================= */

.progress-container {
    margin-bottom: 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;

    font-size: 14px;
}

.progress-bar {
    height: 10px;

    background: #e4e4e4;

    border-radius: 10px;

    overflow: hidden;
}

.progress {
    width: 0%;

    height: 100%;

    background: #6f8d2a;

    transition: width 0.3s ease;
}


/* =========================
   ETAPAS
========================= */

.step-title {
    margin-bottom: 25px;

    color: #405817;
}

.step-description {
    color: #666;

    margin-bottom: 25px;
}


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

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;

    font-weight: bold;

    margin-bottom: 8px;
}

input[type="text"],
textarea {
    width: 100%;

    border: 1px solid #ccc;

    border-radius: 7px;

    padding: 12px;

    font-size: 16px;

    outline: none;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #6f8d2a;
}

textarea {
    min-height: 110px;

    resize: vertical;
}


/* =========================
   PERGUNTAS
========================= */

.question {
    border-bottom: 1px solid #eee;

    padding: 20px 0;
}

.question:last-child {
    border-bottom: none;
}

.question-text {
    font-weight: bold;

    margin-bottom: 15px;

    line-height: 1.5;
}

.question-number {
    color: #6f8d2a;
}


/* =========================
   ESCALA
========================= */

.radio-group {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 10px;
}

.radio-option {
    position: relative;
}

.radio-option input {
    position: absolute;

    opacity: 0;
}

.radio-option label {
    display: flex;
    flex-direction: column;

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

    min-height: 65px;

    border: 2px solid #ddd;

    border-radius: 8px;

    cursor: pointer;

    transition: 0.2s;

    font-weight: normal;
}

.radio-option label strong {
    font-size: 18px;

    margin-bottom: 3px;
}

.radio-option label small {
    font-size: 10px;

    text-align: center;
}

.radio-option input:checked + label {
    border-color: #6f8d2a;

    background: #eef3e3;

    color: #405817;
}


/* =========================
   BOTÕES
========================= */

.navigation {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-top: 30px;
}

.btn {
    padding: 12px 22px;

    border: none;

    border-radius: 7px;

    cursor: pointer;

    font-size: 15px;

    transition: 0.2s;
}

.btn:hover {
    opacity: 0.88;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #6f8d2a;
    color: white;
}

.btn-secondary {
    background: #dddddd;
    color: #222;
}

.btn-success {
    background: #198754;
    color: white;
}


/* =========================
   RESULTADOS
========================= */

.resultado-container {
    display: none;

    margin-top: 35px;

    padding: 25px;

    border: 1px solid #ddd;

    border-radius: 10px;

    background: #f9fbf5;
}

.resultado-container h2 {
    margin-bottom: 20px;

    color: #405817;
}

.resultado-geral {
    font-size: 28px;

    font-weight: bold;

    margin-bottom: 25px;

    padding-bottom: 20px;

    border-bottom: 1px solid #ddd;
}

.resultado-topico {
    margin-bottom: 18px;

    padding: 15px;

    background: #ffffff;

    border-radius: 7px;

    border: 1px solid #e2e2e2;
}

.resultado-topico strong {
    display: block;

    margin-bottom: 5px;
}

.resultado-actions {
    margin-top: 25px;
}

#btn-enviar-api {
    display: none;
}


/* =========================
   MENSAGENS
========================= */

.message {
    display: none;

    margin-top: 25px;

    padding: 15px;

    border-radius: 7px;
}

.message.error {
    display: block;

    background: #ffe5e5;

    color: #a30000;
}

.message.success {
    display: block;

    background: #e5f7e9;

    color: #145c27;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .container {
        padding: 20px;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .radio-option label {
        flex-direction: row;

        justify-content: flex-start;

        gap: 10px;

        padding: 12px;

        min-height: auto;
    }

    .radio-option label strong {
        margin-bottom: 0;
    }

    .navigation {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .resultado-geral {
        font-size: 23px;
    }
}