* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: #fdfaf6;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: url('../images/hero-bg-pattern.svg') no-repeat center center;
  background-size: cover;
}

.signup-container {
  display: flex;
  width: 900px;
  height: 580px;
  background: #fff;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  overflow: hidden;
}

.signup-left {
  flex: 1;
  background: url('../images/left-side.png') no-repeat center;
  background-size: cover;
}

.signup-right {
  flex: 1;
  background-color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;   /* allow scrolling if too tall */
}

/* Pretty scrollbar only inside the signup-right panel */
.signup-right {
  overflow-y: auto;          /* enable scrolling if needed */
  scrollbar-width: thin;     /* Firefox */
  scrollbar-color: #12095d #f1f1f1; /* Firefox: thumb + track */
}

/* Chrome, Edge, Safari */
.signup-right::-webkit-scrollbar {
  width: 8px;
}

.signup-right::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.signup-right::-webkit-scrollbar-thumb {
  background-color: #12095d;  /* brand color */
  border-radius: 10px;
  border: 2px solid #f1f1f1;  /* space around thumb */
}

.signup-right::-webkit-scrollbar-thumb:hover {
  background-color: #f9a44c; /* accent on hover */
}

.signup-right .sg-hint{font-size:12px;margin-top:4px}
    .signup-right .sg-rules{font-size:12px;color:#555;margin-top:6px;line-height:1.4}
    .signup-right .sg-ok{color:#05603a}
    .signup-right .sg-bad{color:#b42318}
    .signup-right .sg-disabled{opacity:.6;cursor:not-allowed}
    .pw-wrap{position:relative}
    .pw-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:15px;color:#777;cursor:pointer}
    .pw-meter{height:6px;border-radius:6px;background:#eee;margin-top:8px;overflow:hidden}
    .pw-meter > span{display:block;height:100%;width:0%}
    .pw-weak{background:#b42318}
    .pw-fair{background:#eab308}
    .pw-good{background:#16a34a}
    .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
    .form-row{display:flex;gap:12px}.form-row .form-group{flex:1}
/* ===============================
   Pretty dropdowns (select) for signup
   Targets: #genderSelect, #incomeSourceSelect, and any .form-group select
   =============================== */

.signup-right .form-group select,
#genderSelect,
#incomeSourceSelect {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: 100%;
  padding: 10px 40px 10px 12px;              /* room for arrow */
  font-size: 13px;
  color: #333;
  background-color: #fff;
  border: 1.5px solid #dcd6f7;               /* matches your inputs */
  border-radius: 10px;                        /* matches your inputs */
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;

  /* custom chevron */
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: right 12px center;
}

/* Hide default arrow on old IE */
.signup-right .form-group select::-ms-expand,
#genderSelect::-ms-expand,
#incomeSourceSelect::-ms-expand { display: none; }

/* Hover/focus to match inputs */
.signup-right .form-group select:hover,
#genderSelect:hover,
#incomeSourceSelect:hover {
  border-color: #c9c2ee; /* slightly darker than #dcd6f7 */
}

.signup-right .form-group select:focus,
#genderSelect:focus,
#incomeSourceSelect:focus {
  outline: none;
  border-color: #12095d;                      /* brand */
  box-shadow: 0 0 0 3px rgba(18, 9, 93, 0.12);/* same ring as inputs */
}

/* Disabled look */
.signup-right .form-group select:disabled,
#genderSelect:disabled,
#incomeSourceSelect:disabled {
  background-color: #f8fafc;
  color: #888;
  cursor: not-allowed;
  background-image: none; /* optional: hide arrow when disabled */
}

/* If a select is required and still on its placeholder (invalid), show muted text */
.signup-right .form-group select:invalid,
#genderSelect:invalid,
#incomeSourceSelect:invalid {
  color: #7a8196; /* muted */
}

/* Optional: error helper — add class="is-error" on the select when showing an error */
.signup-right .form-group select.is-error,
#genderSelect.is-error,
#incomeSourceSelect.is-error {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12) !important;
}

/* Keep the “Other” gender input aligned when shown */
#genderCustom {
  margin-top: 8px;
  padding: 10px;
  font-size: 13px;
  border: 1.5px solid #dcd6f7;
  border-radius: 10px;
  background: #fff;
}
#genderCustom:focus {
  outline: none;
  border-color: #12095d;
  box-shadow: 0 0 0 3px rgba(18, 9, 93, 0.12);
}

/* Mobile: ensure arrow stays tappable and layout stays tidy */
@media (max-width: 768px) {
  .signup-right .form-group select,
  #genderSelect,
  #incomeSourceSelect {
    padding-right: 38px;
    font-size: 14px;
  }
}

.form-header {
  text-align: center;
  color: #12095d;
  font-size: 22px;
  margin-bottom: 4px;
  font-family: 'Agile Jewelry', Arial, sans-serif;
}

.form-subtitle {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-bottom: 18px;
  line-height: 1.4;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-group a {
  color: #12095d;
  text-decoration: underline;
  font-weight: 500;
}

.form-group a:hover {
  color: #f9a44c;
  text-decoration: none;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #444;
  margin-bottom: 4px;
}

.form-group input {
  padding: 10px;
  font-size: 13px;
  border: 1.5px solid #dcd6f7;
  border-radius: 10px;
  background-color: #fff;
  outline: none;
  transition: border 0.2s;
}

.form-group input:focus {
  border-color: #12095d;
}

.form-footer {
  margin-top: 10px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.form-options label {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #555;
}

.form-options input[type="checkbox"] {
  margin-right: 6px;
}

.signup-button {
  padding: 10px 20px;
  background-color: #12095d;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.signup-button:hover {
  background-color: #f9a44c;
}

.form-divider {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 16px 0;
}

.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.form-bottom a {
  color: #12095d;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
}

.social-icons a {
  color: #12095d;
  font-size: 16px;
  margin-left: 10px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #1a0aa2;
}

@media (max-width: 768px) {
    .signup-container {
      display: flex;
      width: 90%;
      min-height: 580px;   /* allow to grow if content is taller */
      background: #fff;
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
      border-radius: 24px;
      overflow: hidden;
    }
    
  .signup-left {
    background: pink;
    display: none;
    }


  .signup-right {
    padding: 25px 20px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .input-wrapper {
    position: relative;
    }

    .input-wrapper input {
    width: 100%;
    padding-right: 40px; /* make room for the icon */
    }

    .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #888;
    cursor: pointer;
    display: none;
    }

}

@font-face {
    font-family: 'Agile Jewelry';
    src: url('../fonts/Agile Jewelry.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

.lottie-wrapper {
      position: absolute;
      top: 20px;
      right: 300px;
      width: 120px;
      height: 120px;
      z-index: 10;
    }
    #lottie-cat {
      width: 100%;
      height: 100%;
    }

@media (max-width: 768px) {
  .lottie-wrapper {
    top: 60px;
    right: 10px;
    width: 80px;
    height: 80px;
  }
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    padding: 40px 20px;
  }

  /* Modal Content */
  .modal-content {
    background-color: #fff;
    margin: auto;
    border-radius: 12px;
    padding: 30px 25px;
    max-width: 800px;
    width: 100%;
    color: #333;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-in-out;
  }

  /* Smooth Fade-in */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Close Button */
  .close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .close:hover {
    color: #000;
  }

  /* Modal Headings */
  .modal-content h2,
  .modal-content h3 {
    color: #0d2c55;
    margin-top: 0;
  }

  .modal-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .modal-content h3 {
    font-size: 18px;
    margin-top: 20px;
  }

  /* Paragraph and List Styling */
  .modal-content p {
    margin-bottom: 10px;
    text-align: justify;
  }

  .modal-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
  }

  .modal-content ul li {
    margin-bottom: 5px;
  }

  /* Responsive Adjustments */
  @media (max-width: 600px) {
    .modal-content {
      padding: 20px 15px;
    }

    .modal-content h2 {
      font-size: 20px;
    }

    .modal-content h3 {
      font-size: 16px;
    }
  }
  
/* Toast Notifications (centered) */
#toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toast {
  min-width: 280px;
  margin-bottom: 12px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInOut 5s ease forwards;
}

.toast.success { background: #05603a; }
.toast.error   { background: #b42318; }

@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateY(-20px); }
  10%  { opacity: 1; transform: translateY(0); }
  90%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

.verify-message {
  text-align: center;
  padding: 40px 20px;
}

.verify-message h2 {
  color: #12095d;
  font-size: 22px;
  margin-bottom: 10px;
  font-family: 'Agile Jewelry', Arial, sans-serif;
}

.verify-message p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* -------- Scoped helper styles (won't touch your inputs) -------- */
.signup-right .sg-hint {
  font-size: 12px;
  margin-top: 4px;
}
.signup-right .sg-rules {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
  line-height: 1.4;
}
.signup-right .sg-ok { color: #05603a; }
.signup-right .sg-bad { color: #b42318; }

.signup-right .sg-disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ---- Enhancements: focus, buttons, meter (scoped) ---- */
.signup-right .form-group input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(18,9,93,0.12);
}

.signup-right .signup-button[aria-disabled="true"],
.signup-right .signup-button.sg-disabled {
  pointer-events: none;
  filter: grayscale(0.2);
  opacity: .7;
}

.signup-right .pw-meter {
  background: #ecebf5;
}
.signup-right .pw-meter > span {
  transition: width .25s ease;
}

/* Improve checkbox hit area */
.signup-right .form-footer label {
  cursor: pointer;
}
.signup-right .form-footer input[type="checkbox"] {
  transform: translateY(1px);
}

