/* SE Tools Maturity Assessment Specific Styles */

/* Styles for the main assessment container are now primarily handled by Bootstrap's .container and .card classes in maturity_assessment.php */
/* We can add specific overrides if needed, e.g., for max-width or specific shadows if Bootstrap defaults aren't enough. */

.assessment-header h1 {
    /* color: #007bff; */ /* Bootstrap primary color will likely be used, or site's main H1 style */
    text-align: center;
    margin-bottom: 0.5rem; /* Adjust as per Bootstrap spacing */
}

.assessment-header p {
    text-align: center;
    color: #6c757d; /* Bootstrap text-muted could also be used */
    margin-bottom: 1.5rem; /* Adjust as per Bootstrap spacing */
    font-size: 1.1em;
}

/* Progress Bar Specific Styles */
.progress-bar-container {
    margin-bottom: 2rem; /* More spacing for the progress bar */
}

.progress-text {
    font-size: 0.9rem;
    color: #495057;
}

.progress-text span:last-child {
    font-weight: bold;
}

/* Customizing Bootstrap's progress bar color to green */
.progress {
    height: 8px; /* Thinner progress bar */
    background-color: #f1f3f4;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}

#progressBar {
    background-color: #2ecc71; /* Theme primary green */
}

.section {
    margin-bottom: 2.5rem; /* Increased spacing */
    padding: 1.5rem; /* Bootstrap card might handle this, or we can customize */
    /* border: 1px solid #e9ecef; */ /* Bootstrap card has its own border */
    /* border-radius: 8px; */ /* Bootstrap card has its own radius */
    /* background-color: #fdfdff; */ /* Bootstrap card has its own background */
}

.section-header h2 {
    color: #0056b3; /* Darker blue */
    margin-top: 0;
    border-bottom: 2px solid #007bff; /* Primary color accent */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #495057;
    margin-bottom: 1rem;
}

.question {
    margin-bottom: 2.5rem; /* Increased bottom margin */
}

/* Add padding and border to subsequent questions for separation */
.question:not(:first-child) {
    padding-top: 1.5rem; /* Add space above the question prompt */
    border-top: 1px solid #e9ecef; /* Light separator line */
}

.question p strong {
    display: block;
    margin-bottom: 0.75rem;
    color: #212529; /* Bootstrap default text color */
    font-size: 1.15em; /* Increased font size */
}

/* Radio button option styling */
.options label {
    display: block;
    background-color: #f8f9fa; /* Light grey background */
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem; /* Bootstrap's default border-radius */
    border: 1px solid #dee2e6; /* Standard border */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.options label:hover {
    background-color: #e9ecef; /* Slightly darker on hover */
    border-color: #ced4da;
}

.options input[type="radio"] {
    opacity: 0; /* Visually hide the radio button but keep it accessible */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.options label.option-selected {
    background-color: #2ecc71; /* Theme primary green */
    border-color: #2ecc71; /* Theme secondary green for border */
    color: #ffffff; /* White text for better contrast */
    font-weight: bold;
}

/* Navigation buttons are styled by Bootstrap .btn classes */
/* .navigation-buttons flex display is handled in maturity_assessment.php with d-flex */

#nextBtn:disabled,
#submitBtn:disabled {
    background-color: #ced4da; /* A standard Bootstrap light grey */
    border-color: #ced4da;
    color: #6c757d; /* Darker grey text for readability */
    opacity: 0.65; /* Ensure it looks faded */
}

/* User Info Form and Report Container are styled by Bootstrap .card */
/* #userInfoForm label is styled by Bootstrap .form-label */
/* #userInfoForm input fields are styled by Bootstrap .form-control */

/* Responsive fixes for the maturity progress bar on mobile */
@media (max-width: 576px) {
  .btn.btn-outline-primary {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1rem;
  }
  .maturity-progress {
    height: 22px !important;
    font-size: 0.8rem;
    min-width: 0;
  }
  .maturity-progress .progress-bar {
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: 0.75rem !important;
    min-width: 0 !important;
    white-space: normal !important; /* Allow wrapping */
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.05;
  }
  .maturity-progress .progress-bar.selected span {
    font-size: 0.7rem !important;
    padding: 0 1px !important;
    word-break: break-word;
    white-space: normal;
    line-height: 1.1;
    display: inline-block;
    width: 100%;
    text-align: center;
  }
  .maturity-progress .progress-bar span {
    font-size: 0.65rem !important;
    padding: 0 1px !important;
    white-space: normal;
    line-height: 1.1;
    display: inline-block;
    width: 100%;
    text-align: center;
  }
}


/* Spider chart container - ensure it's responsive */
#spiderChartContainer {
    width: 100%;
    max-width: 500px; /* Max width from PHP, can be adjusted */
    margin: 1.5rem auto; /* Centering and spacing */
}

.hidden {
    display: none !important; /* Ensure hidden elements stay hidden, overriding other display properties */
}

/* Maturity Level display in Report */
/* .maturity-level styling is handled by Bootstrap classes in maturity_assessment.php */

.maturity-level h3 {
    /* color: #007bff; */ /* Using Bootstrap .h4 class, color can be default or customized */
    margin-bottom: 0.5rem;
}

.maturity-level p {
    font-size: 1.1em;
    /* color: #495057; */ /* Bootstrap .lead class handles this */
}

/* Report Table is styled by Bootstrap .table, .table-striped, .table-hover */
/* .report-table th is styled by Bootstrap .table-light for thead */

/* Icon spacing is handled by Bootstrap margin utility classes (e.g., ms-1, me-1) in the PHP. */

/* Sticky Footer Navigation */
.sticky-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa; /* Light grey background */
    padding: 1rem 1.5rem; /* Adjust padding as needed */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030; /* Ensure it's above most content, Bootstrap's fixed navbar is 1030 */
    display: flex; /* Will be controlled by JS to show/hide */
    justify-content: space-between;
}

/* Adjust main content padding to prevent overlap with sticky footer */
.assessment-container {
    padding-bottom: 80px; /* Adjust based on sticky footer height + some buffer */
}

/* Class for adding top margin for header spacing */
.assessment-content-top-spacing {
    margin-top: 3rem; /* Adjust as needed for more space below site header */
}

/*
 * Report Page Specific Styles
 */
.report-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}
.maturity-level-badge {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    color: #fff;
}
.bg-level-foundational { background-color: #dc3545; } /* Red */
.bg-level-developing { background-color: #fd7e14; }  /* Orange */
.bg-level-advanced { background-color: #ffc107; }   /* Yellow */
.bg-level-strategic { background-color: #198754; }  /* Green */

.spider-chart-container {
    padding: 1.5rem;
    border-radius: 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-card {
    border-left: 5px solid #198754; /* Theme green */
    height: 100%;
}

