@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --primary-color: #82c0c7;      /* H9 Teal */
    --primary-glow: rgba(130, 192, 199, 0.2);
    --secondary-color: #d66800;    /* H9 Amber/Orange */
    --secondary-glow: rgba(214, 104, 0, 0.25);
    --bg-light: #f8fafc;           /* Light, clean sporty grey-white background */
    --bg-card: #ffffff;            /* Solid white cards matching the brand */
    --text-main: #333333;          /* Soft dark slate for text */
    --text-muted: #666666;         /* Secondary slate */
    --text-light: #94a3b8;
    --border-color: #e2e8f0;       /* Crisp thin grey borders */
    --green-badge: #10b981;
    --yellow-badge: #f59e0b;
    --orange-badge: #f97316;
    --red-badge: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background glowing brand accents for light theme */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(130, 192, 199, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(214, 104, 0, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* ANNOUNCEMENT BAR (Dark bar matches their actual physiotherapist jobs banner) */
.announcement-bar {
    background: #0b0b0b;
    color: #ffffff;
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.announcement-bar span {
    color: var(--primary-color);
    font-weight: 700;
}

/* BRAND HEADER (Matches exact h9 layout) */
.brand-header {
    background: #ffffff;
    border-bottom: 1px solid #efefef;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* APP CONTAINER */
.container {
    max-width: 780px;
    width: 100%;
    margin: 50px auto;
    padding: 0 24px;
    flex-grow: 1;
}

/* PREMIUM CONTAINER CARD (Crisp white design) */
.card {
    background: var(--bg-card);
    padding: 48px;
    border-radius: 16px;
    border: 1px solid #eaeaea;
    box-shadow: 0 15px 35px rgba(44, 50, 76, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Elegant brand top-border line */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* TRANSITIONS & SLIDES */
.slide-in {
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-out {
    animation: slideOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideOut {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-15px); }
}

/* HERO SCREEN styles */
.hero-content {
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(130, 192, 199, 0.12);
    color: #4f8b93;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #2c324c; /* H9 slate navy font */
}

.sub-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #eb7705 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--secondary-glow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--secondary-glow);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

/* QUIZ PROCESS & STEPPER */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.step-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4f8b93;
}

.step-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
}

.progress-container {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color) 0%, #b2e3e8 100%);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* QUESTIONS */
.question-text {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 32px;
    color: #2c324c;
}

/* OPTION CARDS (Clean Light Mode styling) */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.option-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 16px 24px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.option-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.option-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: scale(0);
    transition: transform 0.2s ease;
}

.option-card:hover {
    background: rgba(130, 192, 199, 0.05);
    border-color: rgba(130, 192, 199, 0.4);
    transform: translateX(4px);
}

.option-card:hover .option-indicator {
    border-color: var(--primary-color);
}

/* Active select state */
.option-card.selected {
    background: rgba(130, 192, 199, 0.08);
    border-color: var(--primary-color);
}

.option-card.selected .option-indicator {
    border-color: var(--primary-color);
}

.option-card.selected .option-indicator::after {
    transform: scale(1);
}

.hint-text {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    margin-top: 16px;
}

/* RESULTS LAYOUT */
.result-container {
    text-align: center;
}

.badge-wrapper {
    margin-bottom: 24px;
}

.badge {
    padding: 8px 24px;
    border-radius: 99px;
    display: inline-block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.badge.green { background: rgba(16, 185, 129, 0.12); color: var(--green-badge); }
.badge.yellow { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.badge.orange { background: rgba(249, 115, 22, 0.12); color: var(--orange-badge); }
.badge.red { background: rgba(239, 68, 68, 0.12); color: var(--red-badge); }

/* SVG Gauge styles (Light Theme adjustments) */
.gauge-box {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px auto;
    position: relative;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 12;
}

.gauge-progress {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s ease;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 38px;
    font-weight: 800;
    color: #2c324c;
}

.gauge-max {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.result-headline {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #2c324c;
}

.result-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: left;
    padding: 24px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.separator {
    border: none;
    border-top: 1px solid #eaeaea;
    margin: 32px 0;
}

/* STRUCTURAL EXPLANATION CARDS */
.expl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 36px;
    text-align: left;
}

.expl-card {
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 20px 24px;
    border-radius: 0 8px 8px 0;
    border-top: 1px solid #eaeaea;
    border-right: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.expl-card.orange {
    border-left-color: var(--secondary-color);
}

.expl-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2c324c;
    margin-bottom: 6px;
}

.expl-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.booking-box {
    margin-top: 20px;
}

.booking-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
}

/* FOOTER styling */
.brand-footer {
    background: #ffffff;
    border-top: 1px solid #efefef;
    padding: 30px 40px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media(max-width: 768px) {
    .brand-header {
        padding: 15px 20px;
    }
    .nav-links {
        display: none;
    }
    .container {
        margin: 30px auto;
    }
    .card {
        padding: 32px 20px;
    }
    h1 {
        font-size: 26px;
    }
    .question-text {
        font-size: 18px;
    }
}
