/* --- INNOVETY AI MATURITY ASSESSMENT — GLOBAL STYLES --- */

/* Safari shows the html background during page transitions.
   Setting it to match the body prevents a pure-white flash. */
html {
    background-color: #FAFAFA;
}

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

body.home-light-theme {
    background-color: #FAFAFA;
    background-image: none;
    color: #111827;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

.home-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
}

/* Header */
.home-header {
    padding: 20px 0;
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    background-color: rgba(250, 250, 250, 0.85);
    /* FAFAFA matching body bg with transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    padding: 0 24px;
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-logo-img {
    height: 50px;
    /* Invert original white logo to be dark grey/black */
    filter: invert(1) brightness(0.1);
    object-fit: contain;
}

.home-tagline {
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-left: 1px solid #E5E7EB;
    padding-left: 20px;
}

.home-link-interactive {
    font-weight: 500;
    color: #4B5563;
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.home-link-interactive::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #2565c1;
    transition: width 0.3s ease;
}

.home-link-interactive:hover {
    color: #2565c1;
}

.home-link-interactive:hover::after {
    width: 100%;
}

/* Main Area */
.home-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.home-hero {
    padding: 72px 0 100px;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: #F3F4F6;
    color: #374151;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 4px;
    margin-bottom: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.home-headline {
    font-family: 'Playfair Display', serif;
    font-size: 4.8rem;
    font-weight: 600;
    line-height: 1.05;
    color: #111827;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.home-subheadline {
    font-size: 1.15rem;
    color: #4B5563;
    line-height: 1.7;
    margin: 0 0 48px;
    max-width: 540px;
    font-weight: 400;
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.home-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* CTAs */
.home-btn-primary {
    background-color: #2565c1;
    /* Deep Indigo used as primary accent */
    color: #FFFFFF !important;
    font-weight: 500;
    padding: 18px 36px;
    border-radius: 4px;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.home-btn-primary:hover {
    background-color: #2565c1;
    /* Lighter Indigo */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 24px -8px rgba(49, 46, 129, 0.5);
}

.home-btn-primary:active {
    transform: translateY(0) scale(0.98);
    background-color: #1E1B4B;
}

.home-btn-secondary {
    background-color: #FFFFFF;
    color: #111827 !important;
    font-weight: 500;
    padding: 18px 36px;
    border-radius: 4px;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #D1D5DB;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.home-btn-secondary:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Hero Visual Block */
.hero-visual {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-abstract-shape {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #F3F4F6;
    border-radius: 20px;
    overflow: hidden;
    /* Soft premium gradient */
    background: linear-gradient(135deg, #F3F5F9 0%, #E8EBF2 100%);
}

.circle-deco {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 56, 202, 0.08) 0%, rgba(67, 56, 202, 0) 100%);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -150px;
}

.stat-card {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.stat-card:not(.secondary) {
    top: 15%;
    left: -10%;
}

.stat-card.secondary {
    bottom: 15%;
    right: -5%;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 600;
    color: #2565c1;
    /* Deep Indigo Accent */
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* --- Features Section Redesign --- */
.home-features-section {
    padding: 100px 0;
    background-color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.home-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 231, 235, 1), transparent);
}

.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.features-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: #EEF2FF;
    color: #2565c1;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(67, 56, 202, 0.05);
}

.features-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.2;
}

.features-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    line-height: 1.6;
}

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

.feature-card {
    background-color: #FFFFFF;
    border: 1px solid #F3F4F6;
    border-radius: 16px;
    padding: 40px 32px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: #E0E7FF;
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: #2565c1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: transform 0.4s ease, color 0.4s ease;
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(5deg);
    color: #2565c1;
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.feature-card-desc {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 0;
}

.feature-card-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, #2565c1, #818CF8);
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card:hover .feature-card-line {
    width: 100%;
}

/* Footer */
.home-footer {
    padding: 40px 0;
    text-align: center;
    background-color: #FAFAFA;
}

.home-footer p {
    color: #9CA3AF;
    font-size: 0.85rem;
    margin: 0;
}

/* Animations Variables */
@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 0.7s;
}

.delay-3 {
    animation-delay: 0.9s;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .home-headline {
        font-size: 3.8rem;
    }

    .hero-split {
        gap: 40px;
        grid-template-columns: 1fr 1fr;
    }

    .stat-card:not(.secondary) {
        left: -5%;
    }

    .stat-card.secondary {
        right: 0%;
    }
}

@media (max-width: 860px) {
    .hero-split {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 400px;
        margin-top: 40px;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-card:not(.secondary) {
        left: -5%;
    }

    .stat-card.secondary {
        right: -5%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .home-container {
        padding: 0 24px;
    }

    .home-headline {
        font-size: 3rem;
    }

    .home-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 16px;
    }

    .home-btn-primary,
    .home-btn-secondary {
        width: 100%;
        text-align: center;
    }

    .home-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .home-tagline {
        border-left: none;
        padding-left: 0;
        margin-top: 4px;
    }

    .header-inner {
        align-items: flex-start;
    }

    .home-header {
        padding: 24px 0;
    }

    .hero-visual {
        width: 100%;
        min-height: 350px;
    }

    .stat-card {
        padding: 24px;
    }

    .stat-value {
        font-size: 3rem;
    }

    .home-features-section {
        padding: 64px 0;
    }

    .features-title {
        font-size: 2.2rem;
    }
}

/* --- LOGIN & AUTH STYLES --- */
.auth-body {
    background-color: #FAFAFA;
    font-family: 'Inter', sans-serif;
    color: #111827;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Auth Layout */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    width: 100%;
    box-sizing: border-box;
}

.auth-card {
    background-color: #FFFFFF;
    width: 100%;
    max-width: 450px;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid #E5E7EB;
    position: relative;
    overflow: hidden;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card.signup-mode {
    max-width: 700px;
}

/* Auth Headers */
.auth-header {
    margin-bottom: 32px;
    text-align: center;
}

.auth-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.auth-header p {
    color: #6B7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Auth Forms */
.auth-forms-container {
    position: relative;
    width: 100%;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form {
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    z-index: 1;
}

.auth-form.active {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
    z-index: 2;
}

.auth-form.slide-left {
    transform: translateX(-20px);
}

/* Form Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-group input,
.input-group select {
    background-color: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 12px 16px;
    color: #111827;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #2565c1;
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.input-group input::placeholder {
    color: #9CA3AF;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 40px;
    /* Space for the toggle icon */
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    font-size: 1rem;
}

.password-toggle:hover {
    color: #374151;
}

.password-toggle:focus {
    outline: none;
    color: #2565c1;
}

.input-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 20px;
}

@media (min-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Button override for Auth forms */
.btn {
    padding: 14px 24px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.btn.primary {
    background-color: #2565c1;
    color: #FFFFFF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn.primary:hover {
    background-color: #2565c1;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(67, 56, 202, 0.2);
}

.submit-btn {
    width: 100%;
    margin-top: 12px;
}

/* Auth Toggle Links */
.auth-toggle {
    text-align: center;
    margin-top: 24px;
}

.auth-toggle p {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
}

.auth-toggle a {
    color: #2565c1;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-toggle a:hover {
    color: #2565c1;
    text-decoration: underline;
}

/* Responsive auth adjustments */
@media (max-width: 600px) {
    .auth-card {
        padding: 32px 24px;
    }
}

/* Auth Error Messages */
.auth-error {
    color: #DC2626;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
    display: none;
    font-weight: 500;
    line-height: 1.4;
}

/* User Dropdown (Logout) */
.user-profile {
    position: relative;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 8px;
}

.user-dropdown-item:hover {
    background-color: #FEF2F2;
    color: #DC2626;
}

.user-dropdown-item i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

/* History dropdown item distinct style */
.user-dropdown-item.history-item:hover {
    background-color: #EEF6FF;
    color: #2565c1;
}

/* --- ASSESSMENT HISTORY PANEL --- */

.history-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    pointer-events: none;
    transition: background 0.3s ease;
}

.history-backdrop.open {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.history-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-left: 1px solid #E5E7EB;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-panel.open {
    transform: translateX(0);
}

.history-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.history-panel-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-panel-title i {
    font-size: 1rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.history-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    color: #6B7280;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.history-close-btn:hover {
    background: #F3F4F6;
    color: #111827;
    border-color: #D1D5DB;
}

.history-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: #D1D5DB transparent;
    background: #FAFAFA;
}

.history-panel-body::-webkit-scrollbar {
    width: 6px;
}

.history-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.history-panel-body::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 3px;
}

/* Loading Skeleton */
.history-loading {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-skeleton-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skeleton-line {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-line-short {
    width: 40%;
}

.skeleton-line-medium {
    width: 65%;
}

.skeleton-line-long {
    width: 90%;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Empty State */
.history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 16px;
}

.history-empty i {
    font-size: 3rem;
    color: #D1D5DB;
}

.history-empty p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* History Cards */
.history-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.history-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.history-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.history-card-latest {
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, #3b82f6, #06b6d4) 1;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(6, 182, 212, 0.02));
}

.history-card-latest:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(6, 182, 212, 0.04));
}

.history-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.history-card-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6B7280;
}

.history-badge-latest {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
    color: #38bdf8;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.history-card-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.history-card-date i {
    font-size: 0.8rem;
    color: #9CA3AF;
}

.history-card-score {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.history-overall-score {
    font-family: 'Inter', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
}

.history-overall-score.score-red {
    color: #DC2626;
}

.history-overall-score.score-amber {
    color: #D97706;
}

.history-overall-score.score-green {
    color: #16A34A;
}

.history-score-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #6B7280;
    font-weight: 500;
}

.history-pillar-row {
    display: flex;
    align-items: center;
    gap: 0;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 12px 8px;
    margin-bottom: 16px;
}

.history-pillar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.history-pillar-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6B7280;
}

.history-pillar-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.history-pillar-divider {
    width: 1px;
    height: 32px;
    background: #E5E7EB;
    flex-shrink: 0;
}

.history-download-btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.history-download-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.history-download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.history-download-error {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #f87171;
    text-align: center;
    margin-top: 8px;
}

/* Responsive — full-width panel on mobile */
@media (max-width: 480px) {
    .history-panel {
        width: 100vw;
    }
}

/* --- ASSESSMENT SCREEN STYLES --- */

.assessment-body {
    background-color: #F3F4F6;
    /* Slightly darker than home for contrast with cards */
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    /* Main scrolling handled inside components */
}

/* Override header for Assessment layout */
.assessment-header {
    flex-shrink: 0;
    padding: 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.assessment-header-inner {
    max-width: 100%;
    padding: 0 32px;
}

/* Progress Indicator */
.assessment-progress-container {
    flex: 1;
    max-width: 400px;
    margin: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4B5563;
    letter-spacing: 0.02em;
}

.progress-track {
    width: 100%;
    height: 4px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2565c1, #818CF8);
    width: 0%;
    transition: width 0.4s ease;
}

.progress-fill.complete {
    background: linear-gradient(90deg, #10B981, #34D399);
    /* Green when done */
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #EEF2FF;
    color: #2565c1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout Grid */
.assessment-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Sidebar */
.assessment-sidebar {
    width: 280px;
    background-color: #FFFFFF;
    border-right: 1px solid #E5E7EB;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 32px 0;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 24px;
    margin-bottom: 24px;
}

.sidebar-pillar {
    margin-bottom: 24px;
}

.pillar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4B5563;
    padding: 0 24px 8px;
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 8px;
}

.sidebar-section-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-section-item {
    padding: 4px 16px;
}

.sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #6B7280;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background-color: #F9FAFB;
    color: #374151;
}

.sidebar-section-item.active .sidebar-link {
    background-color: #EEF2FF;
    color: #2565c1;
    font-weight: 600;
}

/* Progress Ring Indicator */
.sidebar-progress-ring {
    position: relative;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-progress-ring svg {
    transform: rotate(-90deg);
    position: absolute;
    top: 0;
    left: 0;
}

.progress-ring-bg {
    fill: none;
    stroke: #E5E7EB;
    stroke-width: 2.5;
}

.progress-ring-fill {
    fill: none;
    stroke: #2565c1;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.sidebar-progress-ring.completed .progress-ring-fill {
    stroke: #10B981;
}

.progress-ring-text {
    position: relative;
    z-index: 1;
    font-size: 0.6rem;
    font-weight: 700;
    color: #6B7280;
    letter-spacing: -0.02em;
    pointer-events: none;
    line-height: 1;
}

.sidebar-section-item.active .progress-ring-text {
    color: #2565c1;
}

.sidebar-section-item.active .progress-ring-fill {
    stroke: #2565c1;
}

.sidebar-section-item.active .progress-ring-bg {
    stroke: rgba(37, 101, 193, 0.15);
}

.sidebar-section-item.section-completed .progress-ring-text {
    color: #10B981;
}

.sidebar-section-item.section-completed .progress-ring-bg {
    stroke: rgba(16, 185, 129, 0.15);
}

/* Main Content Area */
.assessment-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px 60px;
    scroll-behavior: smooth;
    position: relative;
}

.sections-container {
    max-width: 900px;
    margin: 0 auto;
}

.assessment-section {
    margin-bottom: 64px;
}

.section-header {
    margin-bottom: 32px;
}

.section-pillar-badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: #E5E7EB;
    color: #4B5563;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: #6B7280;
    line-height: 1.6;
    max-width: 700px;
}

.questions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Question Cards */
.question-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border-left: 4px solid transparent;
    /* reserved for completion state */
    transition: all 0.3s ease;
}



.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.question-text-wrapper {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #EEF2FF;
    color: #2565c1;
    font-size: 0.85rem;
    font-weight: 700;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(37, 101, 193, 0.15);
    box-shadow: 0 2px 4px rgba(37, 101, 193, 0.06);
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.5;
    margin: 0;
}

.info-btn {
    background-color: #EEF2FF;
    border: 1px solid rgba(37, 101, 193, 0.2);
    color: #2565c1;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(37, 101, 193, 0.05);
    flex-shrink: 0;
}

.info-btn:hover {
    background-color: #2565c1;
    color: #FFFFFF;
    border-color: #2565c1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 101, 193, 0.2);
}

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

.info-btn i {
    font-size: 1rem;
    margin: 0;
}

/* Rating Selector 1-5 */
.options-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-left: 48px;
    /* Align with text */
}

.option-card {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #FAFAFA;
}

.option-card:hover {
    border-color: #9CA3AF;
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.option-card.selected {
    border-color: #2565c1;
    background-color: #EEF2FF;
    box-shadow: 0 0 0 2px rgba(67, 56, 202, 0.2);
}




.option-text {
    font-size: 0.85rem;
    color: #4B5563;
    line-height: 1.4;
    margin: 0;
}

.option-card.selected .option-text {
    color: #111827;
}

/* Previous Section Button */
.prev-btn {
    background: none;
    border: 1px solid #D1D5DB;
    color: #6B7280;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prev-btn:hover {
    background-color: #EEF2FF;
    border-color: #C7D2FE;
    color: #2565c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 101, 193, 0.1);
}

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

.prev-btn:hover i {
    transform: translateX(-3px);
}

.prev-btn i {
    transition: transform 0.3s ease;
}

/* Next Section Button */
.continue-btn {
    background: none;
    border: 1px solid #D1D5DB;
    color: #6B7280;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.continue-btn:hover {
    background-color: #EEF2FF;
    border-color: #C7D2FE;
    color: #2565c1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 101, 193, 0.1);
}

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

.continue-btn i {
    transition: transform 0.3s ease;
}

.continue-btn:hover i {
    transform: translateX(3px);
}

/* Submit Section */
.submit-section {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 32px;
    padding-bottom: 64px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #E5E7EB;
    display: none;
    /* Hidden by default, managed by JS */
}

.submit-section.active {
    display: flex;
}

.submit-assessment-btn:disabled {
    background-color: #D1D5DB;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Guidance Side Panel */
.guidance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.3);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.guidance-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.guidance-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 2001;
    box-shadow: -10px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.guidance-panel.open {
    right: 0;
}

.guidance-header {
    padding: 24px 32px;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FAFAFA;
}

.guidance-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.close-guidance-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6B7280;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-guidance-btn:hover {
    color: #111827;
}

.guidance-content {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.guidance-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guidance-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2565c1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 4px;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 8px;
}

.guidance-section-text {
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

.terminology-item {
    padding: 10px 0 10px 14px;
    border-left: 3px solid #2565c1;
    line-height: 1.6;
    font-size: 0.93rem;
    color: #4B5563;
}

.terminology-item+.terminology-item {
    margin-top: 8px;
}

.terminology-item strong {
    color: #111827;
}

/* Responsive Assessment */
@media (max-width: 1024px) {
    .assessment-sidebar {
        width: 240px;
    }

    .assessment-main-content {
        padding: 32px 40px;
    }
}

@media (max-width: 860px) {
    .assessment-layout {
        flex-direction: column;
    }

    .assessment-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #E5E7EB;
        max-height: 250px;
        flex-shrink: 0;
    }

    .assessment-main-content {
        padding: 24px;
        overflow-y: auto;
    }

    .options-container {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-top: 16px;
    }

    .guidance-panel {
        width: 100vw;
        right: -100vw;
    }

    .assessment-progress-container {
        display: none;
        /* Hide on small screens to save header space */
    }
}

/* --- EXIT ASSESSMENT BUTTON & MODAL --- */

/* Exit Button anchored at bottom of sidebar */
.exit-assessment-section {
    margin-top: auto;
    padding-top: 24px;
    padding-left: 24px;
    padding-right: 24px;
    border-top: 1px solid #E5E7EB;
}

.exit-assessment-btn {
    background: none;
    border: 1px solid #D1D5DB;
    color: #6B7280;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exit-assessment-btn:hover {
    background-color: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

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

.exit-assessment-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.exit-assessment-btn:hover i {
    transform: translateX(-2px);
}

/* --- Tutorial Modal --- */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    display: none;
}

.tutorial-overlay.active {
    display: flex;
}

.tutorial-modal {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 48px 40px 40px;
    max-width: 480px;
    width: calc(100% - 48px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tutorial-overlay.active .tutorial-modal {
    transform: translateY(0) scale(1);
}

.tutorial-slider-container {
    overflow: hidden;
    width: 100%;
    margin-bottom: 24px;
}

.tutorial-slider {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.20, 0.80, 0.20, 1);
}

.tutorial-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 8px;
    /* Slight padding so text doesn't touch the absolute edges if shrunk */
}

.tutorial-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(37, 101, 193, 0.1);
}

.tutorial-icon i {
    font-size: 1.8rem;
    color: #2565c1;
}

.tutorial-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.tutorial-body {
    font-size: 1rem;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
}

.tutorial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.tutorial-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tutorial-dots .dot.active {
    background-color: #2565c1;
    width: 24px;
    border-radius: 4px;
}

.tutorial-actions {
    display: flex;
    justify-content: center;
}

.tutorial-btn-primary {
    width: 100%;
    max-width: 250px;
}

/* Modal Overlay — hidden by default using display:none */
.exit-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    display: none;
}

.exit-modal-overlay.active {
    display: flex;
}

/* Modal Card */
.exit-modal {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 48px 40px 40px;
    max-width: 440px;
    width: calc(100% - 48px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.exit-modal-overlay.active .exit-modal {
    transform: translateY(0) scale(1);
}

/* Modal Icon */
.exit-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(37, 101, 193, 0.1);
}

.exit-modal-icon i {
    font-size: 1.5rem;
    color: #2565c1;
}

/* Modal Title */
.exit-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

/* Modal Body */
.exit-modal-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal Actions */
.exit-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exit-modal-btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    gap: 10px;
    background-color: #2565c1;
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.exit-modal-btn-primary:hover {
    background-color: #1d52a0;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 101, 193, 0.25);
}

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

.exit-modal-btn-primary i {
    font-size: 0.95rem;
}

.exit-modal-btn-secondary {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    background-color: #FFFFFF;
    color: #374151;
    border: 1px solid #D1D5DB;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.exit-modal-btn-secondary:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.exit-modal-btn-secondary:active {
    transform: translateY(0);
}

/* Responsive Exit Modal */
@media (max-width: 600px) {
    .exit-modal {
        padding: 36px 24px 28px;
    }

    .exit-modal-title {
        font-size: 1.5rem;
    }

    .exit-modal-body {
        font-size: 0.9rem;
    }

    .exit-modal-icon {
        width: 52px;
        height: 52px;
    }

    .exit-modal-icon i {
        font-size: 1.2rem;
    }
}

/* --- COMPLETED ASSESSMENT MODAL --- */

.completed-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    display: none;
}

.completed-modal-overlay.active {
    display: flex;
}

.completed-modal {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 48px 40px 40px;
    max-width: 480px;
    width: calc(100% - 48px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.completed-modal-overlay.active .completed-modal {
    transform: translateY(0) scale(1);
}

.completed-modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.completed-modal-icon i {
    font-size: 1.5rem;
    color: #10B981;
}

.completed-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.completed-modal-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.completed-modal-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.completed-modal-btn-primary {
    flex: 1;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    gap: 8px;
    background-color: #2565c1;
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.completed-modal-btn-primary:hover {
    background-color: #1d52a0;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 101, 193, 0.25);
}

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

.completed-modal-btn-primary i {
    font-size: 0.9rem;
}

.completed-modal-btn-secondary {
    flex: 1;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    gap: 8px;
    background-color: #FFFFFF;
    color: #374151;
    border: 1px solid #D1D5DB;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.completed-modal-btn-secondary:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.completed-modal-btn-secondary:active {
    transform: translateY(0);
}

.completed-modal-btn-secondary i {
    font-size: 0.85rem;
}

/* Responsive Completed Modal */
@media (max-width: 600px) {
    .completed-modal {
        padding: 36px 24px 28px;
    }

    .completed-modal-title {
        font-size: 1.35rem;
    }

    .completed-modal-body {
        font-size: 0.9rem;
    }

    .completed-modal-icon {
        width: 52px;
        height: 52px;
    }

    .completed-modal-icon i {
        font-size: 1.2rem;
    }

    .completed-modal-actions {
        flex-direction: column;
    }
}

/* --- LOADING SCREEN STYLES --- */

.loading-body {
    background-color: #FAFAFA;
    font-family: 'Inter', sans-serif;
    color: #111827;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow: hidden;
}

.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAFAFA;
    z-index: 9999;
    overflow: hidden;
}

/* Subtle background decorative circles */
.loading-bg-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.loading-bg-circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(37, 101, 193, 0.04) 0%, transparent 70%);
    animation: loadingFloat 8s ease-in-out infinite;
}

.loading-bg-circle-2 {
    width: 500px;
    height: 500px;
    bottom: -180px;
    left: -120px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.04) 0%, transparent 70%);
    animation: loadingFloat 10s ease-in-out infinite reverse;
}

.loading-bg-circle-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(37, 101, 193, 0.025) 0%, transparent 70%);
    animation: loadingFloat 6s ease-in-out infinite;
}

@keyframes loadingFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.03);
    }
}

.loading-bg-circle-3 {
    animation-name: loadingFloatCenter;
}

@keyframes loadingFloatCenter {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Content wrapper */
.loading-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 32px;
    max-width: 520px;
    width: 100%;
}

/* Logo with pulse */
.loading-logo-wrapper {
    margin-bottom: 20px;
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.loading-logo {
    height: 64px;
    object-fit: contain;
    filter: invert(1) brightness(0.1);
    animation: loadingPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes loadingPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }
}

/* Heading */
.loading-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    line-height: 1.2;
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Subtext */
.loading-subtext {
    font-size: 1.05rem;
    color: #6B7280;
    line-height: 1.7;
    margin: 0 0 48px;
    font-weight: 400;
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Progress bar */
.loading-progress-track {
    width: 100%;
    max-width: 360px;
    height: 4px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.loading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2565c1, #818CF8);
    border-radius: 4px;
    transition: none;
}

.loading-progress-fill.animate {
    width: 100%;
    transition: width 9.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Responsive */
@media (max-width: 600px) {
    .loading-logo {
        height: 48px;
    }

    .loading-heading {
        font-size: 1.8rem;
    }

    .loading-subtext {
        font-size: 0.95rem;
    }

    .loading-logo-wrapper {
        margin-bottom: 36px;
    }

    .loading-subtext {
        margin-bottom: 36px;
    }
}

/* --- RESULTS PAGE STYLES --- */
.results-body {
    background-color: #FAFAFA;
}

.results-main {
    padding: 60px 0 100px;
}

.results-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.success-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: #10B981;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.results-headline {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

.results-subtext {
    font-size: 1.1rem;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 32px;
}

.results-download-btn {
    background-color: #10B981;
}

.results-download-btn:hover {
    background-color: #059669;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

.results-exit-btn {
    background: none;
    border: 1px solid #D1D5DB;
    color: #6B7280;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 16px;
}

.results-exit-btn:hover {
    background-color: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

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

.results-exit-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.results-exit-btn:hover i {
    transform: translateX(-2px);
}

.results-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #9CA3AF;
    text-decoration: none;
    border: 1px solid #E5E7EB;
    padding: 7px 20px;
    border-radius: 6px;
    background: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.results-contact-link i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.results-contact-link:hover {
    color: #2565c1;
    border-color: #BFDBFE;
    background-color: #EFF6FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 101, 193, 0.08);
}

.results-contact-link:hover i {
    transform: scale(1.15);
}

.results-contact-link:active {
    transform: translateY(0);
}

/* Three Pillar Score Cards */
.results-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.pillar-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.pillar-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: #F3F4F6;
    color: #4B5563;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.pillar-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}

.pillar-score-wrapper {
    display: flex;
    align-items: baseline;
    margin-bottom: 16px;
}

.pillar-score {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2565c1;
    line-height: 1;
}

.pillar-max {
    font-size: 1.1rem;
    color: #9CA3AF;
    font-weight: 500;
    margin-left: 4px;
}

.pillar-progress-track {
    width: 100%;
    height: 8px;
    background-color: #F3F4F6;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.pillar-progress-fill {
    height: 100%;
    border-radius: 4px;
}

.format-adhoc {
    background: linear-gradient(90deg, #EF4444, #B91C1C);
}

.format-emerging {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.format-defined {
    background: linear-gradient(90deg, #3B82F6, #2563EB);
}

.format-managed {
    background: linear-gradient(90deg, #10B981, #059669);
}

.format-optimized {
    background: linear-gradient(90deg, #8B5CF6, #6D28D9);
}

.pillar-level {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4B5563;
    margin: 0;
}


/* Toast */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #111827;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.3s, fadeout 0.3s 2.7s;
    animation: fadein 0.3s, fadeout 0.3s 2.7s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.delay-4 {
    animation-delay: 1.1s;
}

/* Responsive Results */
@media (max-width: 860px) {
    .results-pillars {
        grid-template-columns: 1fr;
    }
}

/* --- PASSWORD STRENGTH INDICATOR --- */
.password-strength-container {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-strength-container.active {
    opacity: 1;
    max-height: 40px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.password-strength-bars {
    display: flex;
    gap: 6px;
    height: 4px;
    width: 100%;
}

.strength-bar {
    flex: 1;
    background-color: #E5E7EB;
    border-radius: 4px;
    transition: background-color 0.4s ease;
}

.password-strength-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6B7280;
    text-align: right;
    transition: color 0.4s ease;
    margin: 0;
}

.strength-weak #strength-bar-1 {
    background-color: #EF4444;
}

.strength-weak-text {
    color: #EF4444;
}

.strength-medium #strength-bar-1,
.strength-medium #strength-bar-2 {
    background-color: #F59E0B;
}

.strength-medium-text {
    color: #F59E0B;
}

.strength-strong #strength-bar-1,
.strength-strong #strength-bar-2,
.strength-strong #strength-bar-3 {
    background-color: #10B981;
}

.strength-strong-text {
    color: #10B981;
}

/* --- AUTH LOADING OVERLAY (Home Page CTA) --- */
.auth-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    background: rgba(250, 250, 250, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    /* Completely removed from render tree by default — no flash possible */
    display: none;
}

.auth-loading-overlay.active {
    display: flex;
}

.auth-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Animations only run when overlay is active */
.auth-loading-overlay.active .auth-loading-content {
    animation: authOverlayFadeUp 0.5s ease forwards;
}

@keyframes authOverlayFadeUp {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Spinner ring + logo */
.auth-loading-spinner {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #E5E7EB;
    border-top-color: #2565c1;
}

.auth-loading-overlay.active .auth-loading-ring {
    animation: authRingSpin 0.9s linear infinite;
}

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

.auth-loading-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: invert(1) brightness(0.1);
}

.auth-loading-overlay.active .auth-loading-logo {
    animation: authLogoPulse 2s ease-in-out infinite;
}

@keyframes authLogoPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Text */
.auth-loading-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #4B5563;
    letter-spacing: 0.01em;
}

/* Animated ellipsis dots */
.auth-loading-dots::after {
    content: '';
}

.auth-loading-overlay.active .auth-loading-dots::after {
    animation: authDots 1.4s steps(4, end) infinite;
}

@keyframes authDots {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .auth-loading-spinner {
        width: 72px;
        height: 72px;
    }

    .auth-loading-logo {
        width: 32px;
        height: 32px;
    }

    .auth-loading-text {
        font-size: 0.9rem;
    }
}

/* --- Process Section Redesign --- */
.home-process-section {
    padding: 100px 0;
    background-color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.home-process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 231, 235, 1), transparent);
}

.process-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.process-block {
    margin-top: 80px;
    margin-bottom: 80px;
}

.block-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    text-align: center;
}

.block-desc {
    font-size: 1.1rem;
    color: #6B7280;
    text-align: center;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-white {
    color: #FFFFFF !important;
}

.text-white-muted {
    color: #9CA3AF !important;
}

/* How It Works Steps */
.steps-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #E5E7EB;
    transform: translateX(-50%);
}

.step-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 40px;
}

.step-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: #2565c1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 0 0 6px #FFFFFF;
}

.step-content {
    background: #FFFFFF;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #F3F4F6;
    width: 90%;
    margin-right: 48px;
    position: relative;
}

.step-item:nth-child(even) .step-content {
    margin-right: 0;
    margin-left: 48px;
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 1rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

/* 3 Pillars */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pillar-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px 32px;
    border: 1px solid #E5E7EB;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.pillar-icon {
    font-size: 2.5rem;
    color: #2565c1;
    margin-bottom: 24px;
}

.pillar-card h4 {
    font-size: 1.25rem;
    color: #111827;
    font-weight: 600;
    margin-bottom: 16px;
}

.pillar-card p {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

/* Maturity Scale */
.maturity-block {
    background: #111827;
    border-radius: 24px;
    padding: 80px 48px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.maturity-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.maturity-level {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 32px 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.maturity-level:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.level-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.level-1 .level-badge {
    background: #fee2e2;
    color: #991b1b;
}

.level-2 .level-badge {
    background: #ffedd5;
    color: #c2410c;
}

.level-3 .level-badge {
    background: #fef9c3;
    color: #854d0e;
}

.level-4 .level-badge {
    background: #dbeafe;
    color: #1e40af;
}

.level-5 .level-badge {
    background: #dcfce7;
    color: #166534;
}

.maturity-level h4 {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.maturity-level p {
    color: #9CA3AF;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* What You Get Deliverables */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.deliverable-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: #F9FAFB;
    border-radius: 16px;
    border: 1px solid #E5E7EB;
}

.deliverable-item i {
    font-size: 1.8rem;
    color: #2565c1;
    background: #FFFFFF;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.deliverable-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.deliverable-item p {
    font-size: 0.95rem;
    color: #6B7280;
    margin: 0;
    line-height: 1.5;
}

/* Team Callout */
.team-callout {
    background: linear-gradient(135deg, #F0F4FF 0%, #E0E7FF 100%);
    border-radius: 20px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    gap: 32px;
    border: 1px solid #C7D2FE;
    margin: 80px auto;
    max-width: 900px;
    box-shadow: 0 10px 30px -10px rgba(67, 56, 202, 0.15);
    position: relative;
    overflow: hidden;
}

.team-callout::after {
    content: '\f0c0';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: -20px;
    font-size: 12rem;
    color: rgba(67, 56, 202, 0.03);
    transform: rotate(-15deg);
    pointer-events: none;
}

.callout-icon {
    font-size: 3rem;
    color: #2565c1;
    flex-shrink: 0;
    background: #FFFFFF;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 101, 193, 0.15);
}

.callout-content h4 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 12px;
}

.callout-content p {
    font-size: 1.05rem;
    color: #374151;
    margin: 0;
    line-height: 1.6;
}

/* Closing CTA */
.process-cta-banner {
    background: linear-gradient(135deg, #1E3A8A 0%, #2565C1 100%);
    border-radius: 24px;
    padding: 64px 80px;
    margin-top: 80px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 40px -10px rgba(37, 101, 193, 0.4);
    position: relative;
    overflow: hidden;
}

.process-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-banner-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.cta-banner-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-banner-content p {
    font-size: 1.2rem;
    color: #DBEAFE;
    margin: 0;
    line-height: 1.6;
}

.cta-banner-action {
    flex-shrink: 0;
    margin-left: 40px;
    position: relative;
    z-index: 1;
}

.banner-btn {
    background: #FFFFFF !important;
    color: #1E3A8A !important;
    font-size: 1.15rem !important;
    padding: 20px 40px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.banner-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
    color: #2565C1 !important;
}

/* Responsive Updates for Process Section */
@media (max-width: 1024px) {
    .maturity-scale {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-cta-banner {
        padding: 56px 48px;
    }
}

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

    .deliverables-grid {
        grid-template-columns: 1fr;
    }

    .maturity-scale {
        grid-template-columns: 1fr 1fr;
    }

    .steps-container::before {
        left: 32px;
    }

    .step-item,
    .step-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 80px;
        padding-right: 0;
    }

    .step-number {
        left: 32px;
    }

    .step-content,
    .step-item:nth-child(even) .step-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .process-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 48px 32px;
    }

    .cta-banner-action {
        margin-left: 0;
        margin-top: 40px;
    }

    .cta-banner-content h3 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .maturity-scale {
        grid-template-columns: 1fr;
    }

    .team-callout {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .team-callout::after {
        display: none;
    }
}