/*
Theme Name: TME Fuels React Edition
Theme URI: https://tmefuels.com
Author: TME Fuels
Author URI: https://tmefuels.com
Description: Modern fuel distribution company theme with React-inspired design - exact replica of the React application with polished styling, generous spacing, subtle shadows, and smooth transitions
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tme-fuels-react
*/

/* ========================================
   CSS VARIABLES - React Design System
   ======================================== */

:root {
    /* Colors */
    --primary-green: #2d7a5e;
    --primary-green-dark: #245a48;
    --primary-green-light: #e8f5f1;
    --text-dark: #1a1a1a;
    --text-body: #4a5568;
    --text-light: #718096;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e2e8f0;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;
    
    /* Borders & Shadows */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-base: 0.3s ease;
    
    /* Container */
    --container-max-width: 1200px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-body);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

a {
    color: #FFD700;
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-green-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: var(--font-sans);
    cursor: pointer;
}

/* ========================================
   LAYOUT & CONTAINERS
   ======================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.section {
    padding: var(--spacing-4xl) 0;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-xl);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-dark);
}

.site-logo img {
    width: 80px;
    height: 80px;
    max-width: 100%;
    height: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    margin: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-body);
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.main-navigation a:hover {
    background-color: var(--bg-light);
    color: #FFD700;
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: #FFD700;
    color: #49C6BE;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: var(--bg-white);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    background-size: cover;
    background-position: center;
    margin-top: 70px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 122, 94, 0.8), rgba(45, 122, 94, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--spacing-2xl);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--bg-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-2xl);
    color: var(--bg-white);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
    background-color: var(--bg-light);
    padding: var(--spacing-3xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.stat-number {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: #FFD700;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-base);
    color: var(--text-light);
    font-weight: 500;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: var(--spacing-4xl) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-text p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-body);
    margin-bottom: var(--spacing-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-item {
    display: flex;
    gap: var(--spacing-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px !important;
    height: 48px !important;
    background-color: #e8f5f1 !important; /* Light green background with fallback */
    background-color: var(--primary-green-light) !important;
    border-radius: 12px !important; /* Rounded square like reference */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFD700;
}

.feature-icon i {
    font-size: 1.125rem;
    color: #FFD700;
}

.feature-content h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
}

.feature-content p {
    font-size: var(--font-size-base);
    color: var(--text-light);
    margin: 0;
}

.about-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.service-card {
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: 16px; /* Larger border radius for modern look */
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Lighter, more subtle shadow */
    transform: translateY(-2px); /* Less aggressive lift on hover */
    border-color: var(--primary-green);
}

.service-icon {
    width: 64px !important;
    height: 64px !important;
    background-color: #e8f5f1 !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1.5rem auto !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.service-icon i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFD700 !important;
}

.service-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.service-card p {
    color: var(--text-body); /* Use darker text for better contrast */
    line-height: 1.6; /* Tighter line height for modern look */
    margin: 0;
}

/* ========================================
   FLEET SECTION
   ======================================== */

.fleet-section {
    padding: var(--spacing-4xl) 0;
}

.fleet-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
}

.fleet-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.fleet-image:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.fleet-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.fleet-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.fleet-feature {
    padding: var(--spacing-2xl) var(--spacing-xl);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.fleet-feature:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    background-color: #f0f7f5;
}

.fleet-feature-icon {
    width: 64px;
    height: 64px;
    background-color: #e8f5f1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg) auto;
    flex-shrink: 0;
}

.fleet-feature-icon i,
.fleet-feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-green);
    stroke-width: 2;
}

.fleet-feature h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-md) 0;
    line-height: var(--line-height-tight);
}

.fleet-feature p {
    color: var(--text-light);
    margin: 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-weight: 500;
}

/* ========================================
   CALCULATOR SECTION
   ======================================== */

.calculator-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--bg-white);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
}

.contact-form {
    background-color: var(--bg-white);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

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

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.info-card {
    background-color: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.info-icon {
    width: 56px !important;
    height: 56px !important;
    background-color: #e8f5f1 !important; /* Light green background with fallback */
    background-color: var(--primary-green-light) !important;
    border-radius: 14px !important; /* Rounded square like reference */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFD700;
}

.info-icon i {
    font-size: 1.25rem;
    color: #FFD700;
}

.info-card h3 {
    font-size: var(--font-size-xl);
    margin: 0;
}

.info-card p {
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-sm);
}

.info-card p:last-child {
    margin-bottom: 0;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background-color: var(--primary-green);
    color: var(--bg-white);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    /* Customizable padding will be applied via dynamic-styles.php */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
    color: var(--bg-white);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--line-height-relaxed);
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: var(--spacing-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --spacing-4xl: 4rem;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --spacing-3xl: 3rem;
        --spacing-4xl: 3rem;
    }
    
    .main-navigation ul {
        display: none;
    }
    
    .services-grid,
    .stats-grid,
    .fleet-features {
        grid-template-columns: 1fr;
    }
    
    .fleet-images {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .tme-modal-content {
        width: 100%;
        border-radius: 8px;
    }
    
    .tme-modal-close {
        right: 10px;
        top: 10px;
        font-size: 20px;
        width: 32px;
        height: 32px;
    }
    
    .tme-modal-header {
        padding: var(--spacing-sm) var(--spacing-sm);
    }
    
    .tme-modal-header h2 {
        font-size: var(--font-size-lg);
    }
    
    .tme-modal-body {
        padding: var(--spacing-sm);
    }
    
    .tme-modal-body .form-group input,
    .tme-modal-body .form-group textarea,
    .tme-modal-body .form-group select {
        font-size: 16px;
    }
    
    .tme-modal-footer {
        padding: var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .tme-modal-footer .btn {
        padding: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }
}
    :root {
        --spacing-xl: 1rem;
        --spacing-2xl: 1.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* ========================================
   LUCIDE ICON STYLING
   ======================================== */

/* Lucide icons are SVG-based and styled differently than font icons */

/* Service Icons */
.service-icon svg {
    width: 40px !important;
    height: 40px !important;
    stroke: #FFD700 !important;
    stroke-width: 2 !important;
    fill: none !important;
    color: #FFD700 !important;
    flex-shrink: 0 !important;
}

/* Feature Icons in About Section */
.feature-icon svg {
    width: 1.125rem;
    height: 1.125rem;
    stroke: #FFD700;
    stroke-width: 2;
}

/* Info Icons in Contact Section */
.info-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: #FFD700;
    stroke-width: 2;
}

/* Calculator Icon Styling */
.calculator-icon {
    width: 64px !important;
    height: 64px !important;
    background-color: #e8f5f1 !important; /* Light green background with fallback */
    background-color: var(--primary-green-light) !important;
    border-radius: 16px !important; /* Rounded square like reference */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #FFD700;
}

.calculator-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    stroke: #FFD700;
    stroke-width: 2;
}

/* Stats Section - Icons will be added via HTML instead of CSS pseudo-elements */
.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    width: 64px !important;
    height: 64px !important;
    background-color: #e8f5f1 !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem auto !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.stat-icon i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.stat-icon svg {
    width: 40px !important;
    height: 40px !important;
    stroke: #FFD700 !important;
    stroke-width: 2 !important;
    fill: none !important;
    color: #FFD700 !important;
    flex-shrink: 0 !important;
}


/* ========================================
   FUEL CALCULATOR STYLES
   ======================================== */

.tme-calculator-wrapper {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.calculator-form .form-group {
    margin-bottom: var(--spacing-lg);
}

.calculator-form label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.calculator-form input,
.calculator-form select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--transition-base);
}

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

.calculator-form .form-note {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.calculator-form .btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.calculator-form .btn-primary {
    background-color: var(--primary-green);
    color: white;
}

.calculator-form .btn-primary:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 122, 94, 0.3);
}

.calculator-result {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--primary-green-light);
    border-radius: 12px;
    border: 2px solid var(--primary-green);
}

.calculator-result h3 {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--primary-green);
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.result-row.total {
    border-top: 2px solid var(--primary-green);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-green);
}

/* ========================================
   MODAL STYLES
   ======================================== */

.tme-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.tme-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tme-modal-content {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

.tme-modal-large {
    max-width: 700px;
}

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

.tme-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-base);
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
}

.tme-modal-close:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.05);
}

.tme-modal-close:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.tme-modal-header {
    padding: var(--spacing-lg) var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.tme-modal-header i {
    margin: 0 auto var(--spacing-md);
    display: block;
    width: 48px;
    height: 48px;
    color: var(--primary-green);
}

.tme-modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    line-height: var(--line-height-tight);
}

.tme-modal-body {
    padding: var(--spacing-lg);
}

.tme-modal-body p {
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.6;
    font-size: var(--font-size-base);
}

.tme-modal-body form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.tme-modal-body .form-group {
    display: flex;
    flex-direction: column;
}

.tme-modal-body .form-group label {
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.tme-modal-body .form-group input,
.tme-modal-body .form-group textarea,
.tme-modal-body .form-group select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color var(--transition-base);
    -webkit-appearance: none;
    appearance: none;
}

.tme-modal-body .form-group input:focus,
.tme-modal-body .form-group textarea:focus,
.tme-modal-body .form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(34, 139, 87, 0.1);
}

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

.tme-modal-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.tme-modal-footer .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--font-size-base);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tme-modal-footer .btn-primary {
    background-color: var(--primary-green);
    color: white;
}

.tme-modal-footer .btn-primary:hover {
    background-color: var(--primary-green-dark);
}

.tme-modal-footer .btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.tme-modal-footer .btn-secondary:hover {
    background-color: var(--border-color);
}

/* ========================================
   WIZARD STYLES
   ======================================== */

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    padding: 0 var(--spacing-md);
}

.wizard-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: -1;
}

.wizard-step.active:not(:last-child)::after,
.wizard-step.completed:not(:last-child)::after {
    background-color: var(--primary-green);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-base);
}

.wizard-step.active .step-number {
    background-color: var(--primary-green);
    color: white;
}

.wizard-step.completed .step-number {
    background-color: var(--primary-green);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

.wizard-step.active .step-label {
    color: var(--primary-green);
    font-weight: 600;
}

.wizard-content {
    display: none;
}

.wizard-content.active {
    display: block;
}

.wizard-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.wizard-loading p {
    margin-top: var(--spacing-md);
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .tme-modal {
        padding: var(--spacing-md);
    }
    
    .tme-modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 12px;
        max-width: none;
    }
    
    .tme-modal-large {
        max-width: none;
    }
    
    .tme-modal-close {
        right: 12px;
        top: 12px;
        font-size: 24px;
        width: 36px;
        height: 36px;
    }
    
    .tme-modal-header {
        padding: var(--spacing-md) var(--spacing-md);
    }
    
    .tme-modal-header h2 {
        font-size: var(--font-size-xl);
    }
    
    .tme-modal-body {
        padding: var(--spacing-md);
    }
    
    .tme-modal-body .form-group input,
    .tme-modal-body .form-group textarea,
    .tme-modal-body .form-group select {
        font-size: 16px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .tme-modal-footer {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        flex-direction: column;
        justify-content: stretch;
    }
    
    .tme-modal-footer .btn {
        flex: 1;
        min-width: 100%;
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .wizard-steps {
        padding: 0;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

/* Feature Icons with Yellow Backgrounds */
.features-grid .feature-item i {
    background-color: rgba(255, 215, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.features-grid .feature-item i svg {
    width: 24px;
    height: 24px;
    stroke: #FFD700;
    fill: none;
}

}

/* ========================================
   MOBILE MENU TOGGLE BUTTON
   ======================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        z-index: 1000;
    }

    .main-navigation.active {
        display: flex;
    }
}

/* ========================================
   IMPROVED FORM INPUTS FOR MOBILE
   ======================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Remove default select arrow and add custom one */
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ========================================
   IMPROVED LINK TARGETS FOR TOUCH
   ======================================== */

a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   SMOOTH SCROLLING
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ========================================
   IMPROVED VISIBILITY FOR FOCUS STATES
   ======================================== */

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE TABLE STYLES
   ======================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

table th,
table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--bg-light);
    font-weight: 600;
}

@media (max-width: 768px) {
    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }
}

/* ========================================
   RESPONSIVE VIDEO/IFRAME
   ======================================== */

iframe,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   RESPONSIVE IMAGES
   ======================================== */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   ACCESSIBLE SKIP LINK
   ======================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   COUNTER ANIMATION STYLES
   ======================================== */



/* ========================================
   FLEET COUNTERS SECTION
   ======================================== */

.fleet-counters-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--bg-white);
}

.fleet-counters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.fleet-counter-card {
    text-align: center;
    padding: var(--spacing-xl);
    background-color: var(--bg-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fleet-counter-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.fleet-counter-icon {
    width: 64px;
    height: 64px;
    background-color: #e8f5f1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg) auto;
    flex-shrink: 0;
}

.fleet-counter-icon i,
.fleet-counter-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-green);
    stroke-width: 2;
}

.fleet-counter-number {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: #FFD700;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
    min-width: 100px;
    font-variant-numeric: tabular-nums;
}

.fleet-counter-label {
    font-size: var(--font-size-base);
    color: var(--text-light);
    font-weight: 500;
}

/* Responsive Fleet Counters */
@media (max-width: 1024px) {
    .fleet-counters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fleet-counters-grid {
        grid-template-columns: 1fr;
    }
    
    .fleet-counters-section {
        padding: var(--spacing-2xl) 0;
    }
}


/* ========================================
   FLOATING WHATSAPP BUTTON
   ======================================== */

.whatsapp-button-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 28px;
    line-height: 1;
    padding: 0;
}

.whatsapp-button:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
    background: linear-gradient(135deg, #1da851 0%, #128c3d 100%);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

/* WhatsApp button with custom colors */
.whatsapp-button.custom-colors {
    background: linear-gradient(135deg, var(--whatsapp-color-primary, #25d366) 0%, var(--whatsapp-color-secondary, #1da851) 100%);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-button.custom-colors:hover {
    background: linear-gradient(135deg, var(--whatsapp-color-secondary, #1da851) 0%, var(--whatsapp-color-dark, #128c3d) 100%);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

/* WhatsApp tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

.whatsapp-button-container:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* WhatsApp button with pulse animation */
.whatsapp-button.pulse {
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* WhatsApp button ripple effect */
.whatsapp-button.ripple {
    position: relative;
    overflow: hidden;
}

.whatsapp-button.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.whatsapp-button.ripple:active::before {
    animation: whatsapp-ripple 0.6s ease-out;
}

@keyframes whatsapp-ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* WhatsApp icon animation */
.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: whatsapp-icon-bounce 0.6s ease-in-out;
}

@keyframes whatsapp-icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Responsive WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-button-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        right: 70px;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-button-container {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}
