.feedback-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  @apply bg-brand-anh-green;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 9999;
}

.feedback-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feedback-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 400px;
  height: 400px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 10000;
  overflow: hidden;
}

.feedback-popup.active {
  display: flex;
}

.feedback-popup-header {
  @apply bg-brand-anh-green;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-popup-title {
  font-size: 16px;
  margin: 0;
}

.feedback-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.feedback-close-btn:hover {
  opacity: 0.8;
}

.feedback-popup-body {
  flex: 1;
  padding: 30px 40px;
  overflow-y: auto;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feedback-form .form-item {
  margin-bottom: 15px;
}

.feedback-form .form-actions {
  margin-top: 20px;
  padding-bottom: 10px;
  text-align: center;
}

.feedback-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.feedback-email-field,
input[type="email"].feedback-email-field,
#feedback-email {
  @apply block !important;
  @apply w-full !important;
  @apply rounded-md !important;
  @apply border-0 !important;
  @apply py-1.5 !important;
  @apply text-gray-900 !important;
  @apply shadow-sm !important;
  @apply ring-1 !important;
  @apply ring-inset !important;
  @apply ring-gray-300 !important;
  @apply placeholder:text-gray-400 !important;
  @apply sm:text-sm !important;
  @apply sm:leading-6 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box !important;
}

.feedback-email-field:focus,
input[type="email"].feedback-email-field:focus,
#feedback-email:focus {
  @apply ring-2 !important;
  @apply ring-inset !important;
  @apply ring-blue-600 !important;
  outline: none !important;
}

.feedback-message-field {
  @apply block;
  @apply w-full;
  @apply rounded-md;
  @apply border-0;
  @apply py-1.5;
  @apply text-gray-900;
  @apply shadow-sm;
  @apply ring-1;
  @apply ring-inset;
  @apply ring-gray-300;
  @apply placeholder:text-gray-400;
  @apply focus:ring-2;
  @apply focus:ring-inset;
  @apply focus:ring-blue-600;
  @apply sm:text-sm;
  @apply sm:leading-6;
  padding-left: 12px;
  padding-right: 12px;
}

.feedback-message-field {
  resize: vertical;
  min-height: 100px;
}

.feedback-recaptcha {
  margin: 15px 0;
  display: flex;
  justify-content: center;
}

.feedback-submit-btn {
  @apply bg-brand-anh-green !important;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  display: inline-block;
  width: auto;
}

.feedback-submit-btn:hover:not(:disabled) {
  @apply bg-brand-anh-green !important;
  opacity: 0.9;
}

.feedback-submit-btn:disabled {
  @apply bg-brand-anh-green !important;
  opacity: 0.4;
  cursor: not-allowed;
}

.feedback-success-message {
  text-align: center;
  padding: 40px 20px;
}

.feedback-success-message h3 {
  @apply text-brand-anh-green;
  font-size: 24px;
  margin-bottom: 20px;
}

.feedback-success-message p {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
}

.feedback-close-success-btn {
  @apply bg-brand-anh-green;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.feedback-close-success-btn:hover {
  @apply bg-brand-anh-green;
  opacity: 0.9;
}

.feedback-error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .feedback-popup {
    width: calc(100% - 20px);
    height: calc(100vh - 100px);
    right: 10px;
    bottom: 10px;
  }

  .feedback-button {
    bottom: 20px;
    right: 20px;
  }
}
