body, html {
  height: 100%; /* Full height */
  display: flex;
  flex-direction: column;
  margin: 0;
}
/* Ensure the body accounts for the fixed navbar */
body {
  padding-top: 0;
  /*padding-top: 56px; /* Matches typical navbar height (Bootstrap's default for fixed-top) */
  background-color: white;
  color: black;  
  padding-left: 0%;
  background-image: url("https://storage.googleapis.com/vuperfect-pubfiles/VUPerfect%20Graphic1-shifted.png");
  background-repeat: no-repeat;
  background-size: cover;
}
main {
  flex: 1; /* Make the main content take available space */
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  padding-left: 0%;
}
/* Customize the Pricing modal width */
.modal-xl-custom {
  max-width: 1200px !important; /* Overrides Bootstrap's default */
}
.message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  text-align: center;
}
.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
/* General Footer Styles */
footer {
  background-color: #6c757d; /* Bootstrap secondary color */
  color: white;
  text-align: center;
  padding: 10px 0;
}
footer img {
  margin-bottom: 10px;
}
.footer-logo {
  width: 100px;
  height: 100px;
  margin-right: 15px;
}

.footer-text {
  font-size: 1.2rem;
}

.footer-copyright {
  font-size: 0.9rem;
}

.footer-icon {
  font-size: 1.5rem;
  transition: color 0.2s;
}

.footer-icon:hover {
  color: #ccc;
}


form{
    padding-left: 5%;
    padding-right: 5%;
}
h1 {
  color: Black;
  text-align: left;
  padding-left: 5%;
}
h2 {
    color: gray;
    padding-left: 10%; 
}
a {
    padding-left: 0%;
  }
p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  padding-left: 5%;
  padding-right: 0%;
  margin-left: 0px;
} 
/* Navbar custom styles */
/* Ensure navbar doesn't obscure content */
.navbar.fixed-top {
  z-index: 1030; /* Ensure navbar stays above other content */
}
.navbar {
  /*background-color: #343a40; /* Dark background for contrast */
  /*background-color: #333333; /* Dark grey */
    /* OR */
    /*background-color: #1a1a1a; /* Softer black */
}
.navbar-brand {
  margin-right: 50px; /* Add space between logo and nav items */
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-item {
  margin-left: 20px; /* Add space between each nav item */
}

.navbar-nav {
  flex-grow: 1;
  padding-right: 15%;
  justify-content: flex-end; /* Align nav items to the right */
}

.nav-link {
  /*font-size: 16px;*/
  color: white;
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

.nav-link:hover {
  color: #f0ad4e; /* Optional: Add hover effect */
}
.id01 {
  padding-left: 5%;
}

.welcome-text {
  color: white !important;
  font-size: 2rem;
  margin: 0;
}

header {
  margin: 0;  /*account for the navbar*/
}

/* Wrapper for header content to prevent overlap */
.header-content {
  margin-top: 0;/* Ensure no extra margin */
  padding-top: 46;
}

/* Adjust header logo to prevent clipping */
.header-logo {
  width: 200px; /* Default for desktop */
  max-width: 100%; /* Prevent overflow */
  height: auto; /* Maintain aspect ratio */
}

/* Login Box */
#loginbox {
  position: relative;
  z-index: 10; /*low enough to stay below modals */
  width: 100%;
  max-width: 500px; /* Maximum width for larger screens */
  min-width: 300px; /* Minimum width to prevent shrinking too much */
  /*margin: 0 auto; /* Center the login box */
  /*width: 100%;
  padding-left: 5%;
  padding: 20px;
  margin: 20px 20px 20px 20px;
  border: none;
  background: #f1f1f1;*/
}

@media (max-width: 576px) {
  #loginbox {
      min-width: 100%; /* Full width on very small screens */
      padding-left: 1rem;
      padding-right: 1rem;
  }

  .form-control, .input-group {
      font-size: 0.9rem; /* Slightly smaller font for mobile */
  }

  .btn-primary {
      width: 100%; /* Full-width button on mobile */
  }
}

/* Ensure the input-group elements are aligned properly */
.input-group {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Style the password input */
.input-group input {
  flex: 1; /* Takes available space */
  min-width: 0; /* Prevents overflow */
  border: 1px solid #ced4da; /* Matches form-control default */
  padding: 0.375rem 0.75rem; /* Default form-control padding */
}

/* Style the toggle button to match input height */
.input-group .btn-outline-secondary {
  background-color: #fff; /* Matches input */
  border: 1px solid #ced4da; /* Matches form-control border */
  /*border: none;*/
  color: #6c757d; /* Gray icon */
  white-space: nowrap;
  padding: 0.375rem 0.75rem; /* Matches input padding */
  height: 38px; /* Explicit height to match form-control */
  line-height: 1.5; /* Centers icon vertically */
  font-size: 1rem; /* Matches input font size */
}

/* Hover effect for usability */
.input-group .btn-outline-secondary:hover {
  background-color: #f8f9fa; /* Light gray hover */
  color: #6c757d;
  border-color: #6c757d;
}

/* General button styles (for Submit, not toggle) */
button:not(.btn-outline-secondary, .button4) {
  /*background-color: #04AA6D;*/
  background-color: #388e5f;
  color: white;
  padding: 14px 20px;
  margin: 8px 0; 
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  opacity: 0.9;
}

/* Navbar toggle button4 */
.button4 {
  color: white;
  padding: 0 0 !important;
  width: 50% !important;
}

/* Focus styles for inputs */
input[type="text"]:focus, input[type="password"]:focus {
  background-color: #ddd;
  outline: none;
}

button3 {
  /*background-color: #04AA6D;*/
  background-color: lightgray;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.9;
  padding: 14px 20px;
  /*width: 25%;
  margin: 8px 0; */
}

button:hover {
  opacity:1;
}

/* Extra styles for the cancel button */
.cancelbtn {
  padding: 14px 20px;
  background-color: #f44336;
}

/* Float cancel and signup buttons and add an equal width */
.cancelbtn, .signupbtn {
  float: left;
  width: 50%;
}

/* Add padding to container elements */
.container {
  padding: 16px;
}

/* The Modal (background) */
.modal { 
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1050; /* Higher than navbar (1030) and other modals (1000) */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: gray;
  padding-top: 10px;
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  border: 1px solid #888;
  /*margin: 10% auto; /* Centers the modal content with margin from the top */
  padding: 5px;
  width: 70%; /* Adjust this to make the modal smaller or larger */
  max-width: 1000px; /* Optional: Limit the maximum width */
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Add shadow for better visibility */
}

.modal-logo {
  width: 150px;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
  float: none;
}

/* Style the horizontal ruler */
hr {
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
}
 
/* The Close Button (x) */
.close {
  position: absolute;
  right: 35px;
  top: 15px;
  font-size: 40px;
  font-weight: bold;
  color: #f1f1f1;
}

.close:hover,
.close:focus {
  color: #f44336;
  cursor: pointer;
}

/* Clear floats */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Change styles for cancel button and signup button on extra small screens */
@media screen and (max-width: 300px) {
  .cancelbtn, .signupbtn {
     width: 100%;
  }
}

* {
  box-sizing: border-box;
}

.columns {
  float: left;
  width: 33.3%;
  padding: 8px;
}

.price {
  list-style-type: none;
  border: 1px solid #eee;
  margin: 0;
  padding: 0;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}

.price:hover {
  box-shadow: 0 8px 12px 0 rgba(0,0,0,0.2)
}

.price .header {
  background-color: #111;
  color: white;
  font-size: 25px;
}

.price li {
  border-bottom: 1px solid #eee;
  padding: 20px;
  text-align: center;
}

.price .grey {
  background-color: #eee;
  font-size: 20px;
}

.button {
  background-color: #04AA6D;
  border: none;
  color: white;
  padding: 10px 25px;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
}

@media only screen and (max-width: 600px) {
  .columns {
    width: 100%;
  }
}
/* Basic Modal Styling for How It Works */
.how-it-works-modal {
  display: none; /* Hide by default */
  position: fixed;
  z-index: 1030;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  max-width: 100%;  /* Adjust width */
  max-height: 90vh; /* Adjust height relative to viewport */
  overflow-y: auto; /* Enables scrolling if content is too large */
  background-color: rgba(0, 0, 0, 0.7); 
  padding-top: 60px;
  transition: opacity 0.3s ease-in-out;
  /*max-width: 900px;*/
  /*background: white;*/
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

/* Modal Content for How It Works */
.how-it-works-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 25px;
  border-radius: 10px; 
  width: 70%;
  max-width: 80%;  /* Adjust width */
  max-height: 90vh; /* Adjust height relative to viewport */
  overflow-y: auto; /* Enables scrolling if content is too large */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px); 
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Modal Header for How It Works */
.how-it-works-modal-header {
  /*background:  #427e93;*/
  display: flex;
  align-items: center;
  margin-bottom: 0px;
}

.how-it-works-modal-logo {
  width: 150px;
  height: 150px;
  padding-left: 20px;
  margin-right: 15px;
  border-radius: 50%; /* Circular logo */
}

.how-it-works-modal-img {
  max-width: 500px;
  max-height: 450px;
  padding-left: 20px;
  margin-right: 15px;
  border-radius: 0%; /* rectangular images */
}

/* Center and enlarge the modal title */
.how-it-works-modal-content h2 {
  font-size: 2em; /* Increase font size */
  font-weight: 700; /* Make it bold */
  text-align: center; /* Keep it centered */
  color: #333;
  margin-top: 0;
}

/* Modal Footer for How It Works */
.how-it-works-modal-footer {
  text-align: right;
  margin-top: 20px;
}

/* Close Button Styling for How It Works */
.how-it-works-btn-close {
  /*background-color: #4CAF50;*/
  background-color:  #388e5f;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

.how-it-works-btn-close:hover {
  background-color: #45a049;
}

a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.how-it-works-modal-content {
  opacity: 1 !important;
  /*transform: translateY(0) !important;*/
}
/*.how-it-works-modal-content.show {
  transform: translateY(0);
  opacity: 1;
}*/

/* Show the modal smoothly */
.how-it-works-modal-content.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02); /* Slight scale-up for a sleek effect */
}


/* Basic Modal Styling for Pricing */

.pricing-modal {
  display: none;
  position: fixed;
  z-index: 1030;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7); 
  padding-top: 60px;
  transition: opacity 0.3s ease-in-out;
  /*max-width: 900px;*/
  /*background: white;*/
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}


.pricing-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 25px;
  border-radius: 10px; 
  width: 90%;
  max-width: 850px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px); 
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.pricing-modal-header {
  background:  #427e93;
  color: white;
  border-bottom: 2px solid #ddd;
  padding: 15px;
  border-radius: 10px 10px 0 0;
}

.pricing-modal-header h1 {
  white-space: nowrap; /* Prevents text from wrapping */
  font-size: 1.8rem;
  flex-grow: 1; /* Allows it to take up remaining space */
  text-align: center; /* Ensures proper centering */
}

.pricing-modal-logo {
  width: 100px;
  height: auto;
  border-radius: 10%; 
}

.pricing-modal-content h2 {
  font-size: 1.5em;
  margin: 0;
  color: #333;
  font-weight: 600;
}


a {
  color: #007BFF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.pricing-modal-content {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.pricing-modal-content.show {
  transform: translateY(0);
  opacity: 1;
}


/* Style the pricing table */
.pricing-table {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.pricing-card {
  flex: 1;
  background: #f9f9f9;
  border: 3px solid #427e93;  /* Stronger border */
  /*border: 4px ridge;*/
  border: #427e93;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.pricing-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.price {
  font-size: 1.6em;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 15px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
}

.pricing-card ul li {
  margin-bottom: 8px;
}

/* Highlight the most popular plan */
.pricing-card.popular {
 /*background: #007bff;*/
  /*background:  #427e93;*/
  border: 4px ridge;
  border: #427e93;
  /*color: white;*/
  /*transform: scale(1.05);*/
}

/* Highlight Popular Plan */
.pricing-card.popular {
  border: 4px solid #427e93;;
  background: rgba(0, 123, 255, 0.1);
}

/* Style buttons */
.pricing-signup-btn {
  background: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pricing-signup-btn:hover {
  background: #0056b3;
}

/* Footer with close button and sign-up link */
.pricing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 25px;
  padding: 10px;
  gap: 15px; /* Adds space between buttons */
}

/* Spacer to push buttons apart evenly */
.pricing-footer-spacer {
  flex-grow: 1;
}

.pricing-btn-close {
  /*background-color: #4CAF50;*/
  /*background: #bbb;*/
  background: #ccc;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em; /* Smaller */
  flex: 1; /* Makes button take equal width */
  text-align: center;
}

.pricing-btn-close:hover {
  background: #aaa;
  /*background: #999;*/
}

.agent-signup-btn {
  /*background: #28a745;*/
  background: #388e5f;
  color: white;
  padding: 10px 15px;
  font-size: 1em;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
  flex: 1; /* Ensures equal width as close button */
  text-align: center;
  display: inline-block;
}

.agent-signup-btn:hover {
  background: #218838;
}

/* Ensures both buttons are sized appropriately */
.pricing-btn-close,
.agent-signup-btn {
  flex: 1 1 auto;
}

/* Mobile Styles (max-width: 576px) */
@media (max-width: 576px) {
  /* Navbar */
  .navbar {
    padding: 0.3rem 0 !important; /* Reduce vertical padding to shrink height */
    background-color: rgba(51,51,51, 0.7) !important; /* Keep the dark transparent look */
  }

  .navbar-toggler {
    padding: 0rem 0rem; /* Even smaller padding */
    font-size: 1.2rem; /* larger icon */
    background-color: transparent !important;
    border: 0px solid rgba(255, 255, 255, 0.5) !important;
    margin: 0rem 0rem;
    color: #fff;
  }

  .navbar-toggler-icon {
    width: 1.2em; /* Slightly larger icon */
    height: 1.2em;
    background-size: 100%;
  }

  /* Make navbar-brand and toggler align in one row */
  .navbar {
    display: flex;
    align-items: center;
  }

  /* Ensure toggler stays right-aligned */
  .navbar > .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-brand {
    font-size: 1rem; /* Smaller brand text */
    margin-right: 0.3rem;
    line-height: 1; /* Reduce line height to minimize vertical space */
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
  }

  /* Header */
  .header-content {
    margin-top: 0; /* Adjusted to fit below the shorter navbar */
  }

  .welcome-text {
    font-size: 1.3rem; /* Slightly smaller for better fit */
    text-align: center;
    margin: 0.3rem 0;
    padding-top: 2rem;
  }

  .header-logo {
    max-width: 120px;
    margin: 0 auto;
  }

  .bg-secondary.row {
    padding: 0.8rem 0; /* Reduced padding for tighter layout */
  }

  /* Footer */
  .footer-logo-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo {
    width: 80px;
    height: 80px;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .footer-text {
    font-size: 1rem;
  }

  .footer-copyright {
    font-size: 0.8rem;
    margin: 0.5rem 0;
  }

  .footer-social {
    display: flex;
    justify-content: center;
  }

  .footer-icon {
    font-size: 1.2rem;
    margin: 0 0.5rem;
  }

  .container-fluid.py-2 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .how-it-works-modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 10px;
  }

  .how-it-works-modal-logo {
      width: 80px;
      height: 80px;
  }

  .how-it-works-modal-content h2 {
      font-size: 1.2em;
  }

  .how-it-works-modal-img {
      max-width: 250px;
  }

  .row {
      flex-direction: column;
  }

  .col {
      width: 100%;
      padding: 0;
  }

  .how-it-works-btn-close {
      padding: 6px 12px;
      font-size: 0.8em;
  }
  .pricing-modal {
    padding: 10px;
  }

  .pricing-modal-content {
    width: 95%;
    padding: 15px;
    margin: 10% auto;
  }

  .pricing-modal-header {
    padding: 10px;
  }

  .pricing-modal-header h1 {
    font-size: 1.4rem;
    white-space: normal; /* Allow text to wrap */
  }

  .pricing-modal-logo {
    max-width: 60px; /* Smaller logo on mobile */
  }

  /* Stack header elements vertically */
  .pricing-modal-header .row {
    flex-direction: column;
    align-items: center;
  }

  .pricing-modal-header .col-auto,
  .pricing-modal-header .col {
    width: 100%;
    padding: 5px 0;
  }

  /* Stack pricing cards vertically */
  .pricing-table {
    flex-direction: column;
    gap: 15px;
  }

  .pricing-card {
    padding: 15px;
  }

  .pricing-card h3 {
    font-size: 1.3em;
  }

  .price {
    font-size: 1.4em;
  }

  .pricing-card ul li {
    font-size: 0.9em;
  }

  .pricing-signup-btn {
    padding: 8px 12px;
    font-size: 0.9em;
  }

  .pricing-footer {
    flex-direction: column;
    gap: 10px;
  }

  .pricing-btn-close {
    padding: 8px 12px;
    font-size: 0.9em;
  }
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 15px;
  }
  .modal-body h1 {
    font-size: 20px;
  }

  .modal-body p {
    font-size: 14px;
  }

  .form-control {
    font-size: 14px;
    padding: 8px;
  }
  .close {
    font-size: 24px;
    padding: 8px;
  }
  .modal-logo {
    width: 120px;
  }
  .modal-body h1 {
    font-size: 20px;
  }

  .modal-body p {
    font-size: 14px;
  }

  .form-control {
    font-size: 14px;
    padding: 8px;
  }
  .input-group .btn-outline-secondary {
    padding: 8px;
    font-size: 14px;
  }
  .clearfix {
    flex-direction: column;
  }

  .cancelbtn,
  .signupbtn {
    width: 100%;
    margin-bottom: 10px;
    font-size: 14px;
    padding: 10px;
  }

  hr {
    border: 1px solid black;
  }
  label {
    font-size: 14px;
  }

  p a {
    font-size: 14px;
  }
}