/* CRITICAL MOBILE INPUT FIXES - Add this at the VERY TOP of your CSS file */

/* Fix for ALL mobile devices and small screens */
@media (max-width: 768px) {
    
    /* Ensure mobile menu doesn't block form */
    .mobile-menu,
    .mobile-nav-overlay {
        pointer-events: none;
    }
    
    .mobile-menu.active,
    .mobile-nav-overlay.active {
        pointer-events: auto;
    }
    
    /* Force form inputs to work on ALL mobile devices */
    .contact-form,
    .contact-form *,
    .form-group,
    .form-group * {
        pointer-events: auto !important;
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
        -webkit-touch-callout: default !important;
        touch-action: manipulation !important;
    }
    
    /* Specific input field fixes */
    .form-group input,
    .form-group textarea,
    .form-group select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* Prevent zoom */
        -webkit-user-select: text !important;
        -moz-user-select: text !important;
        -ms-user-select: text !important;
        user-select: text !important;
        -webkit-touch-callout: default !important;
        touch-action: manipulation !important;
        pointer-events: auto !important;
        cursor: text !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        border-radius: 8px !important;
        padding: 14px 16px !important;
        min-height: 48px !important; /* Better touch target */
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 1000 !important; /* Ensure inputs are on top */
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: white !important;
        transition: all 0.3s ease !important;
    }
    
    /* Focus state for mobile inputs */
    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus,
    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    textarea:focus,
    select:focus {
        outline: none !important;
        border-color: #ff4444 !important;
        box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.3) !important;
        background: rgba(255, 255, 255, 0.2) !important;
        font-size: 16px !important; /* Maintain size */
        z-index: 1001 !important;
        -webkit-user-select: text !important;
        user-select: text !important;
    }
    
    /* Textarea specific fixes */
    .form-group textarea,
    textarea {
        min-height: 120px !important;
        resize: vertical !important;
        font-family: inherit !important;
        line-height: 1.5 !important;
    }
    
    /* Remove any conflicting transforms or animations */
    .form-group input,
    .form-group textarea,
    .form-group select {
        transform: none !important;
        animation: none !important;
    }
    
    /* Contact form container fixes */
    .contact-form {
        padding: 1.5rem !important;
        margin-top: 2rem !important;
        position: relative !important;
        z-index: 100 !important;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: none !important; /* Remove backdrop filter that can cause issues */
        -webkit-backdrop-filter: none !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Remove shimmer animation that might interfere */
    .contact-form::before {
        display: none !important;
    }
    
    /* Form group spacing */
    .form-group {
        margin-bottom: 1.5rem !important;
        position: relative !important;
        z-index: 500 !important;
    }
    
    /* Label fixes */
    .form-group label {
        display: block !important;
        margin-bottom: 0.5rem !important;
        color: #d1d5db !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        pointer-events: none !important;
    }
    
    /* Submit button fixes */
    .submit-btn {
        width: 100% !important;
        padding: 1rem 2rem !important;
        font-size: 16px !important;
        min-height: 48px !important;
        border: none !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, #ff4444, #0066cc) !important;
        color: white !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        pointer-events: auto !important;
        z-index: 1000 !important;
        position: relative !important;
    }
    
    /* Character counter */
    .char-counter {
        font-size: 0.8rem !important;
        color: #9ca3af !important;
        text-align: right !important;
        margin-top: 0.5rem !important;
        pointer-events: none !important;
    }
    
    /* Contact section adjustments */
    .contact {
        padding: 2rem 0 !important;
        margin-top: 60px !important; /* Account for mobile header */
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
    }
    
    .contact-info h1 {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-info p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Ensure no other elements interfere */
    .header,
    .mobile-menu,
    .mobile-nav-overlay {
        pointer-events: auto;
    }
    
    /* When mobile menu is NOT active, don't let it interfere */
    .mobile-menu:not(.active),
    .mobile-nav-overlay:not(.active) {
        pointer-events: none !important;
        z-index: -1 !important;
    }
    
    /* Fix for any global user-select issues */
    * {
        -webkit-touch-callout: inherit;
        -webkit-user-select: inherit;
        user-select: inherit;
    }
    
    /* But keep form elements selectable */
    form *,
    .contact-form *,
    .form-group * {
        -webkit-user-select: text !important;
        user-select: text !important;
    }
}

/* Main Styles - Common across all pages - Zamzoola Brand - Black Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #FF4444;
    --primary-blue: #1E40AF;
    --accent-cyan: #06B6D4;
    --accent-yellow: #FCD34D;
    --white: #FFFFFF;
    --dark: #000000;
    --dark-secondary: #111111;
    --dark-tertiary: #1a1a1a;
    --gray-text: #B3B3B3;
    --light-gray: #2a2a2a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--dark);
    overflow-x: hidden;
}

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

/* Common Section Styles */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h1,
.section-header h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-text);
    max-width: 600px;
    margin: 0 auto;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-red);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 68, 68, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover::before {
    left: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {

    .section-header h1,
    .section-header h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}