body {
    font-family: 'Arial', sans-serif;
    background-color: #f9f9f9; /* Very light gray */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    background-color: #fff; /* Add white background */
}

.back-button {
    cursor: pointer;
    font-size: 1.2em;
    color: #555;
}

.quiz-progress {
    font-size: 16px;
    color: #666;
}

.logo {
    text-align: center;
}

.logo img {
    max-height: 40px;
}

main {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.question {
    font-size: 24px;
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    padding: 0 20px;
    max-width: 600px;
}

.question-subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

/* Estilo padrão vertical para as opções de resposta */
.answer-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.answer-option {
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.answer-option img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    margin-right: 15px;
    object-fit: cover;
}

/* Ajuste do checkbox */
.answer-option input[type="checkbox"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Ajuste do container de texto */
.answer-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.answer-option-title {
    font-weight: bold;
    font-size: 18px;
}

.answer-option-description {
    color: #666;
    font-size: 14px;
}

.answer-option.selected {
    background-color: #f0f7ff;
    border-color: #007bff;
}

#progress-bar {
    display: flex;
    gap: 4px;
    padding: 0 20px;
    margin-bottom: 20px;
}

#progress-bar span {
    flex: 1;
    height: 4px;
    background: #eee;
    cursor: pointer;
}

#progress-bar span.completed {
    background: #4CAF50;
}

/* Estilização do botão "Próximo" */
#next-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#next-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Estilos para questões de escala */
.answer-options.scale {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    margin: 30px auto;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.answer-options.scale .answer-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 50px;
    cursor: pointer;
    min-height: 80px;
}

.answer-options.scale .answer-option-title {
    width: 45px;
    height: 45px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 8px;
    font-weight: normal;
}

.answer-options.scale .answer-option-description {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    white-space: nowrap;
    min-height: 1.2em;
}

.answer-options.scale .answer-option:hover .answer-option-title {
    background-color: rgba(149, 125, 173, 0.1);
    color: #957dad;
}

.answer-options.scale .answer-option.selected .answer-option-title {
    background-color: #957dad;
    color: white;
}

/* Estilos para inputs especiais */
.height-input-container {
    max-width: 400px;
    margin: 0 auto;
}

.height-input-wrapper {
    margin-bottom: 20px;
}

.unit-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.unit-button {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
}

.unit-button.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.height-input {
    width: 120px;
    padding: 10px;
    font-size: 20px;
    text-align: center;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
}

.unit-label {
    margin-left: 10px;
    font-size: 18px;
    color: #666;
}

.imc-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 20px;
}

.imc-info-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imc-info-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.imc-description {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.imc-info.success {
    background: #f1f8f1;
    border: 1px solid #4CAF50;
}

.imc-info.warning {
    background: #fff8e1;
    border: 1px solid #ffc107;
}

.imc-info.alert {
    background: #fef2f2;
    border: 1px solid #ef4444;
}

.imc-info.normal {
    background: #f0f7ff;
    border: 1px solid #2196f3;
}

#imc-value {
    font-weight: bold;
}

#name-input {
    border: none;
    border-bottom: 1px solid #ddd;
    background: none;
    font-size: 1.5em;
    font-weight: normal;
    width: 200px;
    text-align: center;
    color: #000;
    padding: 10px 0;
    transition: border-color 0.3s;
}

#name-input:focus {
    outline: none;
    border-bottom-color: #007bff;
}

#name-input::placeholder {
    color: #999;
    font-size: 0.9em;
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    .logo img {
        max-height: 30px;
    }

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

    .answer-option {
        padding: 12px;
    }

    .answer-option img {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }

    .answer-option input[type="checkbox"] {
        margin-right: 10px;
        width: 18px;
        height: 18px;
    }

    .answer-options.scale {
        gap: 20px;
        padding: 0 10px;
    }

    .answer-options.scale .answer-option {
        width: 40px;
        min-height: 70px;
    }

    .answer-options.scale .answer-option-title {
        width: 40px;
        height: 40px;
        font-size: 1.1em;
    }

    .imc-info {
        padding: 12px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 15px;
    }

    .question {
        font-size: 18px;
    }

    #next-button {
        padding: 12px;
        font-size: 14px;
    }

    .height-input {
        width: 100px;
        font-size: 18px;
    }

    .unit-button {
        padding: 6px 15px;
        font-size: 14px;
    }

    .answer-option {
        padding: 10px;
    }

    .answer-option img {
        width: 45px;
        height: 45px;
        margin-right: 8px;
    }

    .answer-options.scale {
        gap: 15px;
    }

    .answer-options.scale .answer-option {
        width: 35px;
        min-height: 60px;
    }

    .answer-options.scale .answer-option-title {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
}

