/* =========================================================
   assessment.css
   ovniTEK Solutions
   ================================================= */


/* ---------------------------------------------------------
   Assessment Page
   --------------------------------------------------------- */

.assessment-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(circle at 50% 0%,
            rgba(165, 255, 238, 0.09),
            transparent 45%),
        #050505;
}


/* ---------------------------------------------------------
   Assessment Main
   --------------------------------------------------------- */

.assessment-main {
    flex: 1;

    padding: 32px 0 64px;
}


/* ---------------------------------------------------------
   Assessment Card
   --------------------------------------------------------- */

.assessment-panel {
    width: 100%;

    padding: 48px;

    background:
        linear-gradient(145deg,
            rgba(165, 255, 238, 0.06),
            rgba(255, 255, 255, 0.018));

    border: 1px solid rgba(165, 255, 238, 0.2);
    border-radius: 10px;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}


/* ---------------------------------------------------------
   Assessment Intro
   --------------------------------------------------------- */

.assessment-intro {
    text-align: center;
}

.assessment-intro h1 {
    margin-bottom: 25px;

    color: white;

    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
}

.assessment-intro p {
    max-width: 680px;

    margin: 0 auto 15px;

    color: #cfcfcf;

    font-size: 17px;
}

.assessment-intro .primary-button {
    margin-top: 25px;
}


/* ---------------------------------------------------------
   Assessment Role
   --------------------------------------------------------- */

.assessment-role select {
    padding: 2px;

    background-color: #111827;
    border: 1px solid #3a4656;
    border-radius: 6px;

    color: #ffffff;

    font: inherit;
}

.assessment-role select option {
    background-color: #111827;
    color: #ffffff;
}


/* ---------------------------------------------------------
   Assessment Role Error
   --------------------------------------------------------- */

.assessment-role-error {
    margin-top: 10px;

    color: #777;

    font-size: 14px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Questionnaire
   --------------------------------------------------------- */

.assessment-questionnaire {
    width: 100%;
}


/* ---------------------------------------------------------
   Progress
   --------------------------------------------------------- */

.assessment-progress {
    margin-bottom: 36px;
}

.assessment-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;

    color: #777;

    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#progress-text {
    color: #A5FFEE;
}

.assessment-context {
    max-width: 760px;
    margin: 24px auto 0;
    padding: 18px;
    border: 1px solid rgba(165, 255, 238, 0.16);
    border-radius: 7px;
    text-align: left;
}

.assessment-context legend {
    padding: 0 8px;
    color: white;
    font-weight: bold;
}

.assessment-context > p {
    margin-bottom: 14px;
    color: #888;
    font-size: 13px;
}

.assessment-context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.assessment-context-grid label {
    color: #d0d0d0;
    font-size: 13px;
}

.assessment-context-grid select {
    width: 100%;
    margin-top: 6px;
    padding: 9px 10px;
    background-color: #111827;
    border: 1px solid #3a4656;
    border-radius: 5px;
    color: white;
    font: inherit;
}

#pillar-progress-text {
    color: #d0d0d0;
}

.assessment-progress-track {
    width: 100%;
    height: 6px;

    overflow: hidden;

    background-color: #242424;
    border-radius: 5px;
}

.assessment-progress-bar {
    width: 0;
    height: 100%;

    background-color: #A5FFEE;
    border-radius: 5px;

    transition: width 0.4s ease;
}


/* ---------------------------------------------------------
   Question
   --------------------------------------------------------- */

.question-container {
    min-height: 0;
}

.question-category {
    margin-bottom: 12px;

    color: #A5FFEE;

    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.question-title {
    margin-bottom: 12px;

    color: white;

    font-size: clamp(22px, 3.2vw, 30px);
    line-height: 1.2;
}

.question-help {
    margin-bottom: 22px;

    color: #999;

    font-size: 14px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   Pillar Transition
   --------------------------------------------------------- */

.pillar-transition {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.pillar-illustration {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 20px;
    background: radial-gradient(circle, rgba(165, 255, 238, 0.18), rgba(165, 255, 238, 0.03) 65%);
    border: 1px solid rgba(165, 255, 238, 0.35);
    border-radius: 50%;
}

.pillar-illustration::before {
    position: absolute;
    inset: 19px 23px 17px;
    display: grid;
    place-items: center;
    background: rgba(23, 97, 194, 0.28);
    border: 2px solid #5fa8ff;
    border-radius: 18px 18px 24px 24px;
    color: #A5FFEE;
    content: "OW";
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
}

.pillar-illustration[data-illustration="assets"]::before { content: "AS"; }
.pillar-illustration[data-illustration="access"]::before { content: "ID"; }
.pillar-illustration[data-illustration="devices"]::before { content: "DN"; }
.pillar-illustration[data-illustration="people"]::before { content: "EP"; }
.pillar-illustration[data-illustration="response"]::before { content: "IR"; }
.pillar-illustration[data-illustration="recovery"]::before { content: "BC"; }
.pillar-illustration[data-illustration="improvement"]::before { content: "VI"; }

.pillar-kicker {
    margin-bottom: 8px;
    color: #A5FFEE;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.pillar-transition h2 {
    margin-bottom: 12px;
    color: white;
    font-size: 32px;
}

.pillar-introduction {
    max-width: 650px;
    margin: 0 auto 14px;
    color: #d0d0d0;
}

.pillar-transition blockquote {
    margin: 0 auto 24px;
    color: #A5FFEE;
    font-size: 18px;
    font-style: italic;
}

.pillar-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.pillar-list li {
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    color: #777;
    font-size: 12px;
}

.pillar-list .pillar-complete {
    color: #a9c9c3;
}

.pillar-list .pillar-current {
    background: rgba(165, 255, 238, 0.08);
    border-color: #A5FFEE;
    color: white;
}


/* ---------------------------------------------------------
   Answer Options
   --------------------------------------------------------- */

.answer-options {
    display: grid;
    gap: 10px;
}

.answer-option {
    position: relative;

    display: block;

    padding: 14px 16px;

    background-color: rgba(0, 0, 0, 0.28);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;

    color: #d7d7d7;

    font-size: 15px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.answer-option:hover {
    background-color: rgba(165, 255, 238, 0.035);
    border-color: rgba(165, 255, 238, 0.45);
}

.answer-option.selected {
    background-color: rgba(165, 255, 238, 0.08);
    border-color: #A5FFEE;
    color: white;
}

.answer-option input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.answer-option-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.answer-option-marker {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    border: 1px solid #666;
    border-radius: 50%;
}

.answer-option.selected .answer-option-marker {
    background:
        radial-gradient(circle,
            #A5FFEE 0 4px,
            transparent 5px);

    border-color: #A5FFEE;
}


/* ---------------------------------------------------------
   Assessment Navigation
   --------------------------------------------------------- */

.assessment-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#next-question:disabled,
#previous-question:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}


/* ---------------------------------------------------------
   Desktop Density
   --------------------------------------------------------- */

@media screen and (min-width: 801px) {

    .assessment-page .header {
        padding: 10px 0;
    }

    .assessment-panel {
        padding: 30px;
    }

    .question-title {
        font-size: 28px;
    }
}


/* ---------------------------------------------------------
   Compact-Height Quiz Layout
   --------------------------------------------------------- */

@media screen and (min-width: 601px) and (max-height: 800px) {

    .assessment-page .header {
        padding: 8px 0;
    }

    .assessment-main {
        padding: 16px 0 28px;
    }

    .assessment-panel {
        padding: 24px 30px;
    }

    .assessment-progress {
        margin-bottom: 20px;
    }

    .question-category {
        margin-bottom: 8px;
    }

    .question-title {
        margin-bottom: 8px;
        font-size: 26px;
    }

    .question-help {
        margin-bottom: 16px;
        line-height: 1.45;
    }

    .answer-options {
        gap: 8px;
    }

    .answer-option {
        padding: 10px 14px;
    }

    .assessment-navigation {
        margin-top: 18px;
        padding-top: 14px;
    }
}

/* ---------------------------------------------------------
   Assessment Error
   --------------------------------------------------------- */

.assessment-error {
    margin-top: 20px;
    padding: 15px 18px;

    background: rgba(255, 77, 77, 0.08);

    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 5px;

    color: #ffb5b5;

    font-size: 14px;
}


/* ---------------------------------------------------------
   Assessment Completion
   --------------------------------------------------------- */

.assessment-complete {
    text-align: center;
}

.assessment-complete h2 {
    color: white;
}

.assessment-complete p {
    max-width: 600px;

    margin: 0 auto 30px;

    color: #ccc;
}


/* ---------------------------------------------------------
   Assessment Results
   --------------------------------------------------------- */

.assessment-results {
    max-width: 760px;
    margin: 0 auto 35px;
    text-align: left;
}

.assessment-results-status {
    margin-bottom: 0;
    color: #d0d0d0;
    text-align: center;
}

.assessment-result-overview {
    margin-bottom: 20px;
    padding: 25px;
    background: rgba(165, 255, 238, 0.06);
    border: 1px solid rgba(165, 255, 238, 0.25);
    border-radius: 8px;
    text-align: center;
}

.assessment-result-overview.score-good {
    border-color: rgba(120, 226, 163, 0.45);
}

.assessment-result-overview.score-caution {
    border-color: rgba(255, 200, 87, 0.45);
}

.assessment-result-overview.score-needs-attention {
    border-color: rgba(255, 126, 126, 0.45);
}

.assessment-overall-score {
    display: block;
    color: #A5FFEE;
    font-size: clamp(52px, 10vw, 72px);
    font-weight: bold;
    line-height: 1;
}

.assessment-result-overview p {
    margin: 12px auto 0;
    color: #d0d0d0;
    text-align: center;
}

.assessment-score-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.assessment-score-card {
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(165, 255, 238, 0.15);
    border-radius: 6px;
    text-align: center;
}

.assessment-score-card strong {
    display: block;
    margin-bottom: 5px;
    color: #A5FFEE;
    font-size: 24px;
}

.score-good .assessment-overall-score,
.assessment-score-card.score-good strong {
    color: #78e2a3;
}

.score-caution .assessment-overall-score,
.assessment-score-card.score-caution strong {
    color: #ffc857;
}

.score-needs-attention .assessment-overall-score,
.assessment-score-card.score-needs-attention strong {
    color: #ff7e7e;
}

.assessment-score-card span {
    color: #d0d0d0;
    font-size: 13px;
}

.assessment-findings-title {
    margin: 35px 0 15px;
    color: white;
    font-size: 22px;
}

.assessment-findings {
    display: grid;
    gap: 12px;
}

.assessment-finding {
    padding: 20px;
    border-left: 2px solid #A5FFEE;
    background: rgba(255, 255, 255, 0.025);
}

.assessment-finding h4 {
    margin: 0 0 8px;
    color: white;
    font-size: 17px;
}

.assessment-finding p {
    margin: 0;
    color: #d0d0d0;
    font-size: 14px;
}

.assessment-finding p + p {
    margin-top: 10px;
}

/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media screen and (max-width: 600px) {

    .assessment-main {
        padding: 25px 15px 50px;
    }

    .assessment-panel {
        padding: 30px 22px;
    }

    .assessment-intro h1 {
        font-size: 36px;
    }

    .assessment-intro p {
        font-size: 16px;
    }

    .assessment-context-grid {
        grid-template-columns: 1fr;
    }

    .assessment-navigation {
        gap: 10px;
    }

    .assessment-navigation button {
        flex: 1;
    }

    .assessment-page .floating-contact {
        bottom: 82px;
    }

    .pillar-illustration {
        width: 76px;
        height: 76px;
    }

    .pillar-illustration::before {
        inset: 15px 19px 14px;
        font-size: 13px;
    }

    .pillar-transition h2 {
        font-size: 28px;
    }

    .pillar-list {
        display: flex;
        justify-content: center;
        gap: 7px;
    }

    .pillar-list li {
        width: 9px;
        height: 9px;
        padding: 0;
        overflow: hidden;
        border-radius: 50%;
        color: transparent;
        font-size: 0;
    }

    .assessment-score-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
