/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #22d3ee;
    --secondary: #64748b;
    --success: #059669;
    --error: #dc2626;
    --warning: #d97706;
    --background: #0f172a;
    --surface: rgba(30, 41, 59, 0.8);
    --text: #f1f5f9;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --border: rgba(6, 182, 212, 0.2);
    --border-light: rgba(6, 182, 212, 0.1);
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4), 0 10px 10px -5px rgba(0,0,0,0.2);
    --gradient-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-surface: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    position: relative;
}

/* Hard-disable any legacy terms modal overlay so it can't block clicks */
#termsModal {
    display: none !important;
    pointer-events: none !important;
}

/* ============================================
   EXTRACTED INLINE STYLES FROM HTML
   ============================================ */

/* Logo gradient text */
.logo h1 {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero description */
.hero-description {
    color: #ffffff;
    font-weight: 500;
}

/* Card description */
.card-description {
    color: #ffffff;
    font-weight: 500;
}

/* Services list */
.services-list {
    color: #ffffff;
}

.services-list li {
    color: #ffffff;
}

/* Icon inline styles */
[data-icon] {
    display: inline-block;
    vertical-align: middle;
}

[data-icon].icon-16 {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

[data-icon].icon-18 {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
}

[data-icon].icon-48 {
    width: 48px;
    height: 48px;
}

/* Feature icon container */
.feature-icon-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-icon-container h3 {
    margin: 0;
}

/* Modern feature styles */
.modern-feature strong {
    display: block;
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.modern-feature span {
    font-size: 0.95rem;
    color: #1e293b;
}

/* Grid spacing */
.grid-spacing {
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Features grid */
.features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

/* Button full width */
.btn-full-width {
    width: 100%;
}

/* Animation delays */
.animation-delay-1 {
    animation-delay: 0.1s;
}

.animation-delay-2 {
    animation-delay: 0.2s;
}

.animation-delay-3 {
    animation-delay: 0.3s;
}

/* Email input black text */
input[type="email"] {
    color: #000000 !important;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background: #000;
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

/* Modern animated background for main pages */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #334155 60%, #1e293b 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    z-index: -2;
    opacity: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Header */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #06b6d4;
    transition: all 0.3s ease;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #06b6d4);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
    letter-spacing: -0.025em;
}

.logo p {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    position: relative;
}

.nav-link:hover {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.nav-link.active {
    color: white;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.5);
}

/* Main content */
.main {
    min-height: calc(100vh - 140px);
}

.hero {
    padding: 4rem 0 3rem;
    background: transparent;
    position: relative;
}

.hero-content {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.hero-description {
    font-size: 1.375rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.6;
}

/* Grid layout */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Cards */
.card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
    color: white;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    pointer-events: none;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(6, 182, 212, 0.5);
}

.card:hover::after {
    opacity: 1;
}

.card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.card-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Services list */
.services-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.services-list li {
    padding: 1rem 0;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list li:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.feature:hover {
    background: var(--surface);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.feature strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.feature span {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Forms */
.contact-form,
.status-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    font-weight: 500;
    pointer-events: auto;
    cursor: text;
}

.form-group select {
    cursor: pointer;
    pointer-events: auto;
}

.form-group select option {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.5rem;
}

/* Date input styling for dark theme */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2), 0 4px 12px rgba(6, 182, 212, 0.3);
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-2px);
}

/* Global placeholder styling for all inputs and textareas */
input::placeholder,
textarea::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder {
    color: #6b7280 !important;
    font-weight: 400;
    opacity: 1 !important;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* File upload */
.file-label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
}

.file-label span {
    font-weight: 500;
    color: #e2e8f0;
}

.file-label input[type="file"] {
    padding: 0.5rem;
    border: 1px dashed rgba(6, 182, 212, 0.3);
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
}

.file-list {
    font-size: 0.875rem;
    color: #94a3b8;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.file-hint {
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.6);
    background: linear-gradient(135deg, #22d3ee 0%, #60a5fa 100%);
}

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

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Form status */
.form-status {
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-error {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

.status-sending {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Status checker */
.status-checker {
    max-width: 600px;
    margin: 0 auto;
}

.case-status {
    margin-top: 1rem;
}

.case-details {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-left: 4px solid #06b6d4;
}

.case-details h4 {
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.case-updates {
    margin-top: 1rem;
}

.update-item {
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-left: 3px solid #06b6d4;
}

.update-message {
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.update-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between; /* FIXED: space-between */
    gap: 1rem;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 3px solid #06b6d4;
    padding: 4rem 0 2rem;
    color: var(--text-light);
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: #06b6d4;
    transform: translateX(5px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-contact-item svg,
.footer-contact-item span[role="img"] {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .card h3 {
        font-size: 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.875rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Loading animation */
.btn-loading {
    display: none;
}

.btn-loading::after {
    content: '';
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Login page specific styles */
.login-features {
    background: var(--background);
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
}

.login-features h4 {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
}

.login-note {
    margin-top: 2rem;
    font-size: 0.875rem;
    text-align: center;
    color: var(--text-light);
    padding: 1rem;
    background: var(--background);
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
}

.login-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-note a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Print styles */
@media print {
    .header, .footer, .status-checker {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}