.mod-feedback {
  margin-bottom: 20px;
}

.feedback-form-wrapper h3 {
  margin-bottom: 15px;
  color: #333;
}

.feedback-form .form-group {
  margin-bottom: 15px;
  position: relative;
}

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

.required {
  color: #d9534f;
  margin-left: 2px;
}

.feedback-form .form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.feedback-form .form-control:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

/* Validation states - only applied via JavaScript after blur */
.feedback-form .form-control.field-error {
  border-color: #d9534f;
  box-shadow: 0 0 5px rgba(217, 83, 79, 0.3);
}

.feedback-form .form-control.field-valid {
  border-color: #5cb85c;
  box-shadow: 0 0 5px rgba(92, 184, 92, 0.3);
}

.feedback-form .form-control.field-error:focus {
  border-color: #d9534f;
  box-shadow: 0 0 8px rgba(217, 83, 79, 0.4);
}

.feedback-form .form-control.field-valid:focus {
  border-color: #5cb85c;
  box-shadow: 0 0 8px rgba(92, 184, 92, 0.4);
}

/* Error message */
.field-error-message {
  color: #d9534f;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.feedback-form .btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.feedback-form .btn-primary {
  background-color: #007cba;
  color: white;
}

.feedback-form .btn-primary:hover {
  background-color: #005a87;
}

.feedback-form .btn-primary:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Modal styles */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feedback-modal[style*="block"] {
  opacity: 1;
}

.feedback-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-modal-content {
  background: white;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.feedback-modal[style*="block"] .feedback-modal-content {
  transform: scale(1);
}

.feedback-modal-header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-modal-header h3 {
  margin: 0;
  color: #333;
}

.feedback-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-modal-close:hover {
  color: #333;
}

.feedback-modal-body {
  padding: 20px;
}

/* Alert styles */
.alert {
  padding: 12px 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.alert-success {
  background-color: #dff0d8;
  border-color: #d6e9c6;
  color: #3c763d;
}

.alert-error {
  background-color: #f2dede;
  border-color: #ebccd1;
  color: #a94442;
}

/* Responsive */
@media (max-width: 768px) {
  .feedback-modal-content {
    width: 95%;
    margin: 10px;
  }

  .feedback-modal-header,
  .feedback-modal-body {
    padding: 15px;
  }
}
