/* ========================================
   HashemIsHere.org - Styles
   Warm, trustworthy, community-focused design
   Mobile-first responsive design
   ======================================== */

/* CSS Variables */
:root {
    --primary: #2D7D6E;
    --primary-dark: #1F5C50;
    --primary-light: #E8F4F1;
    --accent: #E8913A;
    --accent-light: #FEF3E8;
    
    --text-dark: #1A2F2A;
    --text-medium: #4A5C57;
    --text-light: #6B7D78;
    
    --bg-cream: #FDFCF9;
    --bg-white: #FFFFFF;
    --bg-soft: #F7F6F3;
    
    --border: #E5E2DC;
    --border-dark: #D1CDC5;
    
    --success: #2D8B5F;
    --warning: #D97706;
    --error: #DC2626;
    
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ========================================
   Header - Centered Layout
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) 0;
}

@media (min-width: 768px) {
    .header {
        padding: var(--space-md) 0;
    }
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

@media (min-width: 768px) {
    .header-container {
        gap: var(--space-sm);
    }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-img {
        height: 85px;
    }
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

@media (min-width: 768px) {
    .logo-icon {
        font-size: 3rem;
    }
}

.nav {
    display: none;
    gap: var(--space-xl);
}

.nav-link {
    font-weight: 500;
    color: var(--text-medium);
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg);
    display: none;
    flex-direction: column;
    gap: var(--space-md);
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-medium);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    
    .mobile-menu-btn,
    .mobile-menu {
        display: none !important;
    }
}

/* ========================================
   Hero Section - Mobile First
   ======================================== */
.hero {
    position: relative;
    padding: calc(110px + var(--space-xl)) 0 var(--space-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-cream) 50%, var(--accent-light) 100%);
}

@media (min-width: 768px) {
    .hero {
        padding: calc(140px + var(--space-3xl)) 0 var(--space-3xl);
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(45, 125, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 145, 58, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
    line-height: 1.2;
}

@media (min-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 0.9375rem;
    color: var(--text-medium);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: var(--space-xl);
        line-height: 1.7;
    }
}

.hero-process {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    flex-wrap: nowrap;
}

@media (min-width: 768px) {
    .hero-process {
        gap: var(--space-md);
        margin-bottom: var(--space-xl);
    }
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.process-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

.process-icon svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 768px) {
    .process-icon {
        width: 64px;
        height: 64px;
        border-radius: var(--radius-lg);
    }
    
    .process-icon svg {
        width: 32px;
        height: 32px;
    }
}

.process-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-medium);
}

@media (min-width: 768px) {
    .process-text {
        font-size: 0.875rem;
    }
}

.process-arrow {
    color: var(--primary);
    opacity: 0.4;
}

.process-arrow svg {
    width: 16px;
    height: 16px;
}

@media (min-width: 768px) {
    .process-arrow svg {
        width: 24px;
        height: 24px;
    }
}

.hero-cta {
    display: inline-block;
    padding: var(--space-md) var(--space-2xl);
    background: linear-gradient(180deg, #E8913A 0%, #D4832E 100%);
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(232, 145, 58, 0.4), 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    margin-bottom: var(--space-lg);
    text-transform: none;
    letter-spacing: 0.02em;
    border: none;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-cta {
        padding: var(--space-lg) var(--space-3xl);
        font-size: 1.35rem;
        margin-bottom: var(--space-xl);
    }
}

.hero-cta:hover {
    background: linear-gradient(180deg, #F09A45 0%, #E8913A 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 145, 58, 0.5), 0 4px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.3);
}

.hero-cta:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 145, 58, 0.4), 0 2px 4px rgba(0,0,0,0.1);
}

.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--text-medium);
}

@media (min-width: 768px) {
    .trust-item {
        font-size: 0.9375rem;
    }
}

.trust-item svg {
    color: var(--primary);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

@media (min-width: 768px) {
    .trust-item svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   Tool Section - Mobile First
   ======================================== */
.tool-section {
    padding: var(--space-xl) 0;
    background: var(--bg-white);
}

@media (min-width: 768px) {
    .tool-section {
        padding: var(--space-3xl) 0;
    }
}

.tool-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
}

@media (min-width: 768px) {
    .tool-wrapper {
        border-radius: var(--radius-xl);
        padding: var(--space-2xl);
    }
}

.tool-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .tool-header {
        margin-bottom: var(--space-xl);
    }
}

.tool-title {
    font-size: 1.375rem;
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .tool-title {
        font-size: 1.75rem;
    }
}

.tool-subtitle {
    color: var(--text-medium);
    font-size: 0.9375rem;
}

/* Progress Bar */
.progress-bar {
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .progress-bar {
        margin-bottom: var(--space-2xl);
    }
}

.progress-track {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 20%;
    transition: width 0.3s ease;
}

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

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

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

.step-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-medium);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

.progress-step.active .step-number {
    background: var(--primary);
    color: white;
}

.progress-step.completed .step-number {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 0.625rem;
    color: var(--text-light);
    display: none;
}

@media (min-width: 480px) {
    .step-label {
        display: block;
        font-size: 0.6875rem;
    }
}

@media (min-width: 768px) {
    .step-label {
        font-size: 0.75rem;
    }
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    text-align: center;
}

@media (min-width: 768px) {
    .step-title {
        font-size: 1.5rem;
    }
}

.step-description {
    color: var(--text-medium);
    text-align: center;
    margin-bottom: var(--space-lg);
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .step-description {
        margin-bottom: var(--space-xl);
    }
}

/* Case Summary */
.case-summary {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    border-left: 4px solid var(--primary);
}

@media (min-width: 768px) {
    .case-summary {
        padding: var(--space-lg);
        margin-bottom: var(--space-xl);
    }
}

.summary-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
    font-size: 0.9375rem;
}

.summary-header svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.summary-text {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Pro Se Explanation Box */
.pro-se-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, #e8f5f2 100%);
    border: 1px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .pro-se-box {
        padding: var(--space-lg);
    }
}

.pro-se-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.pro-se-header svg {
    flex-shrink: 0;
    color: var(--primary);
}

.pro-se-text {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.pro-se-text strong {
    color: var(--primary-dark);
}

/* Upload Area - Creative Design */
.upload-area {
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .upload-area {
        padding: var(--space-2xl);
    }
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-white) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 125, 110, 0.15);
}

.upload-area:hover .upload-icon-bg {
    transform: scale(1.1);
}

.upload-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.upload-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.upload-icon-main {
    position: relative;
    z-index: 1;
    color: var(--primary);
    width: 48px;
    height: 48px;
}

@media (min-width: 768px) {
    .upload-icon-bg {
        width: 90px;
        height: 90px;
    }
    
    .upload-icon-main {
        width: 52px;
        height: 52px;
    }
}

.upload-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
    .upload-text {
        font-size: 1.25rem;
    }
}

.upload-subtext {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

.upload-browse {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
}

.upload-format-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
}

.upload-format-badge svg {
    width: 14px;
    height: 14px;
}

/* NYSCEF Info Box */
.nyscef-info {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    font-size: 0.875rem;
}

.nyscef-header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.nyscef-header svg {
    flex-shrink: 0;
    color: var(--accent);
}

.nyscef-text {
    color: var(--text-medium);
    line-height: 1.5;
}

.nyscef-text a {
    color: var(--primary);
    font-weight: 500;
}

.nyscef-text a:hover {
    text-decoration: underline;
}

/* Upload Preview - FIXED */
.upload-preview {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--primary-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.preview-icon {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.preview-filename {
    flex: 1;
    min-width: 0;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.875rem;
    word-break: break-all;
    line-height: 1.4;
}

.preview-remove {
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.preview-remove:hover {
    background: var(--primary);
    color: white;
}

/* Upload Divider */
.upload-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.upload-divider::before,
.upload-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Buttons */
.manual-entry-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-medium);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.manual-entry-btn:hover {
    background: var(--border);
}

.next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--space-lg);
    box-shadow: 0 4px 15px rgba(45, 125, 110, 0.3);
}

.next-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .next-btn {
        padding: var(--space-lg) var(--space-xl);
        font-size: 1.125rem;
        margin-top: var(--space-xl);
    }
}

.next-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 125, 110, 0.4);
}

.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.back-btn {
    padding: var(--space-md);
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-medium);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .back-btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
    }
}

.back-btn:hover {
    background: var(--bg-soft);
}

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

@media (min-width: 768px) {
    .button-group {
        margin-top: var(--space-xl);
    }
}

.button-group .next-btn {
    flex: 1;
    margin-top: 0;
}

/* ========================================
   PLAYFUL Loading Animation
   ======================================== */
.loading-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
}

@media (min-width: 768px) {
    .loading-state {
        padding: var(--space-3xl);
    }
}

.loading-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
}

.loading-doc {
    position: absolute;
    width: 40px;
    height: 50px;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: 4px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: docBounce 1.5s ease-in-out infinite;
}

.loading-doc::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 6px;
    right: 6px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: lineAppear 1.5s ease-in-out infinite;
}

.loading-doc::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 6px;
    width: 60%;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
    animation: lineAppear 1.5s ease-in-out infinite 0.2s;
}

.loading-pencil {
    position: absolute;
    width: 6px;
    height: 30px;
    background: linear-gradient(to bottom, var(--accent) 85%, #2D2D2D 85%);
    border-radius: 2px 2px 0 0;
    right: 12px;
    top: 8px;
    transform-origin: bottom center;
    animation: pencilWrite 1.5s ease-in-out infinite;
}

.loading-pencil::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 8px solid #2D2D2D;
}

.loading-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

.sparkle:nth-child(1) {
    top: 5px;
    left: 10px;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 15px;
    right: 5px;
    animation-delay: 0.3s;
}

.sparkle:nth-child(3) {
    bottom: 10px;
    left: 5px;
    animation-delay: 0.6s;
}

@keyframes docBounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.02); }
}

@keyframes lineAppear {
    0%, 100% { opacity: 0.3; width: 60%; }
    50% { opacity: 1; width: 80%; }
}

@keyframes pencilWrite {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    25% { transform: rotate(5deg) translateY(-2px); }
    50% { transform: rotate(-3deg) translateY(-1px); }
    75% { transform: rotate(3deg) translateY(-3px); }
}

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

.loading-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .loading-text {
        font-size: 1.25rem;
    }
}

.loading-subtext {
    color: var(--text-light);
    font-size: 0.875rem;
}

.loading-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.loading-step-dot {
    width: 8px;
    height: 8px;
    background: var(--border);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

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

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

@keyframes dotPulse {
    0%, 100% { background: var(--border); transform: scale(1); }
    50% { background: var(--primary); transform: scale(1.3); }
}

/* Form Sections - Organized Layout */
.form-section {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .form-section {
        padding: var(--space-xl);
    }
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 var(--space-sm) 0;
}

.form-section-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0 0 var(--space-md) 0;
}

/* Collapsible Section */
.form-section.collapsible {
    padding: 0;
}

.form-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-soft);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-section-toggle:hover {
    background: var(--border);
}

.form-section-toggle .form-section-title {
    margin: 0;
}

.toggle-icon {
    color: var(--text-medium);
    transition: transform 0.3s ease;
}

.form-section.collapsible.open .toggle-icon {
    transform: rotate(180deg);
}

.form-section-content {
    display: none;
    padding: var(--space-lg);
    padding-top: var(--space-md);
}

.form-section.collapsible.open .form-section-content {
    display: block;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

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

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

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    background: var(--bg-white);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* Deadline Alert */
.deadline-alert {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--accent-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent);
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .deadline-alert {
        padding: var(--space-lg);
        margin-top: var(--space-xl);
    }
}

.alert-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.alert-icon svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .alert-icon svg {
        width: 24px;
        height: 24px;
    }
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: 0.9375rem;
}

.alert-content strong {
    color: var(--text-dark);
}

/* Path Options */
.path-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .path-options {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
}

.path-card {
    padding: var(--space-lg);
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .path-card {
        padding: var(--space-xl);
    }
}

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

@media (min-width: 768px) {
    .path-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
}

.path-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.path-icon {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.path-icon svg {
    width: 32px;
    height: 32px;
}

@media (min-width: 768px) {
    .path-icon svg {
        width: 40px;
        height: 40px;
    }
}

.path-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    font-family: var(--font-display);
}

@media (min-width: 768px) {
    .path-title {
        font-size: 1.25rem;
    }
}

.path-description {
    color: var(--text-medium);
    font-size: 0.875rem;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

@media (min-width: 768px) {
    .path-description {
        font-size: 0.9375rem;
    }
}

.path-features {
    list-style: none;
}

.path-features li {
    position: relative;
    padding-left: var(--space-lg);
    color: var(--text-medium);
    font-size: 0.8125rem;
    margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
    .path-features li {
        font-size: 0.875rem;
    }
}

.path-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Questions Form */
.questions-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .questions-form {
        gap: var(--space-xl);
    }
}

.question-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.question-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .question-label {
        font-size: 1.125rem;
    }
}

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

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.radio-option:hover {
    background: var(--primary-light);
}

.radio-option input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-dark);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-option input:checked + .radio-custom {
    border-color: var(--primary);
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.radio-option input:checked ~ .radio-text {
    color: var(--primary);
    font-weight: 500;
}

.radio-text {
    color: var(--text-medium);
    font-size: 0.9375rem;
}

.question-input,
.question-textarea,
.question-select {
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
    background: var(--bg-white);
    width: 100%;
}

.question-input:focus,
.question-textarea:focus,
.question-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.question-help {
    font-size: 0.8125rem;
    color: var(--text-light);
    padding-left: var(--space-sm);
    border-left: 2px solid var(--border);
}

@media (min-width: 768px) {
    .question-help {
        font-size: 0.875rem;
    }
}

/* Alerts */
.sol-alert,
.standing-alert {
    padding: var(--space-md);
    background: var(--accent-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent);
    color: var(--text-dark);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .sol-alert,
    .standing-alert {
        font-size: 0.9375rem;
    }
}

/* Document Preview */
.document-preview {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border);
}

@media (min-width: 768px) {
    .document-preview {
        margin-bottom: var(--space-xl);
    }
}

.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .preview-toolbar {
        padding: var(--space-md) var(--space-lg);
    }
}

.preview-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--border);
}

.preview-content {
    padding: var(--space-md);
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    white-space: pre-wrap;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .preview-content {
        padding: var(--space-xl);
        max-height: 400px;
        font-size: 0.875rem;
        line-height: 1.6;
    }
}

/* Download Section */
.download-section {
    text-align: center;
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .download-section {
        margin-bottom: var(--space-xl);
    }
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--accent);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg), 0 4px 0 #C67930;
}

@media (min-width: 768px) {
    .download-btn {
        padding: var(--space-lg) var(--space-2xl);
        font-size: 1.25rem;
    }
}

.download-btn:hover {
    background: #D4832E;
    transform: translateY(-2px);
}

.download-btn svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 768px) {
    .download-btn svg {
        width: 24px;
        height: 24px;
    }
}

.download-note {
    margin-top: var(--space-md);
    color: var(--text-light);
    font-size: 0.8125rem;
}

@media (min-width: 768px) {
    .download-note {
        font-size: 0.875rem;
    }
}

/* Instructions Box */
.instructions-box {
    padding: var(--space-lg);
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .instructions-box {
        padding: var(--space-xl);
        margin-bottom: var(--space-xl);
    }
}

.instructions-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    font-family: var(--font-display);
}

@media (min-width: 768px) {
    .instructions-title {
        font-size: 1.25rem;
        margin-bottom: var(--space-lg);
    }
}

.instructions-title svg {
    color: var(--primary);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

@media (min-width: 768px) {
    .instructions-title svg {
        width: 20px;
        height: 20px;
    }
}

.instructions-list {
    padding-left: var(--space-lg);
}

.instructions-list li {
    margin-bottom: var(--space-md);
    color: var(--text-medium);
    line-height: 1.5;
    font-size: 0.9375rem;
}

.instructions-list li strong {
    color: var(--text-dark);
}

.highlight {
    display: inline-block;
    background: var(--bg-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    margin-top: var(--space-xs);
    word-break: break-word;
}

/* Help Box */
.help-box {
    padding: var(--space-lg);
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .help-box {
        padding: var(--space-xl);
        margin-bottom: var(--space-xl);
    }
}

.help-title {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    font-family: var(--font-display);
}

@media (min-width: 768px) {
    .help-title {
        font-size: 1.125rem;
    }
}

.help-text {
    color: var(--text-medium);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}

.help-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-email:hover {
    background: var(--primary-dark);
    color: white;
}

.start-over-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-medium);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-over-btn:hover {
    background: var(--border);
}

/* ========================================
   It's Good to Know Section - FIXED Carousel
   ======================================== */
.guide-section {
    padding: var(--space-xl) 0;
    background: var(--bg-soft);
}

@media (min-width: 768px) {
    .guide-section {
        padding: var(--space-3xl) 0;
    }
}

.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--space-sm);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: var(--space-xl);
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .section-subtitle {
        margin-bottom: var(--space-2xl);
    }
}

/* FIXED Carousel Container */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .carousel-container {
        padding: 0;
    }
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 var(--space-sm);
    box-sizing: border-box;
}

@media (min-width: 600px) {
    .carousel-slide {
        flex: 0 0 50%;
        padding: 0 var(--space-md);
    }
}

@media (min-width: 900px) {
    .carousel-slide {
        flex: 0 0 33.333%;
    }
}

.guide-card {
    padding: var(--space-lg);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    min-height: 220px;
}

@media (min-width: 768px) {
    .guide-card {
        padding: var(--space-xl);
        min-height: 260px;
    }
}

.guide-icon {
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.guide-icon svg {
    width: 32px;
    height: 32px;
}

@media (min-width: 768px) {
    .guide-icon svg {
        width: 40px;
        height: 40px;
    }
}

.guide-card-title {
    font-size: 1.0625rem;
    margin-bottom: var(--space-sm);
    font-family: var(--font-display);
}

@media (min-width: 768px) {
    .guide-card-title {
        font-size: 1.25rem;
    }
}

.guide-card-text {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .guide-card-text {
        font-size: 0.9375rem;
    }
}

.guide-card-text a {
    text-decoration: underline;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

@media (min-width: 768px) {
    .carousel-nav {
        gap: var(--space-lg);
        margin-top: var(--space-xl);
    }
}

.carousel-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-medium);
}

@media (min-width: 768px) {
    .carousel-btn {
        width: 44px;
        height: 44px;
    }
}

.carousel-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-dots {
    display: flex;
    gap: var(--space-sm);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .carousel-dot.active {
        width: 24px;
    }
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

@media (min-width: 768px) {
    .contact-section {
        padding: var(--space-3xl) 0;
    }
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 1.5rem;
    color: white;
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .contact-title {
        font-size: 2rem;
        margin-bottom: var(--space-lg);
    }
}

.contact-text {
    opacity: 0.9;
    margin-bottom: var(--space-md);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: white;
    color: var(--primary);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    margin-top: var(--space-md);
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .contact-email {
        padding: var(--space-lg) var(--space-xl);
        font-size: 1.125rem;
        margin-top: var(--space-lg);
    }
}

.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: var(--space-xl) 0;
    background: var(--text-dark);
    color: white;
}

@media (min-width: 768px) {
    .footer {
        padding: var(--space-2xl) 0;
    }
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
    .footer-brand {
        font-size: 1.25rem;
    }
}

.footer-brand .logo-icon {
    color: var(--accent);
}

.footer-disclaimer {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .footer-disclaimer {
        font-size: 0.875rem;
    }
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}

/* Smooth scroll offset for fixed header */
[id] {
    scroll-margin-top: 70px;
}

@media (min-width: 768px) {
    [id] {
        scroll-margin-top: 80px;
    }
}
