/* Dropdown Menu Styles */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
    background-color: transparent !important;
    color: green !important;
    box-shadow: none !important;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
}
.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Heading Styles */
h5 {
    color: white;
}

/* Chat Widget Button */
.chat-widget-btn {
    position: fixed;
    bottom: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1050;
    margin-bottom: 75px;
}
.chat-widget-btn button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border: none;
}
.chat-widget-label {
    background-color: white;
    color: black;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Offcanvas Body Sections */
.chat-option-btns {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
}
.chat-option-btns button {
    flex: 1;
    margin: 0 3px;
}
.chat-body-section {
    display: none;
}
.chat-body-section.active {
    display: block;
}

/* Proposal Video Modal Responsive Styles */
@media screen and (min-width: 1300px) {
    .custom-modal {
        max-width: 80vw !important;
    }
    #youtubePlayer,
    #localVideo {
        height: 350px !important;
    }
    .modal-body .row {
        flex-direction: row;
    }
    .modal-body h5 {
        font-size: 1.2rem;
    }
}

@media screen and (min-width: 992px) and (max-width: 1299px) {
    .custom-modal {
        max-width: 90vw !important;
    }
    #youtubePlayer,
    #localVideo {
        height: 300px !important;
    }
    .modal-body h5 {
        font-size: 1.1rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .custom-modal {
        max-width: 95vw !important;
    }
    #youtubePlayer,
    #localVideo {
        height: 250px !important;
    }
    .modal-body .row {
        flex-direction: column;
    }
    .modal-body h5 {
        font-size: 1rem;
    }
}

@media screen and (max-width: 767px) {
    .custom-modal {
        max-width: 100vw !important;
    }
    #youtubePlayer,
    #localVideo {
        height: 200px !important;
    }
    .modal-body .row {
        flex-direction: column;
    }
    .modal-body h5 {
        font-size: 0.9rem;
    }
    .modal-body {
        padding: 10px !important;
    }
}

/* Additional Responsive Adjustments */
@media screen and (max-width: 1200px) {
    .container-fluid.topbar {
        padding: 10px 15px;
    }
    .navbar-custom .dropdown-menu {
        min-width: 100% !important;
        max-width: 600px;
    }
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 992px) {
    .topbar .d-flex {
        flex-direction: column !important;
        align-items: center;
    }
    .top-info, .top-link {
        text-align: center !important;
    }
    .navbar-collapse .d-flex {
        flex-direction: column;
        align-items: center;
    }
    .navbar-custom .dropdown-menu {
        min-width: 100% !important;
        padding: 10px;
    }
    .chat-widget-btn, #whatsappButton {
        bottom: 10px;
        right: 10px;
        gap: 5px;
    }
    .chat-widget-label {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    .offcanvas {
        width: 300px !important;
    }
}

@media screen and (max-width: 576px) {
    .navbar-brand img {
        height: 50px;
    }
    .input-group {
        flex-direction: column;
    }
    .input-group input,
    .input-group button {
        width: 100%;
        margin-bottom: 5px;
    }
    #video-box {
        width: 200px;
        height: 250px;
    }
    .footer .row.g-5 {
        flex-direction: column;
    }
    .footer-item {
        text-align: center;
    }
    .footer .col-md-2 {
        margin-bottom: 20px;
    }
}

/* Footer Responsiveness */
@media screen and (max-width: 768px) {
    .footer .col-lg-3, .footer .col-lg-6, .footer .col-lg-2 {
        margin-bottom: 20px;
    }
    .footer form .position-relative {
        max-width: 100%;
    }
    .footer .btn-md-square {
        width: 40px;
        height: 40px;
    }
}

/* Back to Top Button */
.back-to-top {
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
}
@media screen and (max-width: 576px) {
    .back-to-top {
        bottom: 10px;
        right: 10px;
        font-size: 1rem;
    }
}