/**
 * Neural Pathways - Interactive AI Experience
 * Futuristic consultation interface with modern aesthetics
 */

/* ==========================================================================
   WELCOME SCREEN - Entry Portal
   ========================================================================== */

.neural-pathways-welcome {
    position: fixed;
    top: 90px; /* Start below header - matches --header-height */
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background: rgba(0, 0, 0, 0.4); /* Very transparent to show brain clearly */
    z-index: 50; /* Well below header z-index (1100) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3D Cube Container - Full viewport background for all screens */
.neural-cube-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10; /* Behind all screens (they use z-index 50) */
    pointer-events: none; /* Allow clicks to pass through to content */
    opacity: 1;
    visibility: visible;
}

.neural-cube-container canvas {
    width: 100% !important;
    height: 100% !important;
    cursor: move;
    display: block;
    background: transparent;
}

/* When in experience mode, full viewport background */
.neural-cube-container.in-experience {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Behind chat interface but visible */
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .neural-cube-container {
        width: 100%;
        height: 100%;
    }
    
    .neural-cube-container.in-experience {
        width: 100vw;
        height: 100vh;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .neural-cube-container {
        animation: none !important;
    }
    
    .neural-cube-container canvas {
        cursor: default;
    }
}

/* Cube loading indicator */
.cube-loader {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: rgba(60, 19, 97, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.cube-loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #3c1361, #74EEDD);
    width: 0%;
    transition: width 0.3s ease;
}

/* Adjust welcome content to work with cube */
.neural-pathways-welcome .welcome-content {
    position: relative;
    z-index: 20;
    max-width: 750px;
    padding: 2rem;
    pointer-events: none;
}

/* Re-enable pointer events for interactive elements */
.neural-pathways-welcome .welcome-content input,
.neural-pathways-welcome .welcome-content button,
.neural-pathways-welcome .welcome-content label,
.neural-pathways-welcome .welcome-content a {
    pointer-events: auto;
}

.neural-pathways-welcome.hidden {
    opacity: 0;
    pointer-events: none;
}

.neural-pathways-welcome.removed {
    display: none;
}

/* Background patterns removed for cleaner look */
.welcome-background,
.info-background,
.challenge-background,
.neural-grid-bg {
    display: none;
}

@keyframes gridFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glow orbs removed for cleaner look */
.glow-orb,
.glow-orb-1,
.glow-orb-2,
.glow-orb-3 {
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Welcome content */
.welcome-content {
    position: relative;
    z-index: 52; /* Above brain (51) */
    text-align: center;
    max-width: 900px;
    padding: 40px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Hide logo when cube is present */
.neural-logo-glow {
    display: none;
}

.welcome-title {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    font-weight: 200;
    color: #ffffff;
    margin: 0 0 30px 0;
    letter-spacing: 2px;
    white-space: nowrap;
    text-align: center;
    position: relative;
    z-index: 30;
}

.welcome-title .gradient-text {
    background: linear-gradient(135deg, #3c1361, #74EEDD, #3c1361);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 300;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 300;
    text-align: center;
    position: relative;
    z-index: 30;
    max-width: 750px;
}

.disclaimer-box {
    background: rgba(60, 19, 97, 0.1);
    border: 1px solid rgba(60, 19, 97, 0.3);
    border-radius: 12px;
    padding: 25px 35px;
    margin: 0 auto 30px;
    max-width: 750px;
    backdrop-filter: blur(20px);
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.disclaimer-box .disclaimer-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.disclaimer-box .consent-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #74EEDD;
    cursor: pointer;
    flex-shrink: 0;
}

/* Email Capture Section */
.email-capture {
    background: linear-gradient(135deg, rgba(116, 238, 221, 0.08), rgba(60, 19, 97, 0.08));
    border: 1px solid rgba(116, 238, 221, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 30px 0;
    backdrop-filter: blur(20px);
}

.email-capture-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0 0 16px 0;
    font-weight: 300;
}

.email-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-fields-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.name-input-wrapper,
.email-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(116, 238, 221, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    flex: 1;
}

.name-input-wrapper:focus-within,
.email-input-wrapper:focus-within {
    border-color: #74EEDD;
    box-shadow: 0 0 20px rgba(116, 238, 221, 0.2);
}

.name-input,
.email-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    outline: none;
    width: 100%;
}

.name-input::placeholder,
.email-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}


.disclaimer-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

.disclaimer-box .disclaimer-text a {
    color: #74EEDD;
    text-decoration: none;
    border-bottom: 1px solid rgba(116, 238, 221, 0.3);
    transition: all 0.3s ease;
}

.disclaimer-box .disclaimer-text a:hover {
    color: #FF966C;
    border-bottom-color: #FF966C;
}

.enter-button {
    display: inline-block;
    padding: 18px 60px;
    background: linear-gradient(135deg, #3c1361, #1e1b4b);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #74EEDD, #FF966C);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.enter-button span {
    position: relative;
    z-index: 1;
}

.enter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(60, 19, 97, 0.4);
    border-color: #74EEDD;
}

.enter-button:hover::before {
    opacity: 0.1;
}

/* ==========================================================================
   MAIN EXPERIENCE - AI Consultation Interface
   ========================================================================== */

.neural-pathways-experience {
    position: relative;
    min-height: 100vh;
    background: #000000;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.neural-pathways-experience.active {
    opacity: 1;
}

/* Animated background effects */
.experience-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.neural-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #74EEDD;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 10s infinite linear;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(100px);
    }
}

/* Chat Interface Container - Full Width Immersive */
.consultation-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: calc(var(--header-height) + 20px) 0 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.consultation-header {
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.consultation-title {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #74EEDD;
    margin: 0 0 10px 0;
}

.consultation-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(116, 238, 221, 0.1);
    border: 1px solid rgba(116, 238, 221, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: #74EEDD;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #74EEDD;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* Chat Messages Area - Edge-to-Edge Experience */
.chat-viewport {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 40px 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 400px;
    position: relative;
}

.chat-message {
    margin-bottom: 40px;
    opacity: 0;
    position: relative;
}

/* AI messages slide in from left edge */
.message-ai {
    animation: slideFromLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* User messages slide in from right edge */
.message-user {
    animation: slideFromRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(100vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-ai {
    display: flex;
    justify-content: flex-start;
    padding-left: 0;
}

.message-user {
    display: flex;
    justify-content: flex-end;
    padding-right: 0;
}

.message-bubble {
    max-width: 85%;
    padding: 24px 36px;
    position: relative;
    font-size: 1.1rem;
}

.ai-bubble {
    background: linear-gradient(135deg, rgba(60, 19, 97, 0.25), rgba(30, 27, 75, 0.25));
    border: 2px solid rgba(60, 19, 97, 0.5);
    backdrop-filter: blur(30px);
    color: #ffffff;
    border-radius: 0 40px 40px 0;
    margin-left: -20px;
    padding-left: 40px;
    box-shadow: 0 10px 60px rgba(60, 19, 97, 0.4), 
                inset 0 0 60px rgba(116, 238, 221, 0.05);
}

.user-bubble {
    background: linear-gradient(135deg, rgba(116, 238, 221, 0.2), rgba(116, 238, 221, 0.08));
    border: 2px solid rgba(116, 238, 221, 0.4);
    backdrop-filter: blur(30px);
    color: #ffffff;
    border-radius: 40px 0 40px 40px;
    margin-right: -20px;
    padding-right: 40px;
    box-shadow: 0 10px 60px rgba(116, 238, 221, 0.3),
                inset 0 0 60px rgba(255, 150, 108, 0.05);
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.ai-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 28px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #74EEDD;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    40% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Input Area */
.consultation-input-area {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, #000000 70%, transparent);
    padding: 40px 20px 20px;
    z-index: 20;
}

.input-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.input-glow {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(116, 238, 221, 0.2), transparent);
    filter: blur(40px);
    pointer-events: none;
}

.consultation-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 8px 8px 24px;
    transition: all 0.3s ease;
}

.consultation-input-wrapper:focus-within {
    border-color: #74EEDD;
    box-shadow: 0 0 40px rgba(116, 238, 221, 0.2);
}

.consultation-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    padding: 12px 0;
    outline: none;
}

.consultation-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.send-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #74EEDD, #3c1361);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(116, 238, 221, 0.4);
}

.send-button svg {
    width: 20px;
    height: 20px;
    fill: #000000;
}

/* Placeholder Section */
.neural-pathways-placeholder {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #000000 0%, #0A0A0B 100%);
}

/* Desktop Enhancement */
@media (min-width: 1400px) {
    .message-bubble {
        max-width: 75%;
        font-size: 1.2rem;
    }
    
    .ai-bubble {
        margin-left: -40px;
        padding-left: 60px;
    }
    
    .user-bubble {
        margin-right: -40px;
        padding-right: 60px;
    }
}

/* Rich Media Content Styles */
.message-content {
    width: 100%;
}

.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4 {
    color: #74EEDD;
    margin: 16px 0 12px 0;
    font-weight: 400;
}

.message-content h1 { font-size: 1.8rem; }
.message-content h2 { font-size: 1.5rem; }
.message-content h3 { font-size: 1.3rem; }
.message-content h4 { font-size: 1.1rem; }

.message-content strong {
    color: #FF966C;
    font-weight: 500;
}

.message-content em {
    color: #74EEDD;
    font-style: italic;
}

.message-content a {
    color: #74EEDD;
    text-decoration: none;
    border-bottom: 1px solid rgba(116, 238, 221, 0.3);
    transition: all 0.3s ease;
}

.message-content a:hover {
    color: #FF966C;
    border-bottom-color: #FF966C;
}

.message-content code {
    background: rgba(116, 238, 221, 0.1);
    color: #74EEDD;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.message-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(116, 238, 221, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
}

.message-content pre code {
    background: transparent;
    padding: 0;
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message-image,
.chart-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-caption,
.chart-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0;
    text-align: center;
    font-style: italic;
}

.chart-title {
    font-style: normal;
    font-weight: 500;
    color: #74EEDD;
    text-align: left;
}

.message-list,
.rich-list {
    margin: 16px 0;
    padding-left: 24px;
}

.message-list li,
.rich-list li {
    color: rgba(255, 255, 255, 0.9);
    margin: 8px 0;
    line-height: 1.6;
}

.message-card {
    background: rgba(60, 19, 97, 0.15);
    border: 1px solid rgba(60, 19, 97, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.card-title {
    color: #74EEDD;
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.card-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 0 12px 0;
}

.card-body {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.card-action {
    padding: 10px 20px;
    background: linear-gradient(135deg, #74EEDD, #3c1361);
    color: #000000;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(116, 238, 221, 0.4);
}

.rich-text {
    margin: 12px 0;
    line-height: 1.6;
}

.rich-heading {
    color: #74EEDD;
    margin: 20px 0 12px 0;
}

.rich-image {
    margin: 20px 0;
    text-align: center;
}

.rich-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rich-image figcaption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
    font-style: italic;
}

.rich-divider {
    border: none;
    border-top: 1px solid rgba(116, 238, 221, 0.2);
    margin: 24px 0;
}

.rich-button {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #3c1361, #1e1b4b);
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px 4px;
}

.rich-button:hover {
    border-color: #74EEDD;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(60, 19, 97, 0.4);
}

.chart-container {
    width: 100%;
    max-width: 750px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(116, 238, 221, 0.2);
    border-radius: 12px;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .welcome-content {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        letter-spacing: 1px;
    }
    
    .message-bubble {
        max-width: 95%;
        font-size: 1rem;
    }
    
    .ai-bubble {
        margin-left: -10px;
        padding-left: 25px;
        border-radius: 0 30px 30px 0;
    }
    
    .user-bubble {
        margin-right: -10px;
        padding-right: 25px;
        border-radius: 30px 0 30px 30px;
    }
    
    .email-capture {
        padding: 20px;
    }
    
    .input-fields-row {
        flex-direction: column;
    }
    
    .consultation-input-wrapper {
        padding: 6px 6px 6px 20px;
    }
    
    .send-button {
        width: 42px;
        height: 42px;
    }
    
    .message-content h1 { font-size: 1.5rem; }
    .message-content h2 { font-size: 1.3rem; }
    .message-content h3 { font-size: 1.1rem; }
    .message-content h4 { font-size: 1rem; }
    
    .message-content pre {
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .card-action {
        width: 100%;
    }
}

/* ==========================================================================
   USER INFORMATION SCREEN
   ========================================================================== */

.neural-pathways-info {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background: rgba(0, 0, 0, 0.4); /* Very transparent to show brain clearly */
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.neural-pathways-info.visible {
    opacity: 1;
}

/* .info-background removed */

.info-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 90%;
    padding: 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(60, 19, 97, 0.3);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.info-header {
    text-align: center;
    margin-bottom: 35px;
}

.info-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 300;
    margin: 0 0 10px 0;
    color: var(--text-light);
}

.info-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

.user-info-form {
    margin-bottom: 25px;
}

.form-field {
    margin-bottom: 25px;
}

.field-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.label-text {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.label-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.field-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(116, 238, 221, 0.2);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text-light);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.field-input:focus {
    outline: none;
    border-color: var(--neural-blue);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(116, 238, 221, 0.1);
}

.field-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.info-privacy-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(60, 19, 97, 0.1);
    border-radius: 8px;
    margin-bottom: 30px;
}

.lock-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--neural-blue);
}

.info-privacy-note p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.info-actions {
    display: flex;
    gap: 15px;
}

.skip-button {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-button:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-light);
}

.continue-button {
    flex: 2;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--neural-purple), var(--neural-purple-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.continue-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(60, 19, 97, 0.3);
}

.continue-button .arrow-icon {
    width: 18px;
    height: 18px;
}

/* Update proceed button in welcome screen */
.proceed-button {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--neural-purple), var(--neural-purple-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    pointer-events: none;
}

.proceed-button:not(:disabled) {
    opacity: 1;
    pointer-events: auto;
}

.proceed-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(60, 19, 97, 0.4);
}

.proceed-button .arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.proceed-button:hover .arrow-icon {
    transform: translateX(3px);
}

/* Add welcome description styling */
.welcome-description {
    max-width: 800px;
    margin: 0 auto 30px;
}

.welcome-description p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

/* ==========================================================================
   BUSINESS CHALLENGE INPUT SCREEN
   ========================================================================== */

.neural-pathways-challenge {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background: rgba(0, 0, 0, 0.4); /* Very transparent to show brain clearly */
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.neural-pathways-challenge.visible {
    opacity: 1;
}

/* .challenge-background removed */

.challenge-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 95%;
    padding: 50px 30px;
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.challenge-header {
    text-align: center;
    margin-bottom: 40px;
}

.challenge-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin: 0 0 15px 0;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.challenge-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.challenge-prompt {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.prompt-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: center;
}

.challenge-input-container {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.challenge-textarea {
    width: 100%;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(60, 19, 97, 0.4);
    border-radius: 12px;
    padding: 20px;
    color: var(--text-light);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    min-height: 150px;
    max-height: 400px;
}

.challenge-textarea:focus {
    outline: none;
    border-color: var(--neural-purple);
    background: rgba(26, 26, 26, 0.8);
    box-shadow: 0 0 20px rgba(60, 19, 97, 0.5);
}

.challenge-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.input-helper {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.start-consultation-btn {
    width: auto;
    padding: 12px 24px;
    background: var(--neural-purple);
    color: white;
    border: 1px solid rgba(60, 19, 97, 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0.5;
    pointer-events: none;
}

.start-consultation-btn:not(:disabled) {
    opacity: 1;
    pointer-events: auto;
}

.start-consultation-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(60, 19, 97, 0.4);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.start-consultation-btn:hover .arrow-icon {
    transform: translateX(3px);
}

.challenge-inspiration {
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
}

.inspiration-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-align: center;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
}

.category-tab {
    background: rgba(26, 26, 26, 0.7);
    border: 2px solid rgba(60, 19, 97, 0.5);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 28px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.category-tab:hover {
    background: rgba(60, 19, 97, 0.1);
    border-color: var(--neural-purple);
    color: white;
    box-shadow: 0 0 20px rgba(60, 19, 97, 0.6), 0 0 40px rgba(60, 19, 97, 0.3);
    transform: translateY(-2px);
}

.category-tab.active {
    background: rgba(60, 19, 97, 0.2);
    border-color: var(--neural-purple);
    color: white;
    box-shadow: 0 0 30px rgba(60, 19, 97, 0.8), 0 0 60px rgba(60, 19, 97, 0.4);
}

/* Categories Container */
.inspiration-categories {
    position: relative;
    min-height: 40px;
    transition: min-height 0.3s ease;
}

.inspiration-categories.expanded {
    min-height: 120px;
}

.inspiration-category {
    display: none;
    animation: fadeIn 0.4s ease;
}

.inspiration-category.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.category-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.prompt-pill {
    padding: 10px 18px;
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(60, 19, 97, 0.4);
    border-radius: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.prompt-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(116, 238, 221, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.prompt-pill:hover {
    border-color: var(--neural-purple);
    background: rgba(60, 19, 97, 0.08);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(116, 238, 221, 0.15);
}

.prompt-pill:hover::before {
    transform: translateX(100%);
}

.prompt-pill:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(116, 238, 221, 0.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .challenge-content {
        padding: 30px 20px;
    }
    
    .challenge-title {
        font-size: 1.8rem;
    }
    
    .category-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .category-tab {
        font-size: 0.95rem;
        padding: 10px 18px;
    }
    
    .prompt-pill {
        font-size: 0.85rem;
        padding: 8px 14px;
        white-space: normal;
        text-align: left;
    }
}

/* ==========================================================================
   API ERROR NOTICE
   ========================================================================== */

.api-error-notice {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05));
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideUp 0.5s ease-out;
}

.api-error-notice .error-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.api-error-notice .error-message {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}
}