.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 5px;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    margin: 0 5px;
    color: #999;
}

.breadcrumb-item a {
    color: #D01818;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.contact-us-box {
    min-height: 300px !important;
}

.contact-form-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.text-color {
    color: #FF1D1DE8 !important;
}

.service_packages{
    background-color: black;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.service_card{
    border-radius: 20px;
}

.service_list{
    margin-left: 80px;
}

.ribbon {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
    top: 0px;
    right: 15px;
    z-index: 100;
}

.ribbon span {
    position: absolute;
    display: block;
    width: 225px;
    padding: 10px 0;
    background-color: #dc3545;
    color: #fff;
    text-align: center;
    font-weight: bold;
    transform: rotate(45deg);
    top: 30px;
    right: -55px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.faq_question {
    background-color: #111;
}

.faq_question .accordion-button {
    background-color: #111;
    color: #fff;
    border: 1px solid #444;
    font-weight: 600;
    transition: all 0.3s ease;
}

.faq_question .accordion-button:not(.collapsed) {
    background-color: #000;
    color: red;
    border-left: 4px solid red;
}

.faq_question .accordion-body {
    background-color: #111;
    color: #eee;
}

.faq_question .accordion-item {
    border: none;
    margin-bottom: 10px;
}

.service_list {
    max-height: 210px;       /* Set the max height for scrolling */
    overflow-y: auto;        /* Enable vertical scroll if content overflows */
    padding-right: 10px;     /* Prevent content from hiding behind scrollbar */
    margin-bottom: 1rem;     /* Space below the list */
    scrollbar-width: thin;   /* Firefox */
    scrollbar-color: #999 #f1f1f1; /* Firefox thumb and track color */
}

.service_list::-webkit-scrollbar {
    width: 6px;
}

.service_list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.service_list::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
}

.service_list::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.widget-calculator-form {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.feature-car-content .title {
    font-size: 28px;
    font-weight: 600;
}

.icon-Vector-32 {
    margin-right: 8px;
    color: #28a745;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: Arial, sans-serif;
    pointer-events: none;
}

.chat-widget > * {
    pointer-events: auto;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D01818, #ff4444);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(208, 24, 24, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(208, 24, 24, 0.4);
}

.chat-toggle i {
    color: white;
    font-size: 24px;
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.chat-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: calc(100vw - 40px);
}

.chat-header {
    background: linear-gradient(135deg, #D01818, #ff4444);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    max-height: 300px;
    scrollbar-width: thin;
    scrollbar-color: #D01818 #f1f1f1;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #D01818;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #b31414;
}

.chat-welcome {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message.admin {
    align-items: flex-start;
}

.chat-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
}

.chat-message.user .chat-message-content {
    background: linear-gradient(135deg, #D01818, #ff4444);
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-message.admin .chat-message-content {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
}

.chat-message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    text-align: center;
}

.chat-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    margin-top: auto;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.chat-user-info {
    margin-bottom: 10px;
}

.chat-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    margin: 0;
    box-sizing: border-box;
    background: white;
    color: #333;
    cursor: text;
    pointer-events: auto;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    min-height: 45px;
    border-right: none;
    flex: 1;
}

.chat-input:focus {
    outline: none;
    border-color: #D01818;
    box-shadow: 0 0 0 2px rgba(208, 24, 24, 0.1);
    background: white;
}

.chat-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
    color: #999;
}

.chat-input::placeholder {
    color: #999;
    opacity: 1;
}

.chat-input-container .row {
    margin: 0;
    align-items: center;
    width: 100%;
}

.chat-input-container .col-9,
.chat-input-container .col-2,
.chat-input-container .col-3 {
    padding: 0;
    display: flex;
    align-items: center;
}

.chat-input-container .col-9 {
    flex: 1;
}

.chat-input-container .col-3 {
    flex-shrink: 0;
}

/* New flexible input row */
.chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.chat-input-row .chat-input {
    flex: 1;
    border-radius: 8px;
    border-right: 1px solid #ddd;
}

.chat-input-row .chat-send-btn {
    border-radius: 8px;
    width: auto;
    min-width: 45px;
    padding: 12px 12px;
}

/* Ensure messages section can grow/shrink and scroll */
.chat-messages {
    flex: 1;
    min-height: 0; /* required for flex children to allow scrolling */
}

.chat-send-btn {
    background: linear-gradient(135deg, #D01818, #ff4444);
    color: white;
    border: 1px solid #D01818;
    /*border-radius: 0 8px 8px 0;*/
    border-radius: 8px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    width: 100%;
    font-size: 16px;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(208, 24, 24, 0.3);
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #ccc;
    border-color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-container {
        width: calc(100vw - 30px);
        max-width: 350px;
        height: 400px;
        right: -10px;
        left: 15px;
        bottom: 80px;
    }

    .chat-widget {
        bottom: 15px;
        right: 15px;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
    }

    .chat-toggle i {
        font-size: 20px;
    }

    .chat-input-container {
        padding: 10px;
    }

    .chat-input-row {
        gap: 6px;
    }

    .chat-input {
        min-height: 40px;
        font-size: 14px;
    }

    .chat-send-btn {
        min-height: 40px;
        font-size: 14px;
        min-width: 40px;
        padding: 10px 10px;
    }

    .chat-messages {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .chat-container {
        width: calc(100vw - 20px);
        right: 10px !important;
        left: auto !important;
        height: 450px; /* Increased from 350px */
        bottom: 70px;
    }

    .chat-widget {
        bottom: 10px;
        right: 10px;
        left: auto !important;
    }

    .chat-toggle {
        width: 45px;
        height: 45px;
    }

    .chat-toggle i {
        font-size: 18px;
    }

    .chat-input-container {
        padding: 8px;
    }

    .chat-input-row {
        gap: 5px;
    }

    .chat-input {
        min-height: 38px;
        font-size: 13px;
    }

    .chat-send-btn {
        min-height: 38px;
        font-size: 13px;
        min-width: 38px;
        padding: 8px 8px;
    }

    .chat-messages {
        padding: 12px;
        max-height: 350px; /* Added max-height for better scrolling */
    }

    .chat-header {
        padding: 12px 15px;
    }

    .chat-header h5 {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .chat-container {
        width: calc(100vw - 16px);
        right: 8px !important;
        left: auto !important;
        height: 420px; /* Increased from 320px */
    }

    .chat-widget {
        bottom: 8px;
        right: 8px;
        left: auto !important;
    }

    .chat-input-container {
        padding: 6px;
    }

    .chat-input-row {
        gap: 4px;
    }

    .chat-input {
        min-height: 36px;
        font-size: 12px;
    }

    .chat-send-btn {
        min-height: 36px;
        font-size: 12px;
        min-width: 36px;
        padding: 6px 6px;
    }

    .chat-messages {
        max-height: 320px; /* Added max-height for better scrolling */
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .chat-container {
        width: calc(100vw - 12px);
        right: 6px !important;
        left: auto !important;
        height: 400px; /* Increased from 300px */
        bottom: 65px;
    }

    .chat-widget {
        bottom: 6px;
        right: 6px;
        left: auto !important;
    }

    .chat-toggle {
        width: 40px;
        height: 40px;
    }

    .chat-toggle i {
        font-size: 16px;
    }

    .chat-input-container {
        padding: 5px;
    }

    .chat-input-row {
        gap: 3px;
    }

    .chat-input {
        min-height: 34px;
        font-size: 11px;
    }

    .chat-send-btn {
        min-height: 34px;
        font-size: 11px;
        min-width: 34px;
        padding: 5px 5px;
    }

    .chat-messages {
        padding: 10px;
        max-height: 300px; /* Added max-height for better scrolling */
    }

    .chat-header {
        padding: 10px 12px;
    }

    .chat-header h5 {
        font-size: 13px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .chat-container {
        height: calc(100vh - 100px);
        bottom: 70px;
    }

    .chat-messages {
        max-height: none;
    }
}

/* Mobile-first approach - ensure chat widget is visible on all devices */
@media (max-width: 1024px) {
    .chat-widget {
        bottom: 15px;
        right: 15px;
        z-index: 9999;
        left: auto !important;
    }
    
    .chat-container {
        max-width: calc(100vw - 30px);
        width: 350px;
        right: 0 !important;
        left: auto !important;
    }
}

@media (max-width: 768px) {
    .chat-container {
        width: calc(100vw - 30px);
        max-width: 350px;
        height: 500px; /* Increased from 400px */
        right: 0 !important;
        left: auto !important;
        bottom: 80px;
        position: fixed;
    }

    .chat-widget {
        bottom: 15px;
        right: 15px;
        left: auto !important;
        z-index: 9999;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
    }

    .chat-toggle i {
        font-size: 20px;
    }

    .chat-input-container {
        padding: 10px;
    }

    .chat-input-row {
        gap: 6px;
    }

    .chat-input {
        min-height: 40px;
        font-size: 14px;
    }

    .chat-send-btn {
        min-height: 40px;
        font-size: 14px;
        min-width: 40px;
        padding: 10px 10px;
    }

    .chat-messages {
        padding: 15px;
        max-height: 400px; /* Added max-height for better scrolling */
    }
}

/* iPad and touch device specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .chat-widget {
        bottom: 20px;
        right: 20px;
        z-index: 9999;
    }
    
    .chat-container {
        width: 400px;
        height: 600px; /* Increased from 500px */
        max-width: calc(100vw - 40px);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .chat-toggle {
        min-width: 60px;
        min-height: 60px;
    }
    
    .chat-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .chat-send-btn {
        min-width: 50px;
        min-height: 50px;
    }
}

/* Override any conflicting styles and ensure visibility */
.chat-widget,
.chat-widget * {
    box-sizing: border-box !important;
}

/* Ensure chat widget is visible on all devices - fallback */
.chat-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    font-family: Arial, sans-serif !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
}

/* Ensure chat toggle is always visible */
.chat-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #D01818, #ff4444) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(208, 24, 24, 0.3) !important;
    transition: all 0.3s ease !important;
}

/* Ensure chat container is properly positioned */
.chat-container {
    position: absolute !important;
    z-index: 9998 !important;
    display: none;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Force visibility on very small screens */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 10px !important;
        right: 10px !important;
        z-index: 99999 !important;
    }
    
    .chat-toggle {
        width: 50px !important;
        height: 50px !important;
        z-index: 99999 !important;
    }
    
    .chat-container {
        z-index: 99998 !important;
    }
}

/* Handle cases where chat widget might be hidden */
.chat-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999999 !important;
    font-family: Arial, sans-serif !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    pointer-events: auto !important;
    transform: none !important;
    filter: none !important;
    clip: auto !important;
    overflow: visible !important;
}

/* Ensure chat toggle is always visible and clickable */
.chat-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #D01818, #ff4444) !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 20px rgba(208, 24, 24, 0.3) !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important;
    z-index: 999999 !important;
}

/* Ensure chat container is properly positioned and visible when open */
.chat-container {
    position: absolute !important;
    z-index: 999998 !important;
    display: none;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    pointer-events: auto !important;
}

.chat-container.show,
.chat-container[style*="display: block"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile browser specific fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific styles */
    .chat-widget {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        -webkit-perspective: 1000;
    }
}

/* Android Chrome and other mobile browsers */
@supports not (-webkit-touch-callout: none) {
    .chat-widget {
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000;
    }
}

/* Ensure chat widget works on all viewport sizes */
@media (max-width: 100vw) {
    .chat-widget {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 999999 !important;
    }
}

/* Force visibility on all screen sizes */
@media screen {
    .chat-widget {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .chat-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Ensure chat container is properly positioned and doesn't overflow */
.chat-container {
    position: absolute !important;
    z-index: 999998 !important;
    display: none;
    background: white !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    pointer-events: auto !important;
    right: 0 !important;
    left: auto !important;
    overflow: hidden !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* Ensure chat widget stays within screen boundaries */
.chat-widget {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 999999 !important;
    font-family: Arial, sans-serif !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    pointer-events: auto !important;
    transform: none !important;
    filter: none !important;
    clip: auto !important;
    overflow: visible !important;
    max-width: calc(100vw - 40px) !important;
}

