/* Dakessian Law - Tax Litigation Power Meter Styles */

:root {
    --primary-dark: #0c1f3f;
    --primary-blue: #1a3a5c;
    --accent-gold: #c9a962;
    --accent-gold-light: #e5d4a1;
    --text-light: #ffffff;
    --text-muted: #a0aec0;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
    --gradient-primary: linear-gradient(135deg, #0c1f3f 0%, #1a3a5c 50%, #0c1f3f 100%);
    --gradient-gold: linear-gradient(135deg, #c9a962 0%, #e5d4a1 50%, #c9a962 100%);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(201, 169, 98, 0.3);
    --focus-ring: 0 0 0 3px rgba(201, 169, 98, 0.5);
}

/* Accessibility: Focus Indicators */
*:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
    box-shadow: var(--focus-ring);
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-primary);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    padding-top: 140px;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(12, 31, 63, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    padding: 0 2rem;
}

.site-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 140px;
}

.site-header-logo {
    display: flex;
    align-items: center;
}

.site-header-logo img {
    height: 110px;
    display: block;
}

.site-header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-header-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-header-nav a:hover {
    color: var(--accent-gold);
}

@media (max-width: 900px) {
    .site-header {
        padding: 0 1rem;
    }
    .site-header-container {
        height: 80px;
    }
    .site-header-logo img {
        height: 60px;
    }
    .site-header-nav a {
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
    }
}

@media (max-width: 700px) {
    .site-header-nav {
        display: none;
    }
}

/* Landing Screen Styles */
.screen {
    display: none;
    min-height: calc(100vh - 140px);
}

.screen.active {
    display: flex;
}

#landing-screen {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    text-align: center;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

#landing-screen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(201, 169, 98, 0.05) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

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

/* Consent Screen */
#consent-screen {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    padding-top: 4vh;
    text-align: center;
}

.consent-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.consent-icon {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.consent-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.consent-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.consent-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.consent-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.consent-feature svg {
    color: var(--success);
    flex-shrink: 0;
}

.back-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text-light);
}

.landing-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.logo {
    margin-bottom: 2rem;
    display: none;
}

.logo img {
    height: 135px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.landing-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subheadline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--gradient-gold);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(201, 169, 98, 0.5);
}

.cta-button svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
    color: var(--accent-gold);
}

.feature h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.feature p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.disclaimer {
    margin-top: 3rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 600px;
    text-align: center;
    opacity: 0.7;
}

/* Chat Screen Styles */
#chat-screen {
    flex-direction: column;
    height: calc(100vh - 140px);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-subtle);
}

.chat-header-logo img {
    height: 60px;
}

.chat-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.progress-sidebar {
    width: 280px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border-subtle);
    overflow-y: auto;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.progress-counter {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 4px;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.progress-step.active,
.progress-step.completed {
    opacity: 1;
}

.progress-step.active {
    background: var(--bg-card);
}

.progress-step.completed .step-indicator {
    background: var(--success);
    border-color: var(--success);
}

.progress-step.completed .step-indicator svg {
    display: block;
}

/* Pulse animation when step completes */
@keyframes stepComplete {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.progress-step.just-completed .step-indicator {
    animation: stepComplete 0.4s ease;
}

.step-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.progress-step.active .step-indicator {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.step-indicator svg {
    display: none;
    width: 14px;
    height: 14px;
    color: white;
}

.step-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.progress-step.active .step-text,
.progress-step.completed .step-text {
    color: var(--text-light);
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    display: flex;
    gap: 1rem;
    max-width: 80%;
    animation: fadeInUp 0.3s ease;
}

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

.message.assistant {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 0.875rem;
}

.message.assistant .message-avatar {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.message.user .message-avatar {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.message-content {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    line-height: 1.6;
}

.message.assistant .message-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-bottom-left-radius: 4px;
}

.message.user .message-content {
    background: var(--primary-blue);
    border-bottom-right-radius: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

.insight-card {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1) 0%, rgba(201, 169, 98, 0.05) 100%);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
    animation: fadeInUp 0.3s ease;
}

.insight-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

.insight-card-content {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Response Buttons */
.response-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.response-button {
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.response-button:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.response-button:active {
    transform: translateY(0);
}

.response-button.selected {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
    pointer-events: none;
}

/* Info Help Button */
.info-help-button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #1a1f2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: bold;
    font-style: italic;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.info-help-button:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: scale(1.1);
}

/* Help Modal */
.help-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.help-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.help-modal {
    background: var(--primary-dark);
    border: 1px solid var(--accent-gold);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.help-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-modal-content {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

.help-modal-close {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.help-modal-close:hover {
    box-shadow: var(--shadow-glow);
}

/* Video Introduction Link */
.video-intro-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    font-size: 1.0rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.video-intro-link:hover {
    color: #f0d060;
}

.video-intro-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Landing page video link variant */
.video-intro-link.landing-video-link {
    margin-top: 2rem;
    padding-top: 0;
    border-top: none;
    justify-content: center;
}

/* Video Modal */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal {
    background: var(--primary-dark);
    border: 1px solid var(--accent-gold);
    border-radius: 16px;
    padding: 1.5rem;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.video-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-modal-close:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Tooltips */
.tooltip-trigger {
    color: var(--accent-gold);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    cursor: help;
    position: relative;
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    width: max-content;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    font-weight: normal;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--accent-gold);
}

.tooltip-trigger:hover .tooltip-content,
.tooltip-trigger:focus .tooltip-content {
    opacity: 1;
    visibility: visible;
}

/* Video Embed */
.video-embed {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.video-embed iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.video-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
}

.video-link svg {
    width: 16px;
    height: 16px;
}

.chat-input-area {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-subtle);
}

.chat-input-container {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0;
}

.chat-confidentiality-notice {
    max-width: 800px;
    margin: 0.75rem 0 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: left;
    opacity: 0.7;
}

.chat-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 25px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: var(--accent-gold);
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.send-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gold);
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-button:hover:not(:disabled) {
    transform: scale(1.1);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

/* Loading Screen Styles */
#loading-screen {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.loading-content {
    max-width: 500px;
}

.loading-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
}

.loading-stages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.loading-stage {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    transition: all 0.5s ease;
}

.loading-stage.active {
    background: var(--bg-card-hover);
    border: 1px solid var(--accent-gold);
}

.loading-stage.complete {
    opacity: 0.6;
}

.loading-stage-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-stage.active .loading-stage-icon {
    background: var(--accent-gold);
    color: var(--primary-dark);
    animation: pulse-icon 1s ease-in-out infinite;
}

.loading-stage.complete .loading-stage-icon {
    background: var(--success);
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loading-stage-text {
    text-align: left;
}

.loading-stage-text h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.loading-stage-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: var(--gradient-gold);
    width: 0%;
    transition: width 0.5s ease;
}

/* Additional Comments Screen */
#additional-comments-screen.active {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: var(--bg-dark);
}

.comments-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.comments-icon {
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.comments-icon svg {
    width: 48px;
    height: 48px;
}

.comments-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.comments-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.comments-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.comments-buttons .cta-button {
    width: 100%;
    max-width: 300px;
}

.comments-buttons .cta-button.secondary {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-light);
}

.comments-buttons .cta-button.secondary:hover {
    background: var(--bg-dark);
    border-color: var(--accent-gold);
}

.comments-input-section {
    display: none;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.comments-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.comments-textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.comments-textarea::placeholder {
    color: var(--text-muted);
}

.char-counter {
    font-size: 0.875rem;
    color: var(--text-muted);
    align-self: flex-end;
}

.comments-input-section .cta-button {
    width: 100%;
    max-width: 300px;
    margin-top: 0.5rem;
}

/* Results Screen Styles */
#results-screen {
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem;
}

.results-header {
    text-align: center;
    padding: 2rem;
}

.results-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.results-subtitle {
    color: var(--text-muted);
}

.results-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.gauge {
    position: relative;
    width: 280px;
    height: 140px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.gauge-background {
    position: absolute;
    width: 100%;
    height: 200%;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        transparent 0deg,
        transparent 180deg
    );
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    transition: background 1.5s ease-out;
}

.gauge-inner {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: -100%;
    background: var(--primary-dark);
    border-radius: 50%;
}

.gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 100px;
    background: var(--text-light);
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 2px;
}

.gauge-needle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--text-light);
    border-radius: 50%;
}

.gauge-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-gold);
    min-height: 1.2em;
    line-height: 1;
    position: relative;
    z-index: 10;
}

.gauge-label {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.score-category {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-gold);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-top: 1rem;
}

.subscores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.subscore-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.subscore-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.subscore-title {
    font-size: 1rem;
    font-weight: 600;
}

.subscore-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.subscore-bar {
    height: 8px;
    background: var(--border-subtle);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.subscore-bar-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    width: 0%;
    transition: width 1s ease;
}

.subscore-description {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.factors-section {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.factors-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.factors-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.factor-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.factor-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.factor-icon.positive { color: var(--success); }
.factor-icon.negative { color: var(--danger); }
.factor-icon.neutral { color: var(--warning); }

.factor-text {
    font-size: 0.9rem;
}

.actions-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    width: 100%;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-button.primary {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    border: none;
}

.action-button.primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.action-button.secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-subtle);
}

.action-button.secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-gold);
}

.results-disclaimer {
    text-align: center;
    padding: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-main {
        flex-direction: column;
    }

    .progress-sidebar {
        width: 100%;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .progress-steps {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.25rem;
    }

    .progress-step {
        flex-direction: column;
        padding: 0.5rem;
        text-align: center;
    }

    .step-text {
        font-size: 0.7rem;
    }

    .message {
        max-width: 95%;
    }

    .gauge {
        width: 220px;
        height: 110px;
    }

    .gauge-needle {
        height: 80px;
    }

    .gauge-score {
        font-size: 3rem;
    }

    .video-intro-link {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: none;
        justify-content: center;
    }
}

/* Consultation Request Modal */
.consultation-modal {
    background: var(--primary-dark);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

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

.consultation-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
}

.consultation-modal-icon.success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success);
}

.consultation-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.consultation-modal-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.consultation-form {
    text-align: left;
    margin-bottom: 1.5rem;
}

.consultation-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.consultation-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}

.consultation-input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.consultation-input::placeholder {
    color: var(--text-muted);
}

.consultation-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.consultation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.consultation-buttons .cta-button {
    flex: 0 1 auto;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.consultation-buttons .cta-button.secondary {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-light);
}

.consultation-buttons .cta-button.secondary:hover {
    background: var(--bg-dark);
    border-color: var(--accent-gold);
}

/* Loading spinner for submit button */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

#consultation-thankyou-state .cta-button {
    margin-top: 0.5rem;
    min-width: 120px;
}

/* ==============================
   Site Footer Styles
   ============================== */
.site-footer {
    background: #061325;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 3rem;
    align-items: start;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent-gold);
}

.footer-offices {
    display: flex;
    gap: 2.5rem;
}

.footer-office h4 {
    color: var(--accent-gold);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.footer-office p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.footer-office a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-office a:hover {
    color: var(--accent-gold);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.footer-bottom {
    background: #040d18;
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.75rem;
    max-width: 900px;
    margin: 0 auto 0.75rem;
    line-height: 1.5;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-logo {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-nav {
        grid-column: 1 / -1;
    }

    .footer-nav ul {
        justify-content: center;
    }

    .footer-offices {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .footer-social {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .footer-offices {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }
}
