/* Enhanced Root Variables */
:root {
    /* Primary Gradient System */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #373a9c 100%);
    --gradient-secondary: linear-gradient(135deg, #93c9fb 0%, #5767f5 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-danger: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    
    /* Glassmorphism Colors */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-bg-light: rgba(255, 255, 255, 0.08);
    --glass-bg-strong: rgba(255, 255, 255, 0.12);
    
    /* Dark Mode Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(26, 26, 36, 0.8);
    --bg-surface: rgba(30, 30, 42, 0.9);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a8;
    --text-tertiary: #6b6b76;
    --text-accent: #667eea;
    --text-muted: #525257;
    
    /* Interactive Colors */
    --hover-bg: rgba(255, 255, 255, 0.1);
    --active-bg: rgba(255, 255, 255, 0.15);
    --focus-ring: rgba(102, 126, 234, 0.4);
    
    /* Shadows & Effects */
    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Typography */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Light theme overrides */
[data-theme="light"] {
    --gradient-primary: linear-gradient(135deg, #373a9c 0%, #667eea 100%);
    --gradient-secondary: linear-gradient(135deg, #5767f5 0%, #93c9fb 100%);
    --gradient-accent: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-success: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
    --gradient-warning: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
    --gradient-danger: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);

    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    --glass-bg-light: rgba(255, 255, 255, 0.9);
    --glass-bg-strong: rgba(0, 0, 0, 0.06);

    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #ececf1;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-surface: rgba(255, 255, 255, 0.95);

    --text-primary: #0b0b0e;
    --text-secondary: #333740;
    --text-tertiary: #5a6070;
    --text-accent: #373a9c;
    --text-muted: #8a90a0;

    --hover-bg: rgba(0, 0, 0, 0.05);
    --active-bg: rgba(0, 0, 0, 0.08);

    --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(55, 58, 156, 0.15);
}

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

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: var(--gradient-accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 40%;
    animation-delay: -15s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 10%;
    right: 20%;
    animation-delay: -7s;
}

.shape-6 {
    width: 90px;
    height: 90px;
    top: 70%;
    left: 60%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-30px) rotate(120deg);
    }
    66% {
        transform: translateY(30px) rotate(240deg);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 60s linear infinite;
}

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

/* Navigation Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    background: var(--glass-bg);
    border-radius: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-normal);
}

.logo a:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.logout-btn {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
}

/* Debug Panel */
.debug-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-width: 250px;
    z-index: 999;
    display: none;
    animation: slideInRight 0.5s var(--transition-bounce);
}

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

.debug-content h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    font-weight: 600;
}

.status-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: var(--glass-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.status-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.status-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Main Container */
.proposal-container {
    min-height: 100vh;
    padding: var(--space-2xl) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Progress Indicator */
.progress-container {
    margin-bottom: var(--space-2xl);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--glass-bg);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 25%;
    transition: width var(--transition-slow);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.5;
    transition: var(--transition-normal);
}

.step.active {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.step.active .step-circle {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.step span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.step.active span {
    color: var(--text-primary);
}

/* Proposal Box */
.proposal-box {
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
}

.proposal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0.5;
}

/* Header */
.proposal-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-glow);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
    }
}

.proposal-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.proposal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeInUp 0.6s var(--transition-spring);
}

.form-section.active {
    display: block;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    align-items: start;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Groups */
.form-group {
    position: relative;
    margin-bottom: var(--space-lg);
}

/* Floating Label Inputs */
.floating-label {
    position: relative;
}

.floating-label input,
.floating-label textarea {
    width: 100%;
    padding: var(--space-lg) var(--space-lg) var(--space-md) var(--space-lg);
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
    outline: none;
    backdrop-filter: blur(10px);
}

.floating-label textarea {
    min-height: 100px;
    resize: vertical;
}

.floating-label input:focus,
.floating-label textarea:focus,
.floating-label input:not(:placeholder-shown),
.floating-label textarea:not(:placeholder-shown) {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.floating-label input:focus + label,
.floating-label textarea:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:not(:placeholder-shown) + label {
    transform: translateY(-12px) scale(0.85);
    color: var(--text-accent);
    background: var(--bg-primary);
    padding: 0 var(--space-sm);
}

.floating-label label {
    position: absolute;
    left: var(--space-lg);
    top: var(--space-lg);
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-normal);
    pointer-events: none;
    transform-origin: left top;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.floating-label input:focus ~ .input-border,
.floating-label textarea:focus ~ .input-border {
    width: 100%;
}

/* Field Icons */
.field-icon {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-accent);
    opacity: 0;
    transition: var(--transition-normal);
}

.floating-label input:valid ~ .field-icon {
    opacity: 1;
    animation: checkmark 0.5s var(--transition-bounce);
}

@keyframes checkmark {
    0% {
        transform: translateY(-50%) scale(0);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

/* Currency and Percentage Inputs */
.currency-input .currency-symbol,
.percentage-input .percentage-symbol {
    position: absolute;
    left: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-accent);
    font-weight: 600;
    font-size: 1.1rem;
    z-index: 2;
}

.currency-input input,
.percentage-input input {
    padding-left: 2.5rem;
}

.percentage-input .percentage-symbol {
    right: var(--space-lg);
    left: auto;
}

.percentage-input input {
    padding-left: var(--space-lg);
    padding-right: 2.5rem;
}

/* Custom Select */
.custom-select {
    position: relative;
}

.custom-select select {
    width: 100%;
    padding: var(--space-lg);
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

/* Fix option background in dark mode */
.custom-select select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.custom-select select:focus {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
    outline: none;
}

.custom-select label {
    position: absolute;
    left: var(--space-lg);
    top: -10px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0 var(--space-sm);
    z-index: 2;
}

/* Arrow */
.select-arrow {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

/* Arrow on focus */
.custom-select select:focus ~ .select-arrow {
    color: var(--text-accent);
    transform: translateY(-50%) rotate(180deg);
}

.custom-select select:hover {
    border-color: var(--text-accent);
    color: var(--text-accent);
    box-shadow: 0 0 12px rgba(75, 0, 130, 0.4);
}

/* Character Counter */
.char-counter {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    transition: var(--transition-normal);
}

.char-counter.warning {
    color: #fa709a;
}

.char-counter.danger {
    color: #ff6b6b;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--glass-border);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    z-index: -1;
}

.nav-btn:hover::before {
    left: 0;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    border-color: transparent;
}

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

.nav-btn:disabled:hover::before {
    left: -100%;
}

.submit-btn {
    background: var(--gradient-success);
    border-color: transparent;
}

.submit-btn:hover {
    box-shadow: 0 0 20px rgba(67, 233, 123, 0.4);
}

.section-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.current-section {
    color: var(--text-accent);
    font-size: 1.1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.action-btn:hover {
    background: var(--glass-bg-light);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.save-draft {
    border-color: rgba(67, 233, 123, 0.3);
}

.save-draft:hover {
    background: rgba(67, 233, 123, 0.1);
    border-color: rgba(67, 233, 123, 0.5);
    color: #43e97b;
}

.cancel-btn {
    border-color: rgba(255, 107, 107, 0.3);
}

.cancel-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

/* Footer */
footer {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-xl) 0;
    margin-top: var(--space-3xl);
}

.footer-content {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Alert Messages */
.alert {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
    backdrop-filter: blur(10px);
    animation: slideDown 0.5s var(--transition-spring);
}

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

.alert-success {
    background: rgba(67, 233, 123, 0.1);
    color: #43e97b;
    border-color: rgba(67, 233, 123, 0.3);
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

.alert-info {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .proposal-container {
        padding: var(--space-lg) var(--space-md);
    }
    
    .proposal-box {
        padding: var(--space-xl);
    }
    
    .proposal-title {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .form-navigation {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .navbar {
        padding: var(--space-md);
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .proposal-title {
        font-size: 1.75rem;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .step span {
        font-size: 0.7rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .debug-panel {
        position: static;
        margin: var(--space-lg);
        width: auto;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shapes {
        display: none;
    }
}

/* Focus states for keyboard navigation */
.nav-btn:focus-visible,
.action-btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--text-accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.15);
        --glass-border: rgba(255, 255, 255, 0.3);
        --text-secondary: #b0b0b0;
    }
}