/* HAM-D Questionário - Design Elegante em Tons Terrosos - Versão Forçada */

/* Variáveis CSS para cores terrosas */
:root {
    --primary-color: #8B4513 !important; /* Marrom terroso */
    --secondary-color: #D2B48C !important; /* Tan claro */
    --accent-color: #CD853F !important; /* Peru */
    --background-color: #F5F5DC !important; /* Bege */
    --card-background: #FAEBD7 !important; /* Antique white */
    --text-primary: #5D4037 !important; /* Marrom escuro */
    --text-secondary: #8D6E63 !important; /* Marrom médio */
    --border-color: #D7CCC8 !important; /* Marrom claro */
    --success-color: #8BC34A !important; /* Verde natural */
    --error-color: #D32F2F !important; /* Vermelho terroso */
    --shadow-color: rgba(139, 69, 19, 0.1) !important; /* Sombra terrosa */
}

/* Reset e base - FORÇADO */
.ham-d-container,
div.ham-d-container,
body .ham-d-container,
html .ham-d-container {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 30px !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    background: linear-gradient(135deg, #F5F5DC 0%, #F0E68C 100%) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.1) !important;
    position: relative !important;
    color: #5D4037 !important;
}

.ham-d-container::before,
div.ham-d-container::before,
body .ham-d-container::before,
html .ham-d-container::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 5px !important;
    background: linear-gradient(90deg, #8B4513, #CD853F, #D2B48C) !important;
    border-radius: 15px 15px 0 0 !important;
}

/* Cabeçalho - FORÇADO */
.ham-d-header,
div.ham-d-header,
body .ham-d-header,
html .ham-d-header {
    margin-bottom: 40px !important;
    text-align: center !important;
    padding: 30px 20px !important;
    background: #FAEBD7 !important;
    border-radius: 12px !important;
    border: 2px solid #D7CCC8 !important;
    position: relative !important;
    overflow: hidden !important;
}

.ham-d-header::before,
div.ham-d-header::before,
body .ham-d-header::before,
html .ham-d-header::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, #D2B48C 0%, transparent 70%) !important;
    opacity: 0.1 !important;
    z-index: 0 !important;
}

.ham-d-header h2,
div.ham-d-header h2,
body .ham-d-header h2,
html .ham-d-header h2 {
    color: #8B4513 !important;
    margin-bottom: 20px !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1) !important;
    position: relative !important;
    z-index: 1 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-header p,
div.ham-d-header p,
body .ham-d-header p,
html .ham-d-header p {
    color: #8D6E63 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
    position: relative !important;
    z-index: 1 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

/* Mensagens - FORÇADO */
.ham-d-message,
div.ham-d-message,
body .ham-d-message,
html .ham-d-message {
    padding: 18px 24px !important;
    margin-bottom: 25px !important;
    border-radius: 10px !important;
    display: none !important;
    font-weight: 500 !important;
    border-left: 5px solid !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-message-success,
div.ham-d-message-success,
body .ham-d-message-success,
html .ham-d-message-success {
    background: linear-gradient(135deg, #E8F5E8 0%, #C8E6C9 100%) !important;
    color: #2E7D32 !important;
    border-left-color: #8BC34A !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
}

.ham-d-message-error,
div.ham-d-message-error,
body .ham-d-message-error,
html .ham-d-message-error {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%) !important;
    color: #C62828 !important;
    border-left-color: #D32F2F !important;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2) !important;
}

/* Seções do questionário - FORÇADO */
.ham-d-questionnaire-section,
div.ham-d-questionnaire-section,
body .ham-d-questionnaire-section,
html .ham-d-questionnaire-section {
    background: #FAEBD7 !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin-bottom: 35px !important;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.1) !important;
    border: 1px solid #D7CCC8 !important;
    position: relative !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.ham-d-questionnaire-section:hover,
div.ham-d-questionnaire-section:hover,
body .ham-d-questionnaire-section:hover,
html .ham-d-questionnaire-section:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.1) !important;
}

.ham-d-questionnaire-section::before,
div.ham-d-questionnaire-section::before,
body .ham-d-questionnaire-section::before,
html .ham-d-questionnaire-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #8B4513, #CD853F) !important;
    border-radius: 15px 15px 0 0 !important;
}

.ham-d-questionnaire-section h3,
div.ham-d-questionnaire-section h3,
body .ham-d-questionnaire-section h3,
html .ham-d-questionnaire-section h3 {
    color: #8B4513 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #D7CCC8 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    position: relative !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-questionnaire-section h3::after,
div.ham-d-questionnaire-section h3::after,
body .ham-d-questionnaire-section h3::after,
html .ham-d-questionnaire-section h3::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 60px !important;
    height: 2px !important;
    background: #CD853F !important;
}

/* Grupos de formulário - FORÇADO */
.ham-d-form-group,
div.ham-d-form-group,
body .ham-d-form-group,
html .ham-d-form-group {
    margin-bottom: 25px !important;
}

.ham-d-form-group label,
div.ham-d-form-group label,
body .ham-d-form-group label,
html .ham-d-form-group label {
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    color: #5D4037 !important;
    font-size: 1.1rem !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-form-group input[type="text"],
div.ham-d-form-group input[type="text"],
body .ham-d-form-group input[type="text"],
html .ham-d-form-group input[type="text"] {
    width: 100% !important;
    padding: 15px 18px !important;
    border: 2px solid #D7CCC8 !important;
    border-radius: 10px !important;
    font-size: 1rem !important;
    background: #FFFFFF !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    box-sizing: border-box !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-form-group input[type="text"]:focus,
div.ham-d-form-group input[type="text"]:focus,
body .ham-d-form-group input[type="text"]:focus,
html .ham-d-form-group input[type="text"]:focus {
    outline: none !important;
    border-color: #CD853F !important;
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.2) !important;
}

/* Perguntas - FORÇADO */
.ham-d-question,
div.ham-d-question,
body .ham-d-question,
html .ham-d-question {
    margin-bottom: 30px !important;
    padding-bottom: 25px !important;
    border-bottom: 1px dashed #D7CCC8 !important;
    transition: background-color 0.3s ease !important;
}

.ham-d-question:last-child,
div.ham-d-question:last-child,
body .ham-d-question:last-child,
html .ham-d-question:last-child {
    border-bottom: none !important;
}

.ham-d-question:hover,
div.ham-d-question:hover,
body .ham-d-question:hover,
html .ham-d-question:hover {
    background-color: rgba(245, 245, 220, 0.3) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 0 -15px 30px -15px !important;
}

.ham-d-question p,
div.ham-d-question p,
body .ham-d-question p,
html .ham-d-question p {
    margin-bottom: 15px !important;
    font-weight: 600 !important;
    color: #5D4037 !important;
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

/* Opções - FORÇADO */
.ham-d-options,
div.ham-d-options,
body .ham-d-options,
html .ham-d-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.ham-d-option,
div.ham-d-option,
body .ham-d-option,
html .ham-d-option {
    display: flex !important;
    align-items: flex-start !important;
    padding: 12px 15px !important;
    background: #FFFFFF !important;
    border-radius: 8px !important;
    border: 1px solid #D7CCC8 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.ham-d-option:hover,
div.ham-d-option:hover,
body .ham-d-option:hover,
html .ham-d-option:hover {
    background: #F5F5DC !important;
    border-color: #CD853F !important;
    transform: translateX(5px) !important;
}

.ham-d-option input[type="radio"],
div.ham-d-option input[type="radio"],
body .ham-d-option input[type="radio"],
html .ham-d-option input[type="radio"] {
    margin-top: 4px !important;
    margin-right: 12px !important;
    accent-color: #8B4513 !important;
    transform: scale(1.2) !important;
}

.ham-d-option label,
div.ham-d-option label,
body .ham-d-option label,
html .ham-d-option label {
    color: #5D4037 !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    flex: 1 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-option input[type="radio"]:checked + label,
div.ham-d-option input[type="radio"]:checked + label,
body .ham-d-option input[type="radio"]:checked + label,
html .ham-d-option input[type="radio"]:checked + label {
    font-weight: 600 !important;
    color: #8B4513 !important;
}

/* Mensagens de erro - FORÇADO */
.ham-d-error-message,
div.ham-d-error-message,
body .ham-d-error-message,
html .ham-d-error-message {
    color: #D32F2F !important;
    font-size: 0.9rem !important;
    margin-top: 8px !important;
    display: none !important;
    font-weight: 500 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-question.ham-d-error,
div.ham-d-question.ham-d-error,
body .ham-d-question.ham-d-error,
html .ham-d-question.ham-d-error {
    border-left: 4px solid #D32F2F !important;
    padding-left: 20px !important;
    background-color: rgba(211, 47, 47, 0.05) !important;
    border-radius: 8px !important;
}

/* Ações do formulário - FORÇADO */
.ham-d-form-actions,
div.ham-d-form-actions,
body .ham-d-form-actions,
html .ham-d-form-actions {
    text-align: center !important;
    margin-top: 40px !important;
    margin-bottom: 30px !important;
}

/* Botões - FORÇADO */
.ham-d-btn,
div.ham-d-btn,
body .ham-d-btn,
html .ham-d-btn,
button.ham-d-btn,
input.ham-d-btn {
    display: inline-block !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    user-select: none !important;
    border: 2px solid transparent !important;
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-btn::before,
div.ham-d-btn::before,
body .ham-d-btn::before,
html .ham-d-btn::before,
button.ham-d-btn::before,
input.ham-d-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s, height 0.6s !important;
}

.ham-d-btn:hover::before,
div.ham-d-btn:hover::before,
body .ham-d-btn:hover::before,
html .ham-d-btn:hover::before,
button.ham-d-btn:hover::before,
input.ham-d-btn:hover::before {
    width: 300px !important;
    height: 300px !important;
}

.ham-d-btn-primary,
div.ham-d-btn-primary,
body .ham-d-btn-primary,
html .ham-d-btn-primary,
button.ham-d-btn-primary,
input.ham-d-btn-primary {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%) !important;
    border-color: #8B4513 !important;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3) !important;
}

.ham-d-btn-primary:hover,
div.ham-d-btn-primary:hover,
body .ham-d-btn-primary:hover,
html .ham-d-btn-primary:hover,
button.ham-d-btn-primary:hover,
input.ham-d-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4) !important;
}

.ham-d-btn-secondary,
div.ham-d-btn-secondary,
body .ham-d-btn-secondary,
html .ham-d-btn-secondary,
button.ham-d-btn-secondary,
input.ham-d-btn-secondary {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #8D6E63 0%, #A1887F 100%) !important;
    border-color: #8D6E63 !important;
    box-shadow: 0 4px 15px rgba(141, 110, 99, 0.3) !important;
}

.ham-d-btn-secondary:hover,
div.ham-d-btn-secondary:hover,
body .ham-d-btn-secondary:hover,
html .ham-d-btn-secondary:hover,
button.ham-d-btn-secondary:hover,
input.ham-d-btn-secondary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(141, 110, 99, 0.4) !important;
}

.ham-d-btn-disabled,
div.ham-d-btn-disabled,
body .ham-d-btn-disabled,
html .ham-d-btn-disabled,
button.ham-d-btn-disabled,
input.ham-d-btn-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Resultados - FORÇADO */
.ham-d-results,
div.ham-d-results,
body .ham-d-results,
html .ham-d-results {
    background: #FAEBD7 !important;
    border-radius: 15px !important;
    padding: 40px !important;
    margin-top: 40px !important;
    box-shadow: 0 8px 30px rgba(139, 69, 19, 0.1) !important;
    border: 1px solid #D7CCC8 !important;
}

.ham-d-results h3,
div.ham-d-results h3,
body .ham-d-results h3,
html .ham-d-results h3 {
    color: #8B4513 !important;
    text-align: center !important;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-result-section,
div.ham-d-result-section,
body .ham-d-result-section,
html .ham-d-result-section {
    margin-bottom: 35px !important;
}

.ham-d-result-section h4,
div.ham-d-result-section h4,
body .ham-d-result-section h4,
html .ham-d-result-section h4 {
    color: #8B4513 !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #D7CCC8 !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-score-value,
div.ham-d-score-value,
body .ham-d-score-value,
html .ham-d-score-value {
    font-size: 3rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #8B4513 !important;
    margin: 25px 0 !important;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1) !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-highlight,
div.ham-d-highlight,
body .ham-d-highlight,
html .ham-d-highlight {
    background: linear-gradient(135deg, #D2B48C 0%, #F0E68C 100%) !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    color: #5D4037 !important;
    border: 1px solid #D7CCC8 !important;
}

/* Barras de progresso - FORÇADO */
.ham-d-result-bar-container,
div.ham-d-result-bar-container,
body .ham-d-result-bar-container,
html .ham-d-result-bar-container {
    height: 25px !important;
    background: #D7CCC8 !important;
    border-radius: 15px !important;
    margin: 20px 0 !important;
    overflow: hidden !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.ham-d-result-bar,
div.ham-d-result-bar,
body .ham-d-result-bar,
html .ham-d-result-bar {
    height: 100% !important;
    background: linear-gradient(90deg, #8B4513, #CD853F) !important;
    border-radius: 15px !important;
    width: 0 !important;
    transition: width 1.5s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.3) !important;
}

.ham-d-score-label,
div.ham-d-score-label,
body .ham-d-score-label,
html .ham-d-score-label {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 0.85rem !important;
    color: #8D6E63 !important;
    margin-top: 8px !important;
    font-weight: 500 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

/* Áreas de resultado - FORÇADO */
.ham-d-result-area,
div.ham-d-result-area,
body .ham-d-result-area,
html .ham-d-result-area {
    margin-bottom: 30px !important;
    padding: 20px !important;
    background: #FFFFFF !important;
    border-radius: 10px !important;
    border: 1px solid #D7CCC8 !important;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.05) !important;
}

.ham-d-result-area:last-child,
div.ham-d-result-area:last-child,
body .ham-d-result-area:last-child,
html .ham-d-result-area:last-child {
    border-bottom: 1px solid #D7CCC8 !important;
}

.ham-d-result-area h5,
div.ham-d-result-area h5,
body .ham-d-result-area h5,
html .ham-d-result-area h5 {
    color: #8B4513 !important;
    margin-bottom: 12px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

/* Rodapé - FORÇADO */
.ham-d-result-footer,
div.ham-d-result-footer,
body .ham-d-result-footer,
html .ham-d-result-footer {
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 2px solid #D7CCC8 !important;
    font-size: 0.95rem !important;
    color: #8D6E63 !important;
    text-align: center !important;
    font-style: italic !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

.ham-d-print-button,
div.ham-d-print-button,
body .ham-d-print-button,
html .ham-d-print-button {
    text-align: center !important;
    margin-top: 35px !important;
}

/* Responsividade - FORÇADO */
@media print {
    .ham-d-print-button,
    div.ham-d-print-button,
    body .ham-d-print-button,
    html .ham-d-print-button {
        display: none !important;
    }
    
    .ham-d-container,
    div.ham-d-container,
    body .ham-d-container,
    html .ham-d-container {
        padding: 0 !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    .ham-d-results,
    div.ham-d-results,
    body .ham-d-results,
    html .ham-d-results {
        box-shadow: none !important;
        padding: 20px 0 !important;
    }
}

@media (max-width: 768px) {
    .ham-d-container,
    div.ham-d-container,
    body .ham-d-container,
    html .ham-d-container {
        padding: 20px !important;
        margin: 10px !important;
    }
    
    .ham-d-questionnaire-section,
    div.ham-d-questionnaire-section,
    body .ham-d-questionnaire-section,
    html .ham-d-questionnaire-section {
        padding: 20px !important;
    }
    
    .ham-d-header h2,
    div.ham-d-header h2,
    body .ham-d-header h2,
    html .ham-d-header h2 {
        font-size: 1.8rem !important;
    }
    
    .ham-d-score-label,
    div.ham-d-score-label,
    body .ham-d-score-label,
    html .ham-d-score-label {
        font-size: 0.75rem !important;
    }
    
    .ham-d-score-value,
    div.ham-d-score-value,
    body .ham-d-score-value,
    html .ham-d-score-value {
        font-size: 2.5rem !important;
    }
    
    .ham-d-btn,
    div.ham-d-btn,
    body .ham-d-btn,
    html .ham-d-btn,
    button.ham-d-btn,
    input.ham-d-btn {
        padding: 12px 24px !important;
        font-size: 1rem !important;
    }
    
    .ham-d-option,
    div.ham-d-option,
    body .ham-d-option,
    html .ham-d-option {
        padding: 10px 12px !important;
    }
    
    .ham-d-question:hover,
    div.ham-d-question:hover,
    body .ham-d-question:hover,
    html .ham-d-question:hover {
        margin: 0 -10px 30px -10px !important;
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .ham-d-container,
    div.ham-d-container,
    body .ham-d-container,
    html .ham-d-container {
        padding: 15px !important;
        margin: 5px !important;
    }
    
    .ham-d-header,
    div.ham-d-header,
    body .ham-d-header,
    html .ham-d-header {
        padding: 20px 15px !important;
    }
    
    .ham-d-questionnaire-section,
    div.ham-d-questionnaire-section,
    body .ham-d-questionnaire-section,
    html .ham-d-questionnaire-section {
        padding: 15px !important;
    }
    
    .ham-d-header h2,
    div.ham-d-header h2,
    body .ham-d-header h2,
    html .ham-d-header h2 {
        font-size: 1.5rem !important;
    }
    
    .ham-d-score-value,
    div.ham-d-score-value,
    body .ham-d-score-value,
    html .ham-d-score-value {
        font-size: 2rem !important;
    }
}

/* Força aplicação global */
* {
    box-sizing: border-box;
}

/* Força aplicação em elementos específicos do WordPress */
.wp-block-shortcode .ham-d-container,
.entry-content .ham-d-container,
.post-content .ham-d-container,
article .ham-d-container {
    max-width: 900px !important;
    margin: 0 auto !important;
    padding: 30px !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    background: linear-gradient(135deg, #F5F5DC 0%, #F0E68C 100%) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.1) !important;
    position: relative !important;
    color: #5D4037 !important;
}

