:root {
    --bs-primary: #259229;
    --bs-primary-rgb: 37, 146, 41;
    --bs-primary-text-emphasis: #0f3a10;
    --bs-primary-bg-subtle: rgba(37, 146, 41, 0.1);
    --bs-primary-border-subtle: rgba(37, 146, 41, 0.2);
}

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
    padding-top: 76px; 
    background-color: #F8F9FA; 
}

body {
    padding-top: 76px;
}

@media (max-width: 992px) {
    body {
        padding-top: 60px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
}

/* Primary Color Override */
.text-primary {
    color: #259229 !important;
}

.bg-primary {
    background-color: #259229 !important;
}

.btn-primary {
    background-color: #259229;
    border-color: #259229;
}

.btn-primary:hover {
    background-color: #1e7a22;
    border-color: #1e7a22;
}

/* Secondary/Outline Button Color */
.btn-outline-primary {
    color: #259229;
    border-color: #259229;
}

.btn-outline-primary:hover {
    background-color: #259229;
    border-color: #259229;
    color: white;
}

.nav-item .btn-outline-primary.active,
.nav-item .btn-outline-primary:focus {
    background-color: #259229 !important;
    color: white !important;
    border-color: #259229 !important;
}

.navbar-nav .nav-link.btn.active {
    color: white !important;
    background-color: #259229 !important;
    border-color: #259229 !important;
}

.navbar-nav .nav-item .nav-link.btn.btn-outline-primary {
    color: #333 !important; 
    font-weight: 600 !important;
    border-color: #259229;
    border-width: 2px;
    padding: 0.4rem 1rem !important;
    margin-left: 10px;
    font-size: 0.95rem !important;
}

.navbar-nav .nav-item .nav-link.btn.btn-outline-primary:hover {
    color: white !important;
    background-color: #259229;
    border-color: #259229;
}

.navbar-nav .nav-item .nav-link.btn.btn-outline-primary.active {
    color: white !important;
    background-color: #259229;
    border-color: #259229;
}

.btn-outline-primary:focus,
.btn-outline-primary.focus,
.btn-outline-primary:active {
    background-color: #259229 !important;
    color: white !important;
    border-color: #259229 !important;
    box-shadow: 0 0 0 0.25rem rgba(37, 146, 41, 0.25) !important;
}

.btn:focus,
.btn.focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 146, 41, 0.25) !important;
}

/* Link Colors */
a {
    color: #259229;
    text-decoration: none;
}

a:hover {
    color: #1e7a22;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

/* Focus States */
.form-control:focus, 
.form-select:focus, 
.form-check-input:focus {
    border-color: rgba(37, 146, 41, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(37, 146, 41, 0.25);
}

/* Progress Bars */
.progress-bar {
    background-color: #259229;
}

/* List Groups */
.list-group-item.active {
    background-color: #259229;
    border-color: #259229;
}

.list-group-item-action {
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    color: #495057;
}

.list-group-item-action.active {
    background-color: rgba(37, 146, 41, 0.1) !important;
    color: #259229 !important;
    border-left: 3px solid #259229;
    font-weight: 500;
}

.list-group-item-action:hover {
    background-color: rgba(37, 146, 41, 0.05);
    color: #259229;
    border-left-color: rgba(37, 146, 41, 0.5);
}

.list-group-item-action i {
    width: 20px;
    text-align: center;
}

.list-group-item-action span {
    flex: 1;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #259229;
    border-color: #259229;
}

.page-link {
    color: #259229;
}

.page-link:hover {
    color: #1e7a22;
}

/* Custom Card Border Color */
.card-primary {
    border-color: #259229;
}

.card-primary > .card-header {
    background-color: #259229;
    color: white;
}

/* Modal Headers */
.modal-header-primary {
    background-color: #259229;
    color: white;
}

/* Nav Pills */
.nav-pills .nav-link.active {
    background-color: #259229;
}

/* Table Variants */
.table-primary {
    --bs-table-bg: rgba(37, 146, 41, 0.1);
    --bs-table-striped-bg: rgba(37, 146, 41, 0.15);
    --bs-table-active-bg: rgba(37, 146, 41, 0.2);
    --bs-table-hover-bg: rgba(37, 146, 41, 0.15);
    --bs-table-border-color: rgba(37, 146, 41, 0.2);
    color: #000;
}

/* Dropdown Menu */
.dropdown-item.active, 
.dropdown-item:active {
    background-color: #259229;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

/* Alert Primary */
.alert-primary {
    color: #0f3a10;
    background-color: rgba(37, 146, 41, 0.1);
    border-color: rgba(37, 146, 41, 0.2);
}

/* Navbar Styles */
.navbar {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    transition: all 0.3s ease;
    z-index: 1030; 
}

/* Navbar alignment fixes */
.navbar-nav {
    gap: 0.5rem;
}

.navbar .nav-link {
    padding: 0.5rem 1rem !important;
    line-height: 1.5;
}

.language-switcher {
    height: 31px;
    align-self: center;
}

.language-switcher .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.navbar .btn-outline-primary {
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Navbar scroll behavior */
.navbar-scroll {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: transform 0.4s ease-in-out;
}

.navbar-hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    font-weight: 600 !important; 
    padding-left: 18px !important;
    padding-right: 18px !important;
    font-size: 1rem !important;
    letter-spacing: 0.02em; 
    position: relative;
    color: #333 !important;
}

.navbar-nav .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px; /* Slightly thicker underline */
    background-color: #259229;
}

.navbar-nav .nav-link.active {
    color: #259229 !important;
    font-weight: 700 !important;
}

.navbar-nav .nav-link:hover {
    color: #259229 !important; 
    transition: all 0.2s ease;
}

@media (min-width: 992px) {
    .navbar-nav .nav-item {
        margin-left: 2px;
        margin-right: 2px;
    }
}

/* Logo styling */
.navbar-brand img.logo {
    height: 50px !important; 
    width: auto;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.navbar-scroll.scrolled .navbar-brand img.logo {
    height: 40px !important; 
}

.navbar-brand {
    padding: 8px 0;
    margin-right: 2rem;
    display: flex;
    align-items: center;
}

.logo {
    height: 55px !important;
    width: auto;
    transition: transform 0.3s ease;
}

/* Optional: Add a slight grow effect on hover */
.navbar-brand:hover .logo {
    transform: scale(1.05);
}

/* Ensure logo remains clearly visible on mobile */
@media (max-width: 576px) {
    .logo {
        height: 45px !important;
    }
    
    .navbar-brand {
        padding: 8px 0;
    }
}

/* Adjust mobile logo size if needed */
@media (max-width: 576px) {
    .navbar-brand img.logo {
        height: 35px;
    }
}

.feature-icon {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.feature-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #259229;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
    background-color: #1e7420;
}

.feature-card:hover .card-title,
.feature-card:hover .card-text {
    color: inherit !important;
}

.category-card {
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
}

.bg-dark-overlay {
    overflow: hidden;
}

.bg-dark-overlay img {
    transition: all 0.5s ease;
    height: 400px;
    object-fit: cover;
}

.bg-dark-overlay:hover img {
    transform: scale(1.05);
}

.bg-dark-overlay:hover .overlay-content {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    text-align: center;
    transition: all 0.3s ease;
}

.overlay-content h5, 
.overlay-content p {
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.6);
}

.bg-dark-overlay:hover .overlay-content {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #1e7a22;
    color: white !important;
}

footer ul li a {
    transition: all 0.3s ease;
    display: inline-block;
}

footer ul li a:hover {
    color: white !important;
    opacity: 1;
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .hero-section {
        height: auto;
        padding: 100px 0;
    }
}



.page-header {
    padding-top: 50px;
    background-color: #F8F9FA; 
}

.page-header {
    position: relative;
    padding: 6rem 0;
}

.page-header .text-white {
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Style breadcrumb for dark backgrounds */
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: white;
}

.page-header .breadcrumb-item.active {
    color: var(--bs-primary);
}

/* Improved Product Card Styling */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) !important;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12) !important;
}

/* Fix image container for consistent sizing */
.product-card .card-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-card .card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Fix card body layout */
.product-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    flex-grow: 1;
    justify-content: space-between;
}

.product-card .card-title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.product-card .card-text {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Better button positioning */
.product-card .btn-container {
    margin-top: auto;
    align-self: flex-end;
}

/* Card category badge */
.product-card .category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(37, 146, 41, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    background-color: #f8f9fa;
    border-radius: 8px;
    height: 350px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-img {
    max-height: 320px !important;
    max-width: 100%;
    object-fit: contain;
}

@media (min-width: 992px) {
    .product-detail-img:hover {
        transform: scale(1.5);
    }
    
    .product-image-container {
        height: 500px;
    }
    
    .product-detail-img {
        max-height: 470px;
    }
}

@media (max-width: 991.98px) {
    .product-detail-img:hover {
        transform: scale(1.3);
    }
    
    .product-image-container {
        height: 400px;
    }
    
    .product-detail-img {
        max-height: 370px;
    }
}

.magnify-active .product-detail-img {
    transform: scale(1.5);
    z-index: 1050;
}

/* Door product color options styling */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
}

.color-option:hover {
    transform: scale(1.05);
}

.color-option.selected {
    border-color: #259229;
}

.color-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Color options styling */
.color-options-container {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-option {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
  width: 48px;
  height: 48px;
}

.color-option.selected {
  border-color: var(--bs-primary);
  transform: scale(1.05);
}

.color-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.color-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.color-name {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
}

/* Description styling */
.description-section h5 {
    font-size: 0.9rem;
}

.description-section p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    max-height: 100px;
    overflow-y: auto;
}

/* Door product image in modal */
.product-detail-img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.modal-content {
    background-color: #ffffff;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.py-5 {
    background-color: #F8F9FA; 
}

#productAccordion .accordion-item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

#productAccordion .accordion-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#productAccordion .accordion-button {
    font-weight: 600;
    padding: 1rem 1.25rem;
}

#productAccordion .accordion-button:not(.collapsed) {
    background-color: rgba(37, 146, 41, 0.1);
    color: #259229;
    box-shadow: none;
}

#productAccordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(37, 146, 41, 0.5);
}

#productAccordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23259229'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

#productAccordion .accordion-body {
    padding: 1rem 1.25rem;
}

#productAccordion .list-unstyled a {
    padding: 0.25rem 0;
    transition: all 0.2s ease;
}

#productAccordion .list-unstyled a:hover {
    color: #259229 !important;
    padding-left: 0.25rem;
}

.category-header {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.category-header .btn-link {
    color: #333;
    text-decoration: none;
}

.subcategories {
    padding-left: 10px;
}

.subcategories .list-group-item:hover {
    background-color: rgba(37, 146, 41, 0.05);
    border-radius: 5px;
}

.border-start.border-primary {
    background-color: rgba(37, 146, 41, 0.05);
    padding: 8px 15px 8px 12px;
    border-radius: 0 5px 5px 0;
}

.badge.bg-primary {
    background-color: #259229 !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge {
    font-weight: 600;
    text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
}

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

/* Product Category Accordion Styling */
#productAccordion .accordion-item {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#productAccordion .accordion-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#productAccordion .accordion-button {
    font-weight: 600;
    padding: 1rem 1.25rem;
}

#productAccordion .accordion-button:not(.collapsed) {
    background-color: rgba(37, 146, 41, 0.1);
    color: #259229;
    box-shadow: none;
}

#productAccordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(37, 146, 41, 0.5);
}

#productAccordion .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23259229'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

#productAccordion .accordion-body {
    padding: 1rem 1.25rem;
}

#productAccordion .list-unstyled a {
    padding: 0.25rem 0;
    transition: all 0.2s ease;
}

#productAccordion .list-unstyled a:hover {
    color: #259229 !important;
    padding-left: 0.25rem;
}

.page-header {
    padding-top: 60px;
    position: relative;
    margin-bottom: 80px;
    z-index: 1;
}

contact-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: rgba(37, 146, 41, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-icon-wrapper i {
    color: var(--primary, #259229);
}

.card-btn-wrapper {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.card.h-100.d-flex.flex-column .flex-grow-1 {
    margin-bottom: auto;
}

.map-container {
    overflow: hidden;
    border-radius: 8px;
}

.map-container iframe {
    display: block;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 146, 41, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(37, 146, 41, 0.25);
}

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

.form-check-input:focus {
    border-color: rgba(37, 146, 41, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(37, 146, 41, 0.25);
}

/* Accordion Styling */
.accordion-button:not(.collapsed) {
    background-color: rgba(37, 146, 41, 0.1);
    color: #259229;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: rgba(37, 146, 41, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(37, 146, 41, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23259229'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Social Icons in Footer */
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #259229;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .map-container {
        height: 300px;
    }
    
    .map-container iframe {
        height: 100% !important;
    }
}

/* Navbar alignment fixes for mobile */
@media (max-width: 991.98px) {
    .navbar-nav {
        gap: 0.25rem;
    }
    
    .language-switcher {
        margin: 0.5rem 0;
    }
}

.nav-item .btn-outline-primary {
    transition: all 0.3s ease;
    border-radius: 20px;
}

.nav-item .btn-outline-primary:hover {
    background-color: #259229;
    color: white;
    transform: translateY(-2px);
}


.sc-slider-height {
    height: calc(100vh - 76px); 
    margin-top: -76px; 
    padding-top: 76px; 
    position: relative;
    min-height: 550px;
}

.swiper-slide-transform {
    width: 100%;
    height: calc(100vh - 76px); 
    overflow: hidden;
}

.swiper-slide-transform img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: all 1.5s ease;
}

.swiper-slide-transform::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

.swiper-slide {
    position: relative;
}

.swiper-slide:hover .swiper-slide-transform img {
    transform: scale(1.05);
    filter: brightness(0.5);
}

.slider-text {
    position: absolute;
    bottom: 15%;  
    left: 10%;
    z-index: 2;
}

.slider-text h2,
.slide-slogan {
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}

.slider-text h2.slide-slogan {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.sc-slider-btn {
    display: inline-block;
    background: var(--bs-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.sc-slider-btn:hover {
    background: #1e7a22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

slider-text a,
slider-text a:hover,
.sc-slider-btn,
.sc-slider-btn:hover,
.swiper-slide a,
.swiper-slide a:hover {
    text-decoration: none !important;
}

.sc-slider-btn:hover {
    color: white;
    background-color: #1e7a22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.swiper-pagination {
    bottom: 5% !important;
}

.swiper-pagination-bullet {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    opacity: 1 !important;
    margin: 0 15px !important;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.dot-image {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 5px;
    background-color: rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.slider-name {
    color: white;
    font-size: 12px;
    margin-top: 8px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet:hover .dot-image,
.swiper-pagination-bullet-active .dot-image {
    border-color: #259229;
    transform: scale(1.1);
}

.swiper-pagination-bullet:hover .slider-name,
.swiper-pagination-bullet-active .slider-name {
    opacity: 1;
    font-weight: 600;
    color: #259229;
}

.swiper-pagination-bullet:hover .bubble-icon {
    background-color: rgba(37, 146, 41, 0.75);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    animation: scrollDown 2s infinite;
    z-index: 10;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background-color: #fff;
    border-radius: 100%;
    animation: scrollDot 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

@keyframes scrollDot {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .sc-slider-height {
        height: calc(80vh - 66px);
        margin-top: -66px;
        padding-top: 66px;
    }
    .swiper-slide-transform {
        height: calc(80vh - 66px);
    }
    .slide-slogan {
        font-size: 2.5rem;
    }
    .swiper-pagination-bullet {
        margin: 0 8px !important;
    }
    .dot-image {
        width: 35px;
        height: 35px;
    }
    .slider-name {
        font-size: 10px;
    }
    body {
        padding-top: 66px; /* Smaller padding for mobile */
    }
    .slider-text {
        bottom: 10%;
    }
    .slider-text h2.slide-slogan {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .sc-slider-height {
        height: 60vh;
    }
    .swiper-slide-transform {
        height: 60vh;
    }
    .slide-slogan {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    .slider-text {
        bottom: 15%;
        left: 5%;
        right: 5%;
        text-align: center;
    }
    .slider-text h2.slide-slogan {
        font-size: 1.8rem;
    }
    .sc-slider-btn {
        padding: 10px 24px;
    }
    .slider-text {
        bottom: 15%;
        left: 5%;
        right: 5%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .sc-slider-height {
        height: 60vh;
    }
    .swiper-slide-transform {
        height: 60vh;
    }
    .slide-slogan {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    .slider-text {
        bottom: 25%;
        left: 5%;
    }
    .dot-image {
        width: 25px;
        height: 25px;
    }
    .slider-name {
        display: none;
    }
    .swiper-pagination-bullet {
        margin: 0 5px !important;
    }
}

/* Left-side bubble navigation for slider */
.swiper-pagination-vertical {
    right: auto !important;
    left: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

/* Improved bubble navigation styling with labels inside */
.bubble-icon {
    width: auto;
    min-width: 120px;
    height: 40px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bubble-icon i {
    color: white;
    font-size: 16px;
    margin-right: 10px;
}

.bubble-label {
    color: white !important;
    font-size: 14px;
    font-weight: 500;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: 8px;
    position: static !important;
    transform: none !important;
    white-space: nowrap;
}

.swiper-pagination-bullet-active .bubble-icon {
    background-color: rgba(37, 146, 41, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

/* Force display for mobile view */
@media (max-width: 576px) {
    .swiper-pagination-vertical {
        left: 10px !important;
    }
    
    .bubble-icon {
        min-width: 40px;
        width: auto;
        padding: 0 10px;
        height: 40px;
        border-radius: 20px;
        justify-content: center;
    }
    
    .bubble-icon i {
        margin-right: 0;
    }
    
    .bubble-label {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bubble-icon {
        min-width: 100px;
        height: 34px;
        padding: 0 10px;
    }
    
    .bubble-icon i {
        font-size: 14px;
    }
    
    .bubble-label {
        font-size: 12px;
    }
}

@media (max-width: 575.98px) {
    .product-image-container {
        height: 220px;
    }
    
    .product-detail-img {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .swiper-pagination-vertical {
        left: 10px !important;
    }
    
    .bubble-icon {
        min-width: auto;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }
    
    .bubble-icon i {
        margin-right: 0;
    }
    
    .bubble-label {
        display: none;
    }
}

.navbar-nav .nav-link,
h1, h2, h3, h4, h5, h6,
.nav-link:hover,
.navbar-nav .nav-link.active {
    text-decoration: none !important;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    text-decoration: none !important;
}

.breadcrumb-item a {
    text-decoration: none !important;
}

.navbar-nav .nav-link:hover {
    color: #1e7a22 !important;
    font-weight: 500;
    opacity: 0.9;
}

.navbar-nav .nav-link.active {
    color: #259229 !important;
    font-weight: 500;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none !important;
}

.dropdown-item,
.breadcrumb a,
.nav-link,
.navbar-brand,
footer a,
.card a,
.btn,
swiper-slide a,
slider-text a,
bubble-label a {
    text-decoration: none !important;
}

a:hover,
.dropdown-item:hover,
.breadcrumb a:hover,
.nav-link:hover,
.navbar-brand:hover,
footer a:hover,
.card a:hover,
.btn:hover,
.sc-slider-btn:hover,
swiper-slide a:hover,
slider-text a:hover,
bubble-label a:hover {
    text-decoration: none !important;
}

.card a.btn-link:hover {
    color: #1e7a22 !important;
    font-weight: 500;
}

.btn,
.btn:hover,
.btn:focus,
.btn:active {
    text-decoration: none !important;
}

.btn-primary:hover,
.btn-primary:active {
    background-color: #1e7a22 !important;
    border-color: #1e7a22 !important;
    color: white !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
    background-color: #1e7a22 !important;
    border-color: #1e7a22 !important;
    color: white !important;
}

.story-container {
    position: relative;
    bottom: -100px;
    width: 100%;
    z-index: 10;
}

.story-overlap-container {
    position: relative;
    z-index: 10;
    margin-top: -150px;
    margin-bottom: 50px;
}

.story-card {
    transition: all 0.3s ease;
}

.story-card:hover {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
    transform: translateY(-5px);
}

.vision-mission-section {
    padding: 0;
    margin-top: 300px; 
    background-color: transparent;
    padding-top: 20px;
    margin-top: 0;
}

.mt-vision-mission {
    margin-top: 30px; 
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.bg-primary-light {
    background-color: rgba(37, 146, 41, 0.1);
}


.story-text {
    max-width: 90%;
    margin: 0 auto;
}

.story-paragraph {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #444;
    font-weight: 400;
    letter-spacing: 0.01rem;
}

.story-paragraph:first-of-type {
    font-size: 1.15rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .story-container {
        bottom: -80px;
    }
    
    .vision-mission-section {
        margin-top: 100px;
        padding-top: 30px;
    }
    
    .story-card .card-body {
        padding: 1.5rem !important;
    }
    
    .story-overlap-container {
        margin-top: -120px;
    }
    
    .page-header {
        min-height: 450px !important;
        margin-bottom: 70px;
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .page-header {
        min-height: 400px !important;
        margin-bottom: 60px;
    }
    
    .story-container {
        position: relative;
        bottom: -50px;
        padding: 0 10px;
    }
    
    .vision-mission-section {
        margin-top: 70px;
        padding: 0 15px;
    }
    
    .story-card .card-body {
        padding: 1.25rem !important;
    }
    
    .story-paragraph {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .story-overlap-container {
        margin-top: -100px;
    }
    
    .vision-mission-section {
        padding-top: 0;
    }
}

/* For very small screens, adjust layout */
@media (max-width: 576px) {
    .page-header {
        min-height: 350px !important;
        margin-bottom: 50px;
    }
    
    .story-container {
        bottom: -30px;
    }
    
    .vision-mission-section {
        margin-top: 50px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .story-card .card-body {
        padding: 1rem !important;
    }
    
    .story-overlap-container {
        margin-top: -80px;
    }
    
    .story-paragraph {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.partners-container {
    padding: 1rem 0;
}

.partner-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: transparent; 
    border-radius: 0; 
    box-shadow: none; 
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    filter: brightness(1.02); 
}

@media (max-width: 767.98px) {
    .partner-logo {
        height: 90px;
        padding: 1rem;
    }
    
    .partner-logo img {
        max-height: 70px;
    }
}

@media (max-width: 575.98px) {
    .partner-logo {
        height: 80px;
        padding: 0.75rem;
    }
    
    .partner-logo img {
        max-height: 60px;
    }
}

.py-5.bg-light {
    background-color: #F8F9FA !important; 
}

.modal-dialog.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.modal-dialog.modal-lg {
    max-width: 850px;
}

.product-feature-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.feature-label {
    font-weight: 600;
    color: #333;
    flex: 0 0 40%;
    font-size: 0.85rem;
}

.feature-value {
    color: #666;
    flex: 0 0 60%;
    font-size: 0.85rem;
}

#modal-product-features {
    padding: 0;
}

#modal-product-features li {
    padding: 10px 0;
    border: none !important;
    border-bottom: none !important;
}

.features-list {
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px !important;
    border: 1px solid #eee;
    border-radius: 4px;
}

.features-list::-webkit-scrollbar {
    width: 6px;
}

.features-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Product modal feature styling */
#modal-product-features {
    padding-left: 0;
}

.product-feature-row {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    padding-right: 0.5rem;
}

.feature-value {
    color: #212529;
    flex: 1;
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .product-feature-row {
        flex-direction: column;
    }
    
    .feature-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .feature-value {
        padding-left: 1rem;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .product-image-container {
        height: 500px;
    }
    
    .product-detail-img {
        max-height: 470px;
    }
}

@media (max-width: 991.98px) {
    .modal-dialog.modal-lg {
        max-width: 90%;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-8,
    .modal-body .col-md-4 {
        width: 100%;
        max-width: 100%;
    }
    
    #modal-product-title {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    
    .feature-label, .feature-value {
        font-size: 0.95rem;
    }
}

/* Overriding Bootstrap's default list-group styles */
.list-group-item {
    border: none !important;
    background-color: transparent !important;
}


.iti {
    display: block;
    width: 100%;
}

.iti__flag-container {
    z-index: 1050; 
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: #f8f9fa;
    border-radius: 0.25rem 0 0 0.25rem;
}

.form-control.is-invalid ~ .iti .iti__selected-flag {
    border-color: #dc3545;
}

.form-control.is-valid ~ .iti .iti__selected-flag {
    border-color: #198754;
}

/* Fix for RTL languages if needed */
.iti--allow-dropdown input {
    padding-right: 6px;
    padding-left: 52px;
}

/* Fix for form layout with validation messages */
.modal .form-control {
  position: relative;
  z-index: 2;
}

.modal .invalid-feedback,
.modal .valid-feedback {
  position: absolute;
  margin-top: 2px;
  font-size: 0.75rem;
  z-index: 1;
}

/* Reserve space for validation messages to prevent layout shift */
.modal .form-label {
  margin-bottom: 0.25rem;
}

.modal .mb-3,
.modal .col-md-6,
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem;
}

/* Fix for the international telephone input container */
.iti-container {
  margin-bottom: 0;
}

.iti .form-control {
  margin-bottom: 0;
}

/* .iti + .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  font-size: 0.75rem;
} */

/* Make sure modals don't jump when opening/closing */
.modal.fade .modal-dialog {
  transform: translate(0, -10px);
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
}

/* Ensure form rows maintain structure */
.row.g-3 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Clean Form Validation Styling - Only for non-phone fields */
.modal .form-control:not(#signupPhone),
.modal .form-select {
  margin-bottom: 0 !important;
}

/* Keep inputs properly aligned vertically */
.modal .mb-3,
.modal .col-md-6:not(:has(#signupPhone)),
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem !important;
  margin-bottom: 0.25rem !important;
}

/* Only fix non-phone validation messages */
.modal .invalid-feedback:not(.iti + .invalid-feedback),
.modal .valid-feedback:not(.iti + .valid-feedback) {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Password field specific fixes */
.input-group + .invalid-feedback,
.input-group + .valid-feedback {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Adjust spacing for the submit button area */
.col-12.mt-4 {
  margin-top: 1rem !important;
}

/* Make sure text displays properly in inputs */
.form-control {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
}

/* Fix toggle button icon alignment */
.toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Better form label spacing */
.form-label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Keep validation messages properly spaced */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Phone number specific styling - Only modifies phone input */
.iti-container + .invalid-feedback {
  position: static !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  display: none;
}

/* Show phone validation error after submission */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Keep the phone field container properly sized */
.col-md-6:has(#signupPhone) {
  padding-bottom: 2.5rem !important;
}

/* Terms of Service specific styling - Only modifies checkbox validation */
.col-12:has(#termsAgree) {
  padding-bottom: 1.75rem !important;
}

.col-12:has(#termsAgree) .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  display: none;
}

/* Show terms validation error after submission */
.was-validated #termsAgree.is-invalid ~ .invalid-feedback,
#termsAgree.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Fix the checkbox alignment */
.form-check-input#termsAgree {
  margin-top: 0.3rem;
}

.form-check-label {
  margin-left: 0.2rem;
}

/* Phone Number Alert Positioning Fix */

/* Make phone input container static, not absolute positioning */
.col-md-6:has(#signupPhone) {
  position: relative !important;
  padding-bottom: 2rem !important;
  margin-bottom: 0.5rem !important;
}

/* Position the phone validation message correctly below input */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: static !important;
  display: block !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  visibility: hidden;
}

/* Make validation appear only after form submission */
.was-validated .iti + .invalid-feedback,
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  visibility: visible !important;
}

/* Fix the international telephone input container */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
}

/* Remove conflicting styles */
.iti-container {
  margin-bottom: 0 !important;
  position: static;
}

/* Phone Input Specific Fixes - Add to your custom.css */

/* Fix container height and positioning */
.iti-container,
.col-md-6:has(#signupPhone) {
  height: auto !important;
  min-height: 80px !important; /* Reserve consistent space for container + validation */
}

/* Ensure the phone input field maintains consistent dimensions */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
  position: relative;
  z-index: 3;
}

/* Position validation messages below the input without shifting layout */
.iti + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: absolute !important;
  bottom: 0 !important;
  left: 0.25rem !important;
  right: 0 !important;
  margin-top: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation messages when needed */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Remove any additional margins that might cause shifting */
.iti .form-control {
  margin: 0 !important;
}

/* Ensure proper input field display within ITI container */
.iti__flag-container {
  z-index: 4;
}

/* Make phone input field consistent height with other inputs */
#signupPhone {
  height: calc(1.5em + 0.75rem + 2px) !important;
}

/* Fix parent container padding to accommodate validation message */
.col-md-6:has(#signupPhone) {
  padding-bottom: 20px !important;
  position: relative !important;
}

/* Phone Number Field Alert - Completely Hide Validation Messages */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback,
#signupPhone + .invalid-feedback,
.col-md-6:has(#signupPhone) .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

/* Always hide phone validation messages even after validation */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
.was-validated .iti + .invalid-feedback,
.was-validated .iti-container + .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
}

/* Remove excess padding in the phone container that was reserved for messages */
.col-md-6:has(#signupPhone) {
  padding-bottom: 0 !important;
  margin-bottom: 1rem !important;
  min-height: auto !important;
  height: auto !important;
}

/* Fix spacing for phone input to match other inputs */
.iti-container {
  margin-bottom: 0 !important;
}

/* Keep phone input consistent with other fields */
.iti {
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: auto !important;
}

/* Email field validation message fix */
.col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .valid-feedback {
  position: static !important;
  margin-top: 4px !important;
  padding: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation after submission */
.was-validated .col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .form-control.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Fix container spacing for email field */
.col-md-6:has(#signupEmail) {
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

/* Make email field consistent with other inputs */
#signupEmail {
  margin-bottom: 0 !important;
}

/* Tax ID Type button styling - Updated to match site theme */
.btn-check:checked + .btn-outline-primary {
    background-color: #259229 !important;
    color: white;
    border-color: #259229 !important;
    font-weight: 500;
}

/* Update button outline color to match theme */
.btn-group .btn-outline-primary {
    color: #259229;
    border-color: #259229;
}

.btn-group .btn-outline-primary:hover {
    background-color: rgba(37, 146, 41, 0.1);
    color: #259229;
    border-color: #259229;
}

/* Update prefix styling to match theme */
.id-type-prefix {
    min-width: 60px;
    display: flex;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.id-type-prefix.bg-primary {
    background-color: #259229 !important;
}

.id-type-prefix.bg-success {
    background-color: #259229 !important; /* Using primary color for both */
}

.id-info-tooltip {
    color: #6c757d;
}

.id-info-tooltip:hover {
    color: #259229;
}

.btn-group + .invalid-feedback {
    display: block;
    text-align: center;
    margin-top: 0.25rem;
}

#productModal .modal-content {
    overflow: hidden;
}

#productModal .modal-body {
    max-height: 80vh;
}

.features-list {
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px !important;
    border: 1px solid #eee;
    border-radius: 4px;
}

.features-list::-webkit-scrollbar {
    width: 6px;
}

.features-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Product modal feature styling */
#modal-product-features {
    padding-left: 0;
}

.product-feature-row {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    padding-right: 0.5rem;
}

.feature-value {
    color: #212529;
    flex: 1;
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .product-feature-row {
        flex-direction: column;
    }
    
    .feature-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .feature-value {
        padding-left: 1rem;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .product-image-container {
        height: 500px;
    }
    
    .product-detail-img {
        max-height: 470px;
    }
}

@media (max-width: 991.98px) {
    .modal-dialog.modal-lg {
        max-width: 90%;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-8,
    .modal-body .col-md-4 {
        width: 100%;
        max-width: 100%;
    }
    
    #modal-product-title {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    
    .feature-label, .feature-value {
        font-size: 0.95rem;
    }
}

/* Overriding Bootstrap's default list-group styles */
.list-group-item {
    border: none !important;
    background-color: transparent !important;
}


.iti {
    display: block;
    width: 100%;
}

.iti__flag-container {
    z-index: 1050; 
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: #f8f9fa;
    border-radius: 0.25rem 0 0 0.25rem;
}

.form-control.is-invalid ~ .iti .iti__selected-flag {
    border-color: #dc3545;
}

.form-control.is-valid ~ .iti .iti__selected-flag {
    border-color: #198754;
}

/* Fix for RTL languages if needed */
.iti--allow-dropdown input {
    padding-right: 6px;
    padding-left: 52px;
}

/* Fix for form layout with validation messages */
.modal .form-control {
  position: relative;
  z-index: 2;
}

.modal .invalid-feedback,
.modal .valid-feedback {
  position: absolute;
  margin-top: 2px;
  font-size: 0.75rem;
  z-index: 1;
}

/* Reserve space for validation messages to prevent layout shift */
.modal .form-label {
  margin-bottom: 0.25rem;
}

.modal .mb-3,
.modal .col-md-6,
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem;
}

/* Fix for the international telephone input container */
.iti-container {
  margin-bottom: 0;
}

.iti .form-control {
  margin-bottom: 0;
}

/* .iti + .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  font-size: 0.75rem;
} */

/* Make sure modals don't jump when opening/closing */
.modal.fade .modal-dialog {
  transform: translate(0, -10px);
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
}

/* Ensure form rows maintain structure */
.row.g-3 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Clean Form Validation Styling - Only for non-phone fields */
.modal .form-control:not(#signupPhone),
.modal .form-select {
  margin-bottom: 0 !important;
}

/* Keep inputs properly aligned vertically */
.modal .mb-3,
.modal .col-md-6:not(:has(#signupPhone)),
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem !important;
  margin-bottom: 0.25rem !important;
}

/* Only fix non-phone validation messages */
.modal .invalid-feedback:not(.iti + .invalid-feedback),
.modal .valid-feedback:not(.iti + .valid-feedback) {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Password field specific fixes */
.input-group + .invalid-feedback,
.input-group + .valid-feedback {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Adjust spacing for the submit button area */
.col-12.mt-4 {
  margin-top: 1rem !important;
}

/* Make sure text displays properly in inputs */
.form-control {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
}

/* Fix toggle button icon alignment */
.toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Better form label spacing */
.form-label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Keep validation messages properly spaced */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Phone number specific styling - Only modifies phone input */
.iti-container + .invalid-feedback {
  position: static !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  display: none;
}

/* Show phone validation error after submission */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Keep the phone field container properly sized */
.col-md-6:has(#signupPhone) {
  padding-bottom: 2.5rem !important;
}

/* Terms of Service specific styling - Only modifies checkbox validation */
.col-12:has(#termsAgree) {
  padding-bottom: 1.75rem !important;
}

.col-12:has(#termsAgree) .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  display: none;
}

/* Show terms validation error after submission */
.was-validated #termsAgree.is-invalid ~ .invalid-feedback,
#termsAgree.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Fix the checkbox alignment */
.form-check-input#termsAgree {
  margin-top: 0.3rem;
}

.form-check-label {
  margin-left: 0.2rem;
}

/* Phone Number Alert Positioning Fix */

/* Make phone input container static, not absolute positioning */
.col-md-6:has(#signupPhone) {
  position: relative !important;
  padding-bottom: 2rem !important;
  margin-bottom: 0.5rem !important;
}

/* Position the phone validation message correctly below input */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: static !important;
  display: block !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  visibility: hidden;
}

/* Make validation appear only after form submission */
.was-validated .iti + .invalid-feedback,
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  visibility: visible !important;
}

/* Fix the international telephone input container */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
}

/* Remove conflicting styles */
.iti-container {
  margin-bottom: 0 !important;
  position: static;
}

/* Phone Input Specific Fixes - Add to your custom.css */

/* Fix container height and positioning */
.iti-container,
.col-md-6:has(#signupPhone) {
  height: auto !important;
  min-height: 80px !important; /* Reserve consistent space for container + validation */
}

/* Ensure the phone input field maintains consistent dimensions */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
  position: relative;
  z-index: 3;
}

/* Position validation messages below the input without shifting layout */
.iti + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: absolute !important;
  bottom: 0 !important;
  left: 0.25rem !important;
  right: 0 !important;
  margin-top: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation messages when needed */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Remove any additional margins that might cause shifting */
.iti .form-control {
  margin: 0 !important;
}

/* Ensure proper input field display within ITI container */
.iti__flag-container {
  z-index: 4;
}

/* Make phone input field consistent height with other inputs */
#signupPhone {
  height: calc(1.5em + 0.75rem + 2px) !important;
}

/* Fix parent container padding to accommodate validation message */
.col-md-6:has(#signupPhone) {
  padding-bottom: 20px !important;
  position: relative !important;
}

/* Phone Number Field Alert - Completely Hide Validation Messages */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback,
#signupPhone + .invalid-feedback,
.col-md-6:has(#signupPhone) .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Always hide phone validation messages even after validation */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
.was-validated .iti + .invalid-feedback,
.was-validated .iti-container + .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
}

/* Remove excess padding in the phone container that was reserved for messages */
.col-md-6:has(#signupPhone) {
  padding-bottom: 0 !important;
  margin-bottom: 1rem !important;
  min-height: auto !important;
  height: auto !important;
}

/* Fix spacing for phone input to match other inputs */
.iti-container {
  margin-bottom: 0 !important;
}

/* Keep phone input consistent with other fields */
.iti {
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: auto !important;
}

/* Email field validation message fix */
.col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .valid-feedback {
  position: static !important;
  margin-top: 4px !important;
  padding: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation after submission */
.was-validated .col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .form-control.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Fix container spacing for email field */
.col-md-6:has(#signupEmail) {
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

/* Make email field consistent with other inputs */
#signupEmail {
  margin-bottom: 0 !important;
}

/* Tax ID Type button styling - Updated to match site theme */
.btn-check:checked + .btn-outline-primary {
    background-color: #259229 !important;
    color: white;
    border-color: #259229 !important;
    font-weight: 500;
}

/* Update button outline color to match theme */
.btn-group .btn-outline-primary {
    color: #259229;
    border-color: #259229;
}

.btn-group .btn-outline-primary:hover {
    background-color: rgba(37, 146, 41, 0.1);
    color: #259229;
    border-color: #259229;
}

/* Update prefix styling to match theme */
.id-type-prefix {
    min-width: 60px;
    display: flex;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.id-type-prefix.bg-primary {
    background-color: #259229 !important;
}

.id-type-prefix.bg-success {
    background-color: #259229 !important; /* Using primary color for both */
}

.id-info-tooltip {
    color: #6c757d;
}

.id-info-tooltip:hover {
    color: #259229;
}

.btn-group + .invalid-feedback {
    display: block;
    text-align: center;
    margin-top: 0.25rem;
}

#productModal .modal-content {
    overflow: hidden;
}

#productModal .modal-body {
    max-height: 80vh;
}

.features-list {
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px !important;
    border: 1px solid #eee;
    border-radius: 4px;
}

.features-list::-webkit-scrollbar {
    width: 6px;
}

.features-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Product modal feature styling */
#modal-product-features {
    padding-left: 0;
}

.product-feature-row {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    padding-right: 0.5rem;
}

.feature-value {
    color: #212529;
    flex: 1;
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .product-feature-row {
        flex-direction: column;
    }
    
    .feature-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .feature-value {
        padding-left: 1rem;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .product-image-container {
        height: 500px;
    }
    
    .product-detail-img {
        max-height: 470px;
    }
}

@media (max-width: 991.98px) {
    .modal-dialog.modal-lg {
        max-width: 90%;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-8,
    .modal-body .col-md-4 {
        width: 100%;
        max-width: 100%;
    }
    
    #modal-product-title {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    
    .feature-label, .feature-value {
        font-size: 0.95rem;
    }
}

/* Overriding Bootstrap's default list-group styles */
.list-group-item {
    border: none !important;
    background-color: transparent !important;
}


.iti {
    display: block;
    width: 100%;
}

.iti__flag-container {
    z-index: 1050; 
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: #f8f9fa;
    border-radius: 0.25rem 0 0 0.25rem;
}

.form-control.is-invalid ~ .iti .iti__selected-flag {
    border-color: #dc3545;
}

.form-control.is-valid ~ .iti .iti__selected-flag {
    border-color: #198754;
}

/* Fix for RTL languages if needed */
.iti--allow-dropdown input {
    padding-right: 6px;
    padding-left: 52px;
}

/* Fix for form layout with validation messages */
.modal .form-control {
  position: relative;
  z-index: 2;
}

.modal .invalid-feedback,
.modal .valid-feedback {
  position: absolute;
  margin-top: 2px;
  font-size: 0.75rem;
  z-index: 1;
}

/* Reserve space for validation messages to prevent layout shift */
.modal .form-label {
  margin-bottom: 0.25rem;
}

.modal .mb-3,
.modal .col-md-6,
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem;
}

/* Fix for the international telephone input container */
.iti-container {
  margin-bottom: 0;
}

.iti .form-control {
  margin-bottom: 0;
}

/* .iti + .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  font-size: 0.75rem;
} */

/* Make sure modals don't jump when opening/closing */
.modal.fade .modal-dialog {
  transform: translate(0, -10px);
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
}

/* Ensure form rows maintain structure */
.row.g-3 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Clean Form Validation Styling - Only for non-phone fields */
.modal .form-control:not(#signupPhone),
.modal .form-select {
  margin-bottom: 0 !important;
}

/* Keep inputs properly aligned vertically */
.modal .mb-3,
.modal .col-md-6:not(:has(#signupPhone)),
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem !important;
  margin-bottom: 0.25rem !important;
}

/* Only fix non-phone validation messages */
.modal .invalid-feedback:not(.iti + .invalid-feedback),
.modal .valid-feedback:not(.iti + .valid-feedback) {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Password field specific fixes */
.input-group + .invalid-feedback,
.input-group + .valid-feedback {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Adjust spacing for the submit button area */
.col-12.mt-4 {
  margin-top: 1rem !important;
}

/* Make sure text displays properly in inputs */
.form-control {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
}

/* Fix toggle button icon alignment */
.toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Better form label spacing */
.form-label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Keep validation messages properly spaced */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Phone number specific styling - Only modifies phone input */
.iti-container + .invalid-feedback {
  position: static !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  display: none;
}

/* Show phone validation error after submission */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Keep the phone field container properly sized */
.col-md-6:has(#signupPhone) {
  padding-bottom: 2.5rem !important;
}

/* Terms of Service specific styling - Only modifies checkbox validation */
.col-12:has(#termsAgree) {
  padding-bottom: 1.75rem !important;
}

.col-12:has(#termsAgree) .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  display: none;
}

/* Show terms validation error after submission */
.was-validated #termsAgree.is-invalid ~ .invalid-feedback,
#termsAgree.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Fix the checkbox alignment */
.form-check-input#termsAgree {
  margin-top: 0.3rem;
}

.form-check-label {
  margin-left: 0.2rem;
}

/* Phone Number Alert Positioning Fix */

/* Make phone input container static, not absolute positioning */
.col-md-6:has(#signupPhone) {
  position: relative !important;
  padding-bottom: 2rem !important;
  margin-bottom: 0.5rem !important;
}

/* Position the phone validation message correctly below input */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: static !important;
  display: block !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  visibility: hidden;
}

/* Make validation appear only after form submission */
.was-validated .iti + .invalid-feedback,
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  visibility: visible !important;
}

/* Fix the international telephone input container */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
}

/* Remove conflicting styles */
.iti-container {
  margin-bottom: 0 !important;
  position: static;
}

/* Phone Input Specific Fixes - Add to your custom.css */

/* Fix container height and positioning */
.iti-container,
.col-md-6:has(#signupPhone) {
  height: auto !important;
  min-height: 80px !important; /* Reserve consistent space for container + validation */
}

/* Ensure the phone input field maintains consistent dimensions */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
  position: relative;
  z-index: 3;
}

/* Position validation messages below the input without shifting layout */
.iti + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: absolute !important;
  bottom: 0 !important;
  left: 0.25rem !important;
  right: 0 !important;
  margin-top: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation messages when needed */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Remove any additional margins that might cause shifting */
.iti .form-control {
  margin: 0 !important;
}

/* Ensure proper input field display within ITI container */
.iti__flag-container {
  z-index: 4;
}

/* Make phone input field consistent height with other inputs */
#signupPhone {
  height: calc(1.5em + 0.75rem + 2px) !important;
}

/* Fix parent container padding to accommodate validation message */
.col-md-6:has(#signupPhone) {
  padding-bottom: 20px !important;
  position: relative !important;
}

/* Phone Number Field Alert - Completely Hide Validation Messages */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback,
#signupPhone + .invalid-feedback,
.col-md-6:has(#signupPhone) .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Always hide phone validation messages even after validation */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
.was-validated .iti + .invalid-feedback,
.was-validated .iti-container + .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
}

/* Remove excess padding in the phone container that was reserved for messages */
.col-md-6:has(#signupPhone) {
  padding-bottom: 0 !important;
  margin-bottom: 1rem !important;
  min-height: auto !important;
  height: auto !important;
}

/* Fix spacing for phone input to match other inputs */
.iti-container {
  margin-bottom: 0 !important;
}

/* Keep phone input consistent with other fields */
.iti {
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: auto !important;
}

/* Email field validation message fix */
.col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .valid-feedback {
  position: static !important;
  margin-top: 4px !important;
  padding: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation after submission */
.was-validated .col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .form-control.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Fix container spacing for email field */
.col-md-6:has(#signupEmail) {
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

/* Make email field consistent with other inputs */
#signupEmail {
  margin-bottom: 0 !important;
}

/* Tax ID Type button styling - Updated to match site theme */
.btn-check:checked + .btn-outline-primary {
    background-color: #259229 !important;
    color: white;
    border-color: #259229 !important;
    font-weight: 500;
}

/* Update button outline color to match theme */
.btn-group .btn-outline-primary {
    color: #259229;
    border-color: #259229;
}

.btn-group .btn-outline-primary:hover {
    background-color: rgba(37, 146, 41, 0.1);
    color: #259229;
    border-color: #259229;
}

/* Update prefix styling to match theme */
.id-type-prefix {
    min-width: 60px;
    display: flex;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.id-type-prefix.bg-primary {
    background-color: #259229 !important;
}

.id-type-prefix.bg-success {
    background-color: #259229 !important; /* Using primary color for both */
}

.id-info-tooltip {
    color: #6c757d;
}

.id-info-tooltip:hover {
    color: #259229;
}

.btn-group + .invalid-feedback {
    display: block;
    text-align: center;
    margin-top: 0.25rem;
}

#productModal .modal-content {
    overflow: hidden;
}

#productModal .modal-body {
    max-height: 80vh;
}

.features-list {
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px !important;
    border: 1px solid #eee;
    border-radius: 4px;
}

.features-list::-webkit-scrollbar {
    width: 6px;
}

.features-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Product modal feature styling */
#modal-product-features {
    padding-left: 0;
}

.product-feature-row {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    padding-right: 0.5rem;
}

.feature-value {
    color: #212529;
    flex: 1;
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .product-feature-row {
        flex-direction: column;
    }
    
    .feature-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .feature-value {
        padding-left: 1rem;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .product-image-container {
        height: 500px;
    }
    
    .product-detail-img {
        max-height: 470px;
    }
}

@media (max-width: 991.98px) {
    .modal-dialog.modal-lg {
        max-width: 90%;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-8,
    .modal-body .col-md-4 {
        width: 100%;
        max-width: 100%;
    }
    
    #modal-product-title {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    
    .feature-label, .feature-value {
        font-size: 0.95rem;
    }
}

/* Overriding Bootstrap's default list-group styles */
.list-group-item {
    border: none !important;
    background-color: transparent !important;
}


.iti {
    display: block;
    width: 100%;
}

.iti__flag-container {
    z-index: 1050; 
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: #f8f9fa;
    border-radius: 0.25rem 0 0 0.25rem;
}

.form-control.is-invalid ~ .iti .iti__selected-flag {
    border-color: #dc3545;
}

.form-control.is-valid ~ .iti .iti__selected-flag {
    border-color: #198754;
}

/* Fix for RTL languages if needed */
.iti--allow-dropdown input {
    padding-right: 6px;
    padding-left: 52px;
}

/* Fix for form layout with validation messages */
.modal .form-control {
  position: relative;
  z-index: 2;
}

.modal .invalid-feedback,
.modal .valid-feedback {
  position: absolute;
  margin-top: 2px;
  font-size: 0.75rem;
  z-index: 1;
}

/* Reserve space for validation messages to prevent layout shift */
.modal .form-label {
  margin-bottom: 0.25rem;
}

.modal .mb-3,
.modal .col-md-6,
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem;
}

/* Fix for the international telephone input container */
.iti-container {
  margin-bottom: 0;
}

.iti .form-control {
  margin-bottom: 0;
}

/* .iti + .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  font-size: 0.75rem;
} */

/* Make sure modals don't jump when opening/closing */
.modal.fade .modal-dialog {
  transform: translate(0, -10px);
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
}

/* Ensure form rows maintain structure */
.row.g-3 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Clean Form Validation Styling - Only for non-phone fields */
.modal .form-control:not(#signupPhone),
.modal .form-select {
  margin-bottom: 0 !important;
}

/* Keep inputs properly aligned vertically */
.modal .mb-3,
.modal .col-md-6:not(:has(#signupPhone)),
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem !important;
  margin-bottom: 0.25rem !important;
}

/* Only fix non-phone validation messages */
.modal .invalid-feedback:not(.iti + .invalid-feedback),
.modal .valid-feedback:not(.iti + .valid-feedback) {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Password field specific fixes */
.input-group + .invalid-feedback,
.input-group + .valid-feedback {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Adjust spacing for the submit button area */
.col-12.mt-4 {
  margin-top: 1rem !important;
}

/* Make sure text displays properly in inputs */
.form-control {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
}

/* Fix toggle button icon alignment */
.toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Better form label spacing */
.form-label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Keep validation messages properly spaced */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Phone number specific styling - Only modifies phone input */
.iti-container + .invalid-feedback {
  position: static !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  display: none;
}

/* Show phone validation error after submission */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Keep the phone field container properly sized */
.col-md-6:has(#signupPhone) {
  padding-bottom: 2.5rem !important;
}

/* Terms of Service specific styling - Only modifies checkbox validation */
.col-12:has(#termsAgree) {
  padding-bottom: 1.75rem !important;
}

.col-12:has(#termsAgree) .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  display: none;
}

/* Show terms validation error after submission */
.was-validated #termsAgree.is-invalid ~ .invalid-feedback,
#termsAgree.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Fix the checkbox alignment */
.form-check-input#termsAgree {
  margin-top: 0.3rem;
}

.form-check-label {
  margin-left: 0.2rem;
}

/* Phone Number Alert Positioning Fix */

/* Make phone input container static, not absolute positioning */
.col-md-6:has(#signupPhone) {
  position: relative !important;
  padding-bottom: 2rem !important;
  margin-bottom: 0.5rem !important;
}

/* Position the phone validation message correctly below input */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: static !important;
  display: block !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  visibility: hidden;
}

/* Make validation appear only after form submission */
.was-validated .iti + .invalid-feedback,
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  visibility: visible !important;
}

/* Fix the international telephone input container */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
}

/* Remove conflicting styles */
.iti-container {
  margin-bottom: 0 !important;
  position: static;
}

/* Phone Input Specific Fixes - Add to your custom.css */

/* Fix container height and positioning */
.iti-container,
.col-md-6:has(#signupPhone) {
  height: auto !important;
  min-height: 80px !important; /* Reserve consistent space for container + validation */
}

/* Ensure the phone input field maintains consistent dimensions */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
  position: relative;
  z-index: 3;
}

/* Position validation messages below the input without shifting layout */
.iti + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: absolute !important;
  bottom: 0 !important;
  left: 0.25rem !important;
  right: 0 !important;
  margin-top: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation messages when needed */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Remove any additional margins that might cause shifting */
.iti .form-control {
  margin: 0 !important;
}

/* Ensure proper input field display within ITI container */
.iti__flag-container {
  z-index: 4;
}

/* Make phone input field consistent height with other inputs */
#signupPhone {
  height: calc(1.5em + 0.75rem + 2px) !important;
}

/* Fix parent container padding to accommodate validation message */
.col-md-6:has(#signupPhone) {
  padding-bottom: 20px !important;
  position: relative !important;
}

/* Phone Number Field Alert - Completely Hide Validation Messages */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback,
#signupPhone + .invalid-feedback,
.col-md-6:has(#signupPhone) .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Always hide phone validation messages even after validation */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
.was-validated .iti + .invalid-feedback,
.was-validated .iti-container + .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
}

/* Remove excess padding in the phone container that was reserved for messages */
.col-md-6:has(#signupPhone) {
  padding-bottom: 0 !important;
  margin-bottom: 1rem !important;
  min-height: auto !important;
  height: auto !important;
}

/* Fix spacing for phone input to match other inputs */
.iti-container {
  margin-bottom: 0 !important;
}

/* Keep phone input consistent with other fields */
.iti {
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: auto !important;
}

/* Email field validation message fix */
.col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .valid-feedback {
  position: static !important;
  margin-top: 4px !important;
  padding: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation after submission */
.was-validated .col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .form-control.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Fix container spacing for email field */
.col-md-6:has(#signupEmail) {
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

/* Make email field consistent with other inputs */
#signupEmail {
  margin-bottom: 0 !important;
}

/* Tax ID Type button styling - Updated to match site theme */
.btn-check:checked + .btn-outline-primary {
    background-color: #259229 !important;
    color: white;
    border-color: #259229 !important;
    font-weight: 500;
}

/* Update button outline color to match theme */
.btn-group .btn-outline-primary {
    color: #259229;
    border-color: #259229;
}

.btn-group .btn-outline-primary:hover {
    background-color: rgba(37, 146, 41, 0.1);
    color: #259229;
    border-color: #259229;
}

/* Update prefix styling to match theme */
.id-type-prefix {
    min-width: 60px;
    display: flex;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.id-type-prefix.bg-primary {
    background-color: #259229 !important;
}

.id-type-prefix.bg-success {
    background-color: #259229 !important; /* Using primary color for both */
}

.id-info-tooltip {
    color: #6c757d;
}

.id-info-tooltip:hover {
    color: #259229;
}

.btn-group + .invalid-feedback {
    display: block;
    text-align: center;
    margin-top: 0.25rem;
}

#productModal .modal-content {
    overflow: hidden;
}

#productModal .modal-body {
    max-height: 80vh;
}

.features-list {
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px !important;
    border: 1px solid #eee;
    border-radius: 4px;
}

.features-list::-webkit-scrollbar {
    width: 6px;
}

.features-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Product modal feature styling */
#modal-product-features {
    padding-left: 0;
}

.product-feature-row {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    padding-right: 0.5rem;
}

.feature-value {
    color: #212529;
    flex: 1;
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .product-feature-row {
        flex-direction: column;
    }
    
    .feature-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .feature-value {
        padding-left: 1rem;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .product-image-container {
        height: 500px;
    }
    
    .product-detail-img {
        max-height: 470px;
    }
}

@media (max-width: 991.98px) {
    .modal-dialog.modal-lg {
        max-width: 90%;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-8,
    .modal-body .col-md-4 {
        width: 100%;
        max-width: 100%;
    }
    
    #modal-product-title {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    
    .feature-label, .feature-value {
        font-size: 0.95rem;
    }
}

/* Overriding Bootstrap's default list-group styles */
.list-group-item {
    border: none !important;
    background-color: transparent !important;
}


.iti {
    display: block;
    width: 100%;
}

.iti__flag-container {
    z-index: 1050; 
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: #f8f9fa;
    border-radius: 0.25rem 0 0 0.25rem;
}

.form-control.is-invalid ~ .iti .iti__selected-flag {
    border-color: #dc3545;
}

.form-control.is-valid ~ .iti .iti__selected-flag {
    border-color: #198754;
}

/* Fix for RTL languages if needed */
.iti--allow-dropdown input {
    padding-right: 6px;
    padding-left: 52px;
}

/* Fix for form layout with validation messages */
.modal .form-control {
  position: relative;
  z-index: 2;
}

.modal .invalid-feedback,
.modal .valid-feedback {
  position: absolute;
  margin-top: 2px;
  font-size: 0.75rem;
  z-index: 1;
}

/* Reserve space for validation messages to prevent layout shift */
.modal .form-label {
  margin-bottom: 0.25rem;
}

.modal .mb-3,
.modal .col-md-6,
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem;
}

/* Fix for the international telephone input container */
.iti-container {
  margin-bottom: 0;
}

.iti .form-control {
  margin-bottom: 0;
}

/* .iti + .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  font-size: 0.75rem;
} */

/* Make sure modals don't jump when opening/closing */
.modal.fade .modal-dialog {
  transform: translate(0, -10px);
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
}

/* Ensure form rows maintain structure */
.row.g-3 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Clean Form Validation Styling - Only for non-phone fields */
.modal .form-control:not(#signupPhone),
.modal .form-select {
  margin-bottom: 0 !important;
}

/* Keep inputs properly aligned vertically */
.modal .mb-3,
.modal .col-md-6:not(:has(#signupPhone)),
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem !important;
  margin-bottom: 0.25rem !important;
}

/* Only fix non-phone validation messages */
.modal .invalid-feedback:not(.iti + .invalid-feedback),
.modal .valid-feedback:not(.iti + .valid-feedback) {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Password field specific fixes */
.input-group + .invalid-feedback,
.input-group + .valid-feedback {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Adjust spacing for the submit button area */
.col-12.mt-4 {
  margin-top: 1rem !important;
}

/* Make sure text displays properly in inputs */
.form-control {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
}

/* Fix toggle button icon alignment */
.toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Better form label spacing */
.form-label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Keep validation messages properly spaced */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Phone number specific styling - Only modifies phone input */
.iti-container + .invalid-feedback {
  position: static !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  display: none;
}

/* Show phone validation error after submission */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Keep the phone field container properly sized */
.col-md-6:has(#signupPhone) {
  padding-bottom: 2.5rem !important;
}

/* Terms of Service specific styling - Only modifies checkbox validation */
.col-12:has(#termsAgree) {
  padding-bottom: 1.75rem !important;
}

.col-12:has(#termsAgree) .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  display: none;
}

/* Show terms validation error after submission */
.was-validated #termsAgree.is-invalid ~ .invalid-feedback,
#termsAgree.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Fix the checkbox alignment */
.form-check-input#termsAgree {
  margin-top: 0.3rem;
}

.form-check-label {
  margin-left: 0.2rem;
}

/* Phone Number Alert Positioning Fix */

/* Make phone input container static, not absolute positioning */
.col-md-6:has(#signupPhone) {
  position: relative !important;
  padding-bottom: 2rem !important;
  margin-bottom: 0.5rem !important;
}

/* Position the phone validation message correctly below input */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: static !important;
  display: block !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  visibility: hidden;
}

/* Make validation appear only after form submission */
.was-validated .iti + .invalid-feedback,
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  visibility: visible !important;
}

/* Fix the international telephone input container */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
}

/* Remove conflicting styles */
.iti-container {
  margin-bottom: 0 !important;
  position: static;
}

/* Phone Input Specific Fixes - Add to your custom.css */

/* Fix container height and positioning */
.iti-container,
.col-md-6:has(#signupPhone) {
  height: auto !important;
  min-height: 80px !important; /* Reserve consistent space for container + validation */
}

/* Ensure the phone input field maintains consistent dimensions */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
  position: relative;
  z-index: 3;
}

/* Position validation messages below the input without shifting layout */
.iti + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: absolute !important;
  bottom: 0 !important;
  left: 0.25rem !important;
  right: 0 !important;
  margin-top: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation messages when needed */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Remove any additional margins that might cause shifting */
.iti .form-control {
  margin: 0 !important;
}

/* Ensure proper input field display within ITI container */
.iti__flag-container {
  z-index: 4;
}

/* Make phone input field consistent height with other inputs */
#signupPhone {
  height: calc(1.5em + 0.75rem + 2px) !important;
}

/* Fix parent container padding to accommodate validation message */
.col-md-6:has(#signupPhone) {
  padding-bottom: 20px !important;
  position: relative !important;
}

/* Phone Number Field Alert - Completely Hide Validation Messages */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback,
#signupPhone + .invalid-feedback,
.col-md-6:has(#signupPhone) .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Always hide phone validation messages even after validation */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
.was-validated .iti + .invalid-feedback,
.was-validated .iti-container + .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
}

/* Remove excess padding in the phone container that was reserved for messages */
.col-md-6:has(#signupPhone) {
  padding-bottom: 0 !important;
  margin-bottom: 1rem !important;
  min-height: auto !important;
  height: auto !important;
}

/* Fix spacing for phone input to match other inputs */
.iti-container {
  margin-bottom: 0 !important;
}

/* Keep phone input consistent with other fields */
.iti {
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: auto !important;
}

/* Email field validation message fix */
.col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .valid-feedback {
  position: static !important;
  margin-top: 4px !important;
  padding: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation after submission */
.was-validated .col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .form-control.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Fix container spacing for email field */
.col-md-6:has(#signupEmail) {
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

/* Make email field consistent with other inputs */
#signupEmail {
  margin-bottom: 0 !important;
}

/* Tax ID Type button styling - Updated to match site theme */
.btn-check:checked + .btn-outline-primary {
    background-color: #259229 !important;
    color: white;
    border-color: #259229 !important;
    font-weight: 500;
}

/* Update button outline color to match theme */
.btn-group .btn-outline-primary {
    color: #259229;
    border-color: #259229;
}

.btn-group .btn-outline-primary:hover {
    background-color: rgba(37, 146, 41, 0.1);
    color: #259229;
    border-color: #259229;
}

/* Update prefix styling to match theme */
.id-type-prefix {
    min-width: 60px;
    display: flex;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.id-type-prefix.bg-primary {
    background-color: #259229 !important;
}

.id-type-prefix.bg-success {
    background-color: #259229 !important; /* Using primary color for both */
}

.id-info-tooltip {
    color: #6c757d;
}

.id-info-tooltip:hover {
    color: #259229;
}

.btn-group + .invalid-feedback {
    display: block;
    text-align: center;
    margin-top: 0.25rem;
}

#productModal .modal-content {
    overflow: hidden;
}

#productModal .modal-body {
    max-height: 80vh;
}

.features-list {
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px !important;
    border: 1px solid #eee;
    border-radius: 4px;
}

.features-list::-webkit-scrollbar {
    width: 6px;
}

.features-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Product modal feature styling */
#modal-product-features {
    padding-left: 0;
}

.product-feature-row {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    padding-right: 0.5rem;
}

.feature-value {
    color: #212529;
    flex: 1;
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .product-feature-row {
        flex-direction: column;
    }
    
    .feature-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .feature-value {
        padding-left: 1rem;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .product-image-container {
        height: 500px;
    }
    
    .product-detail-img {
        max-height: 470px;
    }
}

@media (max-width: 991.98px) {
    .modal-dialog.modal-lg {
        max-width: 90%;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-8,
    .modal-body .col-md-4 {
        width: 100%;
        max-width: 100%;
    }
    
    #modal-product-title {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    
    .feature-label, .feature-value {
        font-size: 0.95rem;
    }
}

/* Overriding Bootstrap's default list-group styles */
.list-group-item {
    border: none !important;
    background-color: transparent !important;
}


.iti {
    display: block;
    width: 100%;
}

.iti__flag-container {
    z-index: 1050; 
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: #f8f9fa;
    border-radius: 0.25rem 0 0 0.25rem;
}

.form-control.is-invalid ~ .iti .iti__selected-flag {
    border-color: #dc3545;
}

.form-control.is-valid ~ .iti .iti__selected-flag {
    border-color: #198754;
}

/* Fix for RTL languages if needed */
.iti--allow-dropdown input {
    padding-right: 6px;
    padding-left: 52px;
}

/* Fix for form layout with validation messages */
.modal .form-control {
  position: relative;
  z-index: 2;
}

.modal .invalid-feedback,
.modal .valid-feedback {
  position: absolute;
  margin-top: 2px;
  font-size: 0.75rem;
  z-index: 1;
}

/* Reserve space for validation messages to prevent layout shift */
.modal .form-label {
  margin-bottom: 0.25rem;
}

.modal .mb-3,
.modal .col-md-6,
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem;
}

/* Fix for the international telephone input container */
.iti-container {
  margin-bottom: 0;
}

.iti .form-control {
  margin-bottom: 0;
}

/* .iti + .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  font-size: 0.75rem;
} */

/* Make sure modals don't jump when opening/closing */
.modal.fade .modal-dialog {
  transform: translate(0, -10px);
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
}

/* Ensure form rows maintain structure */
.row.g-3 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Clean Form Validation Styling - Only for non-phone fields */
.modal .form-control:not(#signupPhone),
.modal .form-select {
  margin-bottom: 0 !important;
}

/* Keep inputs properly aligned vertically */
.modal .mb-3,
.modal .col-md-6:not(:has(#signupPhone)),
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem !important;
  margin-bottom: 0.25rem !important;
}

/* Only fix non-phone validation messages */
.modal .invalid-feedback:not(.iti + .invalid-feedback),
.modal .valid-feedback:not(.iti + .valid-feedback) {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Password field specific fixes */
.input-group + .invalid-feedback,
.input-group + .valid-feedback {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Adjust spacing for the submit button area */
.col-12.mt-4 {
  margin-top: 1rem !important;
}

/* Make sure text displays properly in inputs */
.form-control {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
}

/* Fix toggle button icon alignment */
.toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Better form label spacing */
.form-label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Keep validation messages properly spaced */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Phone number specific styling - Only modifies phone input */
.iti-container + .invalid-feedback {
  position: static !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  display: none;
}

/* Show phone validation error after submission */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Keep the phone field container properly sized */
.col-md-6:has(#signupPhone) {
  padding-bottom: 2.5rem !important;
}

/* Terms of Service specific styling - Only modifies checkbox validation */
.col-12:has(#termsAgree) {
  padding-bottom: 1.75rem !important;
}

.col-12:has(#termsAgree) .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  display: none;
}

/* Show terms validation error after submission */
.was-validated #termsAgree.is-invalid ~ .invalid-feedback,
#termsAgree.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Fix the checkbox alignment */
.form-check-input#termsAgree {
  margin-top: 0.3rem;
}

.form-check-label {
  margin-left: 0.2rem;
}

/* Phone Number Alert Positioning Fix */

/* Make phone input container static, not absolute positioning */
.col-md-6:has(#signupPhone) {
  position: relative !important;
  padding-bottom: 2rem !important;
  margin-bottom: 0.5rem !important;
}

/* Position the phone validation message correctly below input */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: static !important;
  display: block !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  visibility: hidden;
}

/* Make validation appear only after form submission */
.was-validated .iti + .invalid-feedback,
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  visibility: visible !important;
}

/* Fix the international telephone input container */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
}

/* Remove conflicting styles */
.iti-container {
  margin-bottom: 0 !important;
  position: static;
}

/* Phone Input Specific Fixes - Add to your custom.css */

/* Fix container height and positioning */
.iti-container,
.col-md-6:has(#signupPhone) {
  height: auto !important;
  min-height: 80px !important; /* Reserve consistent space for container + validation */
}

/* Ensure the phone input field maintains consistent dimensions */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
  position: relative;
  z-index: 3;
}

/* Position validation messages below the input without shifting layout */
.iti + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: absolute !important;
  bottom: 0 !important;
  left: 0.25rem !important;
  right: 0 !important;
  margin-top: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation messages when needed */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Remove any additional margins that might cause shifting */
.iti .form-control {
  margin: 0 !important;
}

/* Ensure proper input field display within ITI container */
.iti__flag-container {
  z-index: 4;
}

/* Make phone input field consistent height with other inputs */
#signupPhone {
  height: calc(1.5em + 0.75rem + 2px) !important;
}

/* Fix parent container padding to accommodate validation message */
.col-md-6:has(#signupPhone) {
  padding-bottom: 20px !important;
  position: relative !important;
}

/* Phone Number Field Alert - Completely Hide Validation Messages */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback,
#signupPhone + .invalid-feedback,
.col-md-6:has(#signupPhone) .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Always hide phone validation messages even after validation */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
.was-validated .iti + .invalid-feedback,
.was-validated .iti-container + .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
}

/* Remove excess padding in the phone container that was reserved for messages */
.col-md-6:has(#signupPhone) {
  padding-bottom: 0 !important;
  margin-bottom: 1rem !important;
  min-height: auto !important;
  height: auto !important;
}

/* Fix spacing for phone input to match other inputs */
.iti-container {
  margin-bottom: 0 !important;
}

/* Keep phone input consistent with other fields */
.iti {
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: auto !important;
}

/* Email field validation message fix */
.col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .valid-feedback {
  position: static !important;
  margin-top: 4px !important;
  padding: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation after submission */
.was-validated .col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .form-control.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Fix container spacing for email field */
.col-md-6:has(#signupEmail) {
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

/* Make email field consistent with other inputs */
#signupEmail {
  margin-bottom: 0 !important;
}

/* Tax ID Type button styling - Updated to match site theme */
.btn-check:checked + .btn-outline-primary {
    background-color: #259229 !important;
    color: white;
    border-color: #259229 !important;
    font-weight: 500;
}

/* Update button outline color to match theme */
.btn-group .btn-outline-primary {
    color: #259229;
    border-color: #259229;
}

.btn-group .btn-outline-primary:hover {
    background-color: rgba(37, 146, 41, 0.1);
    color: #259229;
    border-color: #259229;
}

/* Update prefix styling to match theme */
.id-type-prefix {
    min-width: 60px;
    display: flex;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.id-type-prefix.bg-primary {
    background-color: #259229 !important;
}

.id-type-prefix.bg-success {
    background-color: #259229 !important; /* Using primary color for both */
}

.id-info-tooltip {
    color: #6c757d;
}

.id-info-tooltip:hover {
    color: #259229;
}

.btn-group + .invalid-feedback {
    display: block;
    text-align: center;
    margin-top: 0.25rem;
}

#productModal .modal-content {
    overflow: hidden;
}

#productModal .modal-body {
    max-height: 80vh;
}

.features-list {
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px !important;
    border: 1px solid #eee;
    border-radius: 4px;
}

.features-list::-webkit-scrollbar {
    width: 6px;
}

.features-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Product modal feature styling */
#modal-product-features {
    padding-left: 0;
}

.product-feature-row {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    padding-right: 0.5rem;
}

.feature-value {
    color: #212529;
    flex: 1;
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .product-feature-row {
        flex-direction: column;
    }
    
    .feature-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .feature-value {
        padding-left: 1rem;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .product-image-container {
        height: 500px;
    }
    
    .product-detail-img {
        max-height: 470px;
    }
}

@media (max-width: 991.98px) {
    .modal-dialog.modal-lg {
        max-width: 90%;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-8,
    .modal-body .col-md-4 {
        width: 100%;
        max-width: 100%;
    }
    
    #modal-product-title {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    
    .feature-label, .feature-value {
        font-size: 0.95rem;
    }
}

/* Overriding Bootstrap's default list-group styles */
.list-group-item {
    border: none !important;
    background-color: transparent !important;
}


.iti {
    display: block;
    width: 100%;
}

.iti__flag-container {
    z-index: 1050; 
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: #f8f9fa;
    border-radius: 0.25rem 0 0 0.25rem;
}

.form-control.is-invalid ~ .iti .iti__selected-flag {
    border-color: #dc3545;
}

.form-control.is-valid ~ .iti .iti__selected-flag {
    border-color: #198754;
}

/* Fix for RTL languages if needed */
.iti--allow-dropdown input {
    padding-right: 6px;
    padding-left: 52px;
}

/* Fix for form layout with validation messages */
.modal .form-control {
  position: relative;
  z-index: 2;
}

.modal .invalid-feedback,
.modal .valid-feedback {
  position: absolute;
  margin-top: 2px;
  font-size: 0.75rem;
  z-index: 1;
}

/* Reserve space for validation messages to prevent layout shift */
.modal .form-label {
  margin-bottom: 0.25rem;
}

.modal .mb-3,
.modal .col-md-6,
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem;
}

/* Fix for the international telephone input container */
.iti-container {
  margin-bottom: 0;
}

.iti .form-control {
  margin-bottom: 0;
}

/* .iti + .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  font-size: 0.75rem;
} */

/* Make sure modals don't jump when opening/closing */
.modal.fade .modal-dialog {
  transform: translate(0, -10px);
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
}

/* Ensure form rows maintain structure */
.row.g-3 > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Clean Form Validation Styling - Only for non-phone fields */
.modal .form-control:not(#signupPhone),
.modal .form-select {
  margin-bottom: 0 !important;
}

/* Keep inputs properly aligned vertically */
.modal .mb-3,
.modal .col-md-6:not(:has(#signupPhone)),
.modal .col-md-4,
.modal .col-md-8,
.modal .col-md-12 {
  position: relative;
  padding-bottom: 1.5rem !important;
  margin-bottom: 0.25rem !important;
}

/* Only fix non-phone validation messages */
.modal .invalid-feedback:not(.iti + .invalid-feedback),
.modal .valid-feedback:not(.iti + .valid-feedback) {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Password field specific fixes */
.input-group + .invalid-feedback,
.input-group + .valid-feedback {
  position: absolute !important;
  bottom: 0;
  left: 0.25rem;
  margin-top: 0 !important;
  font-size: 0.75rem;
}

/* Adjust spacing for the submit button area */
.col-12.mt-4 {
  margin-top: 1rem !important;
}

/* Make sure text displays properly in inputs */
.form-control {
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
}

/* Fix toggle button icon alignment */
.toggle-password {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Better form label spacing */
.form-label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

/* Keep validation messages properly spaced */
.was-validated .form-control:invalid,
.form-control.is-invalid {
  background-position: right calc(0.375em + 0.1875rem) center !important;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

/* Phone number specific styling - Only modifies phone input */
.iti-container + .invalid-feedback {
  position: static !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  display: none;
}

/* Show phone validation error after submission */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Keep the phone field container properly sized */
.col-md-6:has(#signupPhone) {
  padding-bottom: 2.5rem !important;
}

/* Terms of Service specific styling - Only modifies checkbox validation */
.col-12:has(#termsAgree) {
  padding-bottom: 1.75rem !important;
}

.col-12:has(#termsAgree) .invalid-feedback {
  position: static !important;
  margin-top: 4px;
  display: none;
}

/* Show terms validation error after submission */
.was-validated #termsAgree.is-invalid ~ .invalid-feedback,
#termsAgree.is-invalid ~ .invalid-feedback {
  display: block;
}

/* Fix the checkbox alignment */
.form-check-input#termsAgree {
  margin-top: 0.3rem;
}

.form-check-label {
  margin-left: 0.2rem;
}

/* Phone Number Alert Positioning Fix */

/* Make phone input container static, not absolute positioning */
.col-md-6:has(#signupPhone) {
  position: relative !important;
  padding-bottom: 2rem !important;
  margin-bottom: 0.5rem !important;
}

/* Position the phone validation message correctly below input */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: static !important;
  display: block !important;
  margin-top: 4px !important;
  font-size: 0.75rem;
  visibility: hidden;
}

/* Make validation appear only after form submission */
.was-validated .iti + .invalid-feedback,
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  visibility: visible !important;
}

/* Fix the international telephone input container */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
}

/* Remove conflicting styles */
.iti-container {
  margin-bottom: 0 !important;
  position: static;
}

/* Phone Input Specific Fixes - Add to your custom.css */

/* Fix container height and positioning */
.iti-container,
.col-md-6:has(#signupPhone) {
  height: auto !important;
  min-height: 80px !important; /* Reserve consistent space for container + validation */
}

/* Ensure the phone input field maintains consistent dimensions */
.iti {
  width: 100% !important;
  margin-bottom: 0 !important;
  display: block;
  position: relative;
  z-index: 3;
}

/* Position validation messages below the input without shifting layout */
.iti + .invalid-feedback,
#signupPhone ~ .invalid-feedback {
  position: absolute !important;
  bottom: 0 !important;
  left: 0.25rem !important;
  right: 0 !important;
  margin-top: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation messages when needed */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Remove any additional margins that might cause shifting */
.iti .form-control {
  margin: 0 !important;
}

/* Ensure proper input field display within ITI container */
.iti__flag-container {
  z-index: 4;
}

/* Make phone input field consistent height with other inputs */
#signupPhone {
  height: calc(1.5em + 0.75rem + 2px) !important;
}

/* Fix parent container padding to accommodate validation message */
.col-md-6:has(#signupPhone) {
  padding-bottom: 20px !important;
  position: relative !important;
}

/* Phone Number Field Alert - Completely Hide Validation Messages */
.iti + .invalid-feedback,
.iti-container + .invalid-feedback,
#signupPhone ~ .invalid-feedback,
#signupPhone + .invalid-feedback,
.col-md-6:has(#signupPhone) .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Always hide phone validation messages even after validation */
.was-validated #signupPhone.is-invalid ~ .invalid-feedback,
.was-validated .iti + .invalid-feedback,
.was-validated .iti-container + .invalid-feedback,
#signupPhone.is-invalid ~ .invalid-feedback {
  display: none !important;
  visibility: hidden !important;
}

/* Remove excess padding in the phone container that was reserved for messages */
.col-md-6:has(#signupPhone) {
  padding-bottom: 0 !important;
  margin-bottom: 1rem !important;
  min-height: auto !important;
  height: auto !important;
}

/* Fix spacing for phone input to match other inputs */
.iti-container {
  margin-bottom: 0 !important;
}

/* Keep phone input consistent with other fields */
.iti {
  margin-bottom: 0 !important;
  height: auto !important;
  min-height: auto !important;
}

/* Email field validation message fix */
.col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .valid-feedback {
  position: static !important;
  margin-top: 4px !important;
  padding: 0 !important;
  font-size: 0.75rem;
  display: none;
}

/* Show validation after submission */
.was-validated .col-md-6:has(#signupEmail) .invalid-feedback,
.col-md-6:has(#signupEmail) .form-control.is-invalid ~ .invalid-feedback {
  display: block !important;
}

/* Fix container spacing for email field */
.col-md-6:has(#signupEmail) {
  padding-bottom: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

/* Make email field consistent with other inputs */
#signupEmail {
  margin-bottom: 0 !important;
}

/* Tax ID Type button styling - Updated to match site theme */
.btn-check:checked + .btn-outline-primary {
    background-color: #259229 !important;
    color: white;
    border-color: #259229 !important;
    font-weight: 500;
}

/* Update button outline color to match theme */
.btn-group .btn-outline-primary {
    color: #259229;
    border-color: #259229;
}

.btn-group .btn-outline-primary:hover {
    background-color: rgba(37, 146, 41, 0.1);
    color: #259229;
    border-color: #259229;
}

/* Update prefix styling to match theme */
.id-type-prefix {
    min-width: 60px;
    display: flex;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.id-type-prefix.bg-primary {
    background-color: #259229 !important;
}

.id-type-prefix.bg-success {
    background-color: #259229 !important; /* Using primary color for both */
}

.id-info-tooltip {
    color: #6c757d;
}

.id-info-tooltip:hover {
    color: #259229;
}

.btn-group + .invalid-feedback {
    display: block;
    text-align: center;
    margin-top: 0.25rem;
}

#productModal .modal-content {
    overflow: hidden;
}

#productModal .modal-body {
    max-height: 80vh;
}

.features-list {
    font-size: 0.9rem;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px !important;
    border: 1px solid #eee;
    border-radius: 4px;
}

.features-list::-webkit-scrollbar {
    width: 6px;
}

.features-list::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Product modal feature styling */
#modal-product-features {
    padding-left: 0;
}

.product-feature-row {
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.feature-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    padding-right: 0.5rem;
}

.feature-value {
    color: #212529;
    flex: 1;
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .product-feature-row {
        flex-direction: column;
    }
    
    .feature-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .feature-value {
        padding-left: 1rem;
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .product-image-container {
        height: 500px;
    }
    
    .product-detail-img {
        max-height: 470px;
    }
}

@media (max-width: 991.98px) {
    .modal-dialog.modal-lg {
        max-width: 90%;
    }
}

@media (max-width: 767.98px) {
    .modal-dialog.modalcss-lg {
        max-width: 95%;
        margin: 0.5rem auto;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-8,
    .modal-body .col-md-4 {
        width: 100%;
        max-width: 100%;
    }
    
    #modal-product-title {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    
    .feature-label, .feature-value {
        font-size: 0.95rem;
    }
}

/* Modal Responsiveness Improvements */
.modal-body {
  max-height: 80vh;
  overflow-y: auto;
  padding: 1rem;
}

/* Better display of features */
.product-feature-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.feature-label {
  font-weight: 600;
  min-width: 120px;
}

.feature-value {
  flex: 1;
}

/* Image container styling */
.product-image-container {
  cursor: pointer;
  position: relative;
}

.product-image-container::after {
  content: "\f00e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 10px;
  background-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.product-image-container:hover::after {
  opacity: 1;
}

.product-detail-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .image-description-container {
    order: -1;
    margin-bottom: 1rem;
  }
  
  .modal-body .row {
    flex-direction: column;
  }
  
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .product-detail-img {
    max-height: 300px;
  }
  
  .feature-label {
    min-width: 100px;
  }
}

/* Color options styling */
.color-options-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

.color-option {
  width: 50px;
  height: 50px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.color-option.selected {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.color-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Description styling */
.description-under-image {
  margin-top: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 1rem;
}

/* Fullscreen image improvements */
.fullscreen-image-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fullscreen-image-container.active {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}

.fullscreen-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.fullscreen-close i {
  color: #ffffff; /* White icon for better visibility */
    font-size: 20px;
}

/* Modify product modal image container */
#productModal .product-image-container {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#productModal .product-image-container::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#productModal .product-image-container:hover::after {
    opacity: 1;
}

/* Remove existing zoom styles */
.product-detail-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Card image container to prevent layout shift */
.card-img-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
  background-color: #f8f9fa;
}

.card-img-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #f1f1f1, #e9e9e9);
}

.card-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.lazy-load {
  opacity: 0;
}

/* Fix for swiper initialization */
.newsSwiper {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
}

.newsSwiper .swiper-wrapper {
  display: flex;
  transition-property: transform;
  box-sizing: content-box;
}

/* Give the slides a minimum height before loading */
.newsSwiper .swiper-slide {
  height: auto;
  min-height: 350px; /* Fixed minimum height */
}

.newsSwiper .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.newsSwiper .card-body {
  flex: 1;
}

/* News Swiper specific styles */
.newsSwiper {
  padding: 20px 5px 40px 5px;
  overflow: hidden;
  position: relative;
}

.newsSwiper .swiper-button-next,
.newsSwiper .swiper-button-prev {
  color: #259229; /* Match your primary color */
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.newsSwiper .swiper-button-next:after,
.newsSwiper .swiper-button-prev:after {
  font-size: 18px;
}

.newsSwiper .swiper-button-next {
  right: 5px;
}

.newsSwiper .swiper-button-prev {
  left: 5px;
}

.newsSwiper .swiper-pagination {
  bottom: 5px !important;
}

.newsSwiper .swiper-pagination-bullet {
  background: rgba(37, 146, 41, 0.5);
  opacity: 0.5;
}

.newsSwiper .swiper-pagination-bullet-active {
  background: #259229;
  opacity: 1;
}

/* Make sure cards in slides are full height */
.newsSwiper .swiper-slide {
  height: auto;
}

@media (max-width: 767.98px) {
  .newsSwiper .swiper-button-next,
  .newsSwiper .swiper-button-prev {
    display: none;
  }
}
/* Improve Read More button accessibility */
.card-footer .btn-link {
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
  padding: 8px 0;
  margin: -8px 0;
  width: fit-content;
}

.card-footer .btn-link:hover {
  text-decoration: underline;
}

.card-footer .btn-link:focus {
  outline: 2px solid #259229;
  border-radius: 3px;
}

.card-footer .btn-link:hover .fa-arrow-right {
  transform: translateX(4px);
}

.card-footer .btn-link .fa-arrow-right {
  transition: transform 0.2s ease;
}

/* High contrast mode visibility improvements */
@media (forced-colors: active) {
  .card-footer .btn-link:focus {
    outline: 2px solid CanvasText;
  }
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.legal-content h1 {
  color: #259229;
  margin-bottom: 2rem;
  font-weight: 600;
}

.legal-content h2 {
  color: #259229;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.legal-content p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 1.5rem;
}

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

.legal-content .last-updated {
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}