/* ==================== CSS Variables ==================== */
:root {
    /* Colors */
    --primary-color: #ffee99;
    --primary-hover: #ffdd33;
    --secondary-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #f4c430;
    
    /* Informational Blue (for tags and notices) */
    --info-blue: #3B82F6;
    --info-blue-bg: #DBEAFE;
    --info-blue-text: #1E40AF;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    
    --border-color: #E5E7EB;
    --border-hover: #D1D5DB;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ==================== Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #ffee99 0%, #ffdd33 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: var(--spacing-lg);
}

#root {
    max-width: 1400px;
    margin: 0 auto;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

/* ==================== Layout Components ==================== */
.app-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    min-height: 80vh;
}

.app-header {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

.app-header h1 {
    color: #f0b020;
    margin-bottom: var(--spacing-sm);
    filter: none;
}

.app-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-sm);
}

.brand-logo {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
}

.brand-text h1 {
    margin-bottom: var(--spacing-xs);
}

.brand-text p {
    margin-bottom: 0;
}

.app-content {
    display: flex;
    min-height: calc(80vh - 120px);
}

.main-content {
    flex: 1;
    padding: var(--spacing-xl);
    background: var(--bg-primary);
}

.sidebar {
    width: 350px;
    background: var(--bg-secondary);
    border-left: 2px solid var(--border-color);
    padding: var(--spacing-xl);
    overflow-y: auto;
}

/* ==================== Welcome Screen ==================== */
.welcome-screen {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
}

.welcome-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.mode-selection {
    margin-bottom: var(--spacing-2xl);
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.mode-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.mode-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mode-card.selected {
    border-color: var(--primary-hover);
    background: linear-gradient(135deg, rgba(255, 238, 153, 0.3) 0%, rgba(255, 221, 51, 0.4) 100%);
}

.mode-card h3 {
    color: #f0b020;
    margin-bottom: var(--spacing-sm);
}

.mode-card .mode-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.mode-card .mode-features {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.mode-card .mode-features li {
    padding: var(--spacing-xs) 0;
}

.mode-card .mode-features li::before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: var(--spacing-xs);
}

.risk-warning {
    background: #FEF3C7;
    border: 2px solid var(--warning-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.risk-warning h4 {
    color: var(--warning-color);
    margin-bottom: var(--spacing-sm);
}

.risk-warning p {
    color: #92400E;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ==================== Country Selection ==================== */
.country-selection {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    margin-top: 0; /* Minimal gap from title above */
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.form-group select,
.form-group input {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-hover);
    box-shadow: 0 0 0 3px rgba(255, 221, 51, 0.2);
}

.form-group select:disabled,
.form-group input:disabled {
    background-color: var(--bg-tertiary);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ==================== Buttons ==================== */
.btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

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

.btn-primary {
    background: var(--primary-hover) !important;
    background: #ffdd33 !important; /* Fallback if CSS variable fails */
    color: #333 !important;
    border-color: var(--primary-hover) !important;
    border-color: #ffdd33 !important; /* Fallback */
}

.btn-primary:hover:not(:disabled) {
    background: #f4c430 !important;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-hover);
}

.btn-success {
    background: var(--secondary-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-group {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* ==================== Progress Tracker ==================== */
.progress-tracker {
    margin-bottom: var(--spacing-xl);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-normal);
}

.progress-step.active .progress-step-circle {
    background: var(--primary-hover) !important;
    background: #ffdd33 !important; /* Fallback - YELLOW for active step */
    border-color: var(--primary-hover) !important;
    border-color: #ffdd33 !important; /* Fallback */
    color: #333 !important;
}

.progress-step.completed .progress-step-circle {
    background: var(--secondary-color) !important;
    background: #10B981 !important; /* Fallback - GREEN for completed steps */
    border-color: var(--secondary-color) !important;
    border-color: #10B981 !important; /* Fallback */
    color: white !important;
}

.progress-step-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 100px;
}

.progress-step.active .progress-step-label {
    color: #f0b020 !important;
    color: #f0b020 !important; /* Fallback - YELLOW/GOLD text for active label */
    font-weight: 600;
}

/* ==================== Section Content ==================== */
.section-container {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.section-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.mode-selector {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.mode-btn {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    background: var(--bg-primary) !important;
    background: #FFFFFF !important; /* Fallback */
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 600;
}

.mode-btn:hover {
    border-color: var(--primary-color) !important;
    border-color: #ffee99 !important; /* Fallback */
}

.mode-btn.active {
    background: var(--primary-hover) !important;
    background: #ffdd33 !important; /* Fallback - YELLOW for active mode */
    color: #333 !important;
    border-color: var(--primary-hover) !important;
    border-color: #ffdd33 !important; /* Fallback */
}

.mode-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== Content Areas ==================== */
.diy-checklist {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.diy-checklist h4 {
    margin-bottom: var(--spacing-md);
}

.checklist-item {
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.tool-mode-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.tool-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 2px solid var(--border-color);
}

.tool-card h4 {
    color: #f0b020;
    margin-bottom: var(--spacing-sm);
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
}

.agent-mode-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.agent-chat {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.chat-message {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.chat-message.user {
    background: var(--primary-hover);
    color: #333;
    margin-left: 20%;
}

.chat-message.agent {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    margin-right: 20%;
}

.agent-input-area {
    display: flex;
    gap: var(--spacing-md);
}

.agent-input-area input {
    flex: 1;
}

/* ==================== Sidebar - Record Tracker ==================== */
.record-tracker {
    position: sticky;
    top: var(--spacing-lg);
}

.record-tracker h3 {
    margin-bottom: var(--spacing-lg);
    color: #f0b020;
}

.record-section {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 2px solid var(--border-color);
}

.record-section h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.record-item {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.record-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.record-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.record-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.record-value.placeholder {
    color: var(--text-light);
    font-style: italic;
}

.record-empty {
    text-align: center;
    color: var(--text-light);
    padding: var(--spacing-xl);
    font-style: italic;
}

/* ==================== Navigation ==================== */
.section-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

/* ==================== Loading & States ==================== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl);
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-hover);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

.error-message {
    background: #FEE2E2;
    border: 2px solid var(--danger-color);
    color: #991B1B;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.success-message {
    background: #D1FAE5;
    border: 2px solid var(--secondary-color);
    color: #065F46;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .app-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-left: none;
        border-top: 2px solid var(--border-color);
    }
    
    .mode-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: var(--spacing-sm);
    }
    
    .app-header {
        padding: var(--spacing-lg);
    }
    
    .main-content {
        padding: var(--spacing-lg);
    }
    
    .sidebar {
        padding: var(--spacing-lg);
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .brand {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .brand-logo {
        width: 56px;
        height: 56px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    .mode-selector {
        flex-direction: column;
    }
    
    .section-navigation {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .section-navigation .btn {
        width: 100%;
    }
}

/* ==================== Informational Boxes (BLUE - separate from buttons) ==================== */
.info-box {
    background: var(--info-blue-bg) !important;
    background: #DBEAFE !important; /* Fallback */
    color: var(--info-blue-text) !important;
    color: #1E40AF !important; /* Fallback */
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--info-blue);
}

.info-tag {
    background: var(--info-blue-bg) !important;
    background: #DBEAFE !important; /* Fallback */
    color: var(--info-blue-text) !important;
    color: #1E40AF !important; /* Fallback */
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* ==================== Floating Action Buttons ==================== */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.floating-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.floating-btn:active {
    transform: scale(0.95);
}

.floating-btn-primary {
    background: var(--primary-hover) !important;
    background: #ffdd33 !important;
    color: #333;
}

.floating-btn-secondary {
    background: var(--info-blue) !important;
    background: #3B82F6 !important;
    color: white;
}

.floating-btn-donation {
    background: #FFB3B3 !important; /* Lighter pink/red for better heart contrast */
    color: #D32F2F;
}

.floating-btn-donation:hover {
    background: #FF9999 !important;
}

/* Tooltip for floating buttons */
.floating-btn-tooltip {
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%);
    background: #1E293B;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.floating-btn-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1E293B;
}

.floating-btn:hover .floating-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==================== Feedback Panel ==================== */
.feedback-panel {
    position: fixed;
    bottom: 2rem;
    right: 8rem; /* Move right to avoid overlapping with floating buttons */
    width: 320px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    animation: slideIn 0.3s ease-out;
}

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

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Country not found feedback link */
.country-not-found-link {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.country-not-found-link a {
    color: var(--info-blue);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.country-not-found-link a:hover {
    color: #1E40AF;
    text-decoration: underline;
}

/* Responsive adjustments for floating elements */
@media (max-width: 768px) {
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .floating-btn-tooltip {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
    
    .feedback-panel {
        bottom: 6.5rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: calc(100vw - 2rem);
    }
}

/* ==================== Utilities ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

/* ==================== Tool Link Styles ==================== */
.tool-link {
    color: #f0b020;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.tool-link:hover {
    color: #f4c430;
}

/* Tool card shine animation */
@keyframes shine {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 221, 51, 0);
        border-color: var(--border-color);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(255, 221, 51, 0.6);
        border-color: var(--primary-hover);
    }
}

.tool-card.shine {
    animation: shine 0.8s ease-in-out 2;
}

/* ==================== Additional Button Specificity Rules ==================== */
/* Ensure buttons are YELLOW everywhere in the app */
.app-container .btn-primary,
.main-content .btn-primary,
.welcome-screen .btn-primary,
.tool-card .btn-primary,
label.btn-primary {
    background: var(--primary-hover) !important;
    background: #ffdd33 !important; /* Fallback - YELLOW */
    color: #333 !important;
    border-color: var(--primary-hover) !important;
    border-color: #ffdd33 !important; /* Fallback */
}

.app-container .btn-primary:hover:not(:disabled),
.main-content .btn-primary:hover:not(:disabled),
.welcome-screen .btn-primary:hover:not(:disabled),
.tool-card .btn-primary:hover:not(:disabled),
label.btn-primary:hover:not(:disabled) {
    background: #f4c430 !important;
}

/* ==================== File Input Styling ==================== */
input[type="file"] {
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    background: var(--primary-hover) !important;
    background: #ffdd33 !important; /* Fallback - YELLOW */
    color: #333 !important;
    border: none !important;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    margin-right: var(--spacing-sm);
}

input[type="file"]::file-selector-button:hover {
    background: #f4c430 !important;
    box-shadow: var(--shadow-md);
}

/* ==================== Info Sections (What/Why/Start) ==================== */
.info-section {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    text-align: center;
    border-bottom: 2px solid #E5E7EB;
}

.info-section:last-child {
    border-bottom: none;
}

.info-section-no-border {
    border-bottom: none !important;
    padding-bottom: var(--spacing-sm) !important; /* Reduce padding for Start Application section */
    margin-bottom: var(--spacing-sm) !important;
}

.section-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    color: #f0b020;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Why Choose Us - Reasons with hover tooltips */
.reasons-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.reason-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    cursor: pointer;
}

.reason-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.reason-item:hover .reason-icon {
    transform: scale(1.15);
}

.reason-word {
    color: #f0b020;
    font-size: 1.75rem;
    font-weight: 700;
    padding: var(--spacing-xs) var(--spacing-md);
    border-bottom: 3px solid transparent;
    transition: all var(--transition-normal);
    display: inline-block;
    pointer-events: none;
}

.reason-item:hover .reason-word {
    border-bottom-color: #f0b020;
    transform: translateY(-2px);
}

.reason-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1E293B;
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: normal;
    line-height: 1.6;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
    text-align: left;
    margin-top: var(--spacing-md);
}

.reason-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-bottom-color: #1E293B;
}

.reason-item:hover .reason-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mission statement below features */
.mission-statement {
    margin-top: var(--spacing-xl);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reasons-container {
        gap: 2.5rem;
    }
    
    .reason-icon {
        width: 50px;
        height: 50px;
    }
    
    .reason-word {
        font-size: 1.4rem;
    }
    
    .reason-tooltip {
        width: 260px;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
}

/* ==================== Multi-Language Features ==================== */

/* Language Selector */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.language-button:hover {
    border-color: var(--border-hover);
    background: var(--bg-secondary);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + var(--spacing-sm));
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.language-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.language-option:hover {
    background: var(--bg-secondary);
}

.language-option.active {
    background: var(--info-blue-bg);
    color: var(--info-blue-text);
    font-weight: 600;
}

.language-flag {
    font-size: 1.2rem;
}

/* Translation Mode Toggle (Zone 2) */
.translation-mode-toggle {
    background: var(--bg-primary);
    border: 2px solid var(--info-blue);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.translation-mode-info {
    flex: 1;
}

.translation-mode-info h4 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--info-blue-text);
    font-size: 1rem;
}

.translation-mode-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.translation-toggle-button {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--info-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.translation-toggle-button:hover {
    background: var(--info-blue-text);
    transform: translateY(-1px);
}

.translation-toggle-button.active {
    background: var(--secondary-color);
}

/* Translation Tooltip (Zone 2 - On Focus Helper) */
.field-wrapper {
    position: relative;
}

.field-wrapper.has-translation {
    position: relative;
}

.translation-tooltip {
    position: absolute;
    top: -8px;
    left: 0;
    background: var(--info-blue);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px);
    transition: all var(--transition-normal);
    z-index: 10;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.translation-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 12px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--info-blue);
}

.field-wrapper.has-translation:focus-within .translation-tooltip,
.field-wrapper.has-translation:hover .translation-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Translation reminder badge */
.translation-reminder {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--warning-color);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: var(--spacing-sm);
}

/* Official Language Notice (Zone 2) */
.official-language-notice {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-left: 4px solid var(--warning-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.official-language-notice h4 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--warning-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.official-language-notice p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Language selector in header */
.app-header .language-selector {
    margin-left: auto;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* RTL Support */
[dir="rtl"] .translation-tooltip::after {
    left: auto;
    right: 12px;
}

[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

/* Mobile responsiveness for translation features */
@media (max-width: 768px) {
    .translation-mode-toggle {
        flex-direction: column;
        align-items: stretch;
    }
    
    .translation-toggle-button {
        width: 100%;
        text-align: center;
    }
    
    .language-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 50vh;
    }
    
    .translation-tooltip {
        font-size: 0.7rem;
    }
}
