.dashboardWrap .leftNav .navmenu ul li a.active {
    background: #2e429b61;
    border-radius: 8px;
}
.decision-card .summary-list .summary-item .summary-link.active {
    background: white;
    color: #1e2b68 !important;
    font-weight: bold !important;
    border-radius: 5px;
}
.dashboardWrap .leftNav .navmenu ul li a:hover {
    background: #2e429b61;
    border-radius: 8px;
}
.content-section table td, .content-section table th {
    font-size: 15px;
}
.content-section h2 {
    font-size: 21px;
}
.whitesec a.btn.btn-dark {
    font-size: 14px;
    font-weight: bold;
}
a.vbtn {
    background: #d3d3d3;
    color: #000000;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
}
.whitesec
{
 background: white !important;
}
.whitesec h2,.whitesec table tr th, .whitesec table tr td
{
color: black !important;
}
td.test-name {
    width: auto !important;
}
.content-pagesec
{
    text-align: left;
}
.content-pagesec h2 {
    margin-top: 25px;
}
.content-pagesec h3 {
    font-size: 18px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.content-pagesec ul, .content-pagesec ul li {
    list-style: circle !important;
    list-style-type: disc !important;
}
a.btn-primary-blue.small.text-decoration-none.white-btn {
    background: white;
    color: #2e429b;
    font-weight: bold;
}
.question-card.mb-3.questionform {
    position: relative;
}
form.deleteformsec {
    position: absolute;
    right: 6%;
    top: 15px;
    width: 50px;
    cursor: pointer;
}

.ai-loader-wrap{
    padding:40px 20px;
    text-align:center;
}

.ai-loader-box{
    max-width:500px;
    margin:auto;
}

.ai-loader-box h4{
    font-size:22px;
    font-weight:700;
    margin-top:25px;
    margin-bottom:10px;
    color:#1c3f95;
}

.ai-loader-box p{
    color:#6b7280;
    font-size:15px;
    margin-bottom:25px;
}

.ai-brain{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
}

.ai-brain span{
    width:18px;
    height:18px;
    border-radius:50%;
    background:#1c3f95;
    animation:brainPulse 1.4s infinite ease-in-out;
}

.ai-brain span:nth-child(2){
    animation-delay:0.2s;
}

.ai-brain span:nth-child(3){
    animation-delay:0.4s;
}

@keyframes brainPulse{
    0%, 80%, 100%{
        transform:scale(0.7);
        opacity:0.5;
    }

    40%{
        transform:scale(1.2);
        opacity:1;
    }
}

.ai-progress{
    width:100%;
    height:10px;
    background:#e5e7eb;
    border-radius:30px;
    overflow:hidden;
    margin-top:20px;
}

.ai-progress-bar{
    width:40%;
    height:100%;
    border-radius:30px;
    background:linear-gradient(90deg,#1c3f95,#5ba7ff);
    animation:loadingBar 1.5s infinite;
}
.test-info-wrapper {
    position: relative;
    display: inline-block;
}

.info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    background: #1e4db7;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
}

.custom-tooltip {
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #1c1c1c;
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    width: 220px;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 999;
    text-align: left;
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #1c1c1c transparent transparent transparent;
}

.info-icon:hover .custom-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Links inside the dark tooltip (e.g. "Read more in My Cancer Guide") must
   read as light grey, no underline — the global blue link colour is
   unreadable on #1c1c1c. !important so the High Contrast mode's black links
   (and the global a:hover blue) can't win on this always-dark background. */
.custom-tooltip a,
.custom-tooltip a:hover,
.custom-tooltip a:focus {
    color: #c8c8c8 !important;
    text-decoration: none !important;
}
.custom-tooltip a:hover {
    color: #e6e6e6 !important;
}
.results-info-card {
    background: #f8f8f8;
    border-radius: 25px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.results-info-card h4 {
    color: #243c92;
    font-size: 28px;
    font-weight: 700;
}

.journey-chart {
    position: relative;
    height: 280px;
}

#journeyChart {
    width: 100% !important;
    height: 100% !important;
}
.btn-link-skip {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.feeling-circle.full.amber {
    background-color: #FFB81C !important;
}
.feeling-circle.full.grey {
    background-color: #BFBFBF !important;
}
.feeling-circle.full.green {
    background-color: #00703C !important;
}
.feeling-circle.full.red {
    background-color: #DA291C !important;
}
.feeling-circle.half.grey {
    background: conic-gradient(var(--color-review) 180deg, var(--color-yellow) 0);
    font-size: 15px;
    font-weight: 400;
}

.slidepanelList li span {
    width: 30px;
    height: 30px;
    background: #2E429B;
    border-radius: 3px;
    position: relative;
    z-index: 1;
    display: inline-block;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5px;
    margin-right: 15px;
}

@keyframes loadingBar{
    0%{
        margin-left:-40%;
    }

    100%{
        margin-left:100%;
    }
}
/* Dashboard Safety Alerts card: Red = emergency tier (999/A&E), Amber =
   "get advice today" tier. Amber uses dark text for contrast. */
.safety-alerts-card.alert-tier-red {
    background-color: #ff0404;
}
.safety-alerts-card.alert-tier-amber {
    background-color: #FFB81C;
    color: #1a1a1a;
}
.safety-alerts-card.alert-tier-amber .alert-list-styled::before {
    border-left-color: rgba(0, 0, 0, 0.3);
}
.safety-alerts-card.alert-tier-amber .alert-list-styled li span,
.safety-alerts-card.alert-tier-amber .contact-btn,
.safety-alerts-card.alert-tier-amber .contact-btn .btn-text {
    color: #1a1a1a;
}
.safety-alerts-card.alert-tier-amber .contact-btn .phone-icon-wrap {
    background-color: #FFFFFF;
}
.safety-alerts-card.alert-tier-amber .header-icon {
    filter: brightness(0);
}

/* "How Have I been Feeling" now has six circles (Digestion & Nutrition added);
   tighter gutters + smaller labels keep them on one row in the 9-column card. */
.feeling-six-row > .col {
    min-width: 0;
}
.feeling-six-row .feeling-label {
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Partly-answered circle that already has a colour (e.g. Blood Tests with a
   red/amber result but some tests still missing): colour on the left half,
   grey on the right, same "Review" look as .half.grey. Previously these
   combinations had no style at all and rendered as a blank white circle. */
.feeling-circle.half.red,
.feeling-circle.half.amber,
.feeling-circle.half.yellow,
.feeling-circle.half.green {
    font-size: 15px;
    font-weight: 400;
}
.feeling-circle.half.red    { background: conic-gradient(#BFBFBF 180deg, #DA291C 0); }
.feeling-circle.half.amber,
.feeling-circle.half.yellow { background: conic-gradient(#BFBFBF 180deg, #FFB81C 0); }
.feeling-circle.half.green  { background: conic-gradient(#BFBFBF 180deg, #00703C 0); }

/* Mobile: the circle rows (five in My Cancer Results, six in How Have I been
   Feeling) no longer squeeze into one line and overlap — they wrap three to a
   row, and labels break between words, not in the middle of them (client F18). */
.feeling-six-row .feeling-label {
    overflow-wrap: break-word;
    word-break: normal;
}
@media (max-width: 767.98px) {
    .feeling-container {
        padding: 22px 14px;
    }
    .feeling-container .row > .col {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
        margin-bottom: 14px;
    }
    .feeling-container .feeling-label {
        font-size: 12px;
        line-height: 1.25;
    }
}

/* Mobile: Open Questions (and its sibling AI Insights card) — the category tag
   sits above the question instead of beside it, so the question text gets the
   full card width; heading and padding scaled down so the title and the
   "View All" link share a line. */
@media (max-width: 767.98px) {
    .results-info-card {
        padding: 20px 16px;
        border-radius: 28px;
    }
    .results-info-card h4 {
        font-size: 22px;
    }
    .results-info-card > .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 6px 12px;
    }
    .results-info-card .card-link {
        font-size: 13px;
        white-space: nowrap;
    }
    .results-info-card .oq-question-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 2px;
    }
    .results-info-card .oq-question-text {
        width: 100%;
        font-size: 14px;
        line-height: 1.45;
    }
    .results-info-card .oq-topics {
        gap: 6px;
    }
}

/* Questionnaire answer options (Yes / No / Not Sure and similar) wrap onto a
   new line instead of squashing and overlapping the next question at narrower
   widths (client F28/F31, Personal history screenshot). */
.patient-form .d-flex.gap-4 {
    flex-wrap: wrap;
    gap: 8px 24px !important;
}
.patient-form .form-check {
    min-width: 0;
}
.patient-form .form-check-label {
    white-space: nowrap;
}

/* Left menu item that is not available yet (Weekly Check-In before the Health Questionnaire is finished). */
.dashboardWrap .leftNav .navmenu ul li a.menu-locked {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: auto;
}
.dashboardWrap .leftNav .navmenu ul li a.menu-locked:hover {
    background: transparent;
}

/* Before You Start safety sentence: a block (not a paragraph) so the triage-card pop-up can sit inside it; spaced like the paragraphs around it. */
.safety-sentence {
    margin-bottom: 1rem;
}
