:root {
    --navy: #071829;
    --navy-2: #0d2944;
    --green: #2e7d32;
    --gold: #f4b400;
    --teal: #55e6d6;
    --bg: #f4f8fc;
    --text: #172536;
    --muted: #64748b;
    --border: #e3eaf1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6
}

.hidden {
    display: none !important
}

.ai-wrap {
    width: min(1120px, 92%);
    margin: auto
}

.ai-header {
    background: radial-gradient(circle at 85% 20%, rgba(85, 230, 214, .12), transparent 28%), linear-gradient(135deg, #061727, #0d426b);
    color: #fff;
    padding: 17px 0
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.brand {
    color: #fff;
    text-decoration: none;
    font-size: 25px;
    font-weight: 800
}

.brand-hubble,
.back-hubble {
    color: #55a85b;
    font-weight: 800
}

.brand-hut,
.back-hut {
    color: var(--gold);
    font-weight: 800
}

.brand-product {
    font-size: 13px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, .25);
    color: #cbd5e1;
    font-weight: 600
}

.back-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: .9
}

.lens-hero {
    background: radial-gradient(circle at 85% 20%, rgba(85, 230, 214, .18), transparent 28%), linear-gradient(135deg, #061727, #0d426b);
    color: #fff;
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    text-align: center;
    padding: 80px 0
}

.hero-inner {
    max-width: 850px
}

.eyebrow {
    color: #35cdbb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px
}

.lens-hero h1 {
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    margin: 10px 0 24px;
    letter-spacing: -2px
}

.lens-hero h1 span {
    color: var(--teal)
}

.hero-copy {
    max-width: 780px;
    margin: auto;
    color: #dbeafe;
    font-size: 18px
}

.hero-points {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 30px 0;
    color: #eef8ff
}

.hero-points span {
    color: var(--teal);
    font-weight: 800;
    margin-right: 5px
}

.primary-btn,
.secondary-btn,
.restart-btn {
    border: 0;
    cursor: pointer;
    transition: .25s ease
}

.primary-btn {
    background: var(--gold);
    color: #111827;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(244, 180, 0, .2)
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(244, 180, 0, .3)
}

.privacy-note {
    font-size: 12px;
    color: #a9c1d4;
    margin-top: 14px
}

.assessment-section,
.results-section {
    padding: 55px 0 80px
}

.assessment-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 15px
}

.assessment-status {
    font-size: 14px;
    color: var(--muted)
}

.restart-btn {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 8px 13px;
    border-radius: 8px
}

.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: clamp(25px, 5vw, 48px);
    box-shadow: 0 20px 55px rgba(7, 24, 41, .08);
    max-width: 820px;
    margin: auto
}

.field {
    margin-bottom: 23px
}

.field label {
    display: block;
    font-weight: 800;
    margin-bottom: 8px
}

.field label span {
    color: #d97706
}

.field label small {
    font-weight: 500;
    color: var(--muted);
    margin-left: 5px
}

.field input[type=text],
.field textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 15px;
    font: inherit;
    color: var(--text);
    background: #f8fafc;
    outline: none
}

.field input[type=text]:focus,
.field textarea:focus {
    border-color: #7fc6c0;
    box-shadow: 0 0 0 3px rgba(85, 230, 214, .12)
}

.field textarea {
    resize: vertical;
    min-height: 150px
}

.upload-box {
    position: relative;
    border: 1.5px dashed #9ccfc9;
    border-radius: 16px;
    background: #f5fbfa;
    padding: 30px;
    text-align: center;
    cursor: pointer
}

.upload-box input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer
}

.upload-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 12px;
    background: #e7f6f3;
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900
}

.upload-box strong {
    display: block
}

.upload-box small {
    display: block;
    color: var(--muted);
    margin-top: 5px
}

.info-box {
    background: #eef8f7;
    border: 1px solid #cfe9e6;
    padding: 15px 18px;
    border-radius: 12px;
    color: #315b59;
    font-size: 13px;
    margin: 10px 0 22px
}

.info-box strong {
    display: block;
    margin-bottom: 3px
}

.analyse-btn {
    width: 100%
}

.form-error {
    color: #b42318;
    background: #fff1f0;
    border: 1px solid #ffd2cf;
    padding: 12px 14px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 13px
}

.result-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 35px
}

.result-header h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.1;
    margin-bottom: 10px
}

.result-header p {
    color: var(--muted)
}

.score-layout {
    display: grid;
    grid-template-columns: .9fr 1.6fr;
    gap: 20px;
    margin-bottom: 20px
}

.score-card,
.dimension-card,
.result-card,
.roadmap-card,
.recommendation-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(7, 24, 41, .05)
}

.score-card {
    text-align: center
}

.score-ring {
    width: 190px;
    height: 190px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--green) 0deg, #e9eef3 0deg);
    position: relative
}

.score-ring:before {
    content: "";
    position: absolute;
    width: 154px;
    height: 154px;
    border-radius: 50%;
    background: #fff
}

.score-ring>div {
    position: relative;
    z-index: 1
}

.score-ring strong {
    display: block;
    font-size: 52px;
    line-height: 1
}

.score-ring span {
    color: var(--muted)
}

.readiness-label {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 30px;
    background: #edf8ee;
    color: var(--green);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 10px
}

.score-card p {
    color: var(--muted);
    font-size: 14px
}

.dimension-card h3 {
    margin-bottom: 20px
}

.dimension {
    margin-bottom: 17px
}

.dimension:last-child {
    margin-bottom: 0
}

.dimension-head {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px
}

.dimension-head span:last-child {
    font-weight: 800
}

.dimension-track {
    height: 9px;
    background: #edf1f5;
    border-radius: 20px;
    overflow: hidden
}

.dimension-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--teal));
    border-radius: inherit
}

.result-card {
    margin-bottom: 20px
}

.result-card h2,
.roadmap-card h2,
.recommendation-card h2 {
    margin-bottom: 18px
}

.strength-list,
.gap-list,
.suggestion-list {
    display: grid;
    gap: 10px
}

.strength,
.gap,
.suggestion {
    padding: 15px 16px;
    border-radius: 12px
}

.strength {
    background: #f0f9f1;
    border: 1px solid #d5ead6
}

.gap {
    background: #fff8e6;
    border: 1px solid #f3e0ae
}

.suggestion {
    background: #f8fafc;
    border: 1px solid var(--border)
}

.strength strong,
.gap strong,
.suggestion strong {
    display: block;
    margin-bottom: 3px
}

.strength span,
.gap span,
.suggestion span {
    color: var(--muted);
    font-size: 13px
}

.roadmap-card {
    background: linear-gradient(135deg, #071829, #0d426b);
    color: #fff;
    margin-bottom: 20px
}

.roadmap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.roadmap-step {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .06);
    border-radius: 15px
}

.roadmap-step>span {
    color: var(--teal);
    font-weight: 900
}

.roadmap-step h3 {
    margin: 10px 0 3px
}

.roadmap-step p {
    color: #cbd5e1;
    font-size: 13px;
    margin-top: 7px
}

.recommendation-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border-left: 5px solid var(--gold);
    margin-bottom: 25px
}

.recommendation-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff5cf;
    display: grid;
    place-items: center;
    color: #b57b00;
    font-size: 21px;
    flex-shrink: 0
}

.recommendation-card p {
    color: var(--muted)
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap
}

.secondary-btn {
    background: #fff;
    border: 1px solid var(--border);
    padding: 14px 22px;
    border-radius: 11px;
    font-weight: 700;
    color: var(--navy)
}

.result-footer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 35px
}

.ai-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 85% 20%, rgba(85, 230, 214, .18), transparent 28%), linear-gradient(135deg, #061727, #0d426b);
    opacity: 1;
    visibility: visible;
    transition: opacity .45s ease, visibility .45s ease
}

.ai-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.ai-loader-inner {
    text-align: center;
    color: #fff
}

.loader-brand {
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1;
    font-weight: 850;
    letter-spacing: -2px
}

.loader-hubble {
    color: #55a85b
}

.loader-hut {
    color: #f4b400
}

.loader-product {
    margin-top: 9px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase
}

.loader-orbit {
    width: 52px;
    height: 52px;
    margin: 28px auto 18px;
    position: relative
}

.loader-orbit span {
    position: absolute;
    inset: 7px;
    border: 2px solid transparent;
    border-top-color: #55e6d6;
    border-radius: 50%;
    animation: spin 1s linear infinite
}

.loader-orbit span:nth-child(2) {
    inset: 13px;
    border-top-color: #55a85b;
    animation-duration: .75s;
    animation-direction: reverse
}

.loader-orbit span:nth-child(3) {
    inset: 19px;
    border-top-color: #f4b400;
    animation-duration: .55s
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.loader-preparing {
    margin-top: 14px;
    font-size: 12px;
    opacity: .72
}

.upload-box.has-file {
    border-style: solid;
    border-color: var(--green);
    background: #f0f9f1
}

@media(max-width:760px) {

    .score-layout,
    .roadmap {
        grid-template-columns: 1fr
    }

    .lens-hero {
        min-height: calc(100vh - 61px);
        padding: 60px 0
    }

    .hero-points {
        flex-direction: column;
        gap: 9px
    }

    .assessment-top {
        align-items: center
    }

    .brand-product {
        display: none
    }

    .form-card,
    .score-card,
    .dimension-card,
    .result-card,
    .roadmap-card,
    .recommendation-card {
        padding: 22px
    }

    .score-ring {
        width: 165px;
        height: 165px
    }

    .score-ring:before {
        width: 135px;
        height: 135px
    }
}

@media(max-width:800px) {

    html,
    body {
        background: #0b2635 !important;
        background-color: #0b2635 !important
    }

    .ai-header,
    .assessment-section,
    .results-section {
        background: #0b2635 !important
    }

    .form-card,
    .score-card,
    .dimension-card,
    .result-card,
    .recommendation-card {
        background: #fff
    }

    .roadmap-card {
        background: linear-gradient(135deg, #071829, #0d426b) !important
    }

    .lens-hero {
        background: #0b2635 !important
    }
}

@media print {

    .ai-header,
    .result-actions {
        display: none !important
    }

    body {
        background: #fff
    }

    .results-section {
        padding-top: 20px
    }

    .score-card,
    .dimension-card,
    .result-card,
    .roadmap-card,
    .recommendation-card {
        box-shadow: none;
        break-inside: avoid
    }
}

/* =========================================================
   TOP-RIGHT LENS NAVIGATION
   ========================================================= */

.lens-nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.lens-nav-link {
    color: #ffffff !important;
    text-decoration: none !important;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    padding: 2px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 700;
    opacity: .92;
    transition: color .2s ease, opacity .2s ease;
}

.lens-nav-link:hover {
    color: #55e6d6 !important;
    opacity: 1;
}

@media (max-width: 600px) {
    .lens-nav-actions {
        gap: 14px;
    }

    .lens-nav-link {
        font-size: 13px;
    }
}

/* Career Lens hero brand colours */

.career-brand .career-hubble {
    color: #55a85b !important;
}

.career-brand .career-hut {
    color: #f4b400 !important;
}

.career-brand {
    color: #35cdbb;
}

/* Results page back-to-upload button */

/* =========================================================
   RESULTS PAGE - FIXED BACK TO UPLOAD
   ========================================================= */

/* Results page back-to-upload button */

.result-header-with-action {
    position: relative;
}

.back-upload-btn {
    position: absolute;
    right: 0;
    top: -8px;

    background: transparent;
    border: 0;
    outline: none;
    box-shadow: none;

    color: #777;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;

    padding: 6px 0;

    transition: color .2s ease, transform .2s ease;
}

.back-upload-btn:hover {
    color: #555;
    transform: translateX(-2px);
}

@media (max-width: 700px) {
    .result-header-with-action {
        padding-top: 42px;
    }

    .back-upload-btn {
        right: 0;
        top: -8px;
        font-size: 13px;
    }
}