/* Clean Modern Design for Karuna Landing Page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #0f0f0f;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 60px; /* Account for fixed footer */
}

/* Watermark */
#watermark {
    position: fixed;
    bottom: -20px;
    left: 35%;
    transform: translateX(-50%);
    width: 920px;
    height: 920px;
    background-image: url('kcs-tree-watermark.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Admin gear icon */
.admin-access {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
}

.gear-icon {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px;
    border-radius: 50%;
}

.gear-icon:hover {
    color: rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Main container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px 120px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header section */
.header-section {
    margin-bottom: 0;
}

.brand-container {
    position: absolute;
    top: 10px;
    right: 30px;
    z-index: 100;
}

.brand-logo {
    width: 156px;
    height: 156px;
    object-fit: contain;
}

/* Main content */
.main-content {
    text-align: center;
}

.hero-section {
    margin-bottom: 24px;
}

/* Brand Banner */
.brand-banner {
    margin-bottom: 32px;
}

.brand-title {
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.karuna {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 42px;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.02em;
    display: block;
}

.care-services {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 400;
    color: #000000;
    letter-spacing: 0.02em;
    display: block;
}

.policy-access {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #5A6271;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #0f0f0f;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: #6b7280;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 12px;
}

.hero-tagline {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
    font-style: italic;
    max-width: 400px;
    margin: 0 auto;
}

/* Search section */
.search-section {
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto 32px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.search-container:focus-within {
    border-color: #22c55e;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 20px 24px;
    font-size: 16px;
    color: #0f0f0f;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #22c55e;
    color: white;
    border: none;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.search-button:hover {
    background: #16a34a;
}

.search-button:active {
    background: #15803d;
}

/* Suggestions */
.suggestions {
    max-width: 600px;
    margin: 0 auto;
}

.suggestions-label {
    font-size: 18px;
    color: #000000;
    margin-bottom: 16px;
    font-weight: 500;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.suggestion-chip {
    background: #f9fafb;
    border: 2px solid #000000;
    color: #000000;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-chip:hover {
    background: #f3f4f6;
    border-color: #000000;
    color: #000000;
}

/* Response area */
.response-area {
    max-width: 600px;
    margin: 32px auto 0;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: left;
}

.response-content {
    color: #374151;
    line-height: 1.6;
}

/* Answer content formatting to match admin page */
.answer-content {
    color: #374151;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0px;
    padding: 0px;
    font-size: 14px;
}

/* Override any default browser styles for h4 elements */
.answer-content h4,
.answer-title h4,
h4.answer-title {
    margin: 0px !important;
    padding: 0px !important;
    line-height: 1.1 !important;
}

/* Remove any default paragraph margins within answer content */
.answer-content p {
    margin: 0 0 12px 0;
}

.answer-content p:last-child {
    margin-bottom: 0;
}

/* Remove default margins from list elements */
.answer-content ol,
.answer-content ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.answer-content ol:last-child,
.answer-content ul:last-child {
    margin-bottom: 0;
}

.answer-content li {
    margin: 0 0 4px 0;
}

.answer-content li:last-child {
    margin-bottom: 0;
}

/* Citation styling - clickable blue badges like admin page */
.citation {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    margin: 0 2px;
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #3b82f6;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.citation:hover {
    background: #2563eb;
    color: white;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Admin-style Q&A Layout - Exact Match */
.admin-qa-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin: 24px auto 0;
    max-width: 600px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.qa-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Question Section */
.question-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.question-icon {
    width: 32px;
    height: 32px;
    background: #dbeafe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.question-content {
    flex: 1;
    min-width: 0;
}

.question-title {
    font-weight: 500;
    color: #111827;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.question-text {
    color: #374151;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.question-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
}

.status-badge.complete {
    background: #16a34a;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.response-time-badge {
    background: #f3f4f6;
    color: #374151;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

/* Simple Feedback Modal */
.feedback-modal-overlay {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.feedback-modal {
    background: transparent;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    margin: auto;
}



.feedback-modal-content {
    padding: 20px;
}

.feedback-modal-content p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 14px;
}

.feedback-reasons {
    margin-bottom: 20px;
}

.feedback-reason-option {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
}

.feedback-reason-option input[type="radio"] {
    margin-right: 8px;
}

.feedback-reason-option span {
    font-size: 14px;
    color: #374151;
}

.feedback-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.feedback-submit-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.feedback-submit-btn:hover {
    background: #2563eb;
}

.feedback-cancel-btn {
    background: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.feedback-cancel-btn:hover {
    background: #f3f4f6;
}

/* Feedback submitted message */
.feedback-submitted-message {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
}

/* Answer Section */
.answer-section {
    border-left: 4px solid #3b82f6;
    padding-left: 16px;
}

.answer-section-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.answer-icon {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.answer-content-wrapper {
    flex: 1;
    min-width: 0;
}

.answer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.answer-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.answer-title {
    font-weight: 500;
    color: #111827;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-size: 14px;
}

.confidence-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.confidence-badge.high {
    background: #dcfce7;
    color: #166534;
}

.confidence-badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.confidence-badge.low {
    background: #fee2e2;
    color: #991b1b;
}

.feedback-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 16px;
}

.feedback-btn:hover {
    background: #f3f4f6;
}

.feedback-btn.thumbs-up:hover {
    background: #dcfce7;
    color: #16a34a;
}

.feedback-btn.thumbs-down:hover {
    background: #fee2e2;
    color: #dc2626;
}

.answer-title h2 {
    color: #0c4a6e;
    font-weight: 600;
    margin: 0;
    font-size: 18px;
}

.confidence-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Feedback section styling */
.feedback-section {
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.feedback-question {
    font-size: 16px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

.feedback-buttons {
    display: flex;
    gap: 12px;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.feedback-btn.thumbs-up:hover {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #16a34a;
}

.feedback-btn.thumbs-down:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

/* Sources section styling */
.sources-section {
    margin-top: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
}

.sources-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    user-select: none;
}

.sources-title {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.sources-toggle {
    color: #6b7280;
    transition: transform 0.2s ease;
}

.sources-toggle.expanded {
    transform: rotate(180deg);
}

.sources-content {
    padding: 16px;
    display: none;
}

.sources-content.expanded {
    display: block;
}

.source-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.source-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.source-item:last-child {
    margin-bottom: 0;
}

.source-info {
    flex: 1;
}

.source-name {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    margin-bottom: 4px;
}

.source-section {
    font-size: 12px;
    color: #6b7280;
}

.source-relevance {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Eye Portal - Minimalist Mystical Interface */
.eye-portal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: portalOpen 1.2s ease-out;
}

@keyframes portalOpen {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.portal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.8) 70%, 
        rgba(0, 0, 0, 0.95) 100%);
    cursor: pointer;
}

.eye-sanctuary {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(20, 20, 20, 0.98) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(217, 119, 6, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: sanctuaryMaterialize 1.5s ease-out;
}

@keyframes sanctuaryMaterialize {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
        filter: blur(20px);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
        filter: blur(2px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes sanctuaryShake {
    0%, 100% { 
        transform: translate(-50%, -50%);
    }
    10%, 30%, 50%, 70%, 90% { 
        transform: translate(-52%, -50%);
    }
    20%, 40%, 60%, 80% { 
        transform: translate(-48%, -50%);
    }
}

/* STEAMPUNK VAULT STYLING */
.steampunk-vault {
    background: 
        radial-gradient(ellipse at center, #2c1810 0%, #1a0f08 50%, #0f0704 100%),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(139, 69, 19, 0.1) 2px, rgba(139, 69, 19, 0.1) 4px);
    border: 4px solid #8b4513;
    box-shadow: 
        0 0 40px rgba(139, 69, 19, 0.4),
        inset 0 0 20px rgba(205, 127, 50, 0.2),
        inset 0 0 40px rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.steampunk-vault::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 140, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, transparent 30%, rgba(205, 127, 50, 0.02) 50%, transparent 70%);
    animation: steamFlow 10s ease-in-out infinite;
    pointer-events: none;
}

.steampunk-vault::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: steamPuff 3s ease-in-out infinite;
}

@keyframes steamFlow {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.4; }
    50% { transform: rotate(2deg) scale(1.02); opacity: 0.7; }
}

@keyframes steamPuff {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* MECHANICAL EYE ASSEMBLY */
.steampunk-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 20px 15px;
    position: relative;
}

.mechanical-eye {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: mechanicalHum 6s ease-in-out infinite;
}

.brass-housing {
    width: 70px;
    height: 70px;
    background: 
        radial-gradient(circle at 30% 30%, #cd7f32 0%, #8b4513 40%, #654321 100%);
    border-radius: 50%;
    position: relative;
    border: 3px solid #b8860b;
    box-shadow: 
        0 0 15px rgba(205, 127, 50, 0.4),
        inset 0 0 15px rgba(139, 69, 19, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.lens-assembly {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, #1a1a1a 20%, #333 60%, #1a1a1a 100%);
    border-radius: 50%;
    border: 2px solid #8b4513;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.lens-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    border: 2px solid #cd7f32;
    border-radius: 50%;
    box-shadow: 
        0 0 5px rgba(205, 127, 50, 0.6),
        inset 0 0 5px rgba(139, 69, 19, 0.4);
}

.aperture {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #ff4500;
    border-radius: 50%;
    box-shadow: 
        0 0 8px rgba(255, 69, 0, 0.8),
        inset 0 0 4px rgba(139, 0, 0, 0.6);
    animation: aperturePulse 4s ease-in-out infinite;
}

.steam-vents {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    gap: 2px;
}

.vent {
    width: 3px;
    height: 8px;
    background: linear-gradient(to top, #8b4513, #cd7f32);
    border-radius: 1px;
    animation: steamVent 2s ease-in-out infinite;
}

.vent:nth-child(2) {
    animation-delay: 0.3s;
}

.vent:nth-child(3) {
    animation-delay: 0.6s;
}

.pressure-gauge {
    position: absolute;
    bottom: -15px;
    right: -10px;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, #8b4513 0%, #654321 100%);
    border-radius: 50%;
    border: 2px solid #cd7f32;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.6);
}

.gauge-face {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2a2a 0%, #1a1a1a 100%);
    border: 1px solid #444;
}

.gauge-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 8px;
    background: #ff4500;
    transform-origin: bottom center;
    transform: translate(-50%, -100%) rotate(45deg);
    animation: gaugeFluctuation 3s ease-in-out infinite;
}

@keyframes mechanicalHum {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.02) rotate(1deg); }
}

@keyframes aperturePulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 8px rgba(255, 69, 0, 0.8), inset 0 0 4px rgba(139, 0, 0, 0.6);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 12px rgba(255, 69, 0, 1), inset 0 0 6px rgba(255, 0, 0, 0.8);
    }
}

@keyframes steamVent {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(-2px); }
}

@keyframes gaugeFluctuation {
    0%, 100% { transform: translate(-50%, -100%) rotate(30deg); }
    50% { transform: translate(-50%, -100%) rotate(60deg); }
}

/* GEAR ASSEMBLY */
.steampunk-body {
    padding: 15px 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gear-assembly {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 10px 0;
}

.main-gear {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    animation: gearRotate 8s linear infinite;
}

.main-gear .gear-teeth {
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        #8b4513 0deg 30deg,
        #cd7f32 30deg 60deg,
        #8b4513 60deg 90deg,
        #cd7f32 90deg 120deg,
        #8b4513 120deg 150deg,
        #cd7f32 150deg 180deg,
        #8b4513 180deg 210deg,
        #cd7f32 210deg 240deg,
        #8b4513 240deg 270deg,
        #cd7f32 270deg 300deg,
        #8b4513 300deg 330deg,
        #cd7f32 330deg 360deg
    );
    border-radius: 50%;
    border: 2px solid #654321;
    box-shadow: 
        0 0 10px rgba(139, 69, 19, 0.4),
        inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.main-gear .gear-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #654321 0%, #2a1810 100%);
    border-radius: 50%;
    border: 2px solid #8b4513;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
}

.secondary-gear {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    animation: gearRotate 6s linear infinite reverse;
}

.secondary-gear .gear-teeth {
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        #cd7f32 0deg 45deg,
        #8b4513 45deg 90deg,
        #cd7f32 90deg 135deg,
        #8b4513 135deg 180deg,
        #cd7f32 180deg 225deg,
        #8b4513 225deg 270deg,
        #cd7f32 270deg 315deg,
        #8b4513 315deg 360deg
    );
    border-radius: 50%;
    border: 1px solid #654321;
    box-shadow: 
        0 0 5px rgba(139, 69, 19, 0.3),
        inset 0 0 8px rgba(0, 0, 0, 0.5);
}

.tertiary-gear {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 25px;
    height: 25px;
    animation: gearRotate 4s linear infinite;
}

.tertiary-gear .gear-teeth {
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        #8b4513 0deg 60deg,
        #cd7f32 60deg 120deg,
        #8b4513 120deg 180deg,
        #cd7f32 180deg 240deg,
        #8b4513 240deg 300deg,
        #cd7f32 300deg 360deg
    );
    border-radius: 50%;
    border: 1px solid #654321;
    box-shadow: 
        0 0 3px rgba(139, 69, 19, 0.2),
        inset 0 0 5px rgba(0, 0, 0, 0.4);
}

@keyframes gearRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.secondary-gear .gear-teeth,
.tertiary-gear .gear-teeth {
    transform-origin: center;
}

/* MECHANICAL INPUT */
.mechanical-input {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    background: 
        linear-gradient(145deg, #2a1810 0%, #1a0f08 50%, #0f0704 100%),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(139, 69, 19, 0.1) 1px, rgba(139, 69, 19, 0.1) 2px);
    border: 3px solid #8b4513;
    border-radius: 4px;
    color: #cd7f32;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(139, 69, 19, 0.3);
}

.mechanical-input:focus {
    border-color: #cd7f32;
    color: #ff8c00;
    box-shadow: 
        inset 0 0 15px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(205, 127, 50, 0.4),
        0 0 25px rgba(255, 140, 0, 0.2);
    text-shadow: 0 0 3px rgba(255, 140, 0, 0.6);
}

.mechanical-input::placeholder {
    color: rgba(139, 69, 19, 0.6);
    letter-spacing: 1px;
}

/* STEAM WARNING */
.steam-warning {
    color: #ff6b6b;
    font-size: 20px;
    text-shadow: 
        0 0 8px rgba(255, 107, 107, 0.8),
        0 0 15px rgba(255, 0, 0, 0.4);
    animation: steamAlert 1.2s ease-in-out infinite;
}

@keyframes steamAlert {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1) rotate(-2deg); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1) rotate(2deg); 
    }
}

/* BRASS ACTIVATOR BUTTON */
.brass-activator {
    width: 75px;
    height: 75px;
    background: 
        radial-gradient(circle at 30% 30%, #cd7f32 0%, #8b4513 60%, #654321 100%),
        conic-gradient(from 45deg, #b8860b, #cd7f32, #8b4513, #cd7f32);
    border: 4px solid #8b4513;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 15px rgba(139, 69, 19, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.brass-activator::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 2px solid #654321;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.brass-activator:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 25px rgba(205, 127, 50, 0.6),
        inset 0 0 25px rgba(255, 140, 0, 0.1);
    border-color: #cd7f32;
}

.brass-activator:active {
    transform: scale(0.95);
    box-shadow: 
        0 0 10px rgba(139, 69, 19, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.button-mechanism {
    font-size: 24px;
    color: #654321;
    text-shadow: 
        0 0 3px rgba(101, 67, 33, 0.8),
        0 0 8px rgba(139, 69, 19, 0.4);
    animation: mechanismRotate 12s linear infinite;
    position: relative;
    z-index: 2;
}

@keyframes mechanismRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* STEAMPUNK CLOSE BUTTON */
.steampunk-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 20px;
    color: #8b4513;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 3px rgba(139, 69, 19, 0.6);
}

.steampunk-close:hover {
    color: #cd7f32;
    text-shadow: 0 0 8px rgba(205, 127, 50, 0.8);
    transform: rotate(180deg) scale(1.1);
}

/* STEAMPUNK ANIMATIONS */
@keyframes steamPowerUp {
    0% { 
        transform: scale(1) rotate(0deg); 
        filter: brightness(1); 
    }
    50% { 
        transform: scale(1.1) rotate(180deg); 
        filter: brightness(1.3) hue-rotate(15deg); 
    }
    100% { 
        transform: scale(1.2) rotate(360deg); 
        filter: brightness(1.5) hue-rotate(30deg); 
    }
}

@keyframes gearJam {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

@keyframes steamShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Glowing border animation */
.modal-content::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(34, 197, 94, 0.6), 
        rgba(59, 130, 246, 0.4), 
        rgba(168, 85, 247, 0.4), 
        rgba(34, 197, 94, 0.6));
    border-radius: 25px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
    filter: blur(4px);
}

@keyframes borderGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Header with Holographic Effect */
.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 40px 20px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(34, 197, 94, 0.8), 
        rgba(59, 130, 246, 0.8), 
        rgba(168, 85, 247, 0.8));
    border-radius: 2px;
    animation: headerGlow 2s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { box-shadow: 0 0 5px rgba(34, 197, 94, 0.5); }
    100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.8); }
}

.modal-header .security-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(59, 130, 246, 0.2));
    border: 2px solid rgba(34, 197, 94, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(34, 197, 94, 0.9);
    animation: iconPulse 3s ease-in-out infinite;
    position: relative;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
    }
}

.modal-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    letter-spacing: 0.02em;
}

.modal-header .subtitle {
    font-size: 14px;
    color: rgba(34, 197, 94, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.modal-header .tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    max-width: 320px;
}

.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.modal-body {
    padding: 20px 40px 40px;
    position: relative;
    z-index: 1;
}

.modal-body p {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
}

/* Holographic Password Input */
.password-input {
    width: 100%;
    padding: 18px 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.1em;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.password-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.password-input:focus {
    outline: none;
    border-color: rgba(34, 197, 94, 0.8);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 
        0 0 30px rgba(34, 197, 94, 0.2),
        inset 0 0 20px rgba(34, 197, 94, 0.1);
    transform: scale(1.02);
}

/* Animated typing effect */
.password-input:not(:placeholder-shown) {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(59, 130, 246, 0.6);
    color: rgba(59, 130, 246, 0.9);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.modal-footer {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    padding: 0 40px 40px;
}

/* Spectacular Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.9) 0%, 
        rgba(16, 185, 129, 0.9) 50%, 
        rgba(5, 150, 105, 0.9) 100%);
    color: white;
    border: 2px solid rgba(34, 197, 94, 0.5);
    box-shadow: 
        0 8px 32px rgba(34, 197, 94, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(34, 197, 94, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(34, 197, 94, 0.8);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
    background: linear-gradient(135deg, 
        rgba(71, 85, 105, 0.4) 0%, 
        rgba(51, 65, 85, 0.4) 100%);
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.03);
    background: linear-gradient(135deg, 
        rgba(71, 85, 105, 0.6) 0%, 
        rgba(51, 65, 85, 0.6) 100%);
    border-color: rgba(148, 163, 184, 0.5);
    color: rgba(255, 255, 255, 0.95);
}

/* Dramatic Error Message */
.error-message {
    color: rgba(239, 68, 68, 0.9);
    font-size: 14px;
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.1) 0%, 
        rgba(185, 28, 28, 0.15) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: errorPulse 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.error-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(239, 68, 68, 0.8), 
        rgba(220, 38, 38, 0.6), 
        rgba(239, 68, 68, 0.8));
    animation: errorGlow 1.5s ease-in-out infinite;
}

@keyframes errorPulse {
    0% { 
        transform: scale(0.95);
        opacity: 0;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes errorGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
    }
    50% { 
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    }
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-section {
        margin-bottom: 0;
    }
    

    
    .brand-logo {
        width: 160px;
        height: 160px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-input,
    .search-button {
        padding: 16px 20px;
    }
    
    .suggestion-chips {
        flex-direction: column;
        align-items: center;
    }
    
    .suggestion-chip {
        width: fit-content;
    }
}

/* Feedback Widget - KCS Green */
.feedback-widget-button {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #22c55e;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transition: all 0.2s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-widget-button:hover {
    background: #16a34a;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
}

.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.feedback-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feedback-modal-header {
    display: flex;
    align-items: center;
    justify-content: between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.feedback-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
}

.feedback-close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    margin-left: 16px;
}

.feedback-close-button:hover {
    color: #374151;
}

.feedback-description {
    padding: 0 24px 16px;
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.feedback-form {
    padding: 0 24px 24px;
}

.feedback-form-group {
    margin-bottom: 20px;
}

.feedback-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.feedback-form-group input,
.feedback-form-group select,
.feedback-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form-group input:focus,
.feedback-form-group select:focus,
.feedback-form-group textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.feedback-form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.feedback-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.feedback-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.feedback-cancel-btn,
.feedback-submit-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-cancel-btn {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    color: #374151;
}

.feedback-cancel-btn:hover {
    background: #f3f4f6;
}

.feedback-submit-btn {
    background: #22c55e;
    border: 1px solid #22c55e;
    color: white;
}

.feedback-submit-btn:hover {
    background: #16a34a;
    border-color: #16a34a;
}

.feedback-submit-btn:disabled {
    background: #d1d5db;
    border-color: #d1d5db;
    cursor: not-allowed;
}

/* Notification styling */
.feedback-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 3000;
    max-width: 320px;
    animation: slideIn 0.3s ease;
}

.feedback-notification.success {
    border-left: 4px solid #22c55e;
}

.feedback-notification h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.feedback-notification p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Feedback Widget Button */
.feedback-widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.feedback-widget-button:hover {
    background: #047857;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.feedback-widget-button svg {
    width: 24px;
    height: 24px;
}

/* General Feedback Modal */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.feedback-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feedback-modal-header {
    padding: 20px 24px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feedback-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.feedback-close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.feedback-close-button:hover {
    background: #f3f4f6;
    color: #374151;
}

.feedback-description {
    margin: 12px 0 0 0;
    padding: 0 24px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.feedback-form {
    padding: 20px 24px 24px 24px;
}

.feedback-form-group {
    margin-bottom: 16px;
}

.feedback-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.feedback-form-group select,
.feedback-form-group input,
.feedback-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form-group select:focus,
.feedback-form-group input:focus,
.feedback-form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.feedback-form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.feedback-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.feedback-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.feedback-cancel-btn,
.feedback-submit-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.feedback-cancel-btn {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}

.feedback-cancel-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.feedback-submit-btn {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.feedback-submit-btn:hover {
    background: #047857;
    border-color: #047857;
}

.feedback-submit-btn:disabled {
    background: #d1d5db;
    border-color: #d1d5db;
    cursor: not-allowed;
}

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

/* Copyright Footer */
.copyright-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(245, 245, 245, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e5e7eb;
    padding: 12px 0;
    text-align: center;
    z-index: 100;
}

.copyright-footer p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}

/* ===== MYSTICAL EYE LOCK STYLES ===== */

/* Mystical Vault Container */
.mystical-vault {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.95) 50%, 
        rgba(15, 23, 42, 0.95) 100%);
    border: 2px solid rgba(217, 119, 6, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(217, 119, 6, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mystical-vault::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(217, 119, 6, 0.1) 50%, 
        transparent 70%);
    animation: mysticalShimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes mysticalShimmer {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

/* Mystical Overlay */
.mystical-overlay {
    position: relative;
    z-index: 2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Eye Container */
.eye-container {
    position: relative;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 320px;
}

.mystical-eye {
    width: 300px;
    height: 300px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 60px rgba(217, 119, 6, 0.5)) 
            drop-shadow(0 0 100px rgba(139, 69, 19, 0.3));
    transition: filter 0.5s ease;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

@keyframes eyeWatching {
    0%, 100% { 
        transform: translateY(0px) scale(1) rotateZ(0deg);
        filter: drop-shadow(0 0 60px rgba(217, 119, 6, 0.4)) 
                drop-shadow(0 0 120px rgba(139, 69, 19, 0.3))
                drop-shadow(0 0 200px rgba(0, 0, 0, 0.8));
    }
    25% { 
        transform: translateY(-5px) scale(1.02) rotateZ(0.5deg);
        filter: drop-shadow(0 0 80px rgba(217, 119, 6, 0.6)) 
                drop-shadow(0 0 160px rgba(139, 69, 19, 0.4))
                drop-shadow(0 0 240px rgba(0, 0, 0, 0.9));
    }
    50% { 
        transform: translateY(-8px) scale(1.03) rotateZ(0deg);
        filter: drop-shadow(0 0 100px rgba(217, 119, 6, 0.8)) 
                drop-shadow(0 0 200px rgba(139, 69, 19, 0.5))
                drop-shadow(0 0 280px rgba(0, 0, 0, 1));
    }
    75% { 
        transform: translateY(-3px) scale(1.01) rotateZ(-0.5deg);
        filter: drop-shadow(0 0 80px rgba(217, 119, 6, 0.6)) 
                drop-shadow(0 0 160px rgba(139, 69, 19, 0.4))
                drop-shadow(0 0 240px rgba(0, 0, 0, 0.9));
    }
}

/* Eye Glow Effect */
.eye-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, 
        rgba(217, 119, 6, 0.3) 0%, 
        rgba(217, 119, 6, 0.1) 50%, 
        transparent 100%);
    border-radius: 50%;
    animation: eyeGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes eyeGlowPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* Iris Scanner Effect */
.iris-scanner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 2px solid rgba(217, 119, 6, 0.6);
    border-radius: 50%;
    pointer-events: none;
}

.scanner-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(217, 119, 6, 1) 50%, 
        transparent 100%);
    animation: scannerSweep 2s linear infinite;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.8);
}

@keyframes scannerSweep {
    0% { 
        transform: translateY(-50%) rotate(0deg);
        opacity: 1;
    }
    100% { 
        transform: translateY(-50%) rotate(360deg);
        opacity: 1;
    }
}

/* Mystical Interface */
.mystical-interface {
    width: 100%;
    text-align: center;
}

.access-panel {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    position: relative;
}

.access-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(217, 119, 6, 0.8) 50%, 
        transparent 100%);
    border-radius: 15px 15px 0 0;
}

/* Panel Header */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.access-text {
    font-size: 16px;
    font-weight: 700;
    color: rgba(217, 119, 6, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
}

.mystical-close {
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.mystical-close:hover {
    color: rgba(217, 119, 6, 0.9);
    background: rgba(217, 119, 6, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.4);
}

/* Input Zone */
.input-zone {
    position: relative;
    margin-bottom: 20px;
}

.mystical-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(217, 119, 6, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mystical-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
}

.mystical-input:focus {
    outline: none;
    border-color: rgba(217, 119, 6, 0.8);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 
        0 0 25px rgba(217, 119, 6, 0.3),
        inset 0 0 15px rgba(217, 119, 6, 0.1);
    transform: scale(1.02);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(217, 119, 6, 1), 
        rgba(245, 158, 11, 1));
    transition: width 0.3s ease;
}

.mystical-input:focus + .input-underline {
    width: 100%;
}

/* Mystical Warning */
.mystical-warning {
    padding: 12px 20px;
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.2) 0%, 
        rgba(185, 28, 28, 0.3) 100%);
    border: 2px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    margin-bottom: 20px;
    animation: mysticalWarningPulse 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.mystical-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(239, 68, 68, 0.3), 
        transparent);
    animation: warningShimmer 1.5s ease-in-out infinite;
}

@keyframes mysticalWarningPulse {
    0% { 
        transform: scale(0.9);
        opacity: 0;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes warningShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.warning-text {
    font-size: 14px;
    font-weight: 600;
    color: rgba(239, 68, 68, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Mystical Activator Button */
.mystical-activator {
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(135deg, 
        rgba(217, 119, 6, 0.8) 0%, 
        rgba(245, 158, 11, 0.8) 50%, 
        rgba(217, 119, 6, 0.8) 100%);
    border: 2px solid rgba(217, 119, 6, 0.6);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.mystical-activator:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(217, 119, 6, 0.4),
        0 0 30px rgba(217, 119, 6, 0.6);
    border-color: rgba(217, 119, 6, 1);
}

.mystical-activator:active {
    transform: translateY(0) scale(1);
}

.activator-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.activator-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s;
}

.mystical-activator:hover .activator-glow {
    left: 100%;
}

/* Mystical Modal Animations */
.mystical-vault.shake {
    animation: mysticalShake 0.6s ease-in-out;
}

@keyframes mysticalShake {
    0%, 20%, 40%, 60%, 80% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
}

/* Success Animation */
.mystical-vault.success .mystical-eye {
    animation: eyeSuccess 1s ease-in-out forwards;
}

@keyframes eyeSuccess {
    0% { 
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(217, 119, 6, 0.8));
    }
    50% { 
        transform: scale(1.2);
        filter: drop-shadow(0 0 60px rgba(34, 197, 94, 1));
    }
    100% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 50px rgba(34, 197, 94, 0.8));
    }
}

/* Invisible Input Field */
.input-vessel {
    position: relative;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spirit-input {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(217, 119, 6, 0.4);
    border-radius: 8px;
    outline: none;
    width: 300px;
    height: 60px;
    text-align: center;
    font-size: 18px;
    color: rgba(217, 119, 6, 0.9);
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    caret-color: rgba(217, 119, 6, 0.8);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.2);
}

.spirit-input:focus {
    color: rgba(217, 119, 6, 1);
    text-shadow: 0 0 10px rgba(217, 119, 6, 0.6);
    caret-color: rgba(217, 119, 6, 1);
}

.spirit-input::placeholder {
    color: transparent;
}

.input-essence {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(217, 119, 6, 0.8) 50%, 
        transparent 100%);
    transition: width 0.5s ease;
}

.spirit-input:focus + .input-essence {
    width: 100%;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.4);
}

.rejection-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 80px;
    background: radial-gradient(ellipse, 
        rgba(239, 68, 68, 0.3) 0%, 
        rgba(239, 68, 68, 0.1) 50%, 
        transparent 100%);
    border-radius: 50px;
    animation: rejectionPulse 1s ease-in-out infinite;
}

@keyframes rejectionPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.close-sigil {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: rgba(217, 119, 6, 0.4);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 100;
}

.close-sigil:hover {
    color: rgba(217, 119, 6, 0.8);
    background: rgba(217, 119, 6, 0.1);
    text-shadow: 0 0 10px rgba(217, 119, 6, 0.6);
}

/* Responsive Design */
@media (max-width: 640px) {
    .eye-sanctuary {
        width: 90vw;
        height: 90vh;
    }
    
    .mystical-eye {
        width: 250px;
        height: 250px;
    }
    
    .spirit-input {
        width: 250px;
        font-size: 16px;
        letter-spacing: 6px;
    }
    
    .close-sigil {
        top: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}
/* Minimal Processing Status Indicator - KCS Green Theme */
.processing-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #047857;
    margin-top: 8px;
    margin-bottom: 20px;
    padding: 4px 8px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.status-text {
    font-weight: 500;
    color: #065f46;
    font-size: 13px;
}

/* Prominent Logo Banner Section */
.logo-banner-section {
    width: 100%;
    max-width: 640px;
    height: 420px;
    margin: 48px auto 0;
    background: linear-gradient(135deg, #1a2f2f 0%, #0f1f1f 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-display-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.prominent-logo {
    width: auto;
    height: 85%;
    max-width: 90%;
    object-fit: contain;
    filter: brightness(1.2) contrast(1.1);
    opacity: 0.95;
}

/* Source Document Viewer Modal */
.source-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.source-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.source-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.source-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.source-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.source-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.source-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.source-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.source-text {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.source-metadata {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 8px;
}

.source-meta-item {
    font-size: 13px;
    color: #6b7280;
}

.source-meta-label {
    font-weight: 600;
    color: #374151;
}

.source-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.source-nav-btn {
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

.source-nav-btn:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.source-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.source-position {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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