:root {
  /* Brand Colors */
  --color-primary:      #254D70;
  --color-primary-dark: #131D4F;
  --color-secondary:    #954C2E;
  --color-cream:        #EFE4D2;

  /* Elevation */
  --shadow-sm:    0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-card:  0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-pill: 50px;

  /* Transitions */
  --transition-base:  all 0.3s ease;
  --transition-fast:  color 0.2s;
  --transition-color: background-color 0.2s, color 0.2s;
}

body {
  background-color: var(--color-cream) !important; /* soft sand base */
  color: var(--color-primary-dark) !important; /* midnight blue text */
  font-family: var(--font-family-sans-serif, "Segoe UI", Roboto, Arial, sans-serif) !important;
  line-height: 1.6 !important;
  background-image: none !important;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-cream);
}
*::-webkit-scrollbar-track {
  background: var(--color-cream);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-cream);
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary-dark);
}

/* Headings
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary-dark) !important;
  font-weight: 600 !important;
}
*/

/* Links */
a {
  color: var(--color-primary) !important;
  text-decoration: none !important;
  transition: var(--transition-fast) ease !important;
}
a:hover {
  color: var(--color-primary-dark) !important;
}

/* Inputs & Textareas */
input,
select,
textarea {
  background-color: #FFFFFF !important;
  border: 1px solid var(--color-secondary) !important;
  color: var(--color-primary-dark) !important;
  padding: 0.625rem 0.875rem !important;
  border-radius: var(--radius-md) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
input:focus:not(.not-focus),
select:focus,
textarea:focus {
  border-color: var(--color-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(37, 77, 112, 0.1) !important;
}

input:disabled,
select:disabled,
textarea:disabled {
  background-color: #D8D1C4 !important; /* muted sand */
  border-color: var(--color-secondary) !important;
  color: var(--color-primary-dark) !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--color-primary) !important;
  border: 1px solid var(--color-primary) !important;
  color: #FFFFFF !important;
  padding: 0.625rem 1.25rem !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  transition: background-color 0.2s, transform 0.1s !important;
}
.btn-primary:hover {
  background-color: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
  color: #FFFFFF !important;
}

.btn-secondary {
  background-color: var(--color-secondary) !important;
  border: 1px solid var(--color-secondary) !important;
  color: #FFFFFF !important;
  padding: 0.625rem 1.25rem !important;
  border-radius: var(--radius-md) !important;
  transition: background-color 0.2s !important;
}
.btn-secondary:hover {
  background-color: #7A3A22 !important;
  border-color: #7A3A22 !important;
  color: #FFFFFF !important;
}

/* Cards / Panels */
body.forest-sage .card {
  background-color: #FFFFFF !important;
  border: 1px solid var(--color-secondary) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card) !important;
  overflow: hidden;
}

body.forest-sage .card-header {
  background-color: var(--color-cream) !important;
  color: var(--color-primary-dark) !important;
  font-weight: 600 !important;
  border-bottom: 1px solid var(--color-cream) !important;
}

body.forest-sage .card-footer {
  background: var(--color-cream) !important;
  border-top: 1px solid var(--color-cream) !important;
  color: var(--color-primary) !important;
}

body.forest-sage .card-footer.listing-card-footer {
  background: linear-gradient(135deg, #a5c8e6, #ecc3b2) !important;
  border-top: none !important;
  color: inherit !important;
}

/* Tables */
table {
  border-collapse: collapse !important;
  width: 100% !important;
}
body.forest-sage table th,
body.forest-sage table td {
  padding: 1rem !important;
  color: var(--color-primary-dark) !important;
  border-bottom: 1px solid var(--color-cream) !important;
}
body.forest-sage table thead th {
  background-color: var(--color-cream) !important;
  color: var(--color-primary-dark) !important;
  font-weight: 600 !important;
}

body.forest-sage .table-hover tbody tr:hover{
  background-color: #FCF8F2 !important;
}

label {
  color: var(--color-primary-dark) !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

body.forest-sage .modal-header {
  background: linear-gradient(140deg, #5990c0 0%, #c9704d 100%);
  color: #FFFFFF !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

body.forest-sage .modal-content {
  border: none !important;
  border-radius: var(--radius-xl, 16px) !important;
  box-shadow: var(--shadow-modal) !important;
}

body.forest-sage .modal-body {
  background-color: #FFFFFF !important;
}

body.forest-sage .modal-footer {
  background-color: #F8FAFC !important;
  border-top: 1px solid #E2E8F0 !important;
}

body.forest-sage .tab-content, body.forest-sage .single-page .wrapper>form {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
}


body.forest-sage .bg-white { 
  background-color: #FFFFFF !important;
}

body.forest-sage .bg-dark { 
  background-color: #131D4F !important;
}

.header-main .horizontal-mainwrapper .horizontalMenu .horizontalMenu-list li a.add-listing-btn {
  color: #254D70 !important;
  font-weight: 700 !important;
}

.header-main .horizontalMenu > .horizontalMenu-list > li > a:hover {
  background-color: #EFE4D2 !important;
  color: #254D70 !important;
}

body.forest-sage .btn-dark:hover {
  color: #fff !important;
}

.listing-image-fallback {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
}

.modal-header {
  background-color: #FFFFFF;
  color: var(--color-primary-dark);
}

body.forest-sage .profile-section .card-header,
body.forest-sage .profile-section thead tr {
  background: var(--color-cream);
  color: var(--color-primary-dark) !important;
}

body.forest-sage .header-search-button {
  background-color: var(--color-primary) !important;
  color: #FFFFFF !important;
}

body.forest-sage .header-search-button:hover {
  background-color: var(--color-primary-dark) !important;
}



/* ===== Forest-Sage Select2 Overrides ===== */
body.forest-sage .select2-container--default .select2-selection--single {
  /* background-color: #FFFFFF !important; */
  border: 1px solid var(--color-secondary) !important;
  color: #1E293B !important;
  border-radius: var(--radius-md) !important;
}

body.forest-sage .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #1E293B !important;
}

body.forest-sage .select2-container--default .select2-dropdown {
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

body.forest-sage .select2-container .select2-selection--multiple {
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
}

body.forest-sage .subscription-purchase .select2-container--default input, 
body.forest-sage .location-basic-details-section .select2-container--default input  {
  border: none !important;
  color: #1E293B !important;
} 

body.forest-sage .subscription-purchase .select2-container--default input:focus,
body.forest-sage .location-basic-details-section .select2-container--default input:focus {
  box-shadow: none !important;
} 

body.forest-sage .subscription-purchase .select2-container--default .select2-selection--multiple::after{
    border-bottom: 2px solid #64748B;
    border-right: 2px solid #64748B;
    content: '';
    display: block;
    height: 6px;
    margin-top: -4px;
    pointer-events: none;
    position: absolute;
    right: 22px;
    top: 50%;
    z-index: 5;
    transform: rotate(45deg);
    width: 6px;
}

body.forest-sage .subscription-purchase  .select2-container--default .select2-selection--multiple .select2-selection__choice,
body.forest-sage .location-basic-details-section  .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--color-primary) !important;
  color: #FFFFFF !important;
  border: none !important;
}
body.forest-sage .location-basic-details-section .select2-container .select2-selection--multiple {
  border-radius: 5px !important;
  border: 1px solid var(--color-secondary) !important;
}

/* Options */
body.forest-sage .select2-container--default .select2-results__option {
  color: var(--color-primary-dark) !important;
}
body.forest-sage .select2-container--default .select2-results__option--highlighted {
  background-color: var(--color-primary) !important;
  color: #FFFFFF !important;
}
body.forest-sage .select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: var(--color-cream) !important;
  color: var(--color-primary) !important;
}

.light-color-btn{
  background-color: #F1F5F9 !important;
  color: #475569 !important;
}
.light-color-btn:hover{
  background-color:#E2E8F0 !important;
}

/* Placeholder */
body.forest-sage .select2-container--default .select2-selection__placeholder {
  color: #94A3B8 !important;
}

body.forest-sage .select2-container--default .select2-search--dropdown .select2-search__field{
  border:1px solid #2563EB !important;
}

body.forest-sage .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #94A3B8 !important;
}

body.forest-sage .active-color {
  color: #fff !important;
}

body.forest-sage #back-to-top:hover i {
  color: #FFFFFF !important;
}

body.forest-sage .single-page .wrapper label, body.forest-sage .single-page .wrapper, body.forest-sage .lost-password-modal, body.forest-sage .top-bar {
  background: #F8FAFC !important;
}

@media only screen and (max-width: 991px) {
    body.forest-sage .horizontalMenu>.horizontalMenu-list>li {
      background-color: #FFFFFF !important;
    }
}

body.forest-sage .breadcrumb-item+.breadcrumb-item::before {
  color: #94A3B8 !important;
}

body.forest-sage .border-primary {
  border: 1px solid #2563EB !important;
}

body.forest-sage .listing-details-main-page .card .card-header, body.forest-sage .item-user span i  {
  background-color: #954C2E !important;
}

body.forest-sage .item-user span i {
  color: #FFFFFF !important;
}

body.forest-sage .dropdown-item:focus, body.forest-sage .dropdown-item:hover {
  background: none !important;
}

/* Explicitly fix header wings and missing hero backgrounds */
body.forest-sage .header-main {
  background: linear-gradient(135deg, #0d1c3f 0%, #1a3a6b 55%, #254D70 100%) !important;
}
/* Fix desktop sticky header height increase issue */
@media (min-width: 992px) {
  body .sticky-wrapper.is-sticky .horizontal-main {
    height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  body .sticky-wrapper.is-sticky .horizontal-main:after {
    display: none !important;
  }
}
@media (max-width: 991px) {
  body.forest-sage .horizontal-mainwrapper,
  body.forest-sage .horizontal-main {
    background: transparent !important;
  }
}

body.forest-sage .top-banner-container {
  background-color: #0D1432 !important;
  background-image: 
    radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1px),
    linear-gradient(140deg, #131D4F 0%, #254D70 55%, #954C2E 100%) !important;
  background-size: 22px 22px, 100% 100% !important;
  background-position: 0 0, 0 0 !important;
}

body.forest-sage .bannerimg {
  background-image: none !important;
  background-color: #EFE4D2 !important;
}

body.forest-sage .top-banner-container h1,
body.forest-sage .top-banner-container h2,
body.forest-sage .top-banner-container h3 {
  color: #FFFFFF !important;
}

/* Hero headline accent word */
body.forest-sage .hero-accent {
  color: #F0A878 !important;
}

/* Select2 overrides inside hero pill */
body.forest-sage .hero-search-pill .select2-container--default .select2-selection--single {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
}

body.forest-sage .hero-search-pill .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 54px !important;
  padding-left: 0 !important;
  color: #6b7280 !important;
}

body.forest-sage .hero-search-pill .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 54px !important;
}

body.forest-sage .hero-search-pill .select2-container {
  width: 100% !important;
}

/* Select2 — consolidated from dev-style.css */
body.forest-sage .select2-results__options {
  box-shadow: none !important;
}

body.forest-sage .select2-height-box .select2-container--default .select2-selection--single,
body.forest-sage .select2-height-box .select2-container--default .select2-selection--multiple {
  min-height: 45px !important;
  display: flex !important;
  align-items: center !important;
}

body.forest-sage .badge-success {
  background-color: var(--color-secondary) !important;
  color: var(--color-cream) !important;
}

/* Backtrack/Fixed elements overrides */
#back-to-top {
  background-color: var(--color-secondary) !important;
  color: var(--color-cream) !important;
  border-radius: 50% !important;
  transition: var(--transition-base) !important;
}

#back-to-top:hover {
  background-color: #cc7e5f !important;
  color: #FFFFFF !important;
}

body.forest-sage .alert-success {
  background-color: var(--color-cream) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary-dark) !important;
}

body.forest-sage .business-main-section table th,
body.forest-sage .business-main-section table td {
  padding: 0 !important;
}

body.forest-sage .business-hours-section-main .input-group .input-group-text,
body.forest-sage .input-icon-box .bootstrap-tagsinput .tag {
  background-color: var(--color-primary) !important;
  color: #fff !important;
}

body.forest-sage .input-icon-box .bootstrap-tagsinput {
  border-radius: 5px !important;
  background-color: #FFFFFF !important;
  border: 1px solid var(--color-secondary) !important;
}

body.forest-sage .input-icon-box .bootstrap-tagsinput input:focus{
  box-shadow: none !important;
}

body.forest-sage .profile-invoice-details-page .invoice-root{
  background: #FFFFFF !important;
}

body.forest-sage .profile-invoice-details-page .invoice-root .card {
  background-color: #fafafa !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
}

.custom-header-avatar {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.service-area-block .added-service-area-block .card {
  background-color: #e7d8c0 !important;
}

body.forest-sage .card-bg {
  background-color: #FCF8F2 !important;
  border: 1px solid #EFE4D2 !important;
}