#header-placeholder .ns-header,
#header-placeholder .navbar.bg-white {
  margin-top: 0;
  padding: 12px 0 15px 0;
  margin-top: 0px; /* Include padding in width calculation */
}

/* General Body and Main Container */
body {
  background-color: #d9d9d9;
  font-family: "Agrandir-Regular", sans-serif;
  display: flex; /* Use flexbox for sticky footer */
  flex-direction: column; /* Stack children vertically */
  min-height: 100vh; /* Full viewport height */
  margin: 0;
  padding: 0; /* Remove padding from body, move to content wrapper */
  box-sizing: border-box;
}

/* New wrapper for the main content to handle centering and push footer */
.account-content-wrapper {
    flex-grow: 1; /* Allows this wrapper to take up available space, pushing footer down */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 2%; /* Responsive padding for the content */
    box-sizing: border-box;
}

.account-main-section {
    width: 100%;
    max-width: 1400px; /* Limits overall width on very large screens for better readability */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Sign-up Card */
.account-card {
    background-color: #efefef;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    width: 100%;
    overflow: hidden; /* Crucial for clipping the content of its children to its rounded corners */
}

/* Form Section (Left Side) */
.account-form-section {
    flex: 1;
    padding: 60px 105px; /* Base padding */
    display: flex;
    flex-direction: column;
    min-width: 500px; /* Base min-width for larger desktops */
}

/* Image Section (Right Side) */
.account-image-section {
    flex: 1.3;
    display: flex;
    /* Keep these for the container, they help with layout */
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden; /* Crucial for clipping the image within its rounded corners */
}

    .account-image-section img {
        width: 100%;
        height: 100%;
        object-fit: fill; /* Consistent with sign-in page (as per your preference) */
        display: block;
        /* Explicitly apply border-radius to the image itself */
        border-top-right-radius: 20px;
        border-bottom-right-radius: 20px;
        /* ADDED: Slightly scale the image to ensure it overfills the rounded corners for perfect clipping */
        transform: scale(1.01);
        transform-origin: center center; /* Ensures scaling from the center */
    }

.logo {
  width: 150px;
  margin-bottom: 42px;
}

.heading {
  font-family: "Agrandir-Regular", sans-serif;
  color: #2f5143;
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-align: left; /* Ensure heading is always left-aligned */
}

.subheading {
  color: #2f5143;
  font-size: 1rem;
  margin-bottom: 25px;
  text-align: left; /* Ensure subheading is always left-aligned */
}

.form-label {
  color: #6f6f6f;
  font-size: 0.85rem;
  margin-bottom: 5px;
  display: block;
  text-align: left; /* Ensure form labels are always left-aligned */
}

.form-input,
.form-select {
  width: 100%;
  background-color: #e7ede4;
  border: 1px solid #e7ede4;
  border-radius: 8px;
  padding: 14px 15px;
  font-family: "Agrandir-Regular", sans-serif;
  color: #2f5143;
  font-size: 0.9rem;
  text-align: left; /* Ensure input text is always left-aligned */
}

/* Custom Select Dropdown Styles */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-input {
  cursor: pointer; /* Indicate it's clickable */
  padding-right: 2.5rem; /* Space for the arrow */
  text-align: left; /* Ensure custom select input text is always left-aligned */
}

.custom-select-arrow {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #2f5143; /* Arrow color */
  pointer-events: none; /* Make sure clicks go through to the input */
}

.custom-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: #e7ede4;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e7ede4;
    scrollbar-width: thin;
    scrollbar-color: #d1d1d1 transparent;
}

    .custom-select-dropdown::-webkit-scrollbar {
        width: 6px;
        background-color: transparent;
    }

    .custom-select-dropdown::-webkit-scrollbar-thumb {
        background-color: #d1d1d1;
        border-radius: 3px;
    }


/*.custom-select-dropdown {
  display: none;  Hidden by default 
  position: absolute;
  top: calc(100% + 5px);  Position below the input, with a small gap 
  left: 0;
  width: 100%;
  background-color: #e7ede4;  Match input background 
  border-radius: 8px;  Rounded corners for the dropdown itself 
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);  Subtle shadow 
  z-index: 10;  Ensure it appears above other content 
  padding: 0;  REMOVED padding: 10px 0; to control internal spacing with custom-radio-item 
  max-height: 200px;  Limit height for scrollability if many items 
  overflow-y: auto;  Enable scrolling if content overflows 
  border: 1px solid #e7ede4;  Match input border 

   Scrollbar styling for Webkit browsers (Chrome, Safari) 
  &::-webkit-scrollbar {
    width: 6px;  Width of the scrollbar 
    background-color: transparent;  Makes the track transparent 
  }

  &::-webkit-scrollbar-thumb {
    background-color: #d1d1d1;  Color of the scroll thumb 
    border-radius: 3px;  Rounded corners for the thumb 
  }

   Scrollbar styling for Firefox 
  scrollbar-width: thin;  "auto" or "none" or "thin" 
  scrollbar-color: #d1d1d1 transparent;  thumb color track color 
}*/

.custom-select-dropdown.show {
  display: block; /* Show when 'show' class is added by JS */
}

.custom-radio-item {
  display: flex; /* Use flexbox for alignment */
  align-items: center; /* Vertically center items */
  padding: 8px 15px; /* Padding for each dropdown item */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.custom-radio-item:hover {
  background-color: #dbe2d2; /* Slightly darker hover color */
}

.custom-radio-item .form-check-input {
  /* No margin-right here, use gap on parent custom-radio-item */
  flex-shrink: 0; /* Prevent radio button from shrinking */
  margin-top: 0; /* Ensure it aligns perfectly with text */
  /* Ensure radio buttons are aligned left within their padding */
  margin-left: 0; /* Reset any default browser/bootstrap margin */
  /* Specific size for the radio button dot */
  width: 1em; /* Bootstrap default is 1em */
  height: 1em; /* Bootstrap default is 1em */
}

.custom-radio-item .form-check-label {
  color: #6f6f6f; /* Client's specified text color for dropdown entries */
  font-size: 0.9rem;
  flex: 1; /* Allow label to take available space */
  margin-bottom: 0; /* Remove default margin from bootstrap's form-check-label */
  /* Added margin-left for spacing between radio button and text */
  margin-left: 10px; /* Space between radio button and label text */
}

/* Original form-select styling (kept for other potential select elements if any, but now superseded for State) */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232F5143' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.form-paragraph {
  font-size: 0.9rem;
  color: #6f6f6f;
  margin-top: 15px;
  margin-bottom: 10px;
  text-align: left; /* Ensure the paragraph text is always left-aligned */
}

.form-radio-group {
  display: flex;
  flex-direction: column; /* Stack radio options vertically on smaller screens */
  align-items: flex-start; /* Left-align radio options */
  gap: 10px;
  margin-bottom: 10px;
}

.form-check {
  display: flex;
  align-items: flex-start; /* Align checkbox and label to the top */
  gap: 10px;
  margin-bottom: 10px;
}

.form-check-input {
  margin-top: 0.2em; /* Keep for other form-check-inputs */
  background-color: #e7ede4;
  border-color: #6f6f6f;
}

.form-check-input:checked {
  background-color: #2f5143;
  border-color: #2f5143;
}

.form-check-label {
  font-size: 0.9rem;
  color: #6f6f6f;
  flex: 1;
  text-align: left; /* Left-align checkbox labels */
}

.account-submit-btn {
  font-family: "Agrandir-Textbold", sans-serif;
  width: 100%;
  background-color: #2f5143;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 15px 12px;
  font-size: 1rem;
  font-weight: 200;
  cursor: pointer;
  margin-top: 5px;
  transition: background-color 0.3s;
}

.account-submit-btn:hover {
  background-color: #254135;
}

    .account-submit-btn:disabled {
        background-color: #ccc; /* Gray background */
        color: #666; /* Dimmed text */
        cursor: not-allowed; /* Prevent pointer interaction */
        border: 1px solid #999; /* Optional: subtle border */
        opacity: 0.7; /* Slight transparency */
    }

        .account-submit-btn:disabled:hover {
            background-color: #ccc;
            color: #666;
        }

.account-text-link {
  text-align: left;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #6f6f6f;
}

.account-text-link a {
  font-family: "Agrandir-Textbold", sans-serif;
  color: #2f5143;
  font-weight: 100;
  text-decoration: none;
}

.signup-separator {
    text-align: center;
    color: #6f6f6f;
    margin: 15px 0;
    font-size: 0.9rem;
}

.signup-social-buttons {
  max-width: 300px;
  align-items: center;
  justify-content: center;
  display: flex;
  gap: 15px;
  margin: 0 auto; /* This centers the signup-social-buttons container */
}

.signup-social-btn {
  flex: 1;
  background-color: transparent;
  border: 1px solid #6f6f6f;
  border-radius: 8px;
  padding: 5px 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.signup-social-btn img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.signup-social-btn:hover {
  background-color: #e7ede4;
}

/*****S T A R T - Sign In P A G E *****/
.signup-link {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
    color: #6f6f6f;
}

    .signup-link a {
        font-family: "Agrandir-Textbold", sans-serif;
        color: #2f5143;
        font-weight: 100;
        text-decoration: none;
    }

/*.password-wrapper {
    margin-bottom: 25px;
}

    .password-wrapper .form-input {
        margin-bottom: 8px;
    }*/

.separator {
    font-weight: 800;
    text-align: center;
    color: #6f6f6f;
    margin: 25px 0;
    font-size: 0.9rem;
}

.social-btn {
    width: 100%;
    background-color: transparent;
    border: 1px solid #6f6f6f;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 15px;
}

    .social-btn:last-of-type {
        margin-bottom: 0;
    }

    .social-btn img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .social-btn span {
        font-family: "Agrandir-Regular", sans-serif;
        color: #6f6f6f;
        font-size: 0.9rem;
    }

    .social-btn:hover {
        background-color: #e7ede4;
    }

/*****E N D - Sign In P A G E *****/

/* Responsive Design Adjustments */
/* For very large screens (optional: to prevent the card from becoming too wide) */
@media (min-width: 1400px) {
  .account-main-section {
    padding: 40px 0;
  }
  .account-form-section {
    padding: 60px 120px;
  }
}

/* Desktop/Laptop (default styles apply, but fine-tuning can be done here) */
@media (max-width: 1200px) {
    .account-form-section {
        padding: 50px 80px;
        min-width: 400px;
    }
  .heading {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  .subheading {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  .logo {
    width: 130px;
    margin-bottom: 35px;
  }
}

/* Tablet (Portrait) and smaller desktops */
@media (max-width: 992px) {
    .account-form-section {
        margin-top: 0;
        padding: 40px 60px;
        min-width: 350px;
    }
  .heading {
    font-size: 1.8rem;
    margin-bottom: 35px;
  }
  .subheading {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }
  .logo {
    width: 120px;
    margin-bottom: 30px;
  }
  .social-btn span {
    font-size: 0.85rem;
  }
}

/* Mobile (Landscape) and smaller tablets */
@media (max-width: 768px) {
  /* Added specific resets for html and body */
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
  }
  body {
    padding: 0; /* Remove body padding to allow navbar to extend to edges */
  }
  .account-card {
    flex-direction: column;
    border-radius: 15px;
  }
  .account-image-section {
    display: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .account-form-section {
    padding: 30px 25px;
    min-width: unset;
    border-radius: 15px;
    /* Removed align-items: flex-start here to allow individual text-align properties to take effect on their children */
    /* Instead, applying text-align: left directly to affected children */
  }
  .heading {
    font-size: 1.6rem;
    margin-bottom: 30px;
    text-align: left; /* Force left alignment */
  }
  .subheading {
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: left; /* Force left alignment */
  }
  .logo {
    width: 100px;
    margin-bottom: 25px;
    /* Ensure logo is left-aligned if it was affected by previous centering */
    margin-left: 0; /* Reset any auto margin */
    margin-right: auto; /* Push it to the left */
    display: block; /* Ensure it behaves as a block element for margin auto */
  }
  .form-input {
    padding: 12px 15px;
    /* text-align: left; This is already handled by the general .form-input rule above */
  }
  .account-submit-btn {
    padding: 13px 12px;
    font-size: 0.95rem;
  }
  .social-btn {
    padding: 10px 15px;
    gap: 10px;
  }
  .social-btn img {
    width: 20px;
    height: 20px;
  }
  /* Ensure these specific elements are left-aligned on smaller screens */
  .form-label,
  .form-paragraph,
  .form-check-label,
  .account-text-link {
    text-align: left;
  }
  /* For radio button group: ensure items are stacked and left-aligned */
  .form-radio-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%; /* Ensure it takes full width to respect padding */
  }
  /* For general form-check elements (used by checkboxes) */
  .form-check {
    width: 100%; /* Ensure it takes full width to respect padding */
    justify-content: flex-start; /* Align content to the left */
  }
}
/* Link for */
.forgot-password {
    display: block;
    text-align: right;
    color: #6f6f6f;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Extra Small Mobile Devices (e.g., iPhone SE) */
@media (max-width: 480px) {
  /* Added specific resets for html and body */
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
  }
  body {
    padding: 0; /* Ensure no padding interferes */
  }
  .account-form-section {
    padding: 25px 20px;
  }
  .heading {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }
  .subheading {
    font-size: 0.85rem;
  }
  .logo {
    width: 90px;
    margin-bottom: 20px;
  }
    .form-label,
    .forgot-password,
    .signup-separator,
    .social-btn span,
    .account-text-link {
        font-size: 0.8rem;
    }
}