/* =========================== */
/*      Base & Dark Mode       */
/* =========================== */
/* Keep your :root variables */
:root {
  /* --- Dark Mode Color Palette --- */
  --primary-color-dark-theme: #c4a44e; /* Slightly brighter teal/blue for dark mode */
  --dm-bg-page: #143445;              /* Very dark background (like GitHub dark) */
  --dm-bg-container: #161b22;        /* Slightly lighter container background */
  --dm-bg-element: #21262d;         /* Input, button secondary background */
  --dm-text-primary: #c9d1d9;       /* Main text (light gray) */
  --dm-text-secondary: #8b949e;     /* Subtitles, placeholder, dimmer text */
  --dm-text-headings: #ffffff;      /* White for main headings */
  --dm-border-color: #30363d;       /* Borders for inputs, sections */
  --dm-border-color-light: #444c56; /* Lighter borders/dividers */
  --dm-focus-glow: rgba(21, 122, 145, 0.5); /* Glow using primary color */
  --dm-selected-bg: rgba(21, 122, 145, 0.15);/* Subtle background for selections */
  --dm-shadow-color: rgba(0, 0, 0, 0.4);   /* Darker shadow */
  }
/* Keep body, *, html base styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #00496f, #093044, #061924);
  color: var(--dm-text-primary);
  line-height: 1.6;
  font-size: 16px;
  margin: 0; /* Ensure no default margin */
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: var(--dm-primary-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* =========================== */
/*      Header Styling         */
/* =========================== */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px; /* Slimmer padding */
  background-color: #0c2a39;
  border-bottom: 1px solid var(--dm-border-color);
  width: 100%;
  position: sticky; /* Optional: makes header stick on scroll */
  top: 0;           /* Required if sticky */
  z-index: 1000;    /* Keep header above content */
  max-width: 1400px;
  margin: 0 auto;
}

.logo-area img {
  max-height: 60px; /* Smaller logo */
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--dm-text-secondary);
  font-weight: 500;
  font-size: 0.9rem; /* Slightly smaller */
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--dm-text-primary);
  text-decoration: none;
}

/* Hamburger Menu Button */
.hamburger-menu {
  display: none; /* Hidden by default */
  width: 30px;
  height: 25px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--dm-text-primary);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation (optional) */
.hamburger-menu.open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}


/* =========================== */
/*      Chat Sidebar           */
/* =========================== */
.chat-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px; /* Adjust width as needed */
  max-width: 90%; /* Max width on small screens */
  height: 100vh;
  background-color: var(--dm-bg-content-alt);
  border-left: 1px solid var(--dm-border-color);
  padding: 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  transform: translateX(100%); /* Hidden off-screen */
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1); /* Smooth transition */
  z-index: 1010; /* Above overlay */
  display: flex;
  flex-direction: column;
}

.chat-sidebar.open {
  transform: translateX(0);
}

.close-sidebar {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: var(--dm-text-secondary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 5px;
}
.close-sidebar:hover {
  color: var(--dm-text-primary);
}

.chat-sidebar h2 {
  color: var(--dm-text-headings);
  margin-bottom: 20px;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--dm-border-color-light);
  padding-bottom: 10px;
}

.chat-interface {
  flex-grow: 1; /* Take remaining space */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent content overflow */
}

.chat-messages {
  flex-grow: 1;
  overflow-y: auto; /* Allow scrolling for messages */
  margin-bottom: 15px;
  padding-right: 5px; /* Space for scrollbar */
}

.chat-messages p { /* Example message style */
  background: var(--dm-bg-content);
  padding: 8px 12px;
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  font-size: 0.95rem;
  max-width: 90%;
}
/* Add styles for user vs AI messages if needed */

.chat-input-area {
  display: flex;
  gap: 10px;
  margin-top: auto; /* Push to bottom */
  padding-top: 15px;
  border-top: 1px solid var(--dm-border-color-light);
}

.chat-input-area input[type="text"] {
  flex-grow: 1;
  padding: 10px 12px;
  border-radius: var(--border-radius);
  border: 1px solid var(--dm-border-color);
  background-color: var(--dm-bg-element);
  color: var(--dm-text-primary);
  font-size: 0.95rem;
}
.chat-input-area input[type="text"]:focus {
  border-color: var(--dm-primary-accent);
  outline: none;
  box-shadow: 0 0 0 2px rgba(21, 122, 145, 0.3); /* Example focus */
}


.chat-input-area button {
  padding: 10px 15px;
  background-color: var(--dm-primary-accent);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.chat-input-area button:hover {
  background-color: #1b8faf; /* Slightly lighter hover */
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1005; /* Below sidebar, above content */
  opacity: 0;
  visibility: hidden; /* Use visibility for better performance */
  transition: opacity 0.35s ease-in-out, visibility 0s 0.35s linear;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease-in-out, visibility 0s 0s linear;
}

/* =========================== */
/*     Main Content Wrapper    */
/* =========================== */
.content-wrapper {
  display: flex;
  flex: 1; /* Allow content to fill remaining height */
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin: 30px auto;
  padding: 10px 30px 30px 30px;
  align-items: flex-start;
  background-color: #113040;
  border: 1px solid #071720;
}

/* Keep your .info-column and .form-column styles */
.info-column {
  flex: 1;
  min-width: 300px;
  padding: 13px;
  background-color: var(--dm-bg-content);
  border-radius: var(--border-radius);
  border: 1px solid var(--dm-border-color);
  margin-top: 22px;
  background-color: #0c2a39;
}
.info-column h2 { /* Specific style for this column's h2 */
  color: var(--dm-text-headings);
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: 600;
  border-bottom: 1px solid var(--dm-border-color-light);
  padding-bottom: 10px;
  text-align: center;
}
.info-column p { color: var(--dm-text-secondary); margin-bottom: 15px; }

p.meet {
  text-align: center;
  /* width: 500px; */
  padding-left: 35px;
  padding-right: 34px;
  margin-top: 5px;
}
.form-column {
  width: 100%;
  max-width: 580px;
  height: auto;
  padding: 8px 30px 30px 30px;
  flex: 1;
  min-width: 300px;
  border-radius: var(--border-radius);
  border: 1px solid var(--dm-border-color);
  margin-top: 22px;
  background-color: #0c2a39;
}
/* Paste your .form-container styles here OR ensure they are defined elsewhere */
/* Example placeholder if not defined elsewhere: */
.form-container {
  background-color: var(--dm-bg-content); /* Example */
  padding: 30px;
  border-radius: var(--border-radius);
  border: 1px solid var(--dm-border-color);
}

.form-column {
  position: relative;
}

#slideOutPanel {
  position: absolute;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background-color: #f8f9fa;
  border-left: 2px solid #ccc;
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}

/* Slide-out panel when active */
#slideOutPanel.active {
  right: 0; /* visible on screen */
}
#slideOutPanel h3 {
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}
.quote-field {
  margin-bottom: 12px;
}
.quote-field .label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}
.quote-field .value {
  font-size: 1.2rem;
  color: #007bff;
}
canvas#canvasID\:0 {
  width: 112%;
}
div[id^="hostDiv"] {
  position: relative;
  left: 47.5%;
  transform: translateX(-50%);
  width: 100%;
  display: block;
  justify-content: center;
  align-items: flex-end;
  bottom: 4px;
}
/* =========================== */
/*      Responsiveness         */
/* =========================== */
@media (max-width: 992px) {
  .content-wrapper {
      max-width: 95%;
      gap: 25px;
      padding: 0 20px;
      margin-top: 25px;
  }
  .form-column {
      max-width: 500px;
  }
   .main-nav {
       gap: 15px; /* Reduce gap */
   }
}

@media (max-width: 768px) {
   .main-header {
      padding: 10px 15px; /* Adjust padding */
      max-width: 100%;
  }
  .desktop-nav {
     /*   display: none;Hide desktop nav */
  }
  .hamburger-menu {
      display: flex; /* Show hamburger */
  }

  .content-wrapper {
      flex-direction: column;
      max-width: 600px;
      padding: 0 15px;
      margin-top: 20px;
      gap: 20px;
  }
  .info-column { order: 2; width: 100%; min-width: unset; }
  .form-column { order: 1; width: 100%; max-width: 100%; }
  .form-container { padding: 25px 20px; } /* Adjust form padding */
}

@media (max-width: 480px) {
  .content-wrapper { padding: 0 10px; margin-top: 15px; gap: 15px; }
  .info-column { padding: 20px; }
  .info-column h2 { font-size: 1.4rem; }
  .form-container { padding: 20px 15px; }
  .chat-sidebar { width: 280px; } /* Slightly smaller sidebar */
}
.avatar-frame {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.avatar-border-wrapper {
  position: relative;
  width: 416px;
  height: 550px;
  background-color: #f0f1f3;
  background: linear-gradient(to bottom right, #ffffff 8%, #92d4df 42%, #9f2425 100%);
}
.sitepal-avatar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.avatar-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 15px solid #30363d;
  z-index: 2;
  pointer-events: none;
  box-sizing: border-box;
}


/* new look dark dash slide out*/
/* General slide panel styling */
#slideOutPanel.dashboard-panel {
  position: fixed;
  top: 0;
  right: -90%;
  width: 90%;
  height: 100vh;
  background-color: #121212;
  color: #fff;
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.4);
  padding: 20px 30px;
  font-family: 'Segoe UI', sans-serif;
}

.dark-mode .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dark-mode .panel-header h2 {
  font-size: 1.8rem;
  margin: 0;
}

.dark-mode #closeSlideOut {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  font-weight: bold;
}

/* Section headers */
.panel-section {
  margin-bottom: 35px;
}

.panel-section h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
  color: #00cfff;
}

/* Metric grid layout */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.metric-box {
  background-color: #1e1e1e;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  text-align: center;
  transition: all 0.3s;
}

.metric-box .value {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.metric-box .label {
  font-size: 0.95rem;
  color: #bbb;
}

/* Table for plan comparison */
.plan-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.plan-table thead th {
  background-color: #222;
  color: #00cfff;
  font-size: 1rem;
  padding: 12px;
  border-bottom: 1px solid #444;
}

.plan-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #333;
  font-size: 0.95rem;
  color: #eee;
}

/* Map container styling */
#map, #satellite-map {
  border: 1px solid #333;
  border-radius: 10px;
}




/********New CSS from html *****/
 #main-content-grid {
      display: flex;
      flex-direction: row; /* or column if stacking is intended */
      justify-content: center;
      align-items: flex-start;
      flex-wrap: wrap; /* allows it to adjust for mobile */
      gap: 40px; /* optional spacing between avatar and form */
      width: 100%;
      }
      #slideOutPanel.dashboard-panel {
        position: fixed;
        top: 0;
        right: -90%;
        width: 90%;
        height: 100vh;
        background-color: #042831;
        color: #fff;
        z-index: 9999;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0);
        padding: 20px 30px;
        font-family: 'Segoe UI', sans-serif;
      }
      
      #slideOutPanel.dashboard-panel.active {
        right: 0;
      }
      
        /* ========== Base Panel Styling ========== */
        .dashboard-panel.dark-mode {
          background: #121212;
          color: #fff;
          padding: 25px;
          max-width: 90%;
          width: 90%;
          height: 100vh;
          overflow-y: auto;
          position: fixed;
          top: 0;
          right: 0;
          z-index: 1000;
          /*box-shadow: -2px 0 15px rgba(0, 0, 0, 0.7);*/
          transition: transform 0.3s ease;
          border-left: 2px solid #00cfff;
          font-family: 'Segoe UI', sans-serif;
        }
      
        .panel-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding-bottom: 15px;
          border-bottom: 1px solid #333;
          margin-bottom: 20px;
        }
      
        .panel-header h2 {
          font-size: 20px;
          font-weight: 700;
          color: #ccf2ff;;
        }
      
        .panel-header button {
          background: transparent;
          border: none;
          color: #fff;
          font-size: 26px;
          cursor: pointer;
        }
      
        /* ========== Section Styling ========== */
        .panel-section {
          margin-bottom: 29px;
          background-color: #184157;
          padding: 16px;
          border-radius: 10px;
          box-shadow: 0 0 10px rgba(0,0,0,0.4);
        }
      
        .panel-section h3 {
          color: #c2c2c2;
          font-size: 19px;
          margin-bottom: 12px;
          border-left: 3px solid #2b8470;
          padding-left: 10px;
        }
      
  
      
        .dashboard-left,
        .dashboard-right {
          flex: 1 1 48%;
          display: flex;
          flex-direction: column;
          gap: 20px;
        }
      
        @media (max-width: 992px) {
          .dashboard-left,
          .dashboard-right {
            flex: 1 1 100%;
          }
        }
      
        /* ========== Metrics ========== */
        .metric-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
          gap: 10px;
        }
      
        .metric-box {
          background-color: #2a2a2a;
          border-radius: 8px;
          padding: 12px;
          text-align: center;
          border: 1px solid #333;
        }
      
        .metric-box .label {
          font-size: 0.9rem;
          color: #ccc;
          margin-top: 6px;
        }
      
        .metric-box .value {
          font-size: 1.2rem;
          font-weight: bold;
          color: #ffffff;
        }
      
        /* ========== Pricing Cards ========== */
        .pricing-card-container {
        display: flex;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        max-width: 1800px;
        margin: 0 auto;
      }
      .pricing-card {
        background-color: #072c3f;
        border-radius: 12px;
        padding: 20px;
        width: 430px;
        color: #f0f0f0;
        text-align: left;
        box-shadow: 0 0 10px rgba(0,0,0,0.5);
      }
      .pricing-card h3 {
        text-align: center;
        border-bottom: 1px solid #00bcd4;
        padding-bottom: 10px;
        margin-bottom: 15px;
      }
      .pricing-table td {
        padding: 8px 0;
        vertical-align: middle;
      }
      .pricing-table td i {
        margin-right: 8px;
      }
      
        .pricing-table {
          width: 100%;
          font-size: 0.95rem;
          color: #fff;
          height: 400px;
        }
        .pricing-card.lease {
          background-color: #0d2a36;
      }
      
      .pricing-card.loan {
          background-color: azure;
      }
      .pricing-card.loan {
          background-color: #1a5453;
      }
        .pricing-table td {
          padding: 6px 4px;
          border-bottom: 1px solid #515151;
        }
      
        .pricing-table td:first-child {
          color: #aaa;
        }
      
        /* ========== Map Styles ========== */
        #map,
        #satellite-map {
          width: 100%;
          border-radius: 8px;
          height: 250px;
        }
        .metric-box .value {
          font-size: 1.6rem;
          font-weight: bold;
          margin-bottom: 5px;
      }
      .metric-box .label {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 6px;
          font-size: 1rem;
      }
      .metric-box .label i {
          font-size: 1rem;
      }
      div#leaseMonthlyPayment {
          background-color: #18473c;
      }div#monthlyBill_1 {
          background-color: #651111;
      }
      div#loanMonthlyPayment {
          background-color: #18473c;
      }
      div#cashTotalSystemCost {
          background-color: rgb(24, 71, 60);
      }
      
      div#systemSizeKw {
          background-color: rgb(90 92 15);
      }
      span#numberOfLoanBatteries {
          background-color: rgb(90 92 15);
          padding-right: 10px;
          padding-left: 10px;
      }
      span#numberOfPanels {
          background-color: rgb(90 92 15);
          padding-right: 10px;
          padding-left: 10px;
      }
      div#roofDirectionLabel {
          background-color: rgb(17 97 99);
      }
      div#preSolarBillLease {
          background-color: #651111;
      }
      div#postSolarBillLoan {
          background-color: #18473c;
      }
      div#postSolarBillLease {
          background-color: #18473c;
      }
      div#postSolarBillCash {
      background-color: #18473c;
      }
      .unit {
          font-size: 0.6em;
          opacity: 0.8;
      }
      .metric-grid.four-cols {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
      }
      #slideOutPanel h3 {
          margin-top: 0;
          border-bottom: 1px solid #ddd;
          padding-bottom: 5px;
          color: #b2ded4;
          font-size: 1.2em;
      }
      
      /* replace in styles */
      .quote-header p {
          color: var(--dm-text-primary);
          text-align: left;
          font-size: 24px;
      }
      .quote-title-info {
          padding: 3px 0px 4px 11px;
      }
      .quote-name {
      font-size: 1.2rem;
      margin-bottom: 3px;
      }
      .quote-header .subtitle {
      font-size: 0.9rem;
      color: #ccc;
      margin-bottom: 3px;
        }
        form#solarQuoteForm {
          margin-bottom: 15px;
      }
      .inline-two p {
          margin: 0;
          font-size: 1.1rem;
      }
      .trust-container {
          border-top: 1px solid var(--dm-border-color-light);
          background-color: #0c2a39;
          border-radius: 10px;
          padding: 20px;
      }
      .form-container {
          background-color: transparent;
          padding: 0px 10px 0px 10px;
          border-radius: var(--border-radius);
          border: 1px solid var(--dm-border-color);
      }
      .referredby {
          font-size: 0.85rem;
          color:rgb(255, 255, 255); 
          margin-top: 8px;
          text-align: center;
          padding-bottom: 20px;
      }
      
      .referredby strong {
          color: #c4a44e;
          font-size: 18px;
      }
      
      
      hamburger-menu {
          display: block;
          cursor: pointer;
          background: none;
          border: none;
      }
      
      .hamburger-menu span {
          display: block;
          width: 25px;
          height: 3px;
          margin: 5px 0;
          background-color: #333;
      }
      
      .main-nav.active {
          display: block;
      }
      form#solarQuoteForm {
          margin-bottom: 30px;
      }
      .chat-sidebar {
          position: fixed;
          right: 0;
          top: 0;
          width: 22vw;
          height: 100%;
          background: #051b27;
          box-shadow: -2px 0 5px rgba(0,0,0,0.3);
          transform: translateX(100%);
          transition: transform 0.3s ease-in-out;
          z-index: 99999;
      }
      
      .chat-sidebar.active {
          transform: translateX(0);
      }
      
      .overlay {
          display: none;
          position: fixed;
          top: 0; left: 0; right: 0; bottom: 0;
          background: rgba(0, 0, 0, 0.5);
          z-index: 99;
      }
      
      .overlay.active {
          display: block;
      }
      .quote-footer {
          background-color: #0c2a39;
          color: #ccc;
          text-align: center;
          padding: 5px;
          font-size: 0.8rem;
          border-top: 1px solid #333;
          width: 100%;
          max-width: 1400px
      }
        .quote-footer i {
          color: #f39c12;
          margin-right: 6px;
        }
        .disclaimer-text {
          color: #ccc;
          font-size: 0.75rem;
          line-height: 1.4;
      }
      
      .disclaimer-text i {
          margin-right: 8px;
          color: #f39c12;
      }
      .center-btn {
          text-align: center;
          margin-top: 20px;
      }
      
      .center-btn .btn {
          margin: 0 5px;
          cursor: pointer;
      }
      h2.h2.title {
          text-align: center;
      }
      .trust-container {
          display: none;
      }
      p.subtitle {
          text-align: center;
      }
      .extra-info {
        display: block;
        font-size: 0.85rem;
        color: #ccc;
        margin-top: 5px;
      }
      .extra-info-medium {
          display: block;
          font-size: 1.1rem;
          color: #ccc;
          margin-top: 5px;
          text-align: center;
      }

      
        @media (max-width: 768px) {
          .metric-box, .pricing-card {
            flex: 1 1 100%;
          }
          .page-container {
          max-width: 100%;
          padding: 10px;
        }
        .trust-container {
          display: none;
      }
      .form-column {
          padding: 8px 8px 8px 8px;
        }
        .avatar-border-wrapper {
          width: 100%;
          height: 444px;
      }
      button#desktopChatBtn {
          position: relative;
          left: 25px;
      }
      .chat-sidebar {
          position: fixed;
          right: 0;
          top: 0;
          width: 100vw;
          height: 97%;
      }
      .logo-area img {
          max-height: 47px;
      }
      .logo-area {
          margin-right: 9px;
      }
      .form-column {
          margin-top: 10px;
        }
        .quote-footer {
          max-width: 100%;
        }
        .metric-grid.four-cols {
        display: contents;
        gap: 15px;
      }
      .metric-grid.four-cols {
          display: contents;
      }
  }
  .dashboard-grid {
  display: flex;
  flex-wrap: nowrap; /* allows responsive stacking */
  gap: 20px;
}

.dashboard-left,
.dashboard-right {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 1550px) {
  .dashboard-grid {
      flex-wrap: nowrap;
      overflow-x: auto;
  }

/* Force stacking on smaller screens */
@media (max-width: 1200px) {
  .dashboard-left,
  .dashboard-right {
      flex: 1 1 100%;
  }
}

/* Metric grid and box style */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.metric-box {
  background-color: #0d2a36;
  border-radius: 10px;
  padding: 10px;
  min-width: 180px;
  text-align: center;
}

/* Optional pricing card responsiveness */
@media (max-width: 1450px) {
  .pricing-card-container {
      display: flex;
      flex-wrap: wrap;
  }
}
  .pricing-card {
      flex: 1 1 100%;
  }
}

/* For mobile layout stacking */
@media (max-width: 768px) {
  .metric-box,
  .pricing-card {
      flex: 1 1 100%;
  }


  .dashboard-grid {
  display: flex;
  flex-wrap: wrap; /* allows responsive stacking */
  gap: 20px;
}
}
iframe#myIframe {
  height: 85vh;
}

#termsModal h2 {
font-size: 22px;
color:rgb(113, 155, 177);
}

#termsModal ol {
padding-left: 20px;
margin-top: 15px;
}

#termsModal ol li {
margin-bottom: 15px;
font-size: 16px;
}

#termsModal a {
color: #184157;
text-decoration: underline;
}
button#closeTerms {
  color: white;
}
* 
#termsModal button#closeTerms:hover {
color: red;
}
.modal-content {
  background-color: #021925 !important;
}
button#closePrivacy {
  color: wheat;
}
#privacyModalp p {
  line-height: 1.6em;
}
#privacyModalp  h2{
  margin-top: 5px;
  margin-bottom: 10px;
}
.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  padding: 0 10px;
}
.extra-info-medium {
  display: block;
  font-size: 1.1rem;
  color: #ccc;
  margin-top: -6px;
  text-align: center;
}

#preloader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgb(0 0 0 / 88%); 
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
  }
  
  #preloader .content-wrapper {
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  height: 100vh; 
}

  .content-wrapper {
      text-align: center;
      display: flex;
      flex-direction: row;      
      align-items: center;          
      justify-content: center;      
      color: #fff;
      /*min-height: 100vh;*/           
      padding: 20px; 
      background-color: transparent;
      border: 1px solid transparent;
      box-shadow: 0 4px 15px var(--dm-shadow-color);
      }
  
  #progress-container {
      width: 30vw;
      height: 20px;
      background-color: #ddd;
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 20px; 
  }
  
  #progress-bar {
      height: 100%;
      width: 0%;
      background-color: #c4a44e;
      transition: width 0.3s;
  }
  
  #progress-text {
      font-family: Verdana, sans-serif;
      font-size: 16px;
      color: #fff;
      margin-bottom: 0px;
  }
  
  #dynamic-text {
      font-family: Verdana, sans-serif;
      font-size: 15px;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      border-right: 3px solid #4CAF50; 
      animation: blinkCursor 0.75s step-end infinite;
      font-weight: bold;
      margin-top: 0px; 
  }
  
  @keyframes blinkCursor {
      50% {
          border-color: transparent;
      }
  }

/* new css replace in styles */
.info-column {
  flex: 1;
  min-width: 300px;
  padding: 13px;
  background-color: var(--dm-bg-content);
  border-radius: var(--border-radius);
  border: 1px solid var(--dm-border-color);
  margin-top: 22px;
  background-color: #0c2a3900;
  box-shadow: 0 4px 15px var(--dm-shadow-color);
}
.form-column {
  width: 100%;
  max-width: 580px;
  height: auto;
  padding: 8px 30px 30px 30px;
  flex: 1;
  min-width: 300px;
  border-radius: var(--border-radius);
  border: 1px solid var(--dm-border-color);
  margin-top: 22px;
  background-color: transparent;
}
.btn-primary {
  background-color: #8d6f1d;
  color: white;
}
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  background-color: #0c2a3900;
  border-bottom: 1px solid var(--dm-border-color);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 4px 15px var(--dm-shadow-color);
}
.popup-modal {
display: none;
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.6);
}

.popup-content {
background-color: #0c4866;
margin: 8% auto;
padding: 25px;
border-radius: 8px;
width: 90%;
max-width: 500px;
position: relative;
text-align: left;
}

.close-btn {
position: absolute;
top: 10px;
right: 15px;
font-size: 24px;
background: none;
border: none;
cursor: pointer;
color: white;
}
/* Modal Background */
#howItWorksPopup {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
overflow: auto;
background-color: rgba(0, 0, 0, 0.6);
display: none;
}

/* Modal Content Box */
#howItWorksPopup .popup-content {
background-color: #d4f8ff;
margin: 5% auto;
padding: 30px;
border-radius: 10px;
width: 90%;
max-width: 700px;
font-family: 'Helvetica Neue', sans-serif;
color: #222;
position: relative;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Close Button */
#howItWorksPopup .close-btn {
position: absolute;
top: 12px;
right: 16px;
background: none;
border: none;
font-size: 22px;
font-weight: bold;
cursor: pointer;
color: black;
}

/* Headings and Lists */
#howItWorksPopup h2,
#howItWorksPopup h3 {
color: #1b4f3f;
margin-top: 20px;
margin-bottom: 10px;
}

#howItWorksPopup p {
margin: 12px 0;
line-height: 1.6;
}

#howItWorksPopup ul {
margin-left: 20px;
padding-left: 15px;
}

#howItWorksPopup ul li {
margin-bottom: 10px;
list-style-type: disc;
}






/* Modal Background */
#contactPopup {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
overflow: auto;
background-color: rgba(0, 0, 0, 0.6);
display: none;
}

/* Modal Content Box */
#contactPopup .popup-content {
background-color: #d4f8ff;
margin: 5% auto;
padding: 30px;
border-radius: 10px;
width: 90%;
max-width: 700px;
font-family: 'Helvetica Neue', sans-serif;
color: #222;
position: relative;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Close Button */
#contactPopup .close-btn {
position: absolute;
top: 12px;
right: 16px;
background: none;
border: none;
font-size: 22px;
font-weight: bold;
cursor: pointer;
color: black;
}

/* Headings and Lists */
#contactPopup h2,
#contactPopup h3 {
color: #1b4f3f;
margin-top: 20px;
margin-bottom: 10px;
}

#contactPopup p {
margin: 12px 0;
line-height: 1.6;
}

#contactPopup ul {
margin-left: 20px;
padding-left: 15px;
}

#contactPopup ul li {
margin-bottom: 10px;
list-style-type: disc;
}
