/* Neuromarketing-Optimized Contact Page */

/* Trust-Building Color Psychology */
:root {
    --trust-blue: #0066CC;
    --urgency-orange: #FF6B35;
    --success-green: #00C851;
    --premium-purple: #6C5CE7;
    --warm-gold: #FFD700;
    --calm-teal: #17A2B8;
    --energy-red: #DC3545;
}

/* Hero Section - Urgency & Trust */
.hero-section {
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--premium-purple) 100%) !important;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .badge {
    background: rgba(255, 215, 0, 0.9) !important;
    color: #000 !important;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Contact Form - Conversion Optimization */
.contact-form .card {
    border: 3px solid var(--success-green);
    box-shadow: 0 8px 32px rgba(0, 200, 81, 0.15);
    background: linear-gradient(145deg, #ffffff 0%, #f8fffa 100%);
}

.contact-form .card-body::before {
    content: '🎯 FREE CONSULTATION';
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--urgency-orange);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0px); }
    to { transform: translateY(-5px); }
}

.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--trust-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    transform: scale(1.02);
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--urgency-orange) 0%, var(--energy-red) 100%);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    position: relative;
    overflow: hidden;
}

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

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

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

/* Contact Info - Trust Signals */
.contact-info-card {
    background: linear-gradient(145deg, #ffffff 0%, #f0f8ff 100%);
    border: 2px solid var(--calm-teal);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '✓ VERIFIED BUSINESS';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-green);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.contact-info-card .rounded-circle {
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--calm-teal) 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3); }
    to { box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5); }
}

/* Branch Offices - Social Proof */
.branch-office-card {
    background: linear-gradient(145deg, #fff 0%, #f8f9ff 100%);
    border: 2px solid var(--premium-purple);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.branch-office-card::after {
    content: '🏢';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1.2rem;
}

.branch-office-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
    border-color: var(--warm-gold);
}

/* Map & Quote Section - Urgency */
.map-quote-section .bg-primary {
    background: linear-gradient(135deg, var(--urgency-orange) 0%, var(--energy-red) 100%) !important;
    position: relative;
}

.map-quote-section .bg-primary::before {
    content: '⚡ LIMITED TIME OFFER';
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--warm-gold);
    color: #000;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.7; }
}

.map-quote-section .btn-light {
    background: var(--warm-gold);
    color: #000;
    font-weight: 700;
    border-radius: 20px;
    padding: 12px 24px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
}

.map-quote-section .btn-light:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* Quick Contact Links - Action-Oriented */
.quick-contact-link {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quick-contact-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
    border-color: var(--warm-gold);
}

/* Modal - Conversion Focus */
.modal-content {
    border: 3px solid var(--success-green);
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f0fff4 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--trust-blue) 0%, var(--premium-purple) 100%);
    color: white;
    border-radius: 17px 17px 0 0;
    position: relative;
}

.modal-header::after {
    content: '💰 SAVE 30% TODAY';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--urgency-orange);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.modal-body .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-body .form-control:focus {
    border-color: var(--success-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 200, 81, 0.25);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, var(--success-green) 0%, var(--calm-teal) 100%);
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 200, 81, 0.4);
}

/* Scarcity & Urgency Elements */
.scarcity-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--energy-red);
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    animation: shake 0.5s infinite alternate;
    z-index: 1000;
}

@keyframes shake {
    0% { transform: translateX(0); }
    100% { transform: translateX(3px); }
}

/* Social Proof Indicators */
.social-proof {
    background: var(--success-green);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin: 5px;
    animation: fadeInUp 0.6s ease;
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .contact-form .btn-primary {
        width: 100%;
        padding: 18px;
    }
    
    .scarcity-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 10px 0;
        text-align: center;
    }
}

/* Accessibility with High Contrast */
@media (prefers-contrast: high) {
    .contact-form .card {
        border-width: 4px;
    }
    
    .contact-info-card {
        border-width: 3px;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}