/**
 * Merge PDF Workspace - Core Design System & Base CSS
 * Modern, High-Performance, Mobile-First App Experience
 */

:root {
    /* Canonical Design Tokens */
    --app-bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-subtle: #F1F5F9;
    --surface-dark: #0B0F19;

    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --text-light: #FFFFFF;

    --border-default: #E2E8F0;
    --border-subtle: #F1F5F9;
    --border-strong: #CBD5E1;

    --accent: #0F766E;
    --accent-hover: #115E59;
    --accent-soft: #F0FDFA;
    --accent-muted: #CCFBF1;
    --focus-ring: rgba(15, 118, 110, 0.25);

    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --danger-soft: #FEE2E2;

    --radius-control: 8px;
    --radius-card: 14px;
    --radius-dialog: 20px;
    --radius-pill: 9999px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-elevated: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-dock: 0 12px 36px rgba(0, 0, 0, 0.32);

    --motion-fast: 140ms cubic-bezier(0.16, 1, 0.3, 1);
    --motion-standard: 200ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Backwards-Compatibility Aliases */
    --bg-primary: var(--app-bg);
    --bg-card: var(--surface);
    --bg-surface: var(--surface);
    --bg-surface-elevated: rgba(255, 255, 255, 0.92);
    --bg-cream: var(--app-bg);

    --primary: var(--text-primary);
    --primary-hover: #1E293B;
    --primary-green: var(--accent);
    --primary-green-hover: var(--accent-hover);
    --primary-green-light: var(--accent-soft);

    --accent-subtle: var(--accent-soft);
    --accent-orange: #E38258;
    --accent-orange-hover: #D27146;
    --accent-amber: var(--warning);
    --accent-blue: #2563EB;
    --accent-purple: #8B5CF6;

    --text-dark: var(--text-primary);
    --text-muted: var(--text-secondary);
    --text-subtle: var(--text-tertiary);

    --border: var(--border-default);
    --border-focus: var(--focus-ring);

    --radius-xs: 6px;
    --radius-sm: var(--radius-control);
    --radius-md: var(--radius-card);
    --radius-lg: var(--radius-dialog);
    --radius-xl: 28px;

    --border-radius-sm: var(--radius-control);
    --border-radius-md: var(--radius-card);
    --border-radius-lg: var(--radius-dialog);
    --border-radius-pill: var(--radius-pill);

    --shadow-sm: var(--shadow-card);
    --shadow-md: var(--shadow-elevated);
    --shadow-lg: 0 20px 48px -10px rgba(15, 23, 42, 0.14);
    --shadow-glow: 0 0 24px rgba(15, 118, 110, 0.2);

    --transition-fast: var(--motion-fast);
    --transition-base: var(--motion-standard);
    --transition-spring: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    --text-scale: 1;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    accent-color: var(--accent);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100%;
    overflow-x: clip;
    width: 100%;
    position: relative;
    touch-action: manipulation;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

::selection {
    background: rgba(15, 118, 110, 0.18);
    color: var(--text-dark);
}

/* Custom Scrollbar */
@media (pointer: fine) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    ::-webkit-scrollbar-track {
        background: transparent;
    }
    ::-webkit-scrollbar-thumb {
        background: rgba(15, 23, 42, 0.15);
        border-radius: var(--radius-pill);
    }
    ::-webkit-scrollbar-thumb:hover {
        background: rgba(15, 23, 42, 0.25);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    overflow-wrap: break-word;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
}

/* Layout Container */
.container {
    width: min(100% - 32px, 1200px);
    margin-inline: auto;
    padding: 0;
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, 1200px);
    }
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.65rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: calc(0.95rem * var(--text-scale, 1));
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    gap: 0.5rem;
    white-space: nowrap;
    user-select: none;
    touch-action: manipulation;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #0F766E, #115E59);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #115E59, #134E4A);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.38);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background-color: #F1F5F9;
    border-color: rgba(15, 23, 42, 0.15);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    background-color: rgba(15, 23, 42, 0.05);
    border-color: var(--primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: calc(0.85rem * var(--text-scale, 1));
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Header & Navigation (Glassmorphic App Header)
   ========================================================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: rgba(75, 75, 75, 0.15);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 750;
    font-size: calc(1.15rem * var(--text-scale, 1));
    color: var(--text-dark);
    letter-spacing: -0.025em;
    transition: transform var(--transition-fast);
}

.nav-brand:hover {
    transform: translateY(-1px);
}

.nav-brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--radius-xs);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    font-weight: 550;
    font-size: calc(0.92rem * var(--text-scale, 1));
    color: var(--text-muted);
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-pill);
    transition: all var(--transition-fast);
}

.nav-links li a:hover {
    color: var(--text-dark);
    background-color: rgba(15, 23, 42, 0.05);
}

/* Mobile Menu Button - Sleek Frosted Pill */
#mobileMenuBtn {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-dark);
    border: 1px solid var(--border);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

#mobileMenuBtn::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 9px;
    background: linear-gradient(
        to bottom,
        currentColor 2px,
        transparent 2px,
        transparent 3.5px,
        currentColor 3.5px,
        currentColor 5.5px,
        transparent 5.5px,
        transparent 7px,
        currentColor 7px
    );
    background-size: 100% 100%;
}

#mobileMenuBtn:active {
    transform: scale(0.96);
    background: rgba(15, 23, 42, 0.1);
}

@media (max-width: 768px) {
    .navbar {
        padding: max(0.65rem, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right)) 0.65rem max(0.85rem, env(safe-area-inset-left));
        margin-bottom: 1rem;
    }
    .nav-links {
        display: none !important;
    }
    #mobileMenuBtn {
        display: inline-flex !important;
    }
}

/* ==========================================================================
   Hero & Uploader Section
   ========================================================================== */

.hero {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 0 2rem 0;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    margin-bottom: 0.75rem;
}

.hero-content p {
    font-size: calc(1.05rem * var(--text-scale, 1));
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.65;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

/* Uploader Card - Clean App Surface */
.uploader-card {
    background: var(--surface);
    width: 100%;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-default);
    padding: 2.75rem 2rem;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.uploader-card h2 {
    font-size: calc(1.5rem * var(--text-scale, 1));
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.uploader-card p#uploaderDesc {
    font-size: calc(0.92rem * var(--text-scale, 1));
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

/* Dropzone Area - Clean Surface */
.uploader-area {
    border: 2px dashed var(--border-strong);
    border-radius: 12px;
    background: var(--surface-subtle);
    padding: 2.75rem 1.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.uploader-area:hover,
.uploader-area.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.12);
}

.uploader-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    background: var(--accent-soft);
    border: 1px solid rgba(15, 118, 110, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08);
}

.uploader-area:hover .uploader-icon {
    transform: translateY(-2px);
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.28);
}

.uploader-icon svg {
    width: 28px;
    height: 28px;
}

.uploader-area h3 {
    font-size: calc(1.2rem * var(--text-scale, 1));
    margin-bottom: 0.35rem;
}

.uploader-area p {
    font-size: calc(0.88rem * var(--text-scale, 1));
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Choose Button */
#uploaderChooseBtn {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-control);
    letter-spacing: -0.01em;
}

.file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero {
        padding: 0.5rem 0 1.25rem 0;
    }
    .uploader-card {
        padding: 1.75rem 1rem;
        border-radius: var(--radius-lg);
    }
    .uploader-area {
        padding: 2rem 1rem;
    }
    .uploader-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 1rem;
    }
    .uploader-icon svg {
        width: 24px;
        height: 24px;
    }
    #uploaderChooseBtn {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }
}

/* ==========================================================================
   Loading State Overlay & Progress Bar
   ========================================================================== */

.merge-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    padding: 2rem;
    box-sizing: border-box;
}

.spinner-loader {
    width: 48px;
    height: 48px;
    border: 3.5px solid rgba(15, 23, 42, 0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

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

.loading-progress-container {
    width: 100%;
    max-width: 360px;
    height: 8px;
    background-color: rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin: 1.25rem auto 0.65rem auto;
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0F766E, #14B8A6);
    border-radius: var(--radius-pill);
    transition: width 0.2s ease;
}

.loading-progress-meta {
    width: 100%;
    max-width: 360px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Tools Directory (Categorized / Modern Segmented Hub)
   ========================================================================== */

.tools-directory-banner {
    background: var(--primary) !important;
    border-radius: var(--radius-xl) !important;
    padding: 2.25rem 2rem !important;
    margin: 2.5rem auto !important;
    width: 100% !important;
    max-width: 960px !important;
    box-sizing: border-box !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.tools-directory-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.tools-pills-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.65rem 0.75rem !important;
    max-width: 1060px !important;
    margin: 0 auto !important;
    position: relative;
    z-index: 1;
}

.tool-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0.55rem 1.15rem !important;
    border-radius: var(--radius-pill) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    font-size: 0.88rem !important;
    font-weight: 550 !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: all var(--transition-fast) !important;
    touch-action: manipulation;
}

.tool-pill-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) scale(1.02) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.tool-pill-btn:active {
    transform: scale(0.97) !important;
}

@media (max-width: 768px) {
    .tools-directory-banner {
        padding: 1.5rem 1rem !important;
        margin: 1.75rem 0 !important;
        border-radius: var(--radius-lg) !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .tools-pills-container {
        gap: 0.5rem !important;
    }
    .tool-pill-btn {
        padding: 0.45rem 0.85rem !important;
        font-size: 0.8rem !important;
    }
}

/* ==========================================================================
   SEO & Editorial Content Layout
   ========================================================================== */

.seo-content {
    width: 100%;
    max-width: 860px;
    margin: 2.5rem auto 3.5rem auto;
    color: #334155;
    line-height: 1.75;
}

.seo-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.seo-content h3 {
    font-size: clamp(1.3rem, 2.8vw, 1.75rem);
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
    color: var(--text-dark);
}

.seo-content p {
    font-size: calc(1.02rem * var(--text-scale, 1));
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Info, Legal & Support Pages
   ========================================================================== */

.info-page-container {
    width: 100%;
    max-width: 860px;
    margin: 1rem auto 3.5rem auto;
    text-align: left;
}

.info-hero {
    text-align: left;
    padding: 0.5rem 0 1.75rem 0;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.info-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    background: rgba(15, 118, 110, 0.08);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 650;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(15, 118, 110, 0.2);
}

.info-hero h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.info-hero-subtitle {
    font-size: calc(1.08rem * var(--text-scale, 1));
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2.25rem;
    margin-bottom: 2.5rem;
    color: #334155;
    line-height: 1.75;
}

.info-card h2 {
    font-size: calc(1.6rem * var(--text-scale, 1));
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    color: var(--text-dark);
}

.info-card h2:first-child {
    margin-top: 0;
}

.info-card p {
    font-size: calc(1.02rem * var(--text-scale, 1));
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.info-card ul, .info-card ol {
    margin: 1rem 0 1.75rem 1.5rem;
    color: #334155;
    line-height: 1.75;
}

.info-card li {
    margin-bottom: 0.5rem;
}

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 820px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    margin-top: 1rem;
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pill);
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Format Matrix Cards */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.format-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-fast);
}

.format-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(15, 118, 110, 0.35);
}

.format-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Contact Form & Form Controls */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-dark);
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}


/* FAQ Grid */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    padding: 1.5rem 1.75rem;
    transition: all var(--transition-fast);
}

.faq-card:hover {
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.65rem;
}

.faq-question svg {
    color: var(--accent);
    flex-shrink: 0;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
    padding-left: 2rem;
}

@media (max-width: 768px) {
    .info-card, .contact-info-card {
        padding: 1.5rem 1.25rem;
    }
    .faq-card {
        padding: 1.25rem;
    }
    .faq-answer {
        padding-left: 0;
        margin-top: 0.5rem;
    }
}

/* Sitemap Directory Layout */
.sitemap-section {
    margin-bottom: 2.5rem;
}

.sitemap-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sitemap-section-title svg {
    color: var(--accent);
    flex-shrink: 0;
}

.sitemap-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

.sitemap-link-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-fast);
}

.sitemap-link-item:hover {
    background: #FFFFFF;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.12);
}

.sitemap-link-item:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .sitemap-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Unified Footer Area
   ========================================================================== */

.unified-footer-wrapper {
    margin-top: 4rem;
    margin-bottom: 2rem;
    width: 100%;
}

.unified-footer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-sm);
}

.unified-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

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

.footer-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 750;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.footer-nav-title svg {
    color: var(--accent);
}

.footer-nav-link {
    font-size: 0.92rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer-nav-link:hover {
    color: var(--text-dark);
    transform: translateX(3px);
}

.unified-footer-bottom {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-subtle);
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .unified-footer-wrapper {
        margin-top: 2.5rem;
    }
    .unified-footer-card {
        padding: 2rem 1.25rem;
        border-radius: var(--radius-lg);
    }
    .unified-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Mobile Off-Canvas Drawer (#sidePanel)
   ========================================================================== */

.side-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-panel-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.side-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 86vw);
    height: 100svh;
    background: var(--bg-card);
    z-index: 9999;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}

.side-panel.active {
    transform: translateX(0);
}

.side-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.side-panel-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 750;
    color: var(--text-dark);
}

.side-panel-close {
    background: rgba(15, 23, 42, 0.05);
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.side-panel-close:hover {
    background: rgba(15, 23, 42, 0.1);
}

.side-panel-nav {
    flex: 1;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.side-panel-section-title {
    font-size: 0.72rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    margin-bottom: 0.5rem;
}

.side-nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 550;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.side-nav-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.side-nav-item:hover {
    background: var(--bg-primary);
    color: var(--accent);
}

.side-panel-footer {
    padding: 1.25rem 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--bg-primary);
}

.side-panel-cta {
    width: 100%;
}

/* ==========================================================================
   Toast Notification System (Overlays Navbar)
   ========================================================================== */

.toast-container {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 100005;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    max-width: min(480px, calc(100vw - 32px));
    width: auto;
}

.toast-item {
    background: rgba(15, 23, 42, 0.94);
    color: #FFFFFF;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.35rem;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    white-space: nowrap;
}

.toast-item.toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-icon-wrap {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon-success { background: #0F766E; color: white; }
.toast-icon-error { background: #EF4444; color: white; }
.toast-icon-warning { background: #F59E0B; color: white; }
.toast-icon-info { background: #3B82F6; color: white; }

.toast-text {
    flex: 1;
    line-height: 1.4;
    text-overflow: ellipsis;
    overflow: hidden;
}

@media (max-width: 768px) {
    .toast-container {
        top: max(8px, env(safe-area-inset-top));
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translateX(-50%);
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }
    .toast-item {
        width: 100%;
        justify-content: center;
        white-space: normal;
        padding: 0.6rem 1rem;
        font-size: 0.84rem;
    }
}
