/* Body and Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    /* Fallback first, then modern sources (with Safari prefix) */
    background-image: url('../images/iStock.jpg'); /* fallback */
    background-image: -webkit-image-set( /* Safari */
        url('../images/iStock.webp') type("image/webp"),
        url('../images/iStock.jpg')  type("image/jpeg")
    );
    background-image: image-set(
        url('../images/iStock.webp') type("image/webp"),
        url('../images/iStock.jpg')  type("image/jpeg")
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    background-color: hsl(36, 14%, 79%) !important;
}

/* Enable parallax effect (fixed background) on desktop only */
@media (min-width: 992px) {
    body {
        background-attachment: fixed !important;
    }
}

/* On mobile/tablet, force scroll to prevent zoom/blur bugs */
@media (max-width: 991.98px) {
    body {
        background-attachment: scroll !important;
    }
}

/* Wrapper for the entire page */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content should grow to fill available space */
.site-wrapper > * {
    flex-shrink: 0;
}

footer {
    margin-top: auto;
    background-color: #2c3e50; /* Ensure consistent footer background */
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Transparent Sections */
.hero-section, .navbar, .footer {
    background-color: transparent !important;
}

/* Navbar Styles */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    z-index: 1000;
}

.navbar-brand {
    padding: 0.5rem; /* Standardized from index.php */
}

.navbar-brand img {
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.navbar-nav .nav-link {
    color: #262262 !important;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: #3498db !important;
    text-decoration: underline;
}

.navbar-nav .nav-link.active {
    color: #e74c3c !important;
}

.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler-icon {
    background-color: #b4bacc;
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    padding: 40px 0 !important;
    background-color: #f4f6f7;
    position: relative;
}

.hero-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
}

.hero-section .text-content {
    flex: 1 1 calc(50% - 20px);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.86);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-section .form-container {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.86);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
  .hero-section .form-container {
    padding: 1rem;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.86);
  }
}

.hero-section h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 600;
}

.hero-section p {
    color: #363232;
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
}

.hero-section .form-container label,
.hero-section .form-container input,
.hero-section .form-container select {
    display: block;
    margin-bottom: 15px;
}

.hero-section .form-container .btn {
    margin-top: 40px;
    background-color: #3498db;
    border-color: #3498db;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.hero-section .form-container .btn:hover {
    background-color: #f5f5f5;
    border-color: #f5f5f5;
}

/* Tagline and Intro */
.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2.5rem;
}

.intro p {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #2c1010;
}

/* Custom Buttons */
.custom-appointmentbtn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: #eaf4f7;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.custom-appointmentbtn:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgb(0, 0, 0 / 15%);
    color: #000000;
}

.custom-button {
    font-weight: 600;
    font-size: 18px;
}

/* insurance-item styles */
.insurance-item {
    /* removed stray 'flex:' which was a syntax error */
    max-width: 100%;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insurance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Pay Online Section */
#pay {
    background-color: transparent;
    padding: 30px 15px;
    border-radius: 8px;
}

#pay h2 {
    color: #000000;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

#pay .card {
    background-color: rgba(255, 255, 255, 0.86);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.195);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
}

#pay .col-md-6 {
    background-color: transparent !important;
    box-shadow: none;
}

#pay .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#pay .card-title {
    font-size: 1.8rem;
    color: #0056b3;
    font-weight: 700;
}

#pay .card-text {
    font-size: 1rem;
    color: #6c757d;
}

#pay .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
}

#pay .btn-primary:hover {
    background-color: #f5f5f5;
    border-color: #f5f5f5;
}

/* Card Group */
.card-group {
    padding: 16px !important;
}

.card {
    border: none;
    border-radius: 10px;
    background-color: #fff;
}

/* Footer */
footer p {
    padding: 16px !important;
    margin: 0;
    font-size: 14px;
}

/* Footer Styles */
.footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #f8f9fa;
}

/* Info Page Styles */
header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-weight: 600;
    margin-bottom: 0;
}

header p {
    font-weight: 300;
    opacity: 0.9;
}

.php-info {
    max-height: 600px;
    overflow-y: auto;
    font-size: 0.9rem;
}

.social-handles .social-link {
    text-decoration: none;
    color: #007bff;
    font-weight: 400;
    transition: color 0.3s ease;
}

.social-handles .social-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Insurance Pages */
.trucking-page {
    background-image: url('../images/trucking.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f4f6f7;
}

.insurance-details {
    position: relative;
    background: transparent;
}

.cgl-insurance {
    background-image: url('../images/cgl-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f4f6f7;
}

body.eando-insurance {
    background-image: url('../images/Errors-and-Omisssions.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f4f6f7;
}

.wc-insurance {
    background-image: url('../images/workers-comp-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.cap-insurance {
    background-image: url('../images/commercial-auto.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f4f6f7;
}

/* PAP Insurance hero section background */
body.pap-insurance {
    background-image: url('../images/personal-auto.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #f4f6f7;
}

body.ho-insurance {
    background-image: url('../images/home-background.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #f4f6f7 !important;
}

/* Insurance Types Section */
.insurance-types-section {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.86) 0%, rgba(233, 236, 239, 0.86) 100%);
    padding: 60px 0;
}

.insurance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insurance-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.303);
}

.insurance-icon {
    width: 200px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    margin: 0 auto;
}

.insurance-icon img,
.insurance-icon svg {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.insurance-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .insurance-icon {
        width: 150px;
    }
}

/* Global Row Reset */
.row {
    align-items: unset !important;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .navbar-brand img {
        max-height: 60px;
    }

    .navbar-nav .nav-link {
        font-size: 16px;
        text-align: center;
    }

    .hero-section .row {
        flex-direction: column;
    }

    .hero-section .text-content,
    .hero-section .form-container {
        flex: 1 1 100%;
        padding: 1rem;
        margin-bottom: 20px;
    }

    .hero-section .container {
        padding: 0 1rem;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .hero-section .form-container label,
    .hero-section .form-container input,
    .hero-section .form-container select {
        font-size: 14px;
    }

    .hero-section .form-container .btn {
        padding: 10px;
    }

    .card-group {
        flex-direction: column;
        gap: 16px;
    }

    .card-group .card {
        width: 100%;
    }

    .insurance-icon {
        font-size: 30px;
    }

    .insurance-title {
        font-size: 16px;
    }

    .insurance-details .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) {
    .hero-section .text-content {
        margin-bottom: 0;
    }

    .hero-section .form-container {
        margin-top: 50px;
    }
}

@media (min-width: 1200px) {
  .navbar-brand img {
    max-height: 100px;
  }
}

/* Custom styles for the trucking quote form */
.col-md-6 {
    background-color: rgba(255, 255, 255, 0.86);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.insurance-details .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.insurance-details .col-md-6-right {
    flex: 0 0 50%;
    max-width: 50%;
    background-color: rgba(255, 255, 255, 0.86);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.insurance-details .col-md-6-left {
    flex: 0 0 50%;
    max-width: 50%;
    background-color: rgba(255, 255, 255, 0.86);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-overlay {
    padding-right: 20px;
}

.form-overlay {
    padding-left: 20px;
}

/* Translucent Container for thank you page */
.translucent-container {
    background-color: rgba(255, 255, 255, 0.86) !important;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.aboutus-hero {
  width: 80%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.86) !important;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .aboutus-hero {
    width: 98%;
    padding: 1rem 0.5rem;
  }
}

.aboutus-bg {
    background: url('../images/about-us-background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

body.cgl-insurance {
    background-image: url('../images/cgl-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f4f6f7;
}

.testimonial-section-bg {
  background-color: rgba(248, 249, 250, 0.86);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 0 auto;
}

.carousel-item {
  text-align: center; /* optional */
}

.client-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.client-story {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.client-why, .client-recommend {
  font-style: italic;
  color: #555;
}

/* ===== Mobile testimonial/carousel group ===== */
@media (max-width: 576px) {
  .testimonial-card {
    padding: 15px;
  }
  .client-story {
    font-size: 1rem;
  }
  .container .testimonial-section-bg {
    background-color: rgba(248, 249, 250, 0.86) !important;
    max-width: 900px !important;
    margin: 0 auto !important;
  }

  /* New wrapper to prevent interference from other styles */
  .carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* Ensuring the testimonial section stays inside the wrapper */
  .testimonial-section-wrapper {
    max-width: 1000px;
    position: relative;
    padding: 20px;
  }

  /* Custom control positioning */
  .carousel-control-prev,
  .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    z-index: 10;
  }
} /* <<< close @media (max-width: 576px) */

/* SEO text box */
.homepage-seo-text-section {
  background-color: rgba(249, 249, 249, 0.86);
}

.seo-text-box {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.86) !important;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Mobile Specific Styles --- */
@media (max-width: 767.98px) {
    .container,
    .container-fluid,
    .hero-section .container,
    .testimonial-section-bg,
    .aboutus-hero,
    .card,
    .insurance-item,
    #pay,
    .translucent-container,
    .testimonial-section-wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        background-position: top center, top center !important;
        background-repeat: no-repeat, no-repeat !important;
        background-attachment: scroll, scroll !important;
        /* background-color: #e3d6c5 !important; */
    }

    .row,
    .hero-section .row,
    .insurance-details .row {
        flex-direction: column !important;
        gap: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .hero-section,
    .aboutus-hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .btn,
    .btn-primary,
    .custom-appointmentbtn {
        width: 100% !important;
        font-size: 1rem !important;
        padding: 12px !important;
        margin-top: 10px !important;
        box-sizing: border-box !important;
    }

    .hero-section h1,
    .tagline {
        font-size: 1.5rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }

    .hero-section p,
    .intro p {
        font-size: 1rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
    }

    .insurance-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 24px !important;
    }
    .insurance-title {
        font-size: 15px !important;
    }
}

@media (max-width: 767.98px) {
    .aboutus-hero {
        width: 98% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 991.98px) {
  .insurance-types-section,
  .testimonial-section-bg,
  .aboutus-hero,
  .homepage-seo-text-section,
  .form-container,
  .seo-text-box,
  .translucent-container {
    background: rgba(255,255,255,0.86) !important;
    background-image: none !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  .container,
  .container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  body {
    background-attachment: scroll !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
  }

  .row,
  .hero-section .row,
  .insurance-details .row {
    flex-direction: column !important;
    gap: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-section,
  .aboutus-hero {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .btn,
  .btn-primary,
  .custom-appointmentbtn {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 12px !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
  }

  .hero-section h1,
  .tagline {
    font-size: 1.5rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  .hero-section p,
  .intro p {
    font-size: 1rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }

  .insurance-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 24px !important;
  }
  .insurance-title {
    font-size: 15px !important;
  }
}

/* Make insurance-details columns stack ONLY on mobile/tablet */
@media (max-width: 991.98px) {
  .insurance-details .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .form-container {
    background: rgba(255,255,255,0.86) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
} /* <<< close @media (max-width: 991.98px) */

/* On desktop, let Bootstrap handle .col-md-6 (side by side) */

/* Force identical color for Zoom CTA + Submit/Pay buttons */
:root { --cta: #3498db; --cta-hover: #2980b9; }

/* Kill gradients/filters & set the exact blue */
.custom-appointmentbtn,
.btn-primary,
button[type="submit"],
input[type="submit"] {
  background-color: var(--cta) !important;
  border-color: var(--cta) !important;
  color: #fff !important;
  background-image: none !important; /* stop Bootstrap gradient */
  filter: none !important;           /* stop any theme filters */
}

/* Set Bootstrap 5 button variables so all states match */
.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
  --bs-btn-bg: var(--cta);
  --bs-btn-border-color: var(--cta);
  --bs-btn-hover-bg: var(--cta-hover);
  --bs-btn-hover-border-color: var(--cta-hover);
  --bs-btn-active-bg: var(--cta-hover);
  --bs-btn-active-border-color: var(--cta-hover);
  --bs-btn-disabled-bg: var(--cta);
  --bs-btn-disabled-border-color: var(--cta);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-disabled-color: #fff;
  --bs-gradient: none; /* ensure no subtle gradient */
}

/* Unified hover */
.custom-appointmentbtn:hover,
.btn-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: var(--cta-hover) !important;
  border-color: var(--cta-hover) !important;
  color: #fff !important;
}

