/* ULTRA MAIN STYLES - ForexBrokerLead */
/* =================================== */

:root {
    --primary: #0a58ca;
    --primary-dark: #084298;
    --secondary: #6c757d;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --dark: #212529;
    --light: #f8f9fa;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.display-1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.display-2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.display-3 { font-size: clamp(1.75rem, 3.5vw, 3rem); }
.display-4 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(33, 37, 41, 0.95) !important;
}

.navbar.scrolled {
    background: var(--dark) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(10, 88, 202, 0.9) 0%, 
        rgba(8, 66, 152, 0.9) 100%),
        url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1563986768609-322da13575f3?ixlib=rb-4.1.0&auto=format&fit=crop&w=2070&q=80');
}

/* Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 80px 0 60px;
}

/* Trust Elements */
.trust-score {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Stats Section */
.live-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Cards */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stats-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stats-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 5px;
}

/* High-Intent Section */
.high-intent-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.high-intent-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.intent-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.intent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.intent-card:hover::before {
    left: 100%;
}

.intent-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.intent-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intent-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.intent-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

.price-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Contact Form */
.contact-form-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

.contact-form-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.contact-form-header h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.contact-form-header h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.contact-form-body {
    padding: 40px 30px;
}

.contact-info-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.form-control,
.form-select {
    border: 2px solid var(--gray-300);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(10, 88, 202, 0.25);
}

.btn {
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(10, 88, 202, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

/* Trust Icons */
.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.trust-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 20px 0;
    z-index: 9999;
    display: none;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.cookie-consent.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.updating {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Global Stats */
.global-stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 40px 30px;
    margin: 40px 0;
}

.region-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
}

.region-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.region-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.country-badge {
    font-size: 0.7rem;
    margin: 2px;
    padding: 4px 8px;
}

/* Blog Cards */
.blog-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* Lead Cards */
.lead-card {
    transition: all 0.3s;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.lead-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #0c63e4);
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary), #0c63e4) !important;
}

/* Form validation */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--success);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: var(--danger);
}

.invalid-feedback {
    display: none;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
    display: block;
}

/* reCAPTCHA styling */
.g-recaptcha {
    margin: 15px 0;
}

#recaptcha-error {
    display: none;
    margin-top: 5px;
}

/* Alert styling */
.alert {
    border-radius: 12px;
    border: none;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .display-1 { font-size: 3rem; }
    .display-2 { font-size: 2.5rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.75rem; }
    
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .contact-hero {
        padding: 60px 0 40px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    body {
        padding-top: 60px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .hero-section {
        padding: 100px 0 60px;
        background-attachment: scroll;
    }
    
    .contact-hero {
        padding: 40px 0 30px;
    }
    
    .stats-card {
        padding: 25px 20px;
    }
    
    .stats-value {
        font-size: 2rem;
    }
    
    .intent-card {
        padding: 30px 20px;
    }
    
    .intent-icon {
        font-size: 2.5rem;
    }
    
    .contact-form-body {
        padding: 30px 20px;
    }
    
    .contact-form-header {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .contact-hero {
        padding: 30px 0 20px;
    }
    
    .live-stats {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-form-body {
        padding: 25px 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-consent,
    #promo-bar {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
        min-height: auto;
        padding: 40px 0;
    }
    
    .contact-hero {
        background: none !important;
        color: black !important;
        padding: 20px 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #0044cc;
        --primary-dark: #002266;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .form-control,
    .form-select {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-100: #1a1a1a;
        --gray-200: #2d2d2d;
        --gray-300: #404040;
        --gray-400: #525252;
        --gray-500: #666666;
        --gray-600: #858585;
        --gray-700: #a3a3a3;
        --gray-800: #c2c2c2;
        --gray-900: #e0e0e0;
    }
    
    body {
        background-color: #121212;
        color: var(--gray-800);
    }
    
    .stats-card,
    .contact-form-container,
    .contact-info-card {
        background: var(--gray-100);
        border-color: var(--gray-300);
    }
    
    .form-control,
    .form-select {
        background: var(--gray-100);
        border-color: var(--gray-400);
        color: var(--gray-800);
    }
    
    .form-control:focus,
    .form-select:focus {
        background: var(--gray-100);
        color: var(--gray-800);
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.box-shadow-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.rounded-lg {
    border-radius: 16px;
}

.rounded-xl {
    border-radius: 20px;
}

/* Focus Styles */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}