/* 
 * Hepeco Digital - Professional Website Styles
 * Enhanced with security features, modern design, and responsive layout
 * Mobile Menu FIXED Version
 */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --primary-transparent: rgba(37, 99, 235, 0.1);
    
    /* Secondary Colors */
    --secondary: #7c3aed;
    --secondary-dark: #6d28d9;
    --secondary-light: #a78bfa;
    
    /* Accent Colors */
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-light: #34d399;
    
    /* Neutral Colors */
    --dark: #1f2937;
    --dark-light: #374151;
    --light: #f9fafb;
    --light-gray: #e5e7eb;
    --gray: #6b7280;
    --white: #ffffff;
    
    /* Brand Colors */
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    --mpamba: #00a859;
    --airtel: #ff0000;
    --bank: #4338ca;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.1), 0 3px 6px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Typography */
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
}

/* Base HTML */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #f8fafc 0%, var(--white) 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space);
    color: var(--dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--space);
    color: var(--dark-light);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space);
    position: relative;
}

.section-title .highlight {
    color: var(--primary);
    position: relative;
}

.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-transparent);
    z-index: -1;
    border-radius: var(--radius);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* Security Badge */
.security-badge {
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--success);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideInRight 0.3s var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.security-badge i {
    font-size: 14px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--whatsapp);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    border: 2px solid transparent;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
    background: var(--whatsapp-dark);
}

.whatsapp-btn:active {
    transform: translateY(-1px);
}

.whatsapp-btn i {
    font-size: 1.5rem;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Security Alerts & Notices */
.security-alert {
    background: #ffebee;
    border-left: 4px solid var(--error);
    padding: 12px 16px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius);
    color: var(--dark);
    animation: fadeIn 0.3s var(--transition);
}

.security-notice {
    background: #e3f2fd;
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius);
    color: var(--dark);
}

.security-warning {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    color: #856404;
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hijack-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--warning);
    color: var(--white);
    padding: 16px;
    z-index: 10001;
    text-align: center;
    animation: slideDown 0.3s var(--transition);
    box-shadow: var(--shadow);
}

.fraud-warning {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border: 2px solid var(--error);
    border-radius: var(--radius-md);
    padding: 24px;
    z-index: 10002;
    box-shadow: var(--shadow-2xl);
    max-width: 400px;
    width: 90%;
    animation: modalFadeIn 0.3s var(--transition);
}

.warning-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

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

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ============================================
   MOBILE MENU FIXED SECTION
   ============================================ */

/* Navigation */
.navbar {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    position: relative;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    z-index: 101;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-highlight {
    color: var(--primary);
    font-weight: 700;
}

.security-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--success);
    color: var(--white);
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    transition: var(--transition);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    transition: all var(--transition);
    font-weight: 500;
    white-space: nowrap;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: var(--light);
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: var(--shadow);
}

.nav-link i {
    font-size: 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.verified-call {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
    border: 2px solid transparent;
}

.verified-call:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.verified-badge {
    color: var(--success);
    font-size: 12px;
    margin-left: 5px;
}

.verified-call .verified-badge {
    color: var(--white);
    opacity: 0.9;
}

/* ============================================
   MOBILE MENU TOGGLE - FIXED
   ============================================ */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 101;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.menu-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active .menu-icon:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .menu-icon:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-icon:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   MOBILE MENU RESPONSIVE STYLES - FIXED
   ============================================ */

@media (max-width: 768px) {
    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }
    
    /* Hide desktop navigation menu initially */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        transition: height 0.3s ease, opacity 0.3s ease;
        box-shadow: var(--shadow-lg);
        z-index: 99;
        overflow: hidden;
        justify-content: flex-start;
        align-items: stretch;
        opacity: 0;
        pointer-events: none;
        gap: 0;
    }
    
    /* Show mobile menu when active */
    .nav-menu.active {
        height: calc(100vh - 70px);
        padding: 20px;
        overflow-y: auto;
        opacity: 1;
        pointer-events: all;
    }
    
    /* Style mobile menu links */
    .nav-link {
        padding: 15px 20px;
        font-size: 1.1rem;
        justify-content: flex-start;
        border-radius: var(--radius);
        margin-bottom: 10px;
        width: 100%;
        border: 1px solid var(--light-gray);
        text-align: left;
    }
    
    .nav-link:hover {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }
    
    .nav-link.active {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }
    
    .nav-link i {
        width: 24px;
        text-align: center;
    }
    
    /* Hide call button on mobile */
    .nav-actions {
        display: none;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Adjust security tag on mobile */
    .security-tag {
        display: none;
    }
}

/* ============================================
   END MOBILE MENU FIX
   ============================================ */

/* Hero Section */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary-transparent);
    z-index: -1;
    border-radius: var(--radius);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    text-align: center;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.trust-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    min-width: 150px;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge i {
    color: var(--accent);
    font-size: 1rem;
}

/* Enhanced Badge with Security */
.badge.security-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Hero Image with Security */
.hero-image {
    display: flex;
    justify-content: center;
    width: 100%;
    perspective: 1000px;
}

.mockup {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--light-gray);
    transform: rotateY(-5deg);
    transition: var(--transition);
}

.mockup:hover {
    transform: rotateY(0) translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 20px;
}

.security-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
}

.dots span:first-child {
    background: #ff5f57;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:last-child {
    background: #28ca42;
}

.mockup-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat {
    text-align: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat:hover {
    transform: scale(1.05);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.2;
}

/* Services */
.services {
    padding: 80px 0;
    background: var(--white);
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    width: 100%;
}

.service-card {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card > p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 0;
}

.service-card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-card li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

.service-card li i {
    color: var(--accent);
    font-size: 0.9rem;
}

.service-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1rem;
    margin-top: auto;
}

.service-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Expertise Section */
.expertise {
    padding: 80px 0;
    background: #f8fafc;
    width: 100%;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.expertise-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.expertise-card > p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 0;
}

.expertise-list {
    list-style: none;
    margin-top: 1.5rem;
    flex-grow: 1;
}

.expertise-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

.expertise-list li i {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: var(--white);
    width: 100%;
    position: relative;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    position: relative;
    width: 100%;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--light-gray);
    z-index: 1;
}

@media (max-width: 768px) {
    .process-steps::before {
        display: none;
    }
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--light-gray);
    width: 100%;
    transition: var(--transition);
}

.step:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.step p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Payment Section */
.payment-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    width: 100%;
}

.payment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 3rem;
    width: 100%;
}

/* Enhanced Quote Box */
.quote-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: fit-content;
}

.quote-box.enhanced {
    border: 2px solid var(--primary);
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 10px;
}

.save-quote-btn {
    background: var(--light);
    border: 2px solid var(--light-gray);
    color: var(--gray);
    padding: 8px 15px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

.save-quote-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.quote-box h3, .payment-methods h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 1.3rem;
}

.quote-box h3 i {
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group select, .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: all var(--transition);
    background: var(--white);
}

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

/* Phone Validation */
input.valid {
    border-color: var(--success) !important;
}

input.invalid {
    border-color: var(--error) !important;
}

.input-hint {
    font-size: 12px;
    color: var(--gray);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.amount-lock {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gray);
    pointer-events: none;
}

.quote-summary {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin: 2rem 0;
    width: 100%;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    width: 100%;
}

.quote-item:last-child {
    border-bottom: none;
}

.quote-item.security-fee {
    color: var(--success);
    font-weight: 500;
}

.quote-item.total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid var(--light-gray);
}

.quote-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

/* Payment Methods */
.payment-methods {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: fit-content;
}

.payment-notice {
    margin: 1rem 0 2rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 2rem;
    width: 100%;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    gap: 15px;
    width: 100%;
}

.payment-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.payment-option.active {
    border-color: var(--primary);
    background: var(--primary-transparent);
}

.payment-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.payment-option[data-method="mpamba"] .payment-logo {
    background: var(--mpamba);
}

.payment-option[data-method="airtel"] .payment-logo {
    background: var(--airtel);
}

.payment-option[data-method="bank"] .payment-logo {
    background: var(--bank);
}

.payment-info {
    flex: 1;
    min-width: 0;
}

.payment-info h4 {
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 1rem;
}

.payment-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.payment-security-badge {
    display: inline-block;
    background: var(--success);
    color: var(--white);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.payment-check {
    color: var(--primary);
    opacity: 0;
    transition: var(--transition);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.payment-option.active .payment-check {
    opacity: 1;
}

/* Payment Dashboard */
.payment-dashboard {
    background: var(--light);
    border-radius: var(--radius);
    padding: 15px;
    margin: 20px 0;
    border: 1px solid var(--light-gray);
    width: 100%;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-status {
    background: var(--success);
    color: var(--white);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.dashboard-status.active {
    background: var(--success);
}

.dashboard-status.pending {
    background: var(--warning);
}

.dashboard-content {
    display: grid;
    gap: 10px;
}

.dashboard-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dashboard-item:last-child {
    border-bottom: none;
}

.status-badge {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.verified {
    background: #d4edda;
    color: #155724;
}

/* Enhanced Payment Instructions */
.payment-instructions {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin: 2rem 0;
    width: 100%;
}

.payment-instructions h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.instruction-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.instructions {
    line-height: 1.8;
    color: var(--dark);
    flex: 1;
}

.instructions.hidden {
    display: none;
}

.payment-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.invoice-btn {
    background: var(--light);
    border: 2px solid var(--light-gray);
    color: var(--gray);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
    font-size: 1rem;
    font-family: var(--font-sans);
}

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

/* Payment Status */
.payment-status {
    margin-top: 1.5rem;
    width: 100%;
}

#paymentStatus {
    margin-top: 1rem;
    padding: 15px;
    border-radius: var(--radius);
    text-align: left;
    font-weight: 500;
    width: 100%;
}

#paymentStatus.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

#paymentStatus.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

#paymentStatus.verifying {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

#paymentStatus.security-alert {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}

/* Verification States */
.verification-loading,
.verification-success,
.verification-error,
.verification-failed {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius);
    margin: 10px 0;
    width: 100%;
}

.verification-loading {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.verification-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.verification-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

.verification-failed {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Trust Section */
.trust {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    width: 100%;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.trust-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    width: 100%;
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.trust-item i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.trust-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.trust-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Client Portal Section */
.portal-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.portal-section .section-title {
    color: var(--white);
}

.portal-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.portal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
    width: 100%;
}

.portal-feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.portal-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.3);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--white);
}

.portal-feature h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.portal-feature p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.portal-access {
    background: var(--white);
    color: var(--dark);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-top: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.portal-access h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 1.3rem;
}

.access-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.access-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.access-form input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Client Portal Display */
.client-portal {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    margin: 20px 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.portal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 20px;
}

.portal-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.2rem;
}

.portal-content {
    padding: 30px;
}

.portal-credentials {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.portal-features-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.portal-features-container .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    min-width: 100px;
}

.portal-features-container .feature i {
    font-size: 24px;
    color: var(--primary);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
    width: 100%;
}

.contact-method {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius-md);
    background: var(--light);
    border: 2px solid transparent;
    transition: all var(--transition);
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-method:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    position: relative;
}

.contact-icon.verified::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--success);
    border-radius: 50%;
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f00c';
    font-size: 10px;
    color: var(--white);
}

.whatsapp {
    background: var(--whatsapp);
}

.call {
    background: var(--primary);
}

.email {
    background: var(--secondary);
}

.contact-method h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.3rem;
}

.contact-method > p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 2px solid var(--light-gray);
    transition: all var(--transition);
    font-size: 1rem;
}

.contact-link.verified-link {
    border-color: var(--success);
    color: var(--success);
    font-weight: 600;
}

.contact-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.contact-features, .contact-times, .response-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.feature, .time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.feature i, .time i {
    color: var(--accent);
}

.response-info {
    background: rgba(16, 185, 129, 0.1);
    padding: 10px;
    border-radius: var(--radius);
    color: var(--accent);
    font-size: 0.9rem;
}

/* Quick Form */
.quick-form {
    background: var(--light);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-top: 3rem;
    position: relative;
    width: 100%;
}

.quick-form h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 1rem;
    width: 100%;
}

.form-row input, .form-row select {
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.form-row input:focus, .form-row select:focus {
    outline: none;
    border-color: var(--primary);
}

.quick-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    min-height: 120px;
    resize: vertical;
    transition: var(--transition);
}

.quick-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

/* Alert Styles */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--radius);
    z-index: 10000;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s var(--transition);
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: var(--success);
    color: var(--white);
}

.alert-warning {
    background: var(--warning);
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Confirmation & Notification Messages */
.confirmation-message,
.quote-notification,
.payment-notification {
    position: fixed;
    background: var(--white);
    border-left: 4px solid var(--success);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    animation: slideInRight 0.3s var(--transition);
    max-width: 400px;
}

.confirmation-message {
    top: 20px;
    right: 20px;
}

.quote-notification {
    bottom: 20px;
    right: 20px;
}

.payment-notification {
    bottom: 20px;
    left: 20px;
    animation: slideInLeft 0.3s var(--transition);
}

.payment-notification.success {
    border-left-color: var(--success);
}

.activity-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning);
    color: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInOut 5s var(--transition);
    max-width: 90%;
    text-align: center;
}

@keyframes fadeInOut {
    0%, 90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Tooltips */
.quote-tooltip {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--primary);
    color: var(--white);
    padding: 10px 15px;
    border-radius: var(--radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s var(--transition);
    z-index: 1;
    max-width: 300px;
}

.quote-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 20px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    transform: rotate(45deg);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
    width: 100%;
}

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

.footer-logo .logo {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.security-certification {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
}

.footer-contact h4, .footer-payments h4, .footer-quick-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-contact a, .footer-quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.footer-contact a.verified {
    color: var(--success);
    font-weight: 500;
}

.footer-contact a:hover, .footer-quick-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-quick-links {
    display: flex;
    flex-direction: column;
}

.footer-quick-links a {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-quick-links a:last-child {
    border-bottom: none;
}

.payment-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--radius);
    min-width: 80px;
    position: relative;
}

.payment-icon.verified::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
    color: var(--success);
    font-size: 10px;
}

.payment-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.payment-icon span {
    font-size: 0.9rem;
    color: #d1d5db;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-bottom .security-notice {
    background: transparent;
    border-left: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.9rem;
    width: 100%;
}

/* Invoice Styles */
.invoice {
    font-family: var(--font-sans);
    width: 100%;
}

.invoice-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-gray);
}

.invoice-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.invoice-details {
    margin-bottom: 30px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--light-gray);
    flex-wrap: wrap;
    gap: 5px;
}

.invoice-items {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95rem;
}

.invoice-items th,
.invoice-items td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.invoice-items th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

.invoice-total {
    margin-top: 30px;
    text-align: right;
    width: 100%;
}

.total-row {
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius);
    display: inline-flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.invoice-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    backdrop-filter: blur(2px);
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    padding: 0;
    position: relative;
    box-shadow: var(--shadow-2xl);
    animation: modalFadeIn 0.3s var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    margin: 0;
    font-size: 1.3rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.close-modal:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
    text-align: center;
}

#qrcode {
    margin: 0 auto 2rem;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    display: inline-block;
    border: 1px solid var(--light-gray);
    max-width: 100%;
}

.payment-details {
    background: var(--light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    text-align: left;
}

.payment-details p {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.modal-note {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    flex-wrap: wrap;
    text-align: center;
}

/* Session Timeout */
.session-timeout {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s var(--transition);
    padding: 20px;
}

.timeout-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-2xl);
}

.timeout-content h4 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.3rem;
}

.timeout-content button {
    margin-top: 20px;
    width: 100%;
}

/* Highlight Animation */
.highlight-section {
    animation: highlightPulse 2s var(--transition);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3);
    border-radius: var(--radius);
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}

/* Security Pulse Animation */
.security-pulse {
    animation: securityPulse 2s infinite;
}

@keyframes securityPulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Additional Responsive Fixes */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .badge {
        min-width: 140px;
    }
    
    .payment-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-actions, .payment-actions, .quote-actions, .invoice-actions {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn {
        padding: 10px 15px;
    }
    
    .whatsapp-btn i {
        margin: 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .trust-badges .badge {
        min-width: 100%;
        flex: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary, .btn-secondary,
    .service-btn, .nav-link,
    .payment-option {
        min-height: 44px;
    }
    
    input, select, textarea, button {
        font-size: 16px !important;
    }
    
    .menu-toggle {
        width: 44px;
        height: 44px;
    }
    
    .close-modal {
        width: 44px;
        height: 44px;
    }
    
    .nav-link {
        padding: 16px 20px;
    }
}

/* Print Styles for Invoice */
@media print {
    body * {
        visibility: hidden;
    }
    
    .invoice, .invoice * {
        visibility: visible;
    }
    
    .invoice {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
    }
    
    .invoice-actions {
        display: none;
    }
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Fix for overflow issues */
* {
    max-width: 100%;
}

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

/* Ensure proper scrolling */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    }
