/* Belex Frontend Tracking Styles - Dark Mode & Responsive Optimized */

:root {
    --primary: #1e4a2b;
    --primary-dark: #153a1d;
    --primary-light: #2d6b3e;
    --secondary: #f39c12;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
    --light: #121212;
    --white: #1e1e1e;
    --gray-50: #1a1a1a;
    --gray-100: #2d2d2d;
    --gray-200: #3d3d3d;
    --gray-300: #4a4a4a;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #9ca3af;
    --gray-700: #d1d5db;
    --gray-800: #e5e7eb;
    --gray-900: #f9fafb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

.belex-track-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background: #000;
}

.belex-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.belex-section-header h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Hero Section */
.belex-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.belex-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.belex-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.belex-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Tracking Form Section */
.belex-tracking-section {
    padding: 60px 0;
    background: #000;
}

.belex-tracking-form-card {
    background: #1a1a1a;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid #333;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.belex-form-header {
    background: #222;
    padding: 2rem;
    border-bottom: 1px solid #333;
    text-align: center;
}

.belex-form-header h3 { color: #fff; margin: 0 0 0.5rem 0; font-size: 1.5rem; }
.belex-form-header p { color: var(--gray-400); margin: 0; }

.belex-form-content {
    padding: 2rem;
}

.belex-input-group label {
    display: block;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.belex-tracking-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: #111;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #fff;
    transition: var(--transition);
    box-sizing: border-box;
}

.belex-tracking-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 74, 43, 0.3);
}

.belex-tracking-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.belex-tracking-button:hover {
    background: var(--primary-light);
}

/* Map Section */
.belex-map-section {
    background: #0a0a0a;
    padding: 80px 0;
    border-top: 1px solid #222;
}

.belex-map-wrapper {
    background: #111;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    border: 2px solid #333;
}
.belex-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: brightness(0.7) contrast(1.1) saturate(0.7);
}

.belex-map-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.belex-map-feature {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.belex-map-feature i {
    color: var(--primary-light);
    font-size: 2rem;
}

/* Steps Section */
.belex-how-it-works {
    background: #000;
    padding: 80px 0;
    border-top: 1px solid #222;
}

.belex-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.belex-step-card {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
    text-align: center;
}

.belex-step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 0 4px #000;
}

.belex-step-card h3 { color: #fff; margin-top: 1rem; margin-bottom: 0.5rem; }
.belex-step-card p { color: var(--gray-400); margin: 0; font-size: 0.95rem; }

/* Dashboard Info Cards (Responsive Grid inside shortcode results) */
.belex-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Results */
.belex-results-wrapper {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #333;
}

.belex-status-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.belex-timeline {
    position: relative;
    margin-top: 2rem;
    padding-left: 20px;
}

.belex-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: #444;
}

.belex-timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.belex-timeline-dot {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #000;
}

.belex-timeline-content {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 1.2rem;
    border-radius: 8px;
}

/* CTA Section */
.belex-cta {
    background: linear-gradient(135deg, var(--gray-100) 0%, #000 100%);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #222;
}

.belex-cta h2 { color: #fff; margin-bottom: 1rem; }
.belex-cta p { color: var(--gray-400); margin-bottom: 2rem; }

.belex-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #222;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #444;
    transition: var(--transition);
}
.belex-cta-button:hover {
    background: #333;
}

/* Animations */
.belex-animate {
    opacity: 0;
    transform: translateY(20px);
}
.belex-animate.show {
    opacity: 1;
    transform: translateY(0);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .belex-hero { padding: 50px 0; }
    .belex-hero h1 { font-size: 2.2rem; }
    
    .belex-tracking-section { padding: 40px 0; }
    .belex-form-content { padding: 1.5rem; }
    
    .belex-info-grid {
        grid-template-columns: 1fr; /* Stack vertically on small screens */
        gap: 15px;
    }

    .belex-map-wrapper { height: 300px; }
    
    .belex-section-header h2 { font-size: 2rem; }
    
    .belex-tracking-button {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

/* Global Form Contrast & Helper Styles */
.forminator-label, .forminator-description {
    color: #1a1a1a !important; /* Force high contrast for labels */
    font-weight: 600 !important;
}

/* Quick Track Component (Compact) */
.belex-quick-track {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
    max-width: 400px;
}
.belex-quick-track h4 {
    color: #fff;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.belex-quick-track-form {
    display: flex;
    gap: 10px;
}
.belex-quick-track-input {
    flex: 1;
    background: #000;
    border: 1px solid #444;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}
.belex-quick-track-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}
.belex-quick-track-btn:hover { background: var(--primary-light); }
