/* Pulso de Liderazgo Styles */
.pulso-liderazgo-survey-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', Arial, sans-serif;
    padding-top: 100px;
    /* Space for sticky header */
    overflow-x: hidden;
}

.survey-sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    box-sizing: border-box;
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.progress-text {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #8437F0;
    transition: width 0.3s ease;
}

.survey-dimension-section {
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    transition: opacity 0.5s ease-in-out;
}

.survey-dimension-section:first-child {
    border-top: none;
    padding-top: 0;
}

.dimension-title {
    color: #6a2cc1;
    font-size: 24px;
    margin-bottom: 25px;
    border-left: 5px solid #8437F0;
    padding-left: 15px;
}

/* Hide header initially if needed */
.pulso-liderazgo-survey-container h2 {
    color: #23282d;
    margin-bottom: 20px;
    text-align: center;
}

.survey-item {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.survey-question {
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 26px;
    line-height: 1.3;
}

.likert-instruction {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: none;
    /* User requested removal */
}

/* ... existing styles ... */

/* .btn-submit-survey rule consolidated below */

.likert-scale {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.likert-option {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    /* Prevent them from getting too wide */
    cursor: pointer;
    position: relative;
}

.likert-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.likert-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #333;
    transition: all 0.2s ease;
    height: 100%;
    min-height: 70px;
    /* Ensure visual balance */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Subtle shadow like image */
    line-height: 1.2;
}

.likert-btn:hover {
    border-color: #999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.likert-option input[type="radio"]:checked+.likert-btn {
    border-color: #2271b1;
    /* WordPress Blue */
    background-color: #f0f6fc;
    color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Remove the old checkmark to keep it clean like the reference image */
.likert-option input[type="radio"]:checked+.likert-btn::before {
    content: none;
}

.btn-submit-survey,
.pulso-liderazgo-survey-container .btn-submit-survey,
.pulso-liderazgo-survey-container button.btn-submit-survey,
button#submit-survey.btn-submit-survey {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #8437F0;
    color: #ffffff !important;
    /* Force white text - high specificity */
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn-submit-survey:hover,
.pulso-liderazgo-survey-container .btn-submit-survey:hover,
button#submit-survey.btn-submit-survey:hover {
    background-color: #6a2cc1;
    color: #ffffff !important;
}

.btn-submit-survey:disabled,
.pulso-liderazgo-survey-container .btn-submit-survey:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    color: #ffffff !important;
}

.survey-response-message,
.pulso-liderazgo-survey-container .survey-response-message,
#survey-response-message {
    display: none;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.survey-response-message.success,
.pulso-liderazgo-survey-container .survey-response-message.success,
#survey-response-message.success {
    background-color: #F3EEFF !important;
    color: #4b1c71 !important;
    border: 2px solid #8437F0 !important;
}

.survey-response-message.error,
.pulso-liderazgo-survey-container .survey-response-message.error,
#survey-response-message.error {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* Dashboard Styles */
.pulso-liderazgo-dashboard-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.filter-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.kpi-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.kpi-card {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    border-left: 4px solid #0073aa;
}

.kpi-card h3 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 14px;
}

.kpi-value {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
}

.chart-section {
    margin-bottom: 30px;
}

.chart-section h3 {
    color: #23282d;
    margin-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.pulso-liderazgo-message {
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    text-align: center;
}

/* Report Styles */
.pulso-liderazgo-report-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', Arial, sans-serif;
}

.report-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.report-section:last-child {
    border-bottom: none;
}

.report-section h3 {
    color: #23282d;
    margin-bottom: 15px;
    font-size: 26px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.scale-table {
    width: 100%;
    border-collapse: collapse;
}

.scale-table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.scale-table td:first-child {
    width: 40%;
    font-weight: bold;
}

.radar-chart-container {
    max-width: 500px;
    margin: 0 auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.comparison-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.comparison-table .total-row {
    background: #fafafa;
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .pulso-liderazgo-survey-container,
    .pulso-liderazgo-report-container {
        padding: 15px;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
    }

    .survey-sticky-header {
        padding: 10px 15px;
    }

    .likert-scale {
        flex-direction: column;
        gap: 5px;
    }

    .likert-option {
        max-width: 100%;
    }

    .likert-btn {
        min-height: 50px;
        padding: 10px;
    }
}

/* ===========================================
   Survey Instructions Box
   =========================================== */
.pulso-liderazgo-instrucciones {
    background: #F3EEFF;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0 30px 0;
    border: 2px solid #8437F0;
}

.instrucciones-intro {
    font-size: 16px;
    color: #2d3748;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.instrucciones-card {
    background: #fff;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(132, 55, 240, 0.1);
}

.instrucciones-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #6a2cc1;
    font-size: 15px;
}

.instrucciones-header .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #8437F0;
}

.instrucciones-lista {
    margin: 0;
    padding-left: 22px;
    color: #444;
    line-height: 1.8;
}

.instrucciones-lista li {
    margin-bottom: 6px;
}

.instrucciones-lista strong {
    color: #4b1c71;
}

.instrucciones-footer {
    font-size: 15px;
    color: #555;
    margin: 0;
    font-style: italic;
}

/* ===========================================
   AI Summary Section Styles
   =========================================== */
.ai-summary {
    background: #F3EEFF;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 20px 0;
}

.ai-summary p {
    margin: 0 0 18px 0;
    line-height: 1.75;
    color: #2d3748;
    font-size: 15px;
}

.ai-summary p:last-child {
    margin-bottom: 0;
}

.ai-summary strong {
    color: #4b1c71;
    font-weight: 600;
}

.ai-summary ul {
    list-style: disc;
    margin: 0;
    padding: 0 0 0 20px;
}

.ai-summary ul li {
    margin-bottom: 16px;
    line-height: 1.75;
    color: #2d3748;
    font-size: 15px;
}

.ai-summary ul li:last-child {
    margin-bottom: 0;
}

.ai-intro {
    font-size: 16px !important;
    color: #1a202c !important;
    padding-bottom: 14px;
    margin-bottom: 18px !important;
    border-bottom: 1px solid rgba(75, 28, 113, 0.12);
}

.ai-intro strong {
    color: #6a2cc1 !important;
    font-size: 17px;
}

.ai-fortalezas,
.ai-desarrollo,
.ai-acciones {
    padding: 12px 16px;
    border-radius: 8px;
    background: #fff;
}

.ai-fortalezas strong {
    color: #009530 !important;
}

.ai-desarrollo strong {
    color: #b38600 !important;
}

.ai-acciones strong {
    color: #6a2cc1 !important;
}

/* Responsive AI Summary */
@media (max-width: 768px) {
    .ai-summary {
        padding: 16px 18px;
        margin: 15px 0;
    }

    .ai-summary p {
        font-size: 14px;
    }

    .ai-intro {
        font-size: 15px !important;
    }

    .ai-fortalezas,
    .ai-desarrollo,
    .ai-acciones {
        padding: 10px 12px;
    }
}