/* BRICommon.css
   Consolidated stylesheet from BRIFinal, BRIInterviewGuide, BRIMemberGuide,
   BRIPageOne-Thirteen, and Index views.

   Razor note:
   - Move this file to /Content/css/BRICommon.css or your preferred CSS folder.
   - Replace page-level <style> blocks with a single layout/view reference:
       <link rel="stylesheet" href="~/Content/css/BRICommon.css" />
   - For pages currently using background-image: url('@bgUrl'), set the CSS variable on the wrapper:
       <div class="bri-bg" style="--bri-bg-image: url('@bgUrl');">
*/

:root {
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --bri-red: rgb(242, 116, 86);
    --bri-green: rgb(124, 189, 7);
    --bri-orange: rgb(244, 157, 0);
    --bri-blue: rgb(77, 114, 224);
    --bri-gray-panel: #f2f2f2;
    --panel-radius: 18px;
    --shadow: 0 10px 25px rgba(0,0,0,.18);
}

body {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.bri-title {
    font-family: var(--font-title);
}

h4 {
    text-transform: none !important;
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 600;
}

/* BRI page background */
.bri-bg {
    min-height: 100vh;
    background-image: var(--bri-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Shared panels */
.bri-panel,
.mini-panel,
.bri-questions,
.gauge-card,
.bri-panel-tip,
.bri-panel-gauge {
    border-radius: var(--panel-radius);
    box-shadow: var(--shadow);
}

.bri-panel {
    padding: 15px;
    height:250px !important;
}

.mini-panel {
    padding: 14px;
    height: 100%;
}

.bri-questions {
    background: var(--bri-gray-panel);
    padding: 26px;
}

.bri-questions.bri-questions-lg,
.member-guide .bri-questions {
    padding: 28px;
}

.bri-panel-info,
.bri-panel-red,
.bri-panel-11 {
    background: rgba(242, 116, 86, .99);
    color: #fff;
}

.bri-panel-green,
.bri-panel-12 {
    background: rgba(124, 189, 7, .99);
    color: #fff;
}

.bri-panel-orange,
.bri-panel-13 {
    background: rgb(244, 157, 0);
    color: #fff;
}

.bri-panel-blue,
.bri-panel-guide {
    background: rgb(77, 114, 224);
    color: #fff;
}

.bri-panel-guide .card-body {
    background: transparent;
}

/* Page-specific aliases used by existing BRI pages */
.bri-page-orange .bri-panel-info,
.bri-panel-info.orange {
    background: rgb(244, 157, 0);
}

.bri-page-green .bri-panel-info,
.bri-panel-info.green {
    background: rgba(124, 189, 7, .99);
}

.bri-page-red .bri-panel-info,
.bri-panel-info.red {
    background: rgba(242, 116, 86, .99);
}

.bri-panel-tip,
.tip-card,
.tip-panel {
    background: rgba(0,0,0,.55);
    color: #fff;
    display: flex;
    flex-direction: row;
    height: 100%;
}

.bri-panel-gauge,
.gauge-card,
.gauge-panel {
    background: rgba(0,0,0,.55);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.bri-panel-gauge,
.gauge-card {
    padding: 18px;
}

.bri-panel-tip{
    padding: 18px;
}
.gauge-panel {
    min-height: 210px;
}

.gauge-panel.transparent,
.bri-panel-guide .gauge-panel {
    background: rgba(0,0,0,0);
}

/* Score panels and score numbers */
.score-panel {
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
}

.score-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 8px 0;
}

.score-box {
    display: grid;
    place-items: center;
    text-align: center;
    min-height: 220px;
}

.score-number {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 72px;
    line-height: 1;
    letter-spacing: .5px;
    margin: 0;
}

.score-panel .score-number,
.mini-panel .score-number {
    font-weight: 800;
    font-size: 54px;
    text-align: center;
    letter-spacing: 0;
}

.score-label {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 18px;
    margin-top: 10px;
    opacity: .95;
}

.score-sub {
    font-family: var(--font-body);
    font-size: 12px;
    opacity: .9;
    text-align: center;
    margin-top: 6px;
}

.score-footnote {
    font-family: var(--font-body);
    font-size: 12px;
    opacity: .9;
    margin-top: 10px;
}

/* Speedometer gauge */
.speedometer {
    --value: 100;
    --max: 200;
    --needle-rot: calc((var(--value) / var(--max)) * 180deg - 90deg);
    width: min(420px, 100%);
    margin: 0 auto;
    position: relative;
    aspect-ratio: 2 / 1;
}

.gauge-panel .speedometer,
.mini-panel .speedometer,
.speedometer.speedometer-sm {
    width: min(260px, 100%);
}

.speedometer .arc {
    position: absolute;
    inset: 0;
    border-top-left-radius: 999px;
    border-top-right-radius: 999px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: conic-gradient(from 180deg, #ff5a5a 0deg, #ffcc66 70deg, #7ad97a 180deg);
    -webkit-mask: radial-gradient(circle at 50% 100%, transparent 58%, #000 59%);
    mask: radial-gradient(circle at 50% 100%, transparent 58%, #000 59%);
    opacity: .95;
}

.speedometer .face {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 76%;
    height: 76%;
    background: rgba(20,20,20,.55);
    border-top-left-radius: 999px;
    border-top-right-radius: 999px;
    border: 1px solid rgba(255,255,255,.15);
}

.speedometer .needle,
.speedometer .ticks,
.speedometer .labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.speedometer .needle::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 6px;
    height: 150px;
    background: #fff;
    border-radius: 6px;
    transform-origin: 50% 100%;
    transform: translateX(-50%) rotate(var(--needle-rot));
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

.gauge-panel .speedometer .needle::before,
.mini-panel .speedometer .needle::before,
.speedometer.speedometer-sm .needle::before {
    bottom: 16px;
    width: 5px;
    height: 95px;
}

.speedometer .hub {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

.gauge-panel .speedometer .hub,
.mini-panel .speedometer .hub,
.speedometer.speedometer-sm .hub {
    bottom: 16px;
    width: 22px;
    height: 22px;
}

.speedometer .value {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    text-align: center;
}

.gauge-panel .speedometer .value,
.mini-panel .speedometer .value,
.speedometer.speedometer-sm .value {
    bottom: 24px;
}

.speedometer .value .n {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
}

.gauge-panel .speedometer .value .n,
.mini-panel .speedometer .value .n,
.speedometer.speedometer-sm .value .n {
    font-size: 28px;
}

.speedometer .value .t {
    font-family: var(--font-body);
    font-size: 13px;
    opacity: .9;
    margin-top: 4px;
}

.gauge-panel .speedometer .value .t,
.mini-panel .speedometer .value .t,
.speedometer.speedometer-sm .value .t {
    font-size: 11px;
    margin-top: 2px;
}

.speedometer .tick {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 0;
    height: 0;
    transform-origin: 0 0;
}

.gauge-panel .speedometer .tick,
.mini-panel .speedometer .tick,
.speedometer.speedometer-sm .tick {
    bottom: 16px;
}

.speedometer .tick::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 2px;
    opacity: .95;
}

.speedometer .tick.major::before {
    width: 4px;
    height: 18px;
}

.gauge-panel .speedometer .tick.major::before,
.mini-panel .speedometer .tick.major::before,
.speedometer.speedometer-sm .tick.major::before {
    width: 3px;
    height: 14px;
}

.speedometer .tick-label {
    position: absolute;
    left: 0;
    top: -26px;
    transform: translateX(-50%);
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    opacity: .85;
    white-space: nowrap;
}

.gauge-panel .speedometer .tick-label,
.mini-panel .speedometer .tick-label,
.speedometer.speedometer-sm .tick-label {
    top: -22px;
    font-size: 10px;
}

/* Progress */
.bri-progress-wrap {
    margin-top: 18px;
}

.bri-progress {
    width: 100%;
    padding: 6px 0;
}

.bri-progress .label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    color: #fff;
}

.bri-progress .label-row .left {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 16px;
}

.bri-progress .label-row .right {
    font-family: var(--font-body);
    font-size: 14px;
    opacity: .9;
}

.bri-progress .track {
    height: 10px;
    background: rgba(255,255,255,.25);
    border-radius: 999px;
    overflow: hidden;
}

.bri-progress .fill {
    height: 100%;
    background: #0d6efd;
    border-radius: 999px;
}

.bri-progress.progress-light .track,
.bri-panel-info .bri-progress .track {
    background: rgba(255,255,255,.50);
}

/* Interview guide / collapsible survey detail */
.survey-toggle-btn {
    color: #fff;
    text-decoration: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.survey-toggle-btn:focus {
    box-shadow: none;
}

.survey-toggle-icon,
.toggle-icon {
    display: inline-block;
    transition: transform .2s ease;
}

.survey-toggle-btn[aria-expanded="true"] .survey-toggle-icon,
.toggle-icon.open {
    transform: rotate(90deg);
}

.survey-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.surveyDetail-11,
.surveyDetail-12,
.surveyDetail-13 {
    margin-top: 12px;
}

/* Member guide question/answer sections */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.section-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.section-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(13,110,253,.10);
    border: 1px solid rgba(13,110,253,.25);
    flex: 0 0 auto;
}

.section-title {
    font-family: var(--font-title);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.subtle {
    color: #555;
    font-size: 15px;
}

.section-divider {
    height: 1px;
    background: rgba(0,0,0,.10);
    margin: 18px 0;
}

.qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .qa-grid {
        grid-template-columns: 1fr;
    }
}

.qa-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 92px;
}

.q {
    font-weight: 700;
    font-family: var(--font-title);
    margin-bottom: 10px;
    font-size: 15px;
}

.a {
    font-size: 15px;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.badge-answer {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(13,110,253,.10);
    border: 1px solid rgba(13,110,253,.25);
    color: #0d3f8f;
    font-weight: 700;
    text-align: right;
}

.alert-contradiction {
    background: rgba(242,116,86,.12);
    border: 1px solid rgba(242,116,86,.35);
    border-radius: 14px;
    padding: 14px 16px;
}

.alert-contradiction .title {
    font-family: var(--font-title);
    font-weight: 700;
    margin-bottom: 6px;
}

.alert-contradiction p {
    margin-bottom: 0;
}

.next-steps {
    background: rgba(124,189,7,.12);
    border: 1px solid rgba(124,189,7,.35);
    border-radius: 14px;
    padding: 14px 16px;
}

.next-steps ul {
    margin-bottom: 0;
}

.next-steps li {
    margin-bottom: 6px;
}

.next-steps li:last-child {
    margin-bottom: 0;
}

.mini-note {
    color: #555;
    font-size: 13px;
}

/* Index / survey start page */
#sliderChoice {
    font-size: 27px;
    font-family: 'Open Sans', var(--font-body);
    font-weight: 400;
    line-height: 27px;
}

@media only screen and (max-width:480px) {
    #sliderChoice {
        font-size: 16px !important;
        line-height: 20px;
    }
}

.surveyWrapper {
    min-height: 750px;
}

.cellPhotoCredit{
    padding:5px;
    font-size:9px !!important;
}

.surveypanel {
    padding-top: 25px;
    padding-bottom: 0;
    padding-right: 0;
    background-image: url(../images/BottomRightCornerSkyBlue2.png);
    background-position: right bottom;
    background-repeat: no-repeat;
    background-color: #eee;
    border: 1px #ccc solid;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: rgba(0,0,0,.2) 5px 5px;
    min-height: 500px;
    width: 100%;
}

.surveypanelNoBorder {
    padding-top: 25px;
    padding-bottom: 75px;
    margin-bottom: 25px;
    min-height: 500px;
    width: 100%;
}

.biqCheck {
    color: #333;
    margin-top: -20px;
    margin-bottom: 40px;
    padding-top: 0;
    text-align: center;
    font-family: 'Open Sans', var(--font-body);
    font-size: 16px;
    font-weight: 400;
}

.surveyChoice {
    font-family: 'Open Sans', var(--font-body);
    font-size: 16px;
    font-weight: 600;
}

#message {
    font-family: 'Open Sans', var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: #33cc33;
    text-align: left;
}

.memberBody {
    padding-bottom: 25px;
}

.slidecontainer {
    width: 100%;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 30px;
    background: #d3d3d3;
    outline: none;
    opacity: .7;
    -webkit-transition: .2s;
    transition: opacity .2s;
    border-radius: 10px !important;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4873e0;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #4873e0;
    cursor: pointer;
}

/* Small utilities to replace repeated inline styles when convenient */
.bri-bg-red { background: var(--bri-red) !important; color: #fff; }
.bri-bg-green { background: var(--bri-green) !important; color: #fff; }
.bri-bg-orange { background: var(--bri-orange) !important; color: #fff; }
.bri-bg-blue { background: var(--bri-blue) !important; color: #fff; }
.bri-text-dark { color: #333 !important; }
.bri-text-white { color: #fff !important; }
.bri-font-body { font-family: var(--font-body) !important; }
.bri-z-modal { z-index: 1050; }


/* Fixed score/progress footer */
.bri-score-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: #212529;
    color: #fff;
    border-top: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 -6px 18px rgba(0,0,0,.22);
}

.bri-score-footer-row {
    min-height: 74px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.bri-score-footer-section {
    min-height: 54px;
    display: flex;
    align-items: center;
}

.bri-score-footer-scores {
    justify-content: space-around;
    text-align: center;
    gap: 8px;
}

.bri-score-footer .score-item {
    flex: 1 1 0;
    min-width: 0;
}

.bri-score-footer .score-name {
    font-size: 10px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .75;
    white-space: nowrap;
}

.bri-score-footer .score-value {
    font-size: 24px;
    line-height: 1.05;
    font-weight: 700;
}

.bri-footer-progress {
    width: 100%;
}

.bri-footer-progress .progress-text {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 6px;
    opacity: .9;
}

.bri-footer-progress .progress-track {
    height: 9px;
    background: rgba(255,255,255,.25);
    border-radius: 999px;
    overflow: hidden;
}

.bri-footer-progress .progress-fill {
    height: 100%;
    background: #0d6efd;
    border-radius: 999px;
}

.bri-score-footer-message {
    justify-content: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.25;
    opacity: .95;
}

@media (max-width: 991.98px) {
    .bri-score-footer-row {
        min-height: auto;
    }

    .bri-score-footer-section {
        min-height: 38px;
    }

    .bri-score-footer .score-value {
        font-size: 20px;
    }
}
