/* Cashout Vegas Custom Styles */

/* Color Variables - Meadow Theme */
:root {
    /* Meadow Green Palette */
    --meadow-50: #effaf5;
    --meadow-100: #d8f3e4;
    --meadow-200: #b4e6ce;
    --meadow-300: #82d3b1;
    --meadow-400: #4eb98f;
    --meadow-500: #31ae81;
    --meadow-600: #1d7e5d;
    --meadow-700: #17654d;
    --meadow-800: #15503e;
    --meadow-900: #124234;
    --meadow-950: #09251d;
    
    /* Primary colors using meadow palette */
    --primary-green: var(--meadow-500);
    --dark-green: var(--meadow-700);
    --light-green: var(--meadow-100);
    --cta-color: var(--meadow-600); /* Primary CTA using meadow-600 */
    --cta-hover: var(--meadow-700);
    --dark-bg: var(--meadow-950);
    --light-bg: var(--meadow-50);
    --text-dark: var(--meadow-900);
    --text-muted: var(--meadow-600);
    --border-color: var(--meadow-200);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 700;
}

/* Consistent CTA Button Styling */
.btn-cta {
    background-color: var(--cta-color);
    border-color: var(--cta-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(29, 126, 93, 0.2);
}

.btn-cta:hover,
.btn-cta:focus {
    background-color: var(--cta-hover);
    border-color: var(--cta-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(29, 126, 93, 0.3);
}

.btn-cta:active {
    transform: translateY(0);
}

/* Ensure all primary buttons use consistent CTA styling */
.btn-primary {
    background-color: var(--cta-color) !important;
    border-color: var(--cta-color) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--cta-hover) !important;
    border-color: var(--cta-hover) !important;
    color: white !important;
}

.btn-success {
    background-color: var(--cta-color) !important;
    border-color: var(--cta-color) !important;
    color: white !important;
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--cta-hover) !important;
    border-color: var(--cta-hover) !important;
    color: white !important;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--meadow-950), var(--meadow-900)) !important;
    border-bottom: 2px solid var(--meadow-800);
    box-shadow: 0 2px 10px rgba(9, 37, 29, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand {
    padding: 0.5rem 0;
}

.logo-image {
    transition: all 0.3s ease;
    filter: brightness(1.3) contrast(1.2);
    cursor: pointer;
    /* Add stronger glow effect against darker background */
    box-shadow: 0 0 20px rgba(49, 174, 129, 0.5), 0 0 40px rgba(49, 174, 129, 0.3);
    /* Add border-radius for modern look */
    border-radius: 10px;
    /* Enhanced background for better contrast against darker nav */
    background: linear-gradient(135deg, rgba(216, 243, 228, 0.75), rgba(180, 230, 206, 0.75));
    padding: 10px 15px;
    /* Add stronger border */
    border: 1px solid rgba(49, 174, 129, 0.4);
}

.logo-image:hover {
    transform: scale(1.08);
    filter: brightness(1.4) contrast(1.3);
    /* Enhanced glow on hover */
    box-shadow: 0 0 25px rgba(49, 174, 129, 0.7), 0 0 50px rgba(49, 174, 129, 0.4);
    /* Stronger background on hover */
    background: linear-gradient(135deg, rgba(216, 243, 228, 0.85), rgba(180, 230, 206, 0.85));
    /* Enhanced border on hover */
    border: 1px solid rgba(49, 174, 129, 0.6);
}

.navbar-brand:hover {
    text-decoration: none;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .logo-image {
        height: 55px !important;
        padding: 6px 10px;
    }
}

@media (min-width: 1200px) {
    .logo-image {
        height: 75px !important;
        padding: 10px 15px;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--meadow-900) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-image {
    padding: 2rem;
    background: rgba(49, 174, 129, 0.1);
    border-radius: 15px;
    border: 2px dashed var(--primary-green);
    position: relative;
}

.atm-image {
    max-height: 400px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.atm-image:hover {
    transform: scale(1.02);
}

/* New Hero Section Elements */
.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pulse-btn {
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 126, 93, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(29, 126, 93, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(29, 126, 93, 0);
    }
}

.earning-badge {
    transform: translateX(10px) translateY(-10px);
    font-size: 0.9rem;
    z-index: 10;
}

.urgency-note {
    background: rgba(49, 174, 129, 0.1);
    border-left: 3px solid var(--meadow-500);
    padding: 0.75rem;
    border-radius: 5px;
}

.profit-indicator {
    font-size: 0.9rem;
}

.value-props .icon-circle {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    box-shadow: 0 4px 8px rgba(49, 174, 129, 0.3);
}

/* Brochure Background Styling */
.brochure-bg {
    background: url('../images/onyx-brochure-bg.png') center/cover no-repeat;
    min-height: 400px;
    overflow: hidden;
}

.brochure-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: inherit;
}

.brochure-content {
    z-index: 2;
    padding: 2rem;
}

.brochure-content h4 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.8rem;
}

.brochure-content p,
.brochure-content li {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Gamified Application Styles */
.progress-steps {
    display: flex;
    gap: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.step.active .step-circle {
    background: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.step.completed .step-circle {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: white;
}

.application-card {
    border: none;
    position: relative;
    overflow: hidden;
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--meadow-600), var(--meadow-400));
}

.gamified-form .form-control:focus,
.gamified-form .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.input-wrapper {
    position: relative;
}

.form-control-lg, .form-select-lg {
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.pulse-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.form-check-lg {
    transition: all 0.3s ease;
}

.form-check-lg:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.completion-promise {
    border-left: 4px solid #28a745;
}

.response-badge {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.submit-pulse {
    animation: submitPulse 2s infinite;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

@keyframes submitPulse {
    0% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(40, 167, 69, 0.6);
        transform: translateY(-2px);
    }
    100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    }
}

.submit-pulse:hover {
    transform: scale(1.05);
    animation: none;
}

@media (max-width: 768px) {
    .progress-steps {
        gap: 1rem;
    }
    .step-label {
        display: none;
    }
}

/* Blog Header Styling */
.blog-header {
    background: linear-gradient(135deg, var(--meadow-900), var(--meadow-800)) !important;
    color: #ffffff !important;
}

.blog-header h1,
.blog-header .display-4 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.blog-header p,
.blog-header .lead {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.blog-header * {
    color: #ffffff !important;
}

/* Background Gradients */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
}

/* Cards and Components */
.service-card,
.feature-card,
.benefit-card,
.advantage-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.service-card:hover,
.feature-card:hover,
.benefit-card:hover,
.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Section Headers */
.section-header h3 {
    color: var(--text-dark);
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.flash-messages .alert {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Pain Points Styling */
.pain-points .fas.fa-times-circle {
    font-size: 1.2rem;
}

.solution-points .fas.fa-check-circle {
    font-size: 1.2rem;
}

/* Testimonial Cards */
.testimonial-card {
    border-left: 4px solid var(--primary-green);
}

.stars .fas.fa-star {
    color: var(--meadow-500);
}

/* Blog Styling */
.blog-post-preview {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.post-meta .badge {
    font-size: 0.8rem;
}

.post-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Blog Content Styling */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.blog-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.blog-content p {
    margin-bottom: 1.25rem;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-green);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.blog-content .highlight {
    background-color: var(--light-green);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* Contact Page */
.contact-method {
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-3px);
}

.contact-info h5 a {
    color: var(--text-dark);
}

.contact-info h5 a:hover {
    color: var(--primary-green);
}

/* Application Form */
.application-form {
    max-width: none;
}

.existing-atm-fields {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Process Steps */
.step-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step,
.next-step {
    transition: transform 0.3s ease;
}

.process-step:hover,
.next-step:hover {
    transform: translateY(-3px);
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-green);
    color: var(--dark-green);
}

/* Error Pages */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-content h1 {
    font-weight: 900;
}

/* Product Specifications */
.spec-card table {
    font-size: 0.9rem;
}

.spec-card table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-card table td:first-child {
    width: 40%;
}

/* Widget Styling */
.widget {
    margin-bottom: 2rem;
}

.widget h5,
.widget h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-green);
}

/* Business Type Icons */
.business-type i {
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.business-type:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Stats and Numbers */
.stats h3,
.stats h5 {
    font-weight: 700;
    font-size: 2rem;
}

/* Utility Classes */
.text-success {
    color: var(--primary-green) !important;
}

.bg-success {
    background-color: var(--primary-green) !important;
}

.border-success {
    border-color: var(--primary-green) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .flash-messages {
        position: relative;
        top: 0;
        right: 0;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .pain-points,
    .solution-points {
        font-size: 0.9rem;
    }
    
    .stats .row > div {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .display-1 {
        font-size: 4rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .flash-messages {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .bg-dark,
    .bg-gradient {
        background: white !important;
        color: black !important;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn-cta {
        border: 2px solid white;
    }
    
    .form-control,
    .form-select {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .feature-card,
    .benefit-card,
    .advantage-card,
    .contact-method,
    .process-step,
    .next-step {
        transition: none;
    }
    
    .fade-in,
    .slide-in-left {
        animation: none;
    }
}

/* Topic Pills Hover Effect */
.topic-pills a.badge:hover {
    background-color: var(--meadow-700) !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Map Container Styles */
.map-container {
    position: relative;
}

.map-overlay {
    backdrop-filter: blur(4px);
}

/* Mobile Navigation Fixes */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--meadow-950);
        border-radius: 8px;
        margin-top: 10px;
        padding: 1rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        max-height: 80vh;
        overflow-y: auto;
        position: relative;
        z-index: 1050;
    }
    
    .navbar-nav {
        margin-bottom: 1rem;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: var(--meadow-900);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding-left: 20px;
        margin-bottom: 0.5rem;
        display: none;
        animation: slideDown 0.2s ease-out;
    }
    
    .dropdown-menu.show {
        display: block !important;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .dropdown-divider {
        border-top: 1px solid var(--meadow-800);
        margin: 0.5rem 0;
    }
    
    /* iOS specific fixes */
    .dropdown-toggle {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .dropdown-toggle.active {
        color: var(--meadow-100) !important;
    }
    
    .dropdown-item {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        display: block;
        width: 100%;
        padding: 0.5rem 1rem;
        text-decoration: none;
    }
    
    /* Ensure dropdowns are tappable on iOS */
    @supports (-webkit-touch-callout: none) {
        .dropdown-toggle,
        .dropdown-item {
            cursor: pointer !important;
        }
    }
    
    .dropdown-item {
        color: var(--meadow-100) !important;
        padding: 8px 15px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: var(--meadow-800);
        color: white !important;
    }
    
    .nav-item.dropdown {
        margin-bottom: 0;
    }
    
    .dropdown-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }
    
    .dropdown-toggle::after {
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
    
    /* Ensure mobile menu doesn't interfere with page scroll */
    body.navbar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .navbar-collapse.show {
        position: fixed;
        top: 95px;
        left: 15px;
        right: 15px;
        z-index: 1050;
        max-height: calc(100vh - 110px);
    }
    
    /* Better spacing for CTA buttons in mobile menu */
    .navbar-nav + .d-flex {
        padding-top: 1rem;
        border-top: 1px solid var(--meadow-800);
        margin-top: 1rem;
        flex-direction: column !important;
        gap: 0.5rem;
    }
    
    .navbar-nav + .d-flex .btn {
        width: 100%;
        text-align: center;
    }
}
