/* ZingaSuite Corporate Website Styles */

:root {
    --primary-color: #00897a;
    --primary-dark: #00897a;
    --primary-light: #69b49e;
    --secondary-color: #333333;
    --light-bg: rgba(0, 0, 0, 0.05);
    --lighter-bg: rgba(0, 0, 0, 0.02);
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

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

.text-primary {
    color: var(--primary-color) !important;
}

h2 a,
h3 a,
h4 a {
    color: var(--primary-color) !important;
    text-decoration: none;
}

h2 a:hover,
h3 a:hover,
h4 a:hover {
    text-decoration: underline;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(158, 192, 59, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Navbar Styles */
.navbar {
    padding: 0.75rem 0;
    /* Reduced from 1rem to 0.75rem (75% of original) */
    transition: all 0.3s ease;
}

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

.navbar-brand img {
    max-height: 32px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Mega Menu Styles */
.mega-menu {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    margin-top: 0.5rem;
}

.mega-menu .dropdown-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.mega-menu .dropdown-item:hover {
    background-color: var(--light-bg);
    transform: translateY(-1px);
}

.mega-menu h6 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Navbar scroll effect */
.navbar-scrolled {
    padding: 0.5rem 0;
    /* Even more compact when scrolled */
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--lighter-bg) 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-content h1 {
    color: var(--secondary-color);
    line-height: 1.2;
}

.hero-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    opacity: 0.1;
}

.bg-element-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.bg-element-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    z-index: 0;
}

.product-card .btn {
    position: relative;
    z-index: 1;
}

/* Feature Section */
.feature-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-bg);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 50%;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 400px;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    margin-bottom: 1rem;
}

.chat-message-bot .chat-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.chat-content {
    flex: 1;
}

.chat-content p {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    margin-bottom: 0.25rem;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--light-bg);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Form Styles */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(158, 192, 59, 0.25);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid,
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--primary-color);
}

.was-validated .form-control:valid:focus,
.was-validated .form-select:valid:focus,
.form-control.is-valid:focus,
.form-select.is-valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(158, 192, 59, 0.25);
}

/* Footer */
footer {
    background: #1a1a1a !important;
}

footer .text-muted {
    color: #b8b8b8 !important;
}

footer p.text-muted {
    color: #b8b8b8 !important;
}

footer .list-unstyled a.text-muted {
    color: #b8b8b8 !important;
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Animation Classes */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.8s ease 0.3s forwards;
}

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

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }

    .hero-stats {
        margin-top: 2rem !important;
    }

    .feature-item {
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .product-card {
        text-align: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .chat-widget,
    .modal,
    footer {
        display: none !important;
    }

    .hero-section {
        padding: 1rem 0 !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #7a9930;
        --border-color: #333333;
    }

    .btn-outline-primary {
        border-width: 2px;
    }

    .product-card {
        border-width: 2px;
    }
}

/* GDPR Cookie Banner */
.gdpr-banner {
    border-top: 3px solid var(--primary-color);
    backdrop-filter: blur(10px);
    animation: slideUpBanner 0.5s ease-out;
    /*display: block !important;  Ensure it's visible by default */
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.gdpr-banner .btn {
    white-space: nowrap;
}

.cookie-setting {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--lighter-bg);
}

/* Cookie banner responsive adjustments */
@media (max-width: 768px) {
    .gdpr-banner .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .gdpr-banner .col-md-5 {
        text-align: center !important;
    }

    .gdpr-banner .row {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .gdpr-banner {
        padding: 1rem !important;
    }

    .gdpr-banner p {
        font-size: 0.9rem;
        margin-bottom: 1rem !important;
    }
}

/* Focus states for GDPR elements */
.gdpr-banner .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(158, 192, 59, 0.5);
}

/* Cookie settings modal enhancements */
.form-switch .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-switch .form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(158, 192, 59, 0.25);
}





/* Form steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.turnstile {
    /* min-height: 65px;
			width: 100%; */
    position: relative;
    z-index: 1;
}

.card,
.alert,
input,
button,
textarea {
    border-radius: 0 !important;
}


.object-fit-cover {
    object-fit: cover;
}

.page-hero .display-5 {
    letter-spacing: .2px
}

#types .card:hover {
    transform: translateY(-2px);
    transition: transform .2s ease;
}

section[id] {
    scroll-margin-top: 84px;
}

/* avoid sticky pill overlap */
.placeholder {
    display: inline-block;
    height: 1.2rem;
    background: #e9ecef;
    border-radius: .25rem;
}

.placeholder-glow .placeholder {
    animation: glow 1.2s ease-in-out infinite;
}

@keyframes glow {
    50% {
        opacity: .5;
    }
}


/* Scoped brand colors for the section tabs */
.section-tabs {
    --bs-nav-link-color: #00897a;
    /* link color */
    --bs-nav-link-hover-color: #006f64;
    /* hover color (a bit darker) */
    --bs-nav-pills-link-active-bg: #00897a;
    /* active pill background */
    --bs-nav-pills-border-radius: 9999px;
    /* nicer pills (optional) */
}

.section-tabs .nav-link {
    color: var(--bs-nav-link-color);
}

.section-tabs .nav-link:hover {
    color: var(--bs-nav-link-hover-color);
}

.section-tabs .nav-link.active {
    color: #fff;
    background-color: var(--bs-nav-pills-link-active-bg);
}

.section-tabs .nav-link:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0, 137, 122, .25);
    /* accessible focus ring */
}

/* Brand palette (optional, reuse elsewhere) */
:root {
    --brand-primary: #00897a;
    --brand-primary-dark: #006f64;
}

/* Scope styles only to this accordion */
.brand-accordion {
    /* text & bg for the button in normal/collapsed state */
    --bs-accordion-btn-color: var(--brand-primary);
    --bs-accordion-btn-bg: #ffffff;

    /* active (expanded) colors */
    --bs-accordion-active-color: #ffffff;
    --bs-accordion-active-bg: var(--brand-primary);

    /* borders & focus ring */
    --bs-accordion-border-color: rgba(0, 0, 0, .08);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(0, 137, 122, .25);
}

/* nicer hover for collapsed headers */
.brand-accordion .accordion-button.collapsed:hover {
    color: var(--brand-primary-dark);
    background-color: #f8f9fa;
}

/* ensure header <h2> doesn’t pick up link blue from globals */
.brand-accordion .accordion-header {
    color: inherit;
}

.header-flag-bar {
    height: 2px;
    width: 92px;
    display: flex;
    justify-content: flex-start;

    padding: 0px;
}

.header-flag-bar div {
    height: 100%;
    flex-grow: 1;
}

#header .header-flag-bar {
    transition: all 0.3s ease;
    position: relative;
    top: 0;
    image-rendering: -webkit-optimize-contrast;
    transform: translateZ(0);
}


/* Exit Intent */

#exitIntentOverlay {
          display: none;
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: rgba(0, 0, 0, 0.5);
          z-index: 9998;
      }

      #exitIntentPopup {
          position: fixed;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          background-color: rgb(212, 237, 218);
          padding: 20px;
          box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
          text-align: left;
          width: 100%;
          max-width: 450px;
          z-index: 9999;
          font-family: Arial, sans-serif;
      }

      #exitIntentPopup h1 {
          font-size: 24px;
          margin-bottom: 10px;

      }

      #exitIntentPopup p {
          font-size: 16px;
          margin-bottom: 20px;

      }

      .noscroll {
          overflow: hidden;
      }