/* ========================================
   N-400 FORM FILING PAGE STYLES
   ======================================== */

.n400-page {
    line-height: 1.6;
    font-size: 1.125rem;
}

.n400-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page Header */
.n400-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    position: relative;
    padding-top: 4rem;
}

.n400-header .breadcrumb {
    font-size: 1.025rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.n400-header .breadcrumb a {
    color: white;
    text-decoration: none;
}

.n400-header .breadcrumb a:hover {
    text-decoration: underline;
}

.n400-header h1 {
    font-size: 3.125rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.n400-header .intro-text {
    font-size: 1.325rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Quick Actions Section */
.quick-actions {
    margin-bottom: 4rem;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.action-card.primary {
    border-color: #667eea;
}

.action-card.secondary {
    border-color: #28a745;
}

.action-card.tertiary {
    border-color: #ffc107;
}

.action-icon {
    font-size: 3.125rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    color: #333;
    font-size: 1.625rem;
    margin-bottom: 1rem;
}

.action-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.action-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    min-width: 150px;
}

.action-btn.primary {
    background: #667eea;
    color: white;
}

.action-btn.primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: #28a745;
    color: white;
}

.action-btn.secondary:hover {
    background: #218838;
    transform: translateY(-2px);
}

.action-btn.tertiary {
    background: #ffc107;
    color: #333;
}

.action-btn.tertiary:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

/* Video Guide Section */
.video-guide {
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.video-guide h2 {
    color: #333;
    font-size: 2.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 1rem;
}

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

.video-caption {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Filing Methods Section */
.filing-methods {
    margin-bottom: 4rem;
}

.filing-methods h2 {
    color: #333;
    font-size: 2.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.method-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid #e9ecef;
    position: relative;
    transition: all 0.3s ease;
}

.method-card.recommended {
    border-color: #28a745;
    transform: scale(1.02);
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.method-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.975rem;
    font-weight: 600;
}

.method-icon {
    font-size: 3.125rem;
    text-align: center;
    margin-bottom: 1rem;
}

.method-card h3 {
    color: #333;
    font-size: 1.625rem;
    margin-bottom: 1rem;
    text-align: center;
}

.method-benefits ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.method-benefits li {
    padding: 0.5rem 0;
    color: #666;
}

.method-steps h4 {
    color: #333;
    margin-bottom: 1rem;
}

.method-steps ol {
    color: #666;
    margin-bottom: 1.5rem;
}

.method-steps li {
    margin-bottom: 0.5rem;
}

.method-btn {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

/* Account Setup Section */
.account-setup {
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.account-setup h2 {
    color: #333;
    font-size: 2.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

.setup-guide {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setup-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    margin-bottom: 1rem;
}

.step-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.step-link:hover {
    text-decoration: underline;
}

.setup-tips {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.setup-tips h3 {
    color: #333;
    margin-bottom: 1rem;
}

.setup-tips ul {
    list-style: none;
    padding: 0;
}

.setup-tips li {
    margin-bottom: 1rem;
    color: #666;
}

.setup-tips strong {
    color: #333;
}

/* Required Documents Section */
.required-documents {
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.required-documents h2 {
    color: #333;
    font-size: 2.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

.documents-checklist {
    display: grid;
    gap: 2rem;
}

.document-category h3 {
    color: #333;
    font-size: 1.425rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.document-items {
    display: grid;
    gap: 0.8rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.document-item:hover {
    background: #e9ecef;
}

.document-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}



/* Fees Section */
.fees-section {
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.fees-section h2 {
    color: #333;
    font-size: 2.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

.fees-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.fee-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.fee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.fee-card.total {
    border-color: #28a745;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.fee-card h3 {
    margin-bottom: 1rem;
}

.fee-amount {
    font-size: 2.625rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.fee-card.total .fee-amount {
    color: white;
}

.fee-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    border-left: 4px solid #667eea;
}

.fee-info h3 {
    color: #333;
    margin-bottom: 1rem;
}

.fee-info p {
    color: #666;
    margin-bottom: 1rem;
}

.fee-waiver-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.fee-waiver-link:hover {
    text-decoration: underline;
}

/* Common Mistakes Section */
.common-mistakes {
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.common-mistakes h2 {
    color: #333;
    font-size: 2.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.mistake-card {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.mistake-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.mistake-icon {
    font-size: 2.125rem;
    margin-bottom: 1rem;
}

.mistake-card h3 {
    color: #c53030;
    margin-bottom: 1rem;
}

.mistake-card p {
    color: #666;
}

/* Next Steps Section */
.next-steps {
    margin-bottom: 4rem;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.next-steps h2 {
    color: #333;
    font-size: 2.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.next-step-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.next-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.next-step-card .step-icon {
    font-size: 3.125rem;
    margin-bottom: 1rem;
}

.next-step-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.next-step-card p {
    color: #666;
    margin-bottom: 1rem;
}

.step-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.step-link:hover {
    text-decoration: underline;
}

/* Page Actions */
.page-actions {
    text-align: center;
    padding: 2rem 0;
}

.action-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Standalone Navigation */
.standalone-nav {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

/* Standalone Footer */
.standalone-footer {
    background: #1e293b;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Home Icon Styles */
.home-icon-container {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
}

.home-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1.625rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.home-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Update header positioning to account for home icon */
.page-header {
    position: relative;
    padding-top: 4rem;
}

/* Related Pages Section */
.related-pages {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 12px;
}

.related-pages h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.125rem;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-card {
    display: block;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid #e0e4ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    text-decoration: none;
    color: #333;
}

.related-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.425rem;
    font-weight: 600;
    color: #333;
}

.related-card p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Special styling for Track Your Case card */
.related-card[href*="case-tracking"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 3px solid #fbbf24;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.related-card[href*="case-tracking"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: rotate(30deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

.related-card[href*="case-tracking"] h3 {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.related-card[href*="case-tracking"] p {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.related-card[href*="case-tracking"]:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    border-color: #f59e0b;
}

/* Badge for Track Your Case */
.related-card[href*="case-tracking"]::after {
    content: 'RECOMMENDED';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(251, 191, 36, 0.9);
    color: #1f2937;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.825rem;
    font-weight: bold;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .setup-guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .n400-container {
        padding: 1rem;
    }
    
    .n400-header h1 {
        font-size: 2.125rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .fees-breakdown {
        grid-template-columns: 1fr;
    }
    
    .mistakes-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .home-icon-container {
        top: 1rem;
        left: 1rem;
    }
    
    .home-icon {
        width: 45px;
        height: 45px;
        font-size: 1.425rem;
    }
    
    .n400-header,
    .page-header {
        padding-top: 3.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .related-pages {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .related-pages h2 {
        font-size: 1.625rem;
    }
    
    .related-card {
        padding: 1.5rem;
    }
    
    .related-card[href*="case-tracking"]::after {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.725rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .n400-header {
        padding: 1.5rem;
    }
    
    .n400-header h1 {
        font-size: 1.925rem;
    }
    
    .video-container {
        padding-bottom: 75%; /* Adjust for mobile */
    }
}
