/* UTILITIES */
.ui--hidden {
  display: none !important;
}

/* FEEDBACK NOTICES */
.ui-feedback-container {
  margin: 1rem 0;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.95em;
}

.notice-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #d1fae5;
}

.notice-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* HEADINGS */
h1,
h2 {
  font-weight: 600;
  color: #111827;
  margin: 0.25rem 0 1rem;
}

h1 {
  font-size: 1.125rem;
}

h2 {
  font-size: 1rem;
  font-weight: 500;
  color: #4b5563;
}

/* FORM */
.avaas-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.avaas-form__group {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 350px;
}

.avaas-form__label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #111;
}

.avaas-form__label span {
  color: #dc2626;
}

.avaas-form__input,
.avaas-form__select,
.custom-dropdown__display {
  box-sizing: border-box;
  width: 100%;
  font-size: 0.9rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  transition: border 0.2s ease, background-color 0.2s ease;
  color: #111827;
  font-family: "Roboto", sans-serif;
}

.avaas-form__input,
.avaas-form__select {
  background-color: #f9fafb;
  max-width: 100%;
}

.avaas-form__select,
.custom-dropdown__display {
  background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>")
    no-repeat;
  background-position: calc(100% - 0.75rem) center;
  padding-right: 2rem !important;
  appearance: none !important;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 400;
  background-color: #fff;
}

.avaas-form__input:focus,
.avaas-form__select:focus,
.custom-dropdown__display:focus {
  border-color: #2563eb;
  background-color: #fff;
  outline: none;
}

.avaas-form__button {
  background: #111827;
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  width: max-content;
  transition: background-color 0.2s ease;
}

.avaas-form__button:hover {
  background-color: #1f2937;
}

/* MESSAGES */
.avaas-profile-message {
  padding: 0.75rem 1rem;
  background: #fffbea;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* RESPONSIVE */
@media screen and (max-width: 600px) {
  .avaas-form__group {
    max-width: 100%;
  }

  .avaas-form__label {
    font-size: 0.85rem;
  }

  .avaas-form__input,
  .avaas-form__select,
  .avaas-form__button {
    font-size: 0.875rem;
  }

  h1 {
    font-size: 1rem;
  }

  h2 {
    font-size: 0.875rem;
  }
}

/* CUSTOM DROPDOWN */
.custom-dropdown {
  position: relative;
  background-color: transparent;
  user-select: none;
  /* border removed here */
}

.custom-dropdown__options {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  border: 1px solid #ccc;
  background: #fff;
  display: none;
  z-index: 10;
}

.custom-dropdown__options li {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s ease;
}

.custom-dropdown__options li:hover {
  background: #f3f4f6;
}

.custom-dropdown__options li:last-child {
  border-bottom: none;
}

.custom-dropdown--open .custom-dropdown__options {
  display: block;
}
