/* ==========================================================================
   Assessment screening pages — shared modern theme
   Matches the "Assessment Result" card look (assessment-result-card.php)
   ========================================================================== */

.assessment-page {
    padding: 40px 0 60px;
}

.assessment-card {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.assessment-card__header {
    background: linear-gradient(135deg, #0074bc, #00a3c8);
    color: #fff;
    text-align: center;
    padding: 34px 30px;
}

.assessment-card__header i {
    font-size: 28px;
    margin-bottom: 10px;
    display: inline-block;
}

.assessment-card__header h1,
.assessment-card__header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.assessment-card__body {
    padding: 32px 30px 40px;
}

.assessment-card__body .assessment-subheading {
    font-size: 17px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 18px;
    padding: 0;
}

.assessment-card .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    /*padding: 10px 14px;*/
}

.assessment-card .form-control:focus {
    border-color: #0074bc;
    box-shadow: 0 0 0 .2rem rgba(0, 116, 188, .15);
}

/* Severity / answer-scale legend, shown as pills instead of a plain list */
.severity-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 26px;
    padding: 0;
    list-style: none;
}

.severity-legend li {
    background: #f0faff;
    border: 1px solid #cdeaf5;
    color: #0074bc;
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
}

.severity-legend li strong {
    color: #0074bc;
}

/* Question table */
.assessment-card .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-bottom: 0;
}

/* Grid-style tables (one row per question, one column per answer option) */
.assessment-card .assessment-grid-table {
    table-layout: fixed;
}

.assessment-card .assessment-grid-table th:first-child,
.assessment-card .assessment-grid-table td:first-child {
    width: 32%;
}

.assessment-card .table thead th {
    border: none;
    background: #f4f8fb;
    color: #495057;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 12px 8px;
    white-space: normal;
    text-align: center;
}

.assessment-card .table thead tr th:first-child {
    border-radius: 10px 0 0 10px;
    text-align: left;
    padding-left: 16px;
}

.assessment-card .table thead tr th:last-child {
    border-radius: 0 10px 10px 0;
}

.assessment-card .table tbody tr {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.assessment-card .table tbody td {
    border: none;
    padding: 14px 10px;
    vertical-align: middle;
}

.assessment-card .table tbody td:first-child {
    font-weight: 600;
    color: #212529;
    border-radius: 10px 0 0 10px;
    padding-left: 16px;
}

.assessment-card .table tbody td:last-child {
    border-radius: 0 10px 10px 0;
}

.assessment-card .btn-submit {
    background: #0074bc;
    border: none;
    color: #fff;
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: opacity .2s ease;
}

.assessment-card .btn-submit:hover {
    opacity: .9;
    color: #fff;
}

/* Validation / info popup ("myalert" pattern used across screening pages) */
.alert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 9998;
}

.myalert {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    padding: 0;
    width: min(90%, 400px);
    overflow: hidden;
    text-align: center;
}

.myalert > div {
    padding: 30px 26px;
}

.myalert p,
.myalert div {
    font-size: 15px;
    color: #212529;
    margin: 0 0 16px;
}

@media (max-width: 800px) {
    .assessment-card__body {
        padding: 26px 18px 32px;
    }
}

#otpResendBtn {
    color: white;
}
#otpCancelBtn {
    color: white;
}

.form-check-input[type=radio] {
    border: 1px solid #000000;
}
