/*
Theme Name: Broward Real Estate
Theme URI: https://browardrealestate.com/
Author: Antigravity
Author URI: https://browardrealestate.com/
Description: Custom modern luxury WordPress theme for Broward Real Estate. Verified Instagram brand tokens & department palettes.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: broward-real-estate
*/

/* ==========================================================================
   1. VERIFIED INSTAGRAM BRAND TOKENS & GLOBAL NEUTRALS
   ========================================================================== */
:root {
  /* Global Neutrals (Verified from Client's Live Instagram Accounts) */
  --bre-bg-light: #F8F9FA;
  --bre-surface-white: #FFFFFF;
  --bre-text-primary: #1A202C;
  --bre-text-muted: #4A5568;
  --bre-border-neutral: #E2E8F0;
  --bre-border-subtle: #EDF2F7;

  /* Global Action / Submit Button Token */
  --bre-btn-action: #D35400;
  --bre-btn-action-hover: #B94600;

  /* Base Brand Tokens */
  --color-primary: #0C382E;
  --color-primary-dark: #071F19;
  --color-primary-light: #144A3E;
  --color-secondary: #E5A93C;
  --color-accent: #E5A93C;
  --color-accent-hover: #cf9328;
  --color-accent-light: #FDF7EB;
  --color-bg-dark: #071F19;
  --color-bg-light: #F8F9FA;
  --color-bg-white: #FFFFFF;
  --color-text-main: #1A202C;
  --color-text-muted: #4A5568;
  --color-text-light: #718096;
  --color-border: #E2E8F0;

  /* Theme-specific tokens */
  --bre-primary: #0C382E;
  --bre-primary-dark: #071F19;
  --bre-primary-light: #144A3E;
  --bre-accent: #E5A93C;
  --bre-accent-gold: #E5A93C;
  --bre-accent-hover: #cf9328;
  --bre-accent-light: #FDF7EB;
  --bre-accent-border: rgba(229, 169, 60, 0.4);
  --bre-text-main: var(--bre-text-primary);
  --bre-text-muted: var(--bre-text-muted);
  --bre-text-light: #718096;
  --bre-bg-white: var(--bre-surface-white);
  --bre-bg-light: var(--bre-bg-light);
  --bre-bg-cream: #F8F9FA;
  --bre-border-color: var(--bre-border-neutral);
  --bre-border-light: var(--bre-border-subtle);

  /* Typography */
  --bre-font-heading: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bre-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii & Elevation */
  --bre-radius-sm: 8px;
  --bre-radius-md: 14px;
  --bre-radius-lg: 20px;
  --bre-radius-full: 9999px;

  --bre-shadow-sm: 0 2px 6px rgba(12, 56, 46, 0.05);
  --bre-shadow-md: 0 6px 20px rgba(12, 56, 46, 0.08);
  --bre-shadow-lg: 0 12px 36px rgba(12, 56, 46, 0.12);
  --bre-shadow-xl: 0 24px 50px rgba(12, 56, 46, 0.18);

  --bre-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. DEPARTMENT PALETTES & SCOPED THEMES
   ========================================================================== */

/* Rentals In Broward Theme (.theme-rentals / /find-a-rental/, /find-a-tenant/) */
.theme-rentals,
body.theme-rentals,
body.bre-mode-rentals {
  --bre-primary: #0C382E;
  --bre-primary-dark: #071F19;
  --bre-secondary: #144A3E;
  --bre-accent: #E5A93C;
  --bre-accent-gold: #E5A93C;
  --bre-accent-hover: #cf9328;
  --bre-card-border: rgba(12, 56, 46, 0.18);
  --bre-card-border-hover: #0C382E;
  --bre-badge-bg: rgba(12, 56, 46, 0.12);
  --bre-badge-text: #0C382E;
  --mode-primary: #0C382E;
  --mode-secondary: #144A3E;
  --mode-accent: #E5A93C;
  --mode-accent-hover: #cf9328;
  --mode-glow: rgba(229, 169, 60, 0.35);
  --mode-badge-bg: rgba(12, 56, 46, 0.12);
  --mode-badge-text: #0C382E;
  --mode-underline: #E5A93C;
}

/* Sales In Broward Theme (.theme-sales / /buy-a-property/, /sell-a-property/) */
.theme-sales,
body.theme-sales,
body.bre-mode-sales {
  --bre-primary: #0B3336;
  --bre-primary-dark: #062224;
  --bre-secondary: #134B4F;
  --bre-accent: #E5A93C;
  --bre-accent-gold: #E5A93C;
  --bre-accent-hover: #cf9328;
  --bre-card-border: rgba(11, 51, 54, 0.18);
  --bre-card-border-hover: #0B3336;
  --bre-badge-bg: rgba(11, 51, 54, 0.12);
  --bre-badge-text: #0B3336;
  --mode-primary: #0B3336;
  --mode-secondary: #134B4F;
  --mode-accent: #E5A93C;
  --mode-accent-hover: #cf9328;
  --mode-glow: rgba(19, 75, 79, 0.35);
  --mode-badge-bg: rgba(11, 51, 54, 0.12);
  --mode-badge-text: #0B3336;
  --mode-underline: #E5A93C;
}

/* Shared / Dual-Brand Theme (.theme-dual / Homepage, Advertising, Partnerships, Cities) */
.theme-dual,
body.theme-dual,
body.bre-mode-shared {
  --bre-primary: #0C382E;
  --bre-primary-rentals: #0C382E;
  --bre-secondary-rentals: #144A3E;
  --bre-primary-sales: #0B3336;
  --bre-secondary-sales: #134B4F;
  --bre-accent: #E5A93C;
  --bre-accent-gold: #E5A93C;
  --bre-accent-hover: #cf9328;
  --bre-card-border: rgba(12, 56, 46, 0.15);
  --bre-card-border-hover: #0C382E;
  --mode-primary: #0C382E;
  --mode-secondary: #0B3336;
  --mode-accent: #E5A93C;
  --mode-glow: rgba(229, 169, 60, 0.35);
  --mode-badge-bg: rgba(12, 56, 46, 0.12);
  --mode-badge-text: #0C382E;
  --mode-underline: #E5A93C;
}

/* ==========================================================================
   3. GLOBAL ACTION / SUBMIT BUTTON STYLES (#D35400 / #B94600)
   ========================================================================== */
.bre-btn-action,
.bre-btn-submit-intake,
.theme-rentals .bre-btn-submit-intake,
.theme-sales .bre-btn-submit-intake,
.theme-dual .bre-btn-submit-intake,
body.bre-mode-rentals .bre-btn-submit-intake,
body.bre-mode-sales .bre-btn-submit-intake,
body.bre-mode-shared .bre-btn-submit-intake,
#btnSubmitIntake,
#btnSubmitLandlord,
#btnSubmitBuyer,
#btnSubmitSeller,
#btnSubmitPartnership,
#btnSubmitRealtorApplication,
.bre-city-modal-submit,
input[type="submit"].bre-btn-primary,
button[type="submit"].bre-btn-primary {
  background: #D35400 !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(211, 84, 0, 0.35) !important;
  border: none !important;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

.bre-btn-action:hover,
.bre-btn-submit-intake:hover,
.theme-rentals .bre-btn-submit-intake:hover,
.theme-sales .bre-btn-submit-intake:hover,
.theme-dual .bre-btn-submit-intake:hover,
body.bre-mode-rentals .bre-btn-submit-intake:hover,
body.bre-mode-sales .bre-btn-submit-intake:hover,
body.bre-mode-shared .bre-btn-submit-intake:hover,
#btnSubmitIntake:hover,
#btnSubmitLandlord:hover,
#btnSubmitBuyer:hover,
#btnSubmitSeller:hover,
#btnSubmitPartnership:hover,
#btnSubmitRealtorApplication:hover,
.bre-city-modal-submit:hover,
input[type="submit"].bre-btn-primary:hover,
button[type="submit"].bre-btn-primary:hover {
  background: #B94600 !important;
  box-shadow: 0 12px 30px rgba(185, 70, 0, 0.45) !important;
  transform: translateY(-2px) !important;
  filter: brightness(1.05) !important;
}

/* ==========================================================================
   4. DUAL-DOMAIN HIGHLIGHTING & HERO FEATURE CARDS
   ========================================================================== */
.bre-hero-feature-card.is-brand-featured {
  transform: translateY(-4px);
  position: relative;
  z-index: 2;
}
.bre-hero-feature-card.brand-highlight-rentals {
  border-color: #E5A93C !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(229, 169, 60, 0.35) !important;
}
.bre-hero-feature-card.brand-highlight-sales {
  border-color: #E5A93C !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(19, 75, 79, 0.35) !important;
}
.bre-active-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  animation: brePillPulse 2.5s infinite;
}
.bre-active-domain-pill.badge-rentals {
  background: rgba(12, 56, 46, 0.2);
  border: 1px solid #E5A93C;
  color: #FEF3C7;
}
.bre-active-domain-pill.badge-sales {
  background: rgba(11, 51, 54, 0.2);
  border: 1px solid #E5A93C;
  color: #E2E8F0;
}
@keyframes brePillPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   5. GLOBAL HEADER UI/UX, BRAND POLISH & ALL-DEVICE RESPONSIVE SUITE
   ========================================================================== */

/* 5.1 Global Overflow & Smooth Scroll Protection */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 5.2 Header Navbar & Glassmorphic Elevation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(12, 56, 46, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(229, 169, 60, 0.28) !important;
  box-shadow: 0 4px 24px rgba(7, 31, 25, 0.4) !important;
  transition: all 0.3s ease;
}

.bre-header-inner {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 5.3 Single Unified Brand Logo Lockup */
.bre-dynamic-branding .bre-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.25s ease;
  user-select: none;
}

.bre-dynamic-branding .bre-brand-link:hover {
  transform: translateY(-1px);
}

.bre-dynamic-branding .bre-brand-emblem-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px #E5A93C, 0 4px 14px rgba(12, 56, 46, 0.35);
  background: #0C382E;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bre-dynamic-branding .bre-brand-link:hover .bre-brand-emblem-wrap {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px #E5A93C, 0 0 18px rgba(229, 169, 60, 0.5);
}

.bre-dynamic-branding .bre-brand-emblem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bre-dynamic-branding .bre-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.bre-dynamic-branding .bre-brand-title {
  color: #FFFFFF;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.bre-dynamic-branding .bre-brand-subtitle {
  color: #E5A93C;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-top: 3px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* 5.4 Desktop Navigation & Compact Laptop Fitting (993px - 1199px) */
.bre-dropdown-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bre-chevron {
  font-size: 0.72rem;
  margin-left: 3px;
  opacity: 0.75;
  transition: transform 0.25s ease, color 0.25s ease;
}

.bre-has-dropdown:hover .bre-chevron,
.bre-has-dropdown:focus-within .bre-chevron,
.bre-has-dropdown.is-focused .bre-chevron {
  transform: rotate(180deg);
  color: #E5A93C;
}

/* Enhanced Luxury Glassmorphism Submenu Dropdown Panel */
.bre-sub-menu-dropdown {
  background: rgba(6, 27, 22, 0.98) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(229, 169, 60, 0.28) !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(229, 169, 60, 0.12) !important;
}

.bre-dropdown-item:hover {
  background: rgba(229, 169, 60, 0.08) !important;
}

.bre-dropdown-item:hover .bre-dd-title {
  color: #E5A93C !important;
}

.bre-dropdown-item:hover .bre-dd-icon-box {
  transform: scale(1.08);
  transition: transform 0.2s ease;
}

/* Prevent Wide Dropdown Overflow on Laptop/Desktop */
.bre-dropdown-cities {
  left: auto !important;
  right: -30px !important;
  transform: translateY(14px) !important;
}

.bre-has-dropdown:hover .bre-dropdown-cities,
.bre-has-dropdown:focus-within .bre-dropdown-cities,
.bre-has-dropdown.is-focused .bre-dropdown-cities {
  transform: translateY(6px) !important;
}

.bre-dropdown-cities .bre-dropdown-arrow {
  left: auto !important;
  right: 52px !important;
  background: rgba(6, 27, 22, 0.98) !important;
  border-left: 1px solid rgba(229, 169, 60, 0.28) !important;
  border-top: 1px solid rgba(229, 169, 60, 0.28) !important;
}

.bre-dropdown-partnerships {
  left: auto !important;
  right: -15px !important;
  transform: translateY(14px) !important;
}

.bre-has-dropdown:hover .bre-dropdown-partnerships,
.bre-has-dropdown:focus-within .bre-dropdown-partnerships,
.bre-has-dropdown.is-focused .bre-dropdown-partnerships {
  transform: translateY(6px) !important;
}

.bre-dropdown-partnerships .bre-dropdown-arrow {
  left: auto !important;
  right: 44px !important;
  background: rgba(6, 27, 22, 0.98) !important;
  border-left: 1px solid rgba(229, 169, 60, 0.28) !important;
  border-top: 1px solid rgba(229, 169, 60, 0.28) !important;
}

@media (min-width: 993px) and (max-width: 1199px) {
  .bre-header-inner {
    padding: 0 16px !important;
  }
  .main-navigation .bre-figma-nav {
    gap: 14px !important;
  }
  .main-navigation .bre-figma-nav li a {
    font-size: 0.86rem !important;
    padding: 6px 0 !important;
  }
  .bre-header-cta-wrap {
    margin-left: 4px !important;
  }
  .bre-header-cta-wrap .bre-header-action-btn {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }
  .bre-dynamic-branding .bre-brand-title {
    font-size: 1.02rem !important;
  }
  .bre-dynamic-branding .bre-brand-subtitle {
    font-size: 0.64rem !important;
  }
}

/* 5.5 Mobile Hamburger Toggle Button */
.mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(229, 169, 60, 0.3);
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 10px;
  transition: all 0.25s ease;
  z-index: 1001;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: rgba(229, 169, 60, 0.2);
  border-color: #E5A93C;
  transform: scale(1.04);
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 5.6 Mobile Navigation Drawer Architecture */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 86vw) !important;
  height: 100% !important;
  height: 100dvh !important;
  background: linear-gradient(180deg, #071F19 0%, #0C382E 100%) !important;
  border-left: 1px solid rgba(229, 169, 60, 0.35) !important;
  z-index: 99999 !important;
  padding: 24px 20px !important;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.65) !important;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.mobile-nav-drawer.active {
  right: 0 !important;
}

.mobile-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(7, 31, 25, 0.82) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99998 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.mobile-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.drawer-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(229, 169, 60, 0.22) !important;
  padding-bottom: 16px !important;
  margin-bottom: 20px !important;
  flex-shrink: 0 !important;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 50% !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #FFFFFF !important;
  font-size: 1.4rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.drawer-close-btn:hover {
  background: rgba(229, 169, 60, 0.25) !important;
  border-color: #E5A93C !important;
  color: #E5A93C !important;
  transform: rotate(90deg) !important;
}

.drawer-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

.drawer-accordion-toggle {
  min-height: 48px;
  touch-action: manipulation;
}

.drawer-actions {
  margin-top: 24px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  flex-shrink: 0 !important;
}

.drawer-actions .bre-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 13px 20px !important;
  border-radius: 12px !important;
  background: #D35400 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(211, 84, 0, 0.35) !important;
  transition: background 0.2s ease !important;
}

.drawer-actions .bre-btn:hover {
  background: #B94600 !important;
}

/* 5.7 Back to Top Button UI/UX (Positioned Safely Above AI Chat Launcher) */
.back-to-top {
  position: fixed !important;
  bottom: 100px !important;
  right: 28px !important;
  width: 46px !important;
  height: 46px !important;
  background: linear-gradient(135deg, #0C382E 0%, #071F19 100%) !important;
  color: #E5A93C !important;
  border: 1.5px solid #E5A93C !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 0 !important;
  visibility: hidden !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(229, 169, 60, 0.2) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 999980 !important;
}

.back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.back-to-top:hover {
  background: #E5A93C !important;
  color: #071F19 !important;
  border-color: #E5A93C !important;
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(229, 169, 60, 0.45) !important;
}

/* 5.8 Tablet & Mobile Responsive Breakpoints */
@media (max-width: 991px) {
  .main-navigation {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .bre-header-inner {
    height: 72px;
  }
  .bre-process-steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
  }
  .bre-pathway-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .bre-subpage-title {
    font-size: clamp(2rem, 5vw, 2.75rem) !important;
  }
  .bre-subpage-subtitle {
    font-size: 0.98rem !important;
    margin-bottom: 24px !important;
  }
  .bre-metrics-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .bre-form-grid-2col,
  .bre-form-grid-3col {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .bre-process-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .bre-intake-form-container {
    padding: 30px 20px !important;
    border-radius: 16px !important;
  }
  .bre-partnership-terms-container {
    padding: 28px 20px !important;
    border-radius: 16px !important;
  }
  .bre-partnership-terms-container > div:nth-child(2) > div {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 640px) {
  .bre-service-distinction-badge-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 16px 18px !important;
    gap: 12px !important;
  }
  .bre-distinction-text {
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .bre-header-inner {
    height: 64px !important;
    padding: 0 12px !important;
  }
  .bre-dynamic-branding .bre-brand-link {
    gap: 9px !important;
  }
  .bre-dynamic-branding .bre-brand-emblem-wrap {
    width: 36px !important;
    height: 36px !important;
  }
  .bre-dynamic-branding .bre-brand-title {
    font-size: 0.92rem !important;
    line-height: 1.1 !important;
  }
  .bre-dynamic-branding .bre-brand-subtitle {
    font-size: 0.58rem !important;
    letter-spacing: 0.3px !important;
  }
  .mobile-menu-toggle {
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
  }
  .bre-subpage-title {
    font-size: 1.75rem !important;
  }
  .bre-subpage-subtitle {
    font-size: 0.88rem !important;
  }
  .bre-metrics-inner {
    grid-template-columns: 1fr !important;
  }
  .bre-intake-form-container {
    padding: 22px 14px !important;
  }
  .bre-intake-form-title {
    font-size: 1.55rem !important;
  }
  .bre-intake-form-subtitle {
    font-size: 0.86rem !important;
  }
  .bre-input,
  .bre-select,
  .bre-textarea {
    font-size: 16px !important; /* Prevents auto-zoom on mobile iOS Safari */
    padding: 12px 30px !important;
  }
  .bre-city-chips-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .bre-segmented-row {
    flex-direction: column !important;
  }
  .bre-ad-packages-grid {
    grid-template-columns: 1fr !important;
  }
  .bre-btn-submit-intake {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    justify-content: center !important;
  }
  .bre-btn-action {
    width: 100% !important;
  }
  .back-to-top {
    bottom: 84px !important;
    right: 18px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 375px) {
  .bre-dynamic-branding .bre-brand-title {
    font-size: 0.84rem !important;
  }
  .bre-dynamic-branding .bre-brand-subtitle {
    font-size: 0.54rem !important;
  }
  .bre-dynamic-branding .bre-brand-emblem-wrap {
    width: 32px !important;
    height: 32px !important;
  }
  .bre-intake-form-container {
    padding: 18px 10px !important;
  }
}

/* ==========================================================================
   5.9 INTERACTIVE FORM CHECKBOX & RADIO CARDS UI/UX
   ========================================================================== */
.bre-checkbox-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

.bre-checkbox-card {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 18px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

.bre-checkbox-card:hover {
  border-color: #0C382E !important;
  background: #F8FAF8 !important;
  transform: translateY(-1px) !important;
}

.bre-checkbox-card.active,
.bre-checkbox-card:has(input[type="checkbox"]:checked) {
  background: rgba(12, 56, 46, 0.05) !important;
  border-color: #0C382E !important;
  box-shadow: 0 0 0 1px #0C382E, 0 4px 14px rgba(12, 56, 46, 0.08) !important;
}

.bre-checkbox-card input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none !important;
}

.bre-checkbox-indicator {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  border-radius: 6px !important;
  border: 2px solid #CBD5E1 !important;
  background: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-size: 0.8rem !important;
  transition: all 0.2s ease !important;
}

.bre-checkbox-indicator i {
  opacity: 0 !important;
  transform: scale(0.6) !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
  color: #FFFFFF !important;
}

.bre-checkbox-card.active .bre-checkbox-indicator,
.bre-checkbox-card:has(input[type="checkbox"]:checked) .bre-checkbox-indicator {
  background: #0C382E !important;
  border-color: #0C382E !important;
}

.bre-checkbox-card.active .bre-checkbox-indicator i,
.bre-checkbox-card:has(input[type="checkbox"]:checked) .bre-checkbox-indicator i {
  opacity: 1 !important;
  transform: scale(1) !important;
  color: #FFFFFF !important;
}

.bre-checkbox-card-label {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #1A202C !important;
  line-height: 1.3 !important;
}

/* "Documents Not Ready Yet" Distinctive Amber Accent */
#cardDocsNotReady.active,
#cardDocsNotReady:has(input[type="checkbox"]:checked) {
  background: rgba(217, 119, 6, 0.07) !important;
  border-color: #D97706 !important;
  box-shadow: 0 0 0 1px #D97706, 0 4px 14px rgba(217, 119, 6, 0.12) !important;
}

#cardDocsNotReady.active .bre-checkbox-indicator,
#cardDocsNotReady:has(input[type="checkbox"]:checked) .bre-checkbox-indicator {
  background: #D97706 !important;
  border-color: #D97706 !important;
}

/* ==========================================================================
   5.10 MUNICIPALITIES ACTION BUTTONS CONTRAST FIX
   ========================================================================== */
.muni-actions-wrap .btn-archive-link,
.btn-archive-link {
  background: #FFFDF8 !important;
  border: 1.5px solid #E5A93C !important;
  color: #0C382E !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(229, 169, 60, 0.18) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.muni-actions-wrap .btn-archive-link i,
.btn-archive-link i {
  color: #D97706 !important;
  font-size: 0.95rem !important;
  transition: color 0.25s ease !important;
}

.muni-actions-wrap .btn-archive-link:hover,
.btn-archive-link:hover {
  background: #0C382E !important;
  color: #FFFFFF !important;
  border-color: #0C382E !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(12, 56, 46, 0.35) !important;
}

.muni-actions-wrap .btn-archive-link:hover i,
.btn-archive-link:hover i {
  color: #E5A93C !important;
}


