@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Custom styles for Global TM Search */
html {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header styles */
.header-nav {
    background: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid #f3f4f6;
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
}

/* Sidebar - only visible on desktop */
#sidebar {
    display: none !important;
}

@media (min-width: 1024px) {
    #sidebar {
        display: flex !important;
    }
}

.header-content {
    width: 100%;
    padding: 0 50px;
    max-width: none;
    margin: 0;
}

/* Responsive header padding */
@media (max-width: 640px) {
    .header-content {
        padding: 0 25px;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .header-content {
        padding: 0 35px;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .header-content {
        padding: 0 40px;
    }
}

@media (min-width: 1280px) {
    .header-content {
        padding: 0 50px;
    }
}

.nav-link {
    padding: 0.75rem 1rem;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.nav-link:hover {
    color: #0d5888;
    background-color: #eff6ff;
}

.nav-link.active {
    color: #0d5888;
    background-color: #eff6ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #0d5888;
    transition: all 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.cta-button {
    background: linear-gradient(90deg, #0d5888 0%, #1e6ba8 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(13, 88, 136, 0.3);
    min-height: 44px; /* Ensure proper touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        width: 100%;
        max-width: 300px;
    }
}

.cta-button:hover {
    background: linear-gradient(90deg, #1e6ba8 0%, #0d5888 100%);
    box-shadow: 0 20px 25px -5px rgba(13, 88, 136, 0.4);
    transform: translateY(-2px);
}

.cta-button-secondary {
    background: linear-gradient(90deg, #059669 0%, #047857 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
    min-height: 44px; /* Ensure proper touch target */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .cta-button-secondary {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        width: 100%;
        max-width: 300px;
    }
}

.cta-button-secondary:hover {
    background: linear-gradient(90deg, #047857 0%, #065f46 100%);
    box-shadow: 0 20px 25px -5px rgba(5, 150, 105, 0.4);
    transform: translateY(-2px);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #dbeafe 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #111827;
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #0d5888 0%, #1e6ba8 50%, #0d5888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 3rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Services section improvements */
.services-section {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f3f4f6 100%);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.03) 0%, transparent 100%);
}

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

.services-header .badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #0d5888;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(13, 88, 136, 0.1);
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.services-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .services-header h2 {
        font-size: 3.5rem;
    }

    .services-header p {
        font-size: 1.375rem;
    }
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d5888, #1e6ba8, #059669);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(13, 88, 136, 0.2);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.service-icon .icon-bg {
    width: 5rem;
    height: 5rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .icon-bg {
    transform: scale(1.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.25rem;
    text-align: center;
    line-height: 1.3;
}

.service-description {
    color: #6b7280;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-pricing {
    margin-bottom: 2rem;
    text-align: center;
}

.service-pricing .price-label {
    font-size: 0.875rem;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.service-pricing .price-value {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-top: 0.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    width: 100%;
    border: 2px solid transparent;
}

.service-link:hover {
    transform: translateX(4px);
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(2px);
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, #0d5888 0%, #1e6ba8 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(13, 88, 136, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 88, 136, 0.5);
    background: linear-gradient(135deg, #1e6ba8 0%, #0d5888 100%);
}

.btn-secondary {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #0d5888;
    color: #0d5888;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

/* Form enhancements */
.form-input {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px; /* Prevents zoom on iOS */
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    min-height: 44px; /* Ensure proper touch target */
}

@media (max-width: 480px) {
    .form-input {
        padding: 14px 16px;
        font-size: 16px; /* Maintain 16px to prevent zoom */
    }
}

.form-input:focus {
    border-color: #0d5888;
    box-shadow: 0 0 0 3px rgba(13, 88, 136, 0.1);
    outline: none;
}

.form-textarea {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    resize: vertical;
    width: 100%;
    min-height: 120px;
}

.form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

/* Section spacing improvements */
.section-padding {
    padding: 5rem 0;
}

.section-padding-lg {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 5rem 0;
}

/* Content containers */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .content-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .content-container {
        padding: 0 2rem;
    }
}

/* Grid improvements */
.grid-responsive {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1280px) {
    .grid-responsive {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

/* Typography improvements */
.text-balance {
    text-wrap: balance;
}

.heading-xl {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.heading-lg {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.heading-md {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.text-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4b5563;
}

.text-body-lg {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #4b5563;
}

@media (min-width: 768px) {
    .heading-xl {
        font-size: 3rem;
    }

    .heading-lg {
        font-size: 2.25rem;
    }

    .heading-md {
        font-size: 1.75rem;
    }
}

/* Card improvements */
.card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #0d5888;
}

.badge-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.badge-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

/* Spacing utilities */
.spacing-section {
    margin-bottom: 4rem;
}

.spacing-section:last-child {
    margin-bottom: 0;
}

.spacing-element {
    margin-bottom: 2rem;
}

.spacing-element:last-child {
    margin-bottom: 0;
}

/* Focus improvements */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error states */
.success-message {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #15803d;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.success-message i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.error-message {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.error-message i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Stats section */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Testimonial cards */
.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #e5e7eb;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: #1f2937;
}

.testimonial-role {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Footer enhancements */
.footer-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    position: relative;
    overflow: hidden;
    color: white;
    width: 100%;
}

.footer-content {
    width: 100%;
    padding: 0 50px;
    max-width: none;
    margin: 0;
}

/* Responsive footer padding */
@media (max-width: 640px) {
    .footer-content {
        padding: 0 25px;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .footer-content {
        padding: 0 35px;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .footer-content {
        padding: 0 40px;
    }
}

@media (min-width: 1280px) {
    .footer-content {
        padding: 0 50px;
    }
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

/* Mobile menu improvements */
.mobile-menu {
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    transition: all 0.2s ease-in-out;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(13, 88, 136, 0.1);
}

.mobile-menu-button:hover {
    background-color: #f3f4f6;
}

.mobile-menu-button:active {
    background-color: #e5e7eb;
}

/* Trust bar fixes */
.trust-bar {
    background: linear-gradient(135deg, #0d5888 0%, #1e6ba8 100%);
    color: white;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .trust-bar {
        padding: 1rem 0;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .trust-bar {
        padding: 0.75rem 0;
        font-size: 0.7rem;
    }
}

.trust-bar .flex {
    justify-content: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .trust-bar .flex {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Additional utility styles */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.trust-badge {
    background-color: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.pricing-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 2px solid #f3f4f6;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #93c5fd;
}

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

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

.success-message {
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #15803d;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.error-message {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

/* Footer specific styles */
.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 1px;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-link:hover {
    color: white;
    transform: translateX(4px);
}

.trust-badge {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Newsletter form enhancements */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
    .footer-newsletter {
        padding: 1.5rem;
        border-radius: 8px;
    }
}

.footer-newsletter h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .footer-newsletter h4 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
}

.footer-newsletter .form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px 0 0 8px;
    min-height: 44px; /* Ensure proper touch target */
}

@media (max-width: 480px) {
    .footer-newsletter .form-input {
        border-radius: 6px 0 0 6px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

.footer-newsletter .form-input::placeholder {
    color: #9ca3af;
}

.footer-newsletter .form-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.footer-newsletter .btn-primary {
    border-radius: 0 8px 8px 0;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px; /* Ensure proper touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .footer-newsletter .btn-primary {
        border-radius: 0 6px 6px 0;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }
}

.footer-newsletter .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Footer bottom section */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

.footer-bottom-links a:hover {
    color: #3b82f6;
}

/* Social media icons enhancement */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    color: #93c5fd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* Contact info enhancement */
.contact-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-info i {
    color: #3b82f6;
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.contact-info span {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Responsive header fixes */
@media (max-width: 768px) {
    .header-nav {
        padding: 0;
    }
    
    .trust-bar .flex {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .trust-bar .flex span {
        justify-content: center;
    }
}

/* Footer responsive fixes */
@media (max-width: 768px) {
    .footer-section .grid-responsive {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .footer-section .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .footer-section .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1280px) {
    .footer-section .grid-responsive {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 767px) {
    .footer-newsletter .flex {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-newsletter .form-input {
        border-radius: 8px;
    }

    .footer-newsletter .btn-primary {
        border-radius: 8px;
    }
}

/* Layout stability fixes */
body {
    line-height: 1.6;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #374151;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-text-size-adjust: 100%; /* Prevent text size adjustment on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
    width: 100%;
}

/* Country section headers */
.country-section-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

/* Enhanced pricing display */
#pricingDisplay {
    transition: all 0.3s ease;
    border-left: 4px solid #0d5888;
}

#pricingDisplay.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

#pricingDisplay:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Improve touch interactions */
* {
    -webkit-tap-highlight-color: rgba(13, 88, 136, 0.1);
}

/* Better scrolling on mobile */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Ensure proper viewport handling */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}

.footer-section {
    margin-top: auto;
    z-index: 10;
}

/* Fix any potential overflow issues */
.container, 
.content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container,
    .content-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container,
    .content-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Prevent layout shifts */
.header-nav,
.footer-section {
    width: 100%;
    min-width: 0;
}

/* Footer column specific styling */
.footer-section .grid-responsive > div {
    min-width: 0; /* Prevent flex items from overflowing */
}

/* Ensure footer links don't wrap awkwardly */
.footer-link {
    word-wrap: break-word;
    hyphens: auto;
}

/* Footer heading spacing */
.footer-section h3 {
    margin-bottom: 1.5rem;
}

/* Footer list spacing */
.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Footer social icons spacing */
.footer-section .flex.space-x-4 > a {
    transition: all 0.3s ease;
}

/* Footer animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section > * {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section > *:nth-child(1) { animation-delay: 0.1s; }
.footer-section > *:nth-child(2) { animation-delay: 0.2s; }
.footer-section > *:nth-child(3) { animation-delay: 0.3s; }
.footer-section > *:nth-child(4) { animation-delay: 0.4s; }