/* These styles are generated from project.scss. */

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* ============================================
   Login Page - Form Checkbox Fix
   ============================================ */
/* Override Digalu theme's global input min-height: 50px */
input[type="checkbox"].form-check-input,
input[type="radio"].form-check-input {
  width: 1rem !important;
  height: 1rem !important;
  min-height: 1rem !important;
  margin-top: 0 !important;
  vertical-align: middle;
  flex-shrink: 0;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: auto;
}

.form-check .form-check-label {
  margin-bottom: 0;
  line-height: 1.5;
}

/* ============================================
   Navbar Auth Buttons - Modern Styling
   ============================================ */
/* Sign In button - clean outline style */
.attr-nav .nav-item .btn-outline-secondary {
  color: #333 !important;
  background-color: transparent !important;
  border: 1.5px solid #ddd !important;
  border-radius: 6px !important;
  padding: 8px 20px !important;
  font-size: 16px !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
  min-height: auto !important;
  height: auto !important;
  line-height: 1.5 !important;
  transition: all 0.25s ease !important;
}

.attr-nav .nav-item .btn-outline-secondary:hover {
  color: #0c5adb !important;
  background-color: rgba(12, 90, 219, 0.05) !important;
  border-color: #0c5adb !important;
  transform: translateY(-1px);
}

/* Create Account button - solid primary style */
.attr-nav .nav-item .btn-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0c5adb 0%, #3f1399 100%) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 20px !important;
  font-size: 16px !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
  min-height: auto !important;
  height: auto !important;
  line-height: 1.5 !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 8px rgba(12, 90, 219, 0.25) !important;
}

.attr-nav .nav-item .btn-primary:hover {
  background: linear-gradient(135deg, #0a4cb8 0%, #331077 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 90, 219, 0.35) !important;
}

/* Reset abnormal input styles for navbar buttons */
.attr-nav .nav-item .btn {
  min-height: auto !important;
  height: auto !important;
}

/* Fix navbar items alignment */
.attr-nav .navbar-nav {
  align-items: center;
}

.attr-nav .nav-item {
  display: flex;
  align-items: center;
}

/* Preloader teardown animation */
#preloader.preloader-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .25s ease, visibility .25s ease;
}

/* Digalu theme preloader compatibility */
#ambrox-preloader.loaded {
  opacity: 0 !important;
  visibility: hidden !important;
}

#ambrox-preloader.loaded .animation-preloader {
  opacity: 0;
}

#ambrox-preloader.loaded .loader {
  opacity: 0;
  visibility: hidden;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .ambrox-preloader .spinner,
  .ambrox-preloader .letters-loading {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   Builder Buttons - Home Page Hero Section
   ============================================ */

/* Wrapper for persistent positioning at bottom of banner */
.builder-buttons-wrapper {
  position: absolute;
  bottom: 90px;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
}

.builder-buttons-wrapper .container {
  pointer-events: auto;
}

/* Make banner-area relative for absolute positioning */
.banner-area.banner-style-six-area {
  position: relative;
}

.builder-buttons {
  margin-top: 0;
}

.btn-builder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 24px;
  font-size: 17px;
  font-weight: 600;
  text-transform: none;
  border-radius: 8px;
  border: 2px solid;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

/* Home Builder - Blue outlined style */
.btn-home-builder {
  color: #0c5adb;
  background-color: #ffffff;
  border-color: #0c5adb;
}

.btn-home-builder:hover {
  color: #ffffff;
  background-color: #0c5adb;
  border-color: #0c5adb;
}

/* Business Builder - Dark outlined style */
.btn-business-builder {
  color: #1a1a2e;
  background-color: #ffffff;
  border-color: #1a1a2e;
}

.btn-business-builder:hover {
  color: #ffffff;
  background-color: #1a1a2e;
  border-color: #1a1a2e;
}

/* Strategy Builder - Purple gradient style */
.btn-strategy-builder {
  color: #ffffff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
}

.btn-strategy-builder:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Career Builder - Teal gradient style */
.btn-career-builder {
  color: #ffffff;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border-color: transparent;
}

.btn-career-builder:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

/* Triangle Expand Button */
.btn-expand-triangle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-expand-triangle:hover {
  transform: scale(1.1);
}

.btn-expand-triangle.expanded {
  transform: rotate(180deg);
}

.btn-expand-triangle.expanded:hover {
  transform: rotate(180deg) scale(1.1);
}

.btn-expand-triangle svg circle {
  transition: fill 0.3s ease;
}

.btn-expand-triangle:hover svg circle {
  fill: #0a4cb8;
}

/* Extra builders slide animation */
.extra-builders {
  overflow: hidden;
  transition: all 0.4s ease;
}

.extra-builders.slide-in {
  animation: slideIn 0.4s ease forwards;
}

.extra-builders.slide-out {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

/* Gap utility for flexbox */
.gap-3 {
  gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .builder-buttons-wrapper {
    bottom: 85px;
  }
}

@media (max-width: 768px) {
  .builder-buttons-wrapper {
    bottom: 80px;
  }

  .builder-buttons .d-flex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }

  .btn-builder {
    min-width: 140px;
    padding: 10px 18px;
    font-size: 16px;
  }

  .btn-expand-triangle {
    margin-top: 0;
  }

  .btn-expand-triangle svg {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .builder-buttons-wrapper {
    bottom: 75px;
  }

  .btn-builder {
    min-width: 120px;
    padding: 8px 14px;
    font-size: 15px;
  }

  .gap-3 {
    gap: 0.5rem;
  }
}

/* ============================================
   Navbar - Fix dropdown caret squares
   ============================================ */
/* Main nav links - increased font size */
nav.navbar.validnavs ul.nav > li > a {
    font-size: 16px !important;
    white-space: nowrap;
}

nav.navbar.validnavs ul.nav > li.dropdown > a.dropdown-toggle::after {
    content: "\f107" !important;
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
    font-weight: 900 !important;
    font-size: 13px !important;
    border: none !important;
    vertical-align: middle;
    margin-left: 5px;
}

/* ============================================
   Navbar - Dropdown Hover & Active States
   ============================================ */
/* Ensure navbar is above all page content */
nav.navbar.validnavs {
    z-index: 9999 !important;
    position: relative;
}

/* Main nav links hover effect */
nav.navbar.validnavs ul.nav > li > a:hover,
nav.navbar.validnavs ul.nav > li.dropdown:hover > a {
    color: #0c5adb !important;
    background-color: rgba(12, 90, 219, 0.05) !important;
    transition: all 0.3s ease;
}

/* Dropdown menu items - ensure they appear above everything */
nav.navbar.validnavs li.dropdown ul.dropdown-menu,
nav.navbar.validnavs li.dropdown div.dropdown-menu,
nav.navbar.validnavs li.nav-item.dropdown div.dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 10000 !important;
    position: absolute !important;
}

/* Dropdown menu item hover */
nav.navbar.validnavs li.dropdown ul.dropdown-menu > li > a:hover,
nav.navbar.validnavs li.dropdown ul.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #0c5adb !important;
    padding-left: 20px !important;
    transition: all 0.2s ease;
}

/* Dropdown menu item text color - fix blue on blue */
nav.navbar.validnavs li.dropdown ul.dropdown-menu > li > a,
nav.navbar.validnavs li.dropdown ul.dropdown-menu .dropdown-item {
    color: #212529 !important;
    transition: all 0.2s ease;
}

/* Megamenu dropdown items */
nav.navbar.validnavs ul.dropdown-menu.megamenu-content {
    z-index: 10000 !important;
    position: absolute !important;
}

nav.navbar.validnavs ul.dropdown-menu.megamenu-content .col-menu ul.menu-col li a {
    color: #212529 !important;
    transition: all 0.2s ease;
}

nav.navbar.validnavs ul.dropdown-menu.megamenu-content .col-menu ul.menu-col li a:hover {
    color: #0c5adb !important;
    background-color: #f8f9fa !important;
    padding-left: 15px !important;
}

/* Dropdown header styling */
.dropdown-header {
    color: #6c757d !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
}

/* Active dropdown state */
nav.navbar.validnavs ul.nav > li.dropdown.show > a,
nav.navbar.validnavs ul.nav > li.dropdown[aria-expanded="true"] > a {
    color: #0c5adb !important;
    background-color: rgba(12, 90, 219, 0.1) !important;
}

/* Fixed-navbar offset for base.html <main class="site-main">. The Digalu
   navbar is position:fixed (~85px). Kept here (not inline) so it's tunable and
   can shrink where the bar collapses to a compact mobile bar. */
.site-main {
    --site-nav-h: 85px;
    padding-top: var(--site-nav-h);
}
@media (max-width: 991px) {
    .site-main { --site-nav-h: 72px; }
}

/* ═══ Custom mega-menu overrides ═══ */
/* AI Workflows dropdown */
/* NOTE: the desktop menu that owns these is `d-none d-lg-flex` (hidden < 992px),
   so these widths only render on ≥992px viewports. The `min(…, 95vw)` cap is a
   guard so a right-anchored dropdown can never push past the viewport edge on a
   narrow laptop and trigger horizontal scroll. */
nav.navbar.validnavs li.dropdown div.dropdown-menu.aiw-mega-menu,
nav.validnavs li.nav-item.dropdown div.aiw-mega-menu.dropdown-menu {
    min-width: 480px !important;
    max-width: min(540px, 95vw) !important;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    background: #ffffff !important;
}

/* Corporate dropdown */
nav.navbar.validnavs li.dropdown div.dropdown-menu.corp-mega-menu,
nav.validnavs li.nav-item.dropdown div.corp-mega-menu.dropdown-menu {
    min-width: 520px !important;
    max-width: 580px !important;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    background: #ffffff !important;
}

/* ============================================
   Navbar - Show Dropdowns on Hover (Desktop)
   ============================================ */
@media (min-width: 992px) {
    /* Ensure dropdown menus are hidden by default */
    nav.navbar.validnavs ul.nav > li.dropdown > ul.dropdown-menu,
    nav.navbar.validnavs ul.nav > li.dropdown > div.dropdown-menu,
    nav.navbar.validnavs ul.nav > li.nav-item.dropdown > div.dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* Show dropdown menu on hover - UL version */
    nav.navbar.validnavs ul.nav > li.dropdown:hover > ul.dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 0 !important;
    }
    
    /* Show dropdown menu on hover - DIV version (for AI Workflows) */
    nav.navbar.validnavs ul.nav > li.dropdown:hover > div.dropdown-menu,
    nav.navbar.validnavs ul.nav > li.nav-item.dropdown:hover > div.dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 0 !important;
    }
    
    /* Show megamenu on hover */
    nav.navbar.validnavs ul.nav > li.dropdown.megamenu-fw:hover > ul.dropdown-menu,
    nav.navbar.validnavs ul.nav > li.megamenu-fw:hover > ul.dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ============================================
   Footer - bg-dark-secondary utility
   ============================================ */
.bg-dark-secondary {
    background-color: #001d4c !important;
}

/* ============================================
   Footer - Social Icons
   ============================================ */
footer .footer-social {
    list-style: none;
    padding: 0;
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

footer .footer-social li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: #cccccc;
    font-size: 14px;
    transition: all 0.3s ease;
}

footer .footer-social li a:hover {
    background: #0c5adb;
    border-color: #0c5adb;
    color: #fff;
}

/* ============================================
   Footer - Newsletter Subscribe Button
   ============================================ */
footer .newsletter input[type="email"] {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 16px;
    border-radius: 5px;
    width: 100%;
    font-size: 14px;
}

footer .newsletter input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

footer .newsletter button {
    border: none;
    padding: 12px 20px;
    width: 100%;
    border-radius: 5px;
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #0c5adb 0%, #3f1399 100%);
    cursor: pointer;
    transition: all 0.3s ease;
}

footer .newsletter button:hover {
    background: linear-gradient(135deg, #0a4cb8 0%, #331077 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 90, 219, 0.35);
}

/* ============================================
   Footer - Widget Titles & Links
   ============================================ */
footer .widget-title {
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    margin-top: 18px;
    margin-bottom: 25px;
    position: relative;
}

footer .link ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .link ul li {
    margin-bottom: 12px;
}

footer .link ul li a {
    color: #9ab3d5;
    font-size: 15px;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer .link ul li a:hover {
    color: #0c5adb;
}

footer .address ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .address ul li {
    margin-top: 16px;
    color: #cccccc;
    font-size: 15px;
}

footer .address a {
    color: #9ab3d5;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .address a:hover {
    color: #0c5adb;
}

footer .about p {
    color: #9ab3d5;
    line-height: 1.7;
    margin-top: 20px;
}

footer .about .logo {
    height: 60px;
}

/* Footer Bottom */
footer .footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .footer-bottom p {
    color: #9ab3d5;
    margin: 0;
    font-size: 14px;
}

footer .footer-bottom a {
    color: #0c5adb;
    text-decoration: none;
}

footer .footer-bottom .text-end ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

footer .footer-bottom .text-end ul li a {
    color: #9ab3d5;
    font-size: 14px;
    transition: color 0.3s ease;
}

footer .footer-bottom .text-end ul li a:hover {
    color: #0c5adb;
}

/* ============================================
   Features Page
   ============================================ */
body.features-page .banner-area {
    margin-top: 160px !important;
}
body.features-page section .badge.bg-primary-subtle {
    font-size: 1.5rem !important;
    padding: 1rem 2rem !important;
}

/* ============================================
   House Builder Page
   ============================================ */
body.house-builder-page .hb-wrapper {
    padding-top: 140px;
    padding-bottom: 80px;
    background: #f4f7fc;
    min-height: 100vh;
}

/* Page Header */
body.house-builder-page .hb-page-header {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
}
body.house-builder-page .hb-page-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
body.house-builder-page .hb-page-header p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    max-width: 560px;
    line-height: 1.6;
}

/* Template Cards */
body.house-builder-page .hb-card {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}
body.house-builder-page .hb-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(12, 90, 219, 0.12);
    border-color: #cbd5e1;
}
body.house-builder-page .hb-card.active {
    border-color: #0c5adb;
    box-shadow: 0 0 0 3px rgba(12, 90, 219, 0.15);
}
body.house-builder-page .hb-card-img {
    position: relative;
    overflow: hidden;
}
body.house-builder-page .hb-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}
body.house-builder-page .hb-card:hover .hb-card-img img {
    transform: scale(1.06);
}
body.house-builder-page .hb-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
body.house-builder-page .hb-card:hover .hb-card-overlay {
    opacity: 1;
}
body.house-builder-page .hb-cta-pill {
    background: #fff;
    color: #0c5adb;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.3s ease;
}
body.house-builder-page .hb-card:hover .hb-cta-pill {
    opacity: 1;
    transform: translateY(0);
}
body.house-builder-page .hb-card-body {
    padding: 14px 16px;
}
body.house-builder-page .hb-card-body h6 {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 4px;
}
body.house-builder-page .hb-card-body p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Sidebar Panels */
body.house-builder-page .hb-panel {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 20px;
}
body.house-builder-page .hb-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}
body.house-builder-page .hb-panel-header i {
    color: #0c5adb;
    font-size: 16px;
}
body.house-builder-page .hb-panel-header h6 {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin: 0;
}

/* Sidebar Empty State */
body.house-builder-page .hb-sidebar-empty {
    text-align: center;
    padding: 40px 24px;
}
body.house-builder-page .hb-sidebar-empty .hb-glyph {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
body.house-builder-page .hb-sidebar-empty .hb-glyph i {
    font-size: 24px;
    color: #0c5adb;
}
body.house-builder-page .hb-sidebar-empty h5 {
    font-weight: 700;
    font-size: 17px;
    color: #0f172a;
    margin-bottom: 8px;
}
body.house-builder-page .hb-sidebar-empty p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Deliverables Table */
body.house-builder-page .hb-dl-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 14px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}
body.house-builder-page .hb-dl-row:last-child {
    border-bottom: none;
}
body.house-builder-page .hb-dl-row:hover {
    background: #f8fafc;
}
body.house-builder-page .hb-dl-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}
body.house-builder-page .hb-dl-icon.pdf { background: #fef2f2; color: #dc2626; }
body.house-builder-page .hb-dl-icon.img { background: #f0fdf4; color: #16a34a; }
body.house-builder-page .hb-dl-icon.xls { background: #eff6ff; color: #2563eb; }
body.house-builder-page .hb-dl-info {
    flex: 1;
    min-width: 0;
}
body.house-builder-page .hb-dl-info .hb-dl-name {
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    display: block;
    margin-bottom: 2px;
}
body.house-builder-page .hb-dl-info .hb-dl-meta {
    font-size: 12px;
    color: #94a3b8;
}
body.house-builder-page .hb-dl-action a,
body.house-builder-page .hb-dl-action span {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: default;
}
body.house-builder-page .hb-dl-action a.active-link {
    color: #0c5adb;
    cursor: pointer;
}
body.house-builder-page .hb-dl-action a.active-link:hover {
    color: #0a4cb8;
    text-decoration: underline;
}

/* Package Download */
body.house-builder-page .hb-pkg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin: 0;
    border: none;
    border-radius: 0 0 12px 12px;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s ease;
}
body.house-builder-page .hb-pkg-btn.active-btn {
    background: linear-gradient(135deg, #0c5adb 0%, #3f1399 100%);
    color: #fff;
    cursor: pointer;
}
body.house-builder-page .hb-pkg-btn.active-btn:hover {
    box-shadow: 0 4px 14px rgba(12, 90, 219, 0.3);
}

/* Empty State */
body.house-builder-page .hb-empty {
    text-align: center;
    padding: 72px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
body.house-builder-page .hb-empty .hb-glyph {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
body.house-builder-page .hb-empty .hb-glyph i {
    font-size: 32px;
    color: #0c5adb;
}
body.house-builder-page .hb-empty h4 {
    font-weight: 700;
    font-size: 20px;
    color: #0f172a;
    margin-bottom: 8px;
}
body.house-builder-page .hb-empty p {
    color: #64748b;
    max-width: 380px;
    margin: 0 auto 24px;
    line-height: 1.6;
    font-size: 15px;
}
body.house-builder-page .hb-btn-primary {
    display: inline-block;
    padding: 11px 28px;
    background: #0c5adb;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
body.house-builder-page .hb-btn-primary:hover {
    background: #0a4cb8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 90, 219, 0.25);
}

/* Sticky sidebar */
body.house-builder-page .hb-sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* Full-Width Deliverables Section */
body.house-builder-page .hb-deliverables-full {
    margin-top: 36px;
}
body.house-builder-page .hb-deliverables-full .hb-dl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
body.house-builder-page .hb-deliverables-full .hb-dl-row {
    border-bottom: none;
    border-right: 1px solid #f1f5f9;
}
body.house-builder-page .hb-deliverables-full .hb-dl-row:last-child {
    border-right: none;
}
body.house-builder-page .hb-deliverables-full .hb-pkg-btn {
    border-top: 1px solid #f1f5f9;
}

/* Back to Home */
body.house-builder-page .hb-back-home {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    body.house-builder-page .hb-sidebar-sticky {
        position: static;
        margin-top: 0;
        margin-bottom: 28px;
    }
    body.house-builder-page .hb-deliverables-full .hb-dl-grid {
        grid-template-columns: 1fr;
    }
    body.house-builder-page .hb-deliverables-full .hb-dl-row {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }
    body.house-builder-page .hb-deliverables-full .hb-dl-row:last-child {
        border-bottom: none;
    }
}
@media (max-width: 767px) {
    body.house-builder-page .hb-wrapper {
        padding-top: 110px;
        padding-bottom: 50px;
    }
    body.house-builder-page .hb-page-header h1 {
        font-size: 26px;
    }
    body.house-builder-page .hb-card-img img {
        height: 140px;
    }
}

/* ============================================
   Strategy Create Page
   ============================================ */
body.strategy-create-page .sr-wrapper {
    padding-top: 140px;
    padding-bottom: 80px;
    background: #f4f7fc;
    min-height: 100vh;
}

/* Page Header */
body.strategy-create-page .sr-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}
body.strategy-create-page .sr-page-header h1 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
body.strategy-create-page .sr-title-icon {
    color: #0c5adb;
    margin-right: 10px;
}
body.strategy-create-page .sr-page-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    max-width: 500px;
    line-height: 1.6;
}
body.strategy-create-page .sr-my-requests-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    color: #0c5adb;
    border: 1px solid #0c5adb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
body.strategy-create-page .sr-my-requests-btn:hover {
    background: #0c5adb;
    color: #fff;
}

/* Form Cards */
body.strategy-create-page .sr-form-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 24px;
}
body.strategy-create-page .sr-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fafbfd;
}
body.strategy-create-page .sr-card-header i {
    color: #0c5adb;
    font-size: 16px;
}
body.strategy-create-page .sr-card-header h6 {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin: 0;
}
body.strategy-create-page .sr-card-body {
    padding: 24px;
}

/* Form Fields */
body.strategy-create-page .sr-field {
    margin-bottom: 22px;
}
body.strategy-create-page .sr-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 8px;
}

/* Label Icons */
body.strategy-create-page .sr-label-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
body.strategy-create-page .sr-label-icon.product { background: #eff6ff; color: #2563eb; }
body.strategy-create-page .sr-label-icon.title { background: #fef3c7; color: #d97706; }
body.strategy-create-page .sr-label-icon.prompt { background: #f0fdf4; color: #16a34a; }
body.strategy-create-page .sr-label-icon.sections { background: #fce7f3; color: #db2777; }
body.strategy-create-page .sr-label-icon.tone { background: #ede9fe; color: #7c3aed; }
body.strategy-create-page .sr-label-icon.detail { background: #fff7ed; color: #ea580c; }

/* Input Focus States */
body.strategy-create-page .form-control:focus,
body.strategy-create-page .form-select:focus {
    border-color: #0c5adb;
    box-shadow: 0 0 0 3px rgba(12, 90, 219, 0.1);
}
body.strategy-create-page .form-control,
body.strategy-create-page .form-select {
    border-radius: 8px;
    border-color: #e2e8f0;
    padding: 10px 14px;
    font-size: 14px;
    color: #334155;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.strategy-create-page textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

/* Help Text */
body.strategy-create-page .sr-help-text {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 6px;
    line-height: 1.5;
}

/* Checkbox Groups */
body.strategy-create-page .sr-check-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.strategy-create-page .sr-check-group li {
    margin: 0;
}
body.strategy-create-page .sr-check-group li label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fafbfd;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
    transition: all 0.2s ease;
}
body.strategy-create-page .sr-check-group li label:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}
body.strategy-create-page .sr-check-group input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-height: auto !important;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    accent-color: #0c5adb;
    cursor: pointer;
    flex-shrink: 0;
}
body.strategy-create-page .sr-check-group input[type="checkbox"]:checked + span,
body.strategy-create-page .sr-check-group li:has(input:checked) label {
    border-color: #0c5adb;
    background: #eff6ff;
    color: #0c5adb;
    font-weight: 600;
}

/* Actions */
body.strategy-create-page .sr-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}
body.strategy-create-page .sr-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0c5adb 0%, #3f1399 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
body.strategy-create-page .sr-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(12, 90, 219, 0.3);
}
body.strategy-create-page .sr-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
body.strategy-create-page .sr-cancel-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
body.strategy-create-page .sr-cancel-btn:hover {
    border-color: #cbd5e1;
    color: #334155;
    background: #f8fafc;
}

/* How It Works Steps (Full Width) */
body.strategy-create-page .sr-steps-section {
    margin-top: 36px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    padding: 28px 32px;
}
body.strategy-create-page .sr-steps-section > h6 {
    font-weight: 700;
    font-size: 16px;
    color: #1e40af;
    margin-bottom: 24px;
}
body.strategy-create-page .sr-steps-section > h6 i {
    color: #2563eb;
}
body.strategy-create-page .sr-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
body.strategy-create-page .sr-step {
    text-align: center;
    padding: 16px 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #dbeafe;
}
body.strategy-create-page .sr-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0c5adb 0%, #3f1399 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
body.strategy-create-page .sr-step h6 {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 6px;
}
body.strategy-create-page .sr-step p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Back to Home */
body.strategy-create-page .sr-back-home {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 20px;
}
body.strategy-create-page .sr-home-link {
    display: inline-block;
    padding: 11px 28px;
    background: #0c5adb;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.25s ease;
}
body.strategy-create-page .sr-home-link:hover {
    background: #0a4cb8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 90, 219, 0.25);
}

/* Responsive */
@media (max-width: 991px) {
    body.strategy-create-page .sr-page-header {
        flex-direction: column;
        gap: 16px;
    }
    body.strategy-create-page .sr-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 767px) {
    body.strategy-create-page .sr-wrapper {
        padding-top: 110px;
        padding-bottom: 50px;
    }
    body.strategy-create-page .sr-page-header h1 {
        font-size: 24px;
    }
    body.strategy-create-page .sr-card-body {
        padding: 16px;
    }
    body.strategy-create-page .sr-actions {
        flex-direction: column;
    }
    body.strategy-create-page .sr-submit-btn,
    body.strategy-create-page .sr-cancel-btn {
        width: 100%;
        justify-content: center;
    }
    body.strategy-create-page .sr-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Business Plan Landing Page
   ============================================ */

/* Hero top margin to clear fixed navbar */
body.business-plan-page .banner-area {
    margin-top: 80px !important;
}

/* Hero badge sizing */
body.business-plan-page .banner-area .badge.bg-light {
    position: relative;
    z-index: 1;
    font-size: 1.5rem !important;
    padding: 1rem 2rem !important;
    margin-top: 20px;
}

/* Section sub-heading badges */
body.business-plan-page section .badge.bg-primary-subtle {
    font-size: 1.5rem !important;
    padding: 1rem 2rem !important;
}

/* All links: clickable styling with hover color */
body.business-plan-page a {
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* CTA buttons hover lift */
body.business-plan-page .btn-light:hover,
body.business-plan-page .btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Feature card links */
body.business-plan-page .card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body.business-plan-page section .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

/* Feature card title links */
body.business-plan-page .card h5 a,
body.business-plan-page .card h6 a {
    color: #0f172a;
    text-decoration: none;
}
body.business-plan-page .card h5 a:hover,
body.business-plan-page .card h6 a:hover {
    color: #0c5adb;
}

/* In-page anchor links */
body.business-plan-page section a:not(.btn) {
    color: #0c5adb;
    text-decoration: none;
}
body.business-plan-page section a:not(.btn):hover {
    color: #0a4cb8;
    text-decoration: underline;
}

/* CTA Sign In button - solid white, always visible */
body.business-plan-page .btn-light.text-primary {
    background: #fff !important;
    border: 2px solid #fff !important;
    color: #1e3a5f !important;
}
body.business-plan-page .btn-light.text-primary:hover {
    background: #f0f4ff !important;
    color: #0c5adb !important;
    box-shadow: 0 4px 14px rgba(255,255,255,0.3);
}

/* Hero "Start Free Trial" button hover */
body.business-plan-page .banner-area .btn-light:hover {
    background: #f0f4ff !important;
    color: #0c5adb !important;
}

/* Hero "Learn More" outline button hover */
body.business-plan-page .banner-area .btn-outline-light:hover {
    background: rgba(255,255,255,0.15) !important;
}

/* FAQ accordion links */
body.business-plan-page .accordion-button {
    font-weight: 600;
    color: #0f172a;
}
body.business-plan-page .accordion-button:not(.collapsed) {
    color: #0c5adb;
    background: #eff6ff;
}
body.business-plan-page .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(12, 90, 219, 0.1);
}

/* ============================================================================
   Platform-wide mobile ergonomics
   Promoted from static/css/solar_pwa.css (which is loaded only on Solar pages)
   to project.css, which every base template loads. Applies on touch devices
   only, so desktop layouts are untouched.
   ============================================================================ */
@media (hover: none) and (pointer: coarse) {
    /* Comfortable 44px minimum tap targets (WCAG 2.5.5 / Apple HIG). */
    .btn, button, [role="button"], a.btn, .nav-link, .dropdown-item,
    .page-link, .list-group-item-action {
        min-height: 44px;
    }
    /* Bootstrap's small buttons otherwise fall to ~31px — floor them too. */
    .btn-sm, .btn-group-sm > .btn {
        min-height: 44px;
    }
    /* 16px inputs stop iOS Safari from auto-zooming the viewport on focus. */
    input[type="text"], input[type="email"], input[type="number"],
    input[type="password"], input[type="search"], input[type="tel"],
    input[type="url"], input[type="date"], select, textarea {
        font-size: 16px;
    }
}

/* Global responsive-media guard: no image/video/svg/canvas should ever force
   horizontal page scroll, regardless of inline width attributes. Cheap safety
   net for the 200+ templates and generated renders/diagrams. */
img, svg, video, canvas, iframe {
    max-width: 100%;
}
img, video {
    height: auto;
}

