/*
 * STAI - State-Trait Anxiety Inventory (IDATE) Styles
 * Version: 1.0.0
 */

.stai-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    font-family: 'Arial', sans-serif;
}

.stai-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 10px;
}

.stai-header h2 {
    color: #8B4513;
    margin: 0;
    font-size: 1.8em;
}

.stai-header p {
    color: #555;
    font-style: italic;
}

/* Informações Pessoais */
.stai-section-info {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    background-color: #FDF5E6;
}

.stai-input-group {
    margin-bottom: 15px;
}

.stai-input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.stai-input-group input[type="text"],
.stai-input-group input[type="email"],
.stai-input-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Barra de Progresso */
.stai-progress-bar {
    height: 10px;
    background-color: #D2B48C;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
}

.stai-progress {
    height: 100%;
    background-color: #8B4513;
    transition: width 0.4s ease;
}

/* Questões */
.stai-section {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.stai-section h3 {
    color: #8B4513;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
    margin-top: 0;
}

.stai-instructions {
    font-style: italic;
    color: #777;
    margin-bottom: 15px;
}

.stai-question {
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 1px dotted #eee;
}

.stai-question-text {
    margin-bottom: 10px;
    font-weight: 500;
    color: #333;
}

.stai-options {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.stai-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
    transition: background-color 0.3s;
    flex-grow: 1;
    text-align: center;
    justify-content: center;
}

.stai-option:hover {
    background-color: #FAF0E6;
}

.stai-option input[type="radio"] {
    margin-right: 8px;
    display: none; /* Esconder o radio button nativo */
}

.stai-option span {
    font-size: 0.9em;
    color: #555;
}

/* Estilo para opção selecionada */
.stai-option input[type="radio"]:checked + span {
    font-weight: bold;
    color: #8B4513;
}

.stai-option input[type="radio"]:checked {
    background-color: #F5F5DC;
    border-color: #8B4513;
}

/* Footer e Botão */
.stai-footer {
    text-align: center;
    margin-top: 30px;
}

#stai-submit-btn {
    background-color: #8B4513;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

#stai-submit-btn:hover {
    background-color: #A0522D;
}

.stai-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}

.stai-message.success {
    background-color: #E8F5E9;
    color: #38761D;
    border: 1px solid #A5D6A7;
}

.stai-message.error {
    background-color: #FBE9E7;
    color: #8B0000;
    border: 1px solid #FFCCBC;
}

/* Resultados */
.stai-results {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #8B4513;
    border-radius: 8px;
    background-color: #FAF0E6;
}

.stai-results h3 {
    color: #8B4513;
    text-align: center;
    margin-bottom: 20px;
}

.stai-score-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stai-score-box {
    text-align: center;
    padding: 15px;
    border: 1px solid #8B4513;
    border-radius: 6px;
    width: 45%;
    background-color: #fff;
}

.stai-score-box h4 {
    margin-top: 0;
    color: #333;
}

.stai-score-value {
    font-size: 2em;
    font-weight: bold;
    color: #8B0000; /* Cor para pontuação alta */
}

.stai-interpretation {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 5px;
}

.stai-interpretation.Baixa {
    color: #38761D;
}

.stai-interpretation.Moderada {
    color: #B8860B;
}

.stai-interpretation.Alta {
    color: #8B0000;
}

.stai-results-info {
    border-top: 1px dashed #8B4513;
    padding-top: 15px;
    margin-top: 15px;
}

.stai-results-info p {
    margin-bottom: 10px;
    color: #555;
}

.stai-results-info strong {
    color: #333;
}

/* Responsividade */
@media (max-width: 600px) {
    .stai-options {
        flex-direction: column;
    }

    .stai-option {
        margin-bottom: 5px;
        margin-right: 0;
    }

    .stai-score-summary {
        flex-direction: column;
    }

    .stai-score-box {
        width: 100%;
        margin-bottom: 15px;
    }
}
