.feedback-button {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #505bcb;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  z-index: 1000;
}

.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  overflow-y: auto;
  padding: 2rem 1rem;
}


#feedback-modal label {
  display: block;
}

.feedback-hidden {
  display: none;
}

.feedback-modal-content {
  background: #505bcb;
  top: 3vh;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  border: 1px solid white;
  max-height: 90vh;
  overflow-y: auto;
}

@media (max-width: 480px) {
  .feedback-modal-content {
    padding: 1rem;
    max-height: 80vh;
    font-size: 0.95rem;
  }

  .send-feedback-button {
    width: 100%;
    font-size: 0.95rem;
  }

  #feedback-contact-fields {
    align-items: center;
    text-align: center;
    border-radius: inherit;
    border: inherit;
  }

  #feedback-contact-fields label,
  #feedback-contact-fields input {
    width: 100%;
    max-width: 300px;
  }
}

.feedback-modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 1rem;
}

.feedback-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
}

#feedback-contact-fields {
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  border: 1px solid white;
}

#feedback-contact-fields.feedback-hidden {
  display: none;
}

#feedback-category,
#feedback-message {
  width: 100%;
  padding: 0.5rem;
  margin: 0.5rem 0 1rem;
  border: 2px solid white;
  border-radius: 0.5rem;
  background: transparent;
  color: white;
  font-size: 16px;
}

#feedback-modal fieldset {
  border: 2px solid white;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  color: white;
  font-size: 1.25rem;
}

#feedback-modal fieldset * {
  border-radius: 0.5rem;
  color: white;
}

#feedback-modal.content *,
#feedback-modal.content *::before,
#feedback-modal.content *::after {
  box-sizing: border-box;
  border-radius: inherit;
}

.send-feedback-button {
  display: block;
  margin: 1.5rem auto;
  width: clamp(140px, 50%, 260px);
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.feedback-sending-message {
  display: none;
  margin-top: 1rem;
  color: white;
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
}

#feedback-success {
  font-size: 1rem;
  color: #ffffff;
  background-color: #4caf50;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: opacity 0.3s ease;
}

.feedback-success-visible {
  opacity: 1;
}

.feedback-error-message {
  display: none;
  margin-top: 1rem;
  color: #ffdddd;
  background-color: #b30000;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  text-align: center;
}

.feedback-modal {
  isolation: isolate !important;
}

.feedback-info-account-message {
  margin-top: 2rem !important;
  color: white;
  font-size: 1.125rem;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .toggle-marketing-feedback {
    max-width: 200px;
  }
#feedback-confirm-dialog {
    text-align: center;
}


  }