@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800&display=swap');

:root {
    --primary: #1e3a8a;
    /* Deep Blue */
    --primary-light: #2563eb;
    /* Vivid Blue */
    --accent: #0ea5e9;
    /* Sky Blue */
    --success: #16a34a;
    /* Medical Green */
    --bg-light: #f0f9ff;
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    /* Remove tap highlight on mobile */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    background-image:
        radial-gradient(at 0% 0%, hsla(215, 98%, 61%, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(256, 100%, 61%, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: #1f2937;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid white;
    box-shadow: var(--shadow-soft);
    border-radius: 1.5rem;
    /* Larger border radius for modern feel */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

/* Typography & Effects */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-stroke {
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.05);
    color: transparent;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-soft {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.animate-pulse-soft {
    animation: pulse-soft 2s infinite;
}

/* Fee Blur Logic */
.fee-blurred {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.6s ease;
}

.fee-revealed {
    filter: blur(0);
    pointer-events: auto;
    user-select: auto;
}

/* Mobile Optimizations */
input,
select,
textarea {
    font-size: 16px !important;
    /* Prevents iOS zoom on focus */
}

/* FAQ Animation */
details>summary {
    list-style: none;
}

details>summary::-webkit-details-marker {
    display: none;
}

details[open] summary~* {
    animation: sweep 0.3s ease-in-out;
}

@keyframes sweep {
    0% {
        opacity: 0;
        transform: translateY(-10px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Form Styles */
.form-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Long Form Content Enhancements */
.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #4b5563;
}

.content-section h2 {
    color: #1e3a8a;
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: #1e40af;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Data Tables */
.prose-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.prose-table th {
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #dbeafe;
}

.prose-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: top;
}

.prose-table tr:last-child td {
    border-bottom: none;
}

/* GEO Direct Answer Block */
.direct-answer-box {
    background: linear-gradient(to right, #f0f9ff, #e0f2fe);
    border-left: 4px solid #0284c7;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 1rem 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.direct-answer-box h4 {
    color: #0c4a6e;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.direct-answer-box p {
    color: #0369a1;
    margin-bottom: 0 !important;
    font-weight: 500;
    line-height: 1.6;
}