.join-now {
  background-color: #ffffff;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
}

.div-landing {
  background-color: var(--white);
  overflow: hidden;
  width: 100%;
  max-width: 390px;
  min-height: 744px;
  position: relative;
}

.div-signup {
  background-color: var(--white);
  overflow: hidden;
  width: 100%;
  max-width: 390px;
  height: 100%;
  /*overflow-x: auto;*/
  position: relative;
}

/*
 * Hero block on /join-now and /signup. Uses the original designer-supplied
 * hero.webp (lives in assets/images/hero/). The webp variant was missing
 * from the deployed git tree for a while -- it now ships alongside the
 * .jpg/.png variants that were already committed.
 */
.frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 390px;
  height: 270px;
  align-items: flex-start;
  gap: 10px;
  position: absolute;
  top: 0;
  left: 0;
  background: url("/assets/images/hero/hero.webp") 50% 50% / cover;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  overflow: hidden;
}

.fira-input {
  font-family: var(--font-family);
  width: 100%;
  font-weight: 500;
  border: none;
  background: transparent;
  font-size: 18px;
  outline: none;
}

.top {
  display: flex;
  width: 390px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  position: relative;
  flex: 0 0 auto;
}

.text-link-arrow-back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  position: relative;
  flex: 0 0 auto;
}

.icon-XS {
  position: relative;
  width: 20px;
  height: 20px;
}

.icon-S {
  position: relative;
  width: 40px;
  height: 40px;
}

.icon-M {
  position: relative;
  width: 60px;
  height: 60px;
}

.icon-L {
  position: relative;
  width: 80px;
  height: 80px;
}

.group {
  position: absolute;
  width: 16px;
  height: 9px;
  top: 5px;
  left: 0;
}

.div-2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
}

.link {
  color: var(--white);
  position: relative;
  width: fit-content;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  text-align: right;
  letter-spacing: 0;
  line-height: 18px;
  text-decoration: underline;
  white-space: nowrap;
}

.top-bar-uihut {
  position: relative;
  width: 44px;
  height: 44px;
}

.outline-remove-wrapper {
  position: relative;
  height: 44px;
  background-color: var(--ligh-grey);
  border-radius: 22px;
}

.outline-remove {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 10px;
  left: 10px;
}

.frame-2 {
  display: flex;
  flex-direction: column;
  width: 390px;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  position: absolute;
  top: 270px;
  left: 0;
}

.text-wrapper {
  position: relative;
  align-self: stretch;
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--dark);
  font-size: 32px;
  margin: 0;
}

.text-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  position: relative;
  align-self: stretch;
  width: 100%;
}

.frame-3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 3px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.frame-4 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
}

.value {
  color: var(--grey);
  font-size: 20px;
  line-height: 24px;
  position: relative;
  width: fit-content;
  font-family: var(--font-family);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.frame-5 {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 1;
  padding: 0;
  flex-grow: 1;
}

.line {
  align-self: stretch;
  width: 100%;
  background-color: var(--dark);
  position: relative;
  height: 1px;
}

.frame-6 {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0px 0px;
  position: relative;
  flex: 0 0 auto;
}

.cta-secondary {
  width: 86;
  height: 46;
  padding-top: 12px;
  padding-right: 24px;
  padding-bottom: 12px;
  padding-left: 24px;
  gap: 10px;
  border-radius: 15px;
  border-top-width: 2px;
  border-right-width: 2px;
  border-bottom-width: 4px;
  border-left-width: 2px;
  border-width: 2px, 2px, 4px, 2px;
  border-style: solid;
  border-color: var(--purple);
  color: var(--purple);
  background-color: #ffffff;
  transition: #ffffff 0.3s ease;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}

.cta-secondary:hover {
  background-color: var(--purple);
  color: var(--white);
}

.select-bet {
  position: relative;
  width: fit-content;
  margin-top: -2px;
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--purple);
  font-size: 18px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.select-bet:hover {
  color: var(--white);
}

.link-2 {
  color: var(--purple);
  position: relative;
  width: fit-content;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  text-align: right;
  letter-spacing: 0;
  line-height: 18px;
  text-decoration: underline;
  white-space: nowrap;
  background-color: transparent;
  border: 0px;
}

.frame-7 {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  position: relative;
  flex: 0 0 auto;
}

.p {
  color: var(--grey);
  font-size: 16px;
  line-height: 18px;
  position: relative;
  width: fit-content;
  font-family: var(--font-family);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.span {
  font-weight: 600;
  color: #8990ae;
}

.text-wrapper-2 {
  color: #8990ae;
}

.nav-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: fixed;
  width: fit-content;
  height: 75px;
  bottom: 0;
  left: 50%;
  border-radius: 24px 24px 0 0;
  background-color: #c8ff00;
  box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
  z-index: 2;
}

.img {
  width: 390px;
  object-fit: cover;
  position: relative;
  height: 1px;
}

.frame-8 {
  display: flex;
  width: 365px;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  flex: 0 0 auto;
  background-color: #c8ff00;
}

.div-3 {
  position: relative;
  width: 57px;
  height: 48px;
  color: #c8ff00;
}

.rectangle {
  position: absolute;
  width: 57px;
  height: 4px;
  top: 61px;
  left: 0;
  background-color: var(--purple);
}

.text-wrapper-3 {
  position: absolute;
  height: 17px;
  top: 25px;
  left: 10px;
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--purple);
  font-size: 14px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

input::placeholder {
  font-family: var(--font-family);
}

.hicon-bold-home {
  position: absolute;
  width: 18px;
  height: 18px;
  top: 5px;
  left: 20px;
}

.frame-9 {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  top: 2px;
  left: 7px;
}

.table-games-icon {
  position: relative;
  width: 21.5px;
  height: 21.5px;
  margin-top: -0.25px;
}

.text-wrapper-4 {
  position: relative;
  width: fit-content;
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--dark);
  font-size: 14px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.frame-10 {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  top: 1px;
  left: 6px;
}

.live-dealer {
  position: relative;
  width: 22px;
  height: 23px;
}

.group-2 {
  position: relative;
  width: 38px;
  height: 44px;
  top: 3px;
  left: 10px;
}

.vector {
  position: absolute;
  width: 24px;
  height: 20px;
  top: 0;
  left: 6px;
}

.text-wrapper-5 {
  position: absolute;
  height: 17px;
  top: 27px;
  left: 0;
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--dark);
  font-size: 14px;
  text-align: center;
  letter-spacing: 0;
  line-height: normal;
}

.frame-11 {
  display: flex;
  flex-direction: column;
  width: 36px;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  position: relative;
  left: 10px;
}

.menu-icon-login {
  position: relative;
  width: 30px;
  height: 21px;
}

.menu-icon {
  position: relative;
  width: 30px;
  height: 21px;
}

.overlap-group {
  position: relative;
  height: 21px;
}

.account {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 0;
  left: 0;
}

.menu {
  position: absolute;
  width: 11px;
  height: 10px;
  top: 11px;
  left: 19px;
}

.signup-form-container {
  padding: 190px 24px 90px 24px;
}

.signin-form-container {
  padding: 280px 24px 90px 24px;
}

.magic-spinner {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid #888;
  border-radius: 50%;
  color: var(--purple);
  display: inline-block;
  vertical-align: middle;
  animation: spin 1s linear infinite;
}

.form-title {
  font-family: var(--font-family);
  font-weight: 500;
  color: var(--dark);
  font-size: 32px;
  letter-spacing: -0.5px;
  line-height: 42px;
  margin-bottom: 32px;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group input {
  padding: 18px 0px 4px 0px;
  /* border: 1px solid var(--grey); */
  border: none;
  /* border-radius: 8px; */
  font-family: var(--font-family);
  font-size: 16px;
  transition: border-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

/* .form-group input:focus {
    outline: none;
    border-color: var(--purple);
} */

.profile-picture-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* margin-bottom: 8px; */
}

.profile-picture-preview {
  width: 120px;
  height: 120px;
  border-radius: 60px;
  background-color: var(--ligh-grey);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  z-index: 3;
}

.profile-picture-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 10px;
}

.upload-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(79, 14, 176, 0.8);
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.upload-icon {
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.hidden-input {
  display: none;
}

.upload-label {
  color: var(--purple);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-decoration: underline;
}

/* .form-actions {
    margin-top: 16px;
} */

.signup-container {
  background-color: var(--white);
  overflow: hidden;
  width: 390px;
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 0px;
  width: 40px;
  height: 40px;
  margin-top: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.toggle-password img {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

.toggle-password.visible img {
  opacity: 1;
}

.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-container input {
  width: 100%;
  padding-right: 40px;
}

.terms-agreement {
  text-align: center;
  font-family: var(--font-family);
}

.terms-agreement p {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
}

.terms-agreement a {
  color: var(--purple);
  font-family: var(--font-family);
  text-decoration: underline;
}

@media (max-width: 480px) {
  .div {
    width: 100%;
  }

  .signup-container {
    width: 100%;
  }

  .frame,
  .frame-2,
  .signup-form-container {
    width: 100%;
    /* max-width: 390px; */
    margin: 0 auto;
    z-index: 2;
  }
}

/* Floating Label Styles */
.floating-label-container {
  position: relative;
  width: 100%;
}

.floating-label {
  position: absolute;
  left: 0;
  top: 50%;
  /* transform: translate(-50%); */
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--grey);
  pointer-events: none;
  /* transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
  transition: 0.2s ease all;
  background: transparent;
  /* padding: 0 2px; */
  z-index: 1;
  white-space: nowrap;
}

.floating-label-container input:focus + .floating-label,
.floating-label-container input:not(:placeholder-shown) + .floating-label,
.floating-label-container input.has-value + .floating-label {
  top: 0;
  font-size: 12px;
  font-family: var(--font-family);
  color: var(--purple);
  background: white;
  /* transform: translate(-50%); */
  font-weight: 500;
  box-shadow: 0 0 0 2px white;
}

.floating-label-container input:focus {
  outline: none;
  border-color: var(--purple);
}

/* Special handling for password inputs with floating labels */
.floating-label-container .password-input-container {
  position: relative;
  width: 100%;
}

.floating-label-container .password-input-container input {
  width: 100%;
  padding-right: 40px;
}

/* .floating-label-container .password-input-container .floating-label {
    left: 28px;
} */

.floating-label-container
  .password-input-container
  input:focus
  + .floating-label,
.floating-label-container
  .password-input-container
  input:not(:placeholder-shown)
  + .floating-label,
.floating-label-container
  .password-input-container
  input.has-value
  + .floating-label {
  top: 0;
  font-size: 12px;
  color: var(--purple);
  background: white;
  /* transform: translate(-50%); */
  font-weight: 500;
  box-shadow: 0 0 0 2px white;
}

/* Landing page specific floating label styles */
.text-field .floating-label-container {
  width: 100%;
  margin-bottom: 0;
}

.text-field .floating-label {
  left: 0;
  top: 35%;
  color: var(--grey);
  background: transparent;
}

.text-field .floating-label-container input:focus + .floating-label,
.text-field
  .floating-label-container
  input:not(:placeholder-shown)
  + .floating-label,
.text-field .floating-label-container input.has-value + .floating-label {
  top: -12px;
  font-size: 12px;
  color: var(--purple);
  background: transparent;
  /* transform: translateY(0); */
  font-weight: 500;
  box-shadow: none;
}

/* Responsive adjustments for floating labels */
@media (max-width: 480px) {
  .floating-label {
    font-size: 14px;
  }

  .floating-label-container input:focus + .floating-label,
  .floating-label-container input:not(:placeholder-shown) + .floating-label,
  .floating-label-container input.has-value + .floating-label {
    font-size: 11px;
  }

  .text-field .floating-label-container input:focus + .floating-label,
  .text-field
    .floating-label-container
    input:not(:placeholder-shown)
    + .floating-label,
  .text-field .floating-label-container input.has-value + .floating-label {
    font-size: 10px;
  }
}

/* Error state handling for floating labels */
/* .floating-label-container input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
} */

/* .floating-label-container input.error:focus { */
/* border-color: #e74c3c; */
/* box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2); */
/* } */

.floating-label-container input.error + .floating-label {
  color: #e74c3c;
}

.floating-label-container input.error:focus + .floating-label,
.floating-label-container input.error:not(:placeholder-shown) + .floating-label,
.floating-label-container input.error.has-value + .floating-label {
  color: #e74c3c;
  background: white;
}

/* Field error styling */
.field-error {
  color: #e74c3c;
  font-size: 0.8rem;
  font-family: var(--font-family);
  animation: fadeIn 0.3s ease;
}

.date-wrapper {
  position: relative;
  display: inline-block;
  width: 220px;
}

.date-wrapper input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 10px 40px 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  cursor: pointer;
}

/* Hide native calendar icon (Chrome, Edge, Safari) */
.date-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Custom icon */
.calendar-icon {
  position: absolute;
  right: 12px;
  top: 65%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.calendar-icon:hover {
  opacity: 1;
}

/* Hide default calendar icon in Chrome, Edge, Safari */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  display: none;
  -webkit-appearance: none;
}

/* Remove background icon in Firefox */
input[type="date"]::-moz-focus-inner {
  border: 0;
}

input[type="date"]::-moz-calendar-picker-indicator {
  opacity: 0;
  display: none;
}

/* For completeness — some versions of IE/Edge */
input[type="date"]::-ms-clear,
input[type="date"]::-ms-expand {
  display: none;
}

.phone-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.phone-wrapper select {
  appearance: none;
  align-self: end;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 14px;
  padding: 6px 28px 6px 6px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M9.23528 0.75L4.99264 4.99264L0.75 0.75' stroke='%2304020F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
}

.phone-wrapper input[type="tel"] {
  flex: 1;
  margin-left: 8px;
  border: none;
  border-bottom: 1px solid;
  font-size: 14px;
  padding: 10px 0px 6px 0;
  outline: none;
  background: transparent;
}

/* Floating label compatibility */
.phone-wrapper .floating-label {
  position: absolute;
  left: calc(90px);
  top: 12px;
  color: #888;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.2s ease;
}

.phone-wrapper input:focus + .floating-label,
.phone-wrapper input:not(:placeholder-shown) + .floating-label {
  top: -8px;
  font-size: 12px;
  background-color: #fff;
}

.phone-wrapper .line {
  position: absolute;
  bottom: 0;
  left: 90px;
  height: 2px;
  width: 0;
  background-color: #0078d4;
  transition: width 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure floating labels work with password containers in error state */
.floating-label-container
  .password-input-container
  input.error
  + .floating-label {
  color: #e74c3c;
}

.floating-label-container
  .password-input-container
  input.error:focus
  + .floating-label,
.floating-label-container
  .password-input-container
  input.error:not(:placeholder-shown)
  + .floating-label,
.floating-label-container
  .password-input-container
  input.error.has-value
  + .floating-label {
  color: #e74c3c;
  background: white;
}

/* Fira Sans is served via Google Fonts @import in css/global_new.css.
   The old self-hosted @font-face block (which registered the family under
   the non-standard name "Fira Sans Regular") was removed — the font files
   it referenced are no longer in the repo, and browsers look up the family
   that Google Fonts actually exposes, which is "Fira Sans". */

/* Spinner for loading state */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top: 3px solid #764ba2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Interests and Tags System */
.interests-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--grey);
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 16px;
  background-color: white;
  min-height: 50px;
  cursor: pointer;
}

.interests-select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(118, 75, 162, 0.2);
}

.interests-select:hover {
  border-color: var(--purple);
}

.custom-tags-container {
  /* margin-top: 10px; */
  display: none;
}

.custom-tags-container.show {
  display: block;
}

.tags-input-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-family);
}

.tag-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--grey);
  border-radius: 6px;
  font-family: var(--font-family);
  font-size: 14px;
}

.tag-input::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  font-family: var(--font-family);
}

.tag-input::-moz-placeholder {
  /* Firefox 19+ */
  font-family: var(--font-family);
  opacity: 1;
}

.tag-input:-ms-input-placeholder {
  /* IE 10+ */
  font-family: var(--font-family);
}

.tag-input:-moz-placeholder {
  /* Firefox 18- */
  font-family: var(--font-family);
  opacity: 1;
}

.tag-input:focus {
  outline: none;
  /* border-color: var(--purple); */
  /* box-shadow: 0 0 0 2px rgba(118, 75, 162, 0.2); */
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 20px;
  margin-top: 8px;
}

.tags-list:empty {
  display: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  background-color: var(--purple);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  gap: 6px;
  transition: all 0.2s ease;
  animation: fadeIn 0.3s ease;
  font-family: var(--font-family);
}

.tag:hover {
  background-color: #6a4c8a;
  transform: translateY(-1px);
}

.tag-remove {
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.tag-remove:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Multi-select styling */
.interests-select option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.interests-select option:checked {
  background-color: var(--purple);
  color: white;
}

.interests-select option:hover {
  background-color: rgba(118, 75, 162, 0.1);
}

/* Make it clear that multiple selections are possible */
.interests-select {
  cursor: pointer;
}

/* When input inside .iti has focus or value, target the label that comes after .iti */
.floating-label-container .iti:has(input:focus) ~ .floating-label,
.floating-label-container
  .iti:has(input:not(:placeholder-shown))
  ~ .floating-label,
.floating-label-container .iti:has(input.has-value) ~ .floating-label,
.floating-label-container .iti:has(.iti__tel-input:focus) ~ .floating-label,
.floating-label-container
  .iti:has(.iti__tel-input:not(:placeholder-shown))
  ~ .floating-label,
.floating-label-container
  .iti:has(.iti__tel-input.has-value)
  ~ .floating-label {
  top: -10px;
  font-size: 12px;
  font-family: var(--font-family);
  color: var(--purple);
  background: white;
  font-weight: 500;
  padding: 0 4px;
  box-shadow: 0 0 0 2px white;
}

.floating-label-container .iti {
  width: 100% !important;
}

/* Optional: Ensure input takes full width minus the flag container */
.floating-label-container .iti__tel-input {
  width: 100%;
}

/* Improve the visual feedback for selected options */
.interests-select option:checked {
  background: linear-gradient(135deg, var(--purple), #6a4c8a);
  color: white;
  font-weight: 500;
}

/* Add a subtle animation for tag appearance */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Toast Message Styles */
.message-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 9999 !important;
}

.message {
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
  font-family: var(--font-family);
  font-size: 14px;
  max-width: 300px;
}

.message-success {
  background-color: #10b981;
}

.message-error {
  background-color: #ef4444;
}

.message-info {
  background-color: #3b82f6;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive adjustments for toast messages */
@media (max-width: 480px) {
  .message-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .message {
    max-width: none;
    font-size: 13px;
    padding: 0.875rem 1.25rem;
  }
}
/* Upload spinner for profile picture loading */
.upload-spinner {
  display: block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: upload-spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes upload-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
