:root {
  --parliament-bg: linear-gradient(90deg, rgba(150, 113, 1, 1), rgba(224, 169, 1, 1));
}

.rounded-btn { border-radius: 15px; }

html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-size: 15px;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;   
  color: #000;       
}

.sidebar {
  height: 100vh;
  width: 175px;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #820401, #D40500);
  color: white;
  /*transition: width 0.3s;*/
  overflow-x: hidden;
  transition: width 0.4s ease, background 0.3s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}


.text-reddish {
  background: linear-gradient(90deg, #c60100, #9e0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; 
}
.sidebar.collapsed {
  width: 80px;
}

.sidebar .nav-link {
  color: #f1f1f1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 70%;
  padding: 10px 12px;
  margin: 6px auto;
  transition: all 0.3s;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar .nav-link i {
  font-size: 1rem;
  margin-bottom: 5px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: #000;
  background-color: #fff !important;
}

.sidebar.collapsed .nav-link span {
  display: none;
}

.submenu {
  display: none;
  padding-left: 20px;
  margin-top: 5px;
  /*margin-left: 20px;*/
  animation: fadeIn 0.3s ease-in-out;
}

.sidebar .submenu.show {
  display: block !important;
}

.submenu .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
  font-size: 0.9rem;
  padding: 10px 0;
  margin: 3px 0;
  border-radius: 8px;
}

.submenu .nav-link:hover {
  background: rgba(255, 255, 255, 0.25);
}

.submenu .nav-link i {
  font-size: 0.7rem;
  margin-bottom: 3px;
}

.sidebar .nav-link:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 10px rgba(255,215,0,0.5);
  transform: translateX(3px);
}

.sidebar.collapsed .submenu {
  display: none;
}

.sidebar.collapsed .submenu.show {
  display: block !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.sidebar.collapsed .submenu .nav-link span {
  display: none;
}

.sidebar.collapsed .submenu .nav-link {
  width: 100% !important;
  justify-content: center !important;
  /*padding-left: 0 !important;*/
  margin-left: 0 !important;
  text-align: center; 
}

.sidebar.collapsed .submenu .nav-link i {
  margin-bottom: 0 !important;
}

#prdMenu, #projMenu, #crvMenu, #commMenu, #messageMenu, #userMenu {
  padding-left: 0;
}

#prdMenu li, #projMenu li, #crvMenu li, #commMenu li, #messageMenu li, #userMenu li {
  display: flex;
  justify-content: center;
}

#prdMenu .nav-link, #projMenu .nav-link, #crvMenu .nav-link, #commMenu .nav-link, #messageMenu .nav-link, #userMenu .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
}

/* === Fade Animation === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
}

.main-content {
  margin-left: 175px;
  transition: margin-left 0.3s;
  padding: 20px;
  flex: 1; 
}

.collapsed ~ .main-content {
  margin-left: 80px;
}

.main-content-header {
  margin-left: 175px;
  transition: margin-left 0.3s;
  padding: 20px;
}

.collapsed ~ .main-content-header {
  margin-left: 80px;
}

.toggle-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  border-radius: 50%;
  padding: 8px 10px;
  cursor: pointer;
  border: 2px solid white;
  transition: all 0.3s;
  font-weight: bold;
}

.sidebar.collapsed .toggle-btn {
  top: 18px;
  left: 20px;
  right: auto;
}

.text-gold {
  background: linear-gradient(90deg, #987200, #D8A301);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* for Firefox */
  color: transparent;    /* fallback */
}

.bg-light2{
  background: #F1F2F4;
}

.bg-light3 {
  background: linear-gradient(135deg, rgb(225, 29, 72, 0.09), rgb(255, 255, 255, 0.09));
}


/* ========== MOBILE SIDEBAR BEHAVIOR ========== */
@media (max-width: 991.98px) {
  /* Hide sidebar off-canvas by default */
  #sidebar {
    transform: translateX(-100%);
    width: 250px; /* slightly wider for mobile usability */
    position: fixed;
    z-index: 1050;
    transition: transform 0.3s ease;
  }

  /* Show sidebar when active */
  #sidebar.active {
    transform: translateX(0);
  }

  /* Overlay background when sidebar opens */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.active {
    display: block;
  }

  /* Let main content take full width on mobile */
  .main-content,
  .main-content-header {
    margin-left: 0 !important;
  }
}

/* ===== SHOW ICON + TEXT ON MOBILE EVEN IF COLLAPSED ===== */
@media (max-width: 991.98px) {
  /* Force text to show */
  #sidebar.collapsed .nav-link span {
    display: inline !important;
  }

  /* Also show submenu text */
  #sidebar.collapsed .submenu .nav-link span {
    display: inline !important;
  }

  /* Make links align properly on mobile (horizontal icon + text) */
  #sidebar .nav-link {
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 10px;
    padding: 10px 15px;
  }

  #sidebar .nav-link i {
    margin-bottom: 0 !important;
    font-size: 1.1rem;
  }

  /* Adjust submenu indentation slightly for better look */
  #sidebar .submenu {
    padding-left: 10px;
    margin-left: 10px;
  }
}


/* ===== Fix Sidebar Dropdown (Submenu) Alignment on Mobile ===== */
@media (max-width: 991.98px) {
  /* Keep submenu centered and width auto */
  #sidebar .submenu {
    width: auto !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    text-align: center !important;
  }

  /* Make submenu links narrower and centered */
  #sidebar .submenu .nav-link {
    width: 70% !important;
    display: inline-flex !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 5px auto !important;
    padding: 8px 12px !important;
  }

  /* Keep icons and text vertically centered */
  #sidebar .submenu .nav-link i {
    margin-bottom: 0 !important;
  }

  /* Prevent submenu background from stretching full width */
  #sidebar .submenu .nav-link:hover {
    width: 70%; !important;
    display: inline-flex !important;
    background: rgba(255, 255, 255, 0.15) !important;
     color: white !important;
  }

  /* Optional: make submenu slightly pop visually */
  #sidebar .submenu.show {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 0;
  }
}


/* end of sidebar style */

/* Only hide caret for the user dropdown */
#userDropdown::after {
  display: none !important;
}



/* === Card & Chart Hover === */
.card, .chart-container {
  transition: all 0.3s ease;
  min-height: 150px;
}

.card:hover, .chart-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Default toggle icon style */
.toggle-icon {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  padding: 5px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 1.6rem;
}

/* Center icon when sidebar is collapsed */
.sidebar.collapsed .toggle-icon {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  right: auto;
  margin-bottom: 10px;
}


 

/* footer */
footer {
  background-color: #f8f9fa;
  color: #000000;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  border-top: 1px solid #dee2e6;
  bottom: 0;
  left: 0;
  width: 100%;
}

.footer-text {
  margin: 0 auto;
  word-wrap: break-word;
  white-space: normal;
  max-width: calc(100% - 240px); /* default when sidebar is open */
  transition: max-width 0.3s ease, margin-left 0.3s ease;
}

/* When sidebar collapses */
.sidebar.collapsed ~ .footer .footer-text {
  max-width: calc(100% - 80px); /* adjust to smaller sidebar */
}

/* Mobile view (ignore sidebar width) */
@media (max-width: 768px) {
  .footer-text {
    max-width: 95%;
    font-size: 12px;
    padding: 0 10px;
  }
}



/* for mobile sidebard styling */

.bg-casa {
  background: linear-gradient(90deg, #820401, #D40500);
}
.btn-casa {
  background: linear-gradient(90deg, #820401, #D40500);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
  color: #fff !important;
}

.btn-casa-hover:hover {
  background: linear-gradient(90deg, #84060F, #E11D48);
  padding: 8px 16px;
  font-weight: 500;
  color: #fff !important;
  border: none;
}


.custom-p{
  font-size: 1.20em;
}

@media (max-width: 768px) {
  .custom-p {
    font-size: 1rem;
  }
}


/*end here */

.breadcrmb-active{
  color: #010101 !important;
}


/* Change radio button color when checked */
.form-check-input:checked {
  background-color: #84060F; /* Bootstrap secondary */
  border-color: #84060F;
}

/* Optional: focus glow */
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(132, 6, 15, 0.25); /* secondary with opacity */
}

/* Apply custom focus glow for all form inputs */
.form-control:focus {
  border-color: #84060f; /* custom border color */
  box-shadow: 0 0 0 0.2rem rgba(132, 6, 15, 0.25); /* same glow as radio */
}

/* ======= CUSTOMIZE SELECT DROPDOWN ======= */
.form-select:focus {
  border-color: #84060F !important;
  box-shadow: 0 0 0 0.2rem rgba(132, 6, 15, 0.25) !important;
}

/* Optional: style the select arrow and border */
.form-select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Optional hover for select */
.form-select:hover {
  border-color: #84060F;
}




.btn,
.btn:focus,
.btn:active,
.btn:focus-visible,
.btn:hover {
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}


.chart-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.filter-select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 14px;
  outline: none;
}

.table-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: 30px;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.table-controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entries-label {
  font-size: 14px;
  color: #666;
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 8px 35px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 250px;
  outline: none;
}

.search-box i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table thead {
  background: #f8f9fa;
}

.custom-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  border-bottom: 2px solid #dee2e6;
}

.custom-table td {
  padding: 12px;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #dee2e6;
}

.custom-table tbody tr:hover {
  background: #f8f9fa;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 5px;
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
  background: #f8f9fa;
}

.pagination-btn.active {
  background: #d4af37;
  color: white;
  border-color: #d4af37;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.legend-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* Skip button style */
.skip-btn {
  background: transparent;
  border: none;
  color: #eee;
  cursor: pointer;
  font-size: 13px;
  padding: 6px;
}

/* === Table Hover === */
.custom-table tbody tr:hover {
  background: rgba(212,5,0,0.05);
}

/* === Onboarding Overlay + Highlight === */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 9998;
  display: none;
}

.onboarding-highlight {
  position: absolute;
  border: 2px solid #FFD700;
  border-radius: 4px;
  box-shadow: 
    0 0 0 9999px rgba(0,0,0,0.75),
    0 0 15px rgba(255,215,0,0.5);
  z-index: 9999;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  padding: 4px;
  margin: -4px;
}

/* === Glassmorphic Tooltip === */
.onboarding-step {
  position: absolute;
  display: block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  max-width: 320px;
  padding: 20px;
  z-index: 10000;
  line-height: 1.6;
}

.onboarding-step h4 {
  color: #FFD700;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.onboarding-controls {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.onboarding-controls button {
  background: linear-gradient(90deg, #820401, #D40500);
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.onboarding-controls button:hover {
  background: linear-gradient(90deg, #a70300, #ff2a00);
}

@media (max-width: 576px) {
  .onboarding-overlay{
    display: none !important;
  }
}


.loadingg-spinner {
      width: 24px;
      height: 24px;
      object-fit: contain;
      display: inline-block;
    }

/* profile styling */

/* Your blur box */
.blur-box_colorfull {
  background: rgba(225, 29, 72, 0.02); 
  border-radius: 10px;
  padding: 4px;
  z-index: 3;
  width: 100%;
  text-align: center; /* optional: center text inside */
}


@media (max-width: 767.98px) {
  .profile-table td {
    display: block;
    width: 100% !important;
    border-top: 1px solid #f1f1f1;
    margin-bottom: 0.75rem;
  }
  .profile-table tr {
    display: block;
    margin-bottom: 1.5rem;
  }
}


/* land style by timi */

/*pagination style */

.modal-bg { background: #fff !important; }

.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s;
}

.badge:hover {
  transform: scale(1.05);
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #D40500;
  background: white;
  color: #820401;
  border-color: #D40500 !important;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: #D40500;
  color: white;
  border-color: #D40500;
}

.pagination-btn.active {
  background: linear-gradient(90deg, #820401, #D40500);
  color: white !important;
  border-color: #007bff;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.detail-card {
  padding: 1rem;
  border-radius: 8px;
}

.detail-label {
  font-size: 0.85rem;
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 1.1rem;
  color: #212529;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .table-container {
    padding: 1rem;
  }
  .table-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box input {
    width: 100%;
  }
}


.info-box {
  background: #fff;
  border: 1px solid #eee;
  transition: all 0.3s ease;
}
.info-box:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.account-number {
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.company-box {
  font-size: 0.9rem;
}

.card{
  border: none;
  border-radius: 12px;
}

.upload-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 15px;
  cursor: pointer;
  transition: 0.3s;
}
    
.upload-circle:hover {
  background: #e5e5e5;
}

.upload-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
    
.copy-btn {
  background: #b30000;
  color: #fff;
  border: none;
}
    
.copy-btn:hover {
  background: #8c0000;
}
    
.edit-btn {
  float: right;
  background: #fff3d4;
  border: 1px solid #ffd65c;
  color: #b18400;
  border-radius: 8px;
  padding: 6px 18px;
  font-weight: 500;
  transition: 0.3s;
}
    
.edit-btn:hover {
  background: #ffe699;
}

@media (max-width: 576px){
  .edit-btn {
    width: 21vw;
  }
}

@media (min-width: 910px) {
  .edit-btn {
    width: 10vw;
  }
}

@media (min-width: 1200px) {
  .edit-btn {
    width: 7vw;
  }
}
    
.profile-wrapper {
  max-width: 1000px;
  margin: 60px auto;
}

.profile {
  margin-left: 195px;
  transition: margin-left 0.3s ease;
}

.profile.collapsed {
  margin-left: 80px;
}

@media (max-width: 991px) {
  .profile,
  .profile.collapsed {
    margin-left: 0 !important;
    transition: none;
  }
}


.list-group-item {
  border: none;
  padding: 0.9rem 1rem;
  font-weight: 500;
  background: transparent;
}

.list-group-item.active {
  background: linear-gradient(90deg, #b30000, #ff0000) !important;
  border-radius: 25px;
  color: #fff;
}

.content-card {
  border: 25px solid rgba(255, 255, 255, 0.7);
  border-radius: 25px;
  animation: fadeIn 0.3s ease;
}

.content-card .card{
  border-radius: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.text-parliament{
  color: var(--parliament-bg);
}
.btn-parliament {
  background: var(--parliament-bg);
  border: none;
}
.btn-outline-parliament {
  background: transparent;
  color: #D8A301;
  border: 1px solid #D8A301;
  border-image-slice: 1;
  border-width: 2px;
  border-radius: 10px;
  border-image-source: var(--parliament-bg);
}

/** Responsiveness **/
@media (max-width: 360px) {
  /* Product heading */
  .main-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Product list buttons - stack them vertically */
  .list-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .list-group-item {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
    border-radius: 20px !important;
    margin-bottom: 0.3rem;
  }

  .list-group-item.active {
    border-radius: 20px !important;
  }

  /* Subscribe button */
  .btn-outline-warning {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.7rem;
    margin-top: 1rem;
  }

  /* Estate logo */
  .content-card img[width="220"],
  .content-card img[width="200"],
  .content-card img[width="150"],
  .content-card img[width="180"] {
    width: 150px !important;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* Heading text */
  .content-card h5 {
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1rem;
  }

  /* Government Allocation / C of O buttons */
  .btn-success,
  .btn-danger,
  .btn-dark,
  .btn-parliament {
    width: 100% !important;
    font-size: 0.85rem;
    padding: 0.6rem;
    white-space: normal;
    text-align: center;
  }

  /* Description text */
  .content-card .text-muted {
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: justify;
  }

  /* Download buttons */
  .btn-outline-success,
  .btn-outline-danger,
  .btn-outline-dark,
  .btn-outline-parliament {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
  }

  .d-flex.gap-2 {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  /* Image and video container */
  .content-card .row.g-3 {
    margin-top: 1rem;
  }

  .content-card .col-md-4,
  .content-card .col-md-5,
  .content-card .col-md-8,
  .content-card .col-md-7 {
    width: 100%;
    padding: 0;
  }

  .content-card img.img-fluid,
  .content-card iframe {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .content-card iframe {
    height: 200px !important;
  }

  /* Card padding */
  .content-card .card {
    padding: 1rem !important;
  }

  /* Content card border adjustment */
  .content-card {
    border-width: 15px;
  }
}

@media (min-width: 361px) and (max-width: 576px) {
  .main-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .list-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .list-group-item {
    text-align: center;
    font-size: 0.9rem;
    padding: 0.7rem 0.5rem;
    border-radius: 20px !important;
  }

  .list-group-item.active {
    border-radius: 20px !important;
  }

  .btn-outline-warning {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
    margin-top: 1rem;
  }

  .content-card img[width="220"],
  .content-card img[width="200"],
  .content-card img[width="150"],
  .content-card img[width="180"] {
    width: 180px !important;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  .content-card h5 {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 1rem;
  }

  .btn-success,
  .btn-danger,
  .btn-dark,
  .btn-parliament {
    width: 100% !important;
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  .content-card .text-muted {
    font-size: 12px;
    line-height: 1.6;
    text-align: justify;
  }

  .btn-outline-success,
  .btn-outline-danger,
  .btn-outline-dark,
  .btn-outline-parliament {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.65rem;
    margin-bottom: 0.5rem;
  }

  .d-flex.gap-2 {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  .content-card .col-md-4,
  .content-card .col-md-5,
  .content-card .col-md-8,
  .content-card .col-md-7 {
    width: 100%;
  }

  .content-card img.img-fluid,
  .content-card iframe {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .content-card iframe {
    height: 130px !important;
  }

  .content-card .card {
    padding: 1.5rem !important;
  }

  .content-card {
    border-width: 20px;
  }

  .houses-style {
    min-height: auto !important;
    padding: 0 !important;
  }

  .modal-content {
    padding: 15px !important;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  .main-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .list-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .list-group-item {
    text-align: center;
    font-size: 0.95rem;
    padding: 0.8rem 0.6rem;
    border-radius: 20px !important;
  }

  .list-group-item.active {
    border-radius: 20px !important;
  }

  .btn-outline-warning {
    width: auto;
    min-width: 200px;
    font-size: 1rem;
    padding: 0.75rem 2rem;
  }

  .content-card img[width="220"],
  .content-card img[width="200"],
  .content-card img[width="150"],
  .content-card img[width="180"] {
    width: 200px !important;
    height: auto;
  }

  .content-card h5 {
    font-size: 1.3rem;
    text-align: center;
  }

  .btn-success,
  .btn-danger,
  .btn-dark,
  .btn-parliament {
    width: 100% !important;
    font-size: 0.95rem;
    padding: 0.75rem;
    margin-top: 15px;
  }

  .content-card .text-muted {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .btn-outline-success,
  .btn-outline-danger,
  .btn-outline-dark,
  .btn-outline-parliament {
    width: 48%;
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  .d-flex.gap-2 {
    flex-wrap: wrap;
    gap: 0.75rem !important;
  }

  .content-card .col-md-4,
  .content-card .col-md-5 {
    width: 45%;
  }

  .content-card .col-md-8,
  .content-card .col-md-7 {
    width: 55%;
  }

  .content-card img.img-fluid {
    width: 100% !important;
    height: auto !important;
  }

  .content-card iframe {
    width: 100% !important;
    height: 207px !important;
  }

  .content-card .card {
    padding: 2rem !important;
  }

  .col-md-3 {
    width: 30%;
  }

  .col-md-9 {
    width: 70%;
  }
  .houses-style {
    min-height: auto !important;
    padding: 0 !important;
  }
  .modal-content {
    padding: 15px !important;
  }
}

@media (max-width: 992px) {
  /* Stack columns vertically on mobile */
  .row.mt-2.g-4 {
    flex-direction: column;
  }

  .col-md-3,
  .col-md-9 {
    width: 100% !important;
    padding: 0;
  }

  .col-md-3 {
    margin-bottom: 1.5rem;
  }

  /* Center content on mobile */
  .d-block.d-lg-flex {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Adjust main content padding */
  .main-content .container-fluid {
    padding: 1rem;
  }

  .main-content .container {
    padding: 0;
  }
}

@media (max-width: 576px) {
  .btn.w-50 {
    width: 100% !important;
  }
}

@media (max-width: 992px) {
  .content-card img,
  .content-card iframe {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 576px) {
  footer p {
    font-size: 10px !important;
    margin-bottom: 0.25rem !important;
  }

  footer.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}


/*** Houses ***/
.houses-style{
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 25px;
  min-height: 500px;
}

.option-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px;
  background-color: #fff;
}

.clickable-row {
  cursor: pointer;
  transition: background 0.2s ease;
}

.clickable-row:hover {
  background: rgba(255, 0, 0, 0.05);
}

.houses-style .card {
  border-radius: 16px;
}

.table th,
.table td {
  vertical-align: middle;
}


/**  Modal  **/
.modal-xl {
  max-width: 900px;
}

.modal-content {
  background: linear-gradient(135deg, #FFE4E1 0%, #FFF0F0 100%);
  
}

.modal-header {
  border-bottom: none;
  padding: 2rem 2rem 1rem;
}

.modal-body {
  padding: 1rem 2rem 2rem;
}

.btn-close {
  opacity: 0.5;
}

.modal-title-main {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  text-align: center;
  width: 100%;
}

.modal-subtitle {
  color: #666;
  text-align: center;
  width: 100%;
  margin-top: 0.5rem;
}

.progress-steps {
  background: rgb(225, 29, 72, 0.09);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.bg-pink{
  background: rgb(225, 29, 72, 0.09);
}

/* Initially hide sections */
#breakdownSection,
#paymentSection,
#totalSection,
#actualPriceSection {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Fade-in show class */
.show-section {
  display: flex !important;
  opacity: 1 !important;
}

/* Special case for actualPriceSection (block display) */
#actualPriceSection.show-section {
  display: block !important;
}


.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 2px solid #8B0000;
  color: #8B0000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-number.active {
  background: #8B0000;
  color: white;
}

.step-label {
  color: #8B0000;
  font-size: 0.85rem;
  font-weight: 500;
}

.step-divider {
  width: 30px;
  height: 2px;
  background: #8B0000;
  margin: 0 0.25rem;
  flex-shrink: 0;
}

.form-control, .form-select {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 0.9rem;
  height: auto;
}

.form-control:focus, .form-select:focus {
  background: white;
  border-color: #8B0000;
  box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: #999;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.form-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.upload-container {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.upload-input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.upload-btn {
  background: #E8E8E8;
  border: none;
  border-radius: 8px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0.75rem 1.5rem;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  white-space: nowrap;
}

.upload-btn:hover {
  background: #D8D8D8;
}

.btn-cancel {
  background: #8B0000;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2.5rem;
  font-weight: 500;
  transition: all 0.3s;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-cancel:hover {
  background: #6B0000;
  color: #fff;
}

.btn-next {
  background: #8B0000;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 3rem;
  font-weight: 500;
  transition: all 0.3s;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-next:hover {
  background: #6B0000;
  color: #fff;
}

.modal-footer {
  border-top: none;
  padding: 1rem 2rem 2rem;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .step-indicator {
    font-size: 0.75rem;
  }
  
  .step-divider {
    width: 15px;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
  
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  
  .modal-title-main {
    font-size: 1.5rem;
  }
  
  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  
  .modal-body {
    padding: 0.5rem 1.5rem 1.5rem;
  }
  
  .modal-footer {
    padding: 1rem 1.5rem 1.5rem;
  }
}

.mort-card {
  height: 175px !important;
  min-height: 175px !important;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}


