:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #a78bfa 0%, #7e5bef 100%);
  --active-gradient: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  overflow-x: hidden;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Card principal */
.main-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.main-title {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Inputs */
.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #f093fb;
  box-shadow: 0 0 0 0.2rem rgba(240, 147, 251, 0.3);
  color: white;
}

.form-label {
  color: white;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-label i {
  margin-right: 8px;
  color: #f093fb;
}

/* Botões de classificação */
.rating-container {
  gap: 10px;
}

.rating-btn {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: bold;
  transition: all 0.3s ease;
  transition: 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  border: 1px solid #6d28d9;
  background-color: #fff;
  color: #6d28d9;
}

.rating-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #a78bfa 0%, #7e5bef 100%);
  border-color: #a78bfa;
  box-shadow: 0 5px 15px rgba(167, 139, 250, 0.4);
}

.rating-btn.active {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border-color: #8b5cf6;
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Feedback da avaliação */
.rating-feedback {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 8px 16px;
  color: white;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 10px;
  animation: fadeIn 0.5s ease;
}

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

/* Botão de enviar */
.btn-submit {
  background: var(--secondary-gradient);
  border: none;
  border-radius: 15px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  color: white;
}

/* Alerta de sucesso */
.success-alert {
  background: var(--active-gradient); /* Roxo intenso */
  border: none;
  border-radius: 15px;
  color: white;
  font-weight: 600;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .rating-container {
    flex-wrap: wrap;
  }
}

.divider-text {
  color: white;
  text-align: center;
  margin: 10px 0;
  font-weight: 600;
  position: relative;
}

.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin: auto;
  position: absolute;
  top: 50%;
  width: 30%;
}

.divider-text::before {
  right: 55%;
}

.divider-text::after {
  left: 55%;
}

/* Modal de sucesso */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.success-modal-content {
  background: var(--active-gradient);
  border-radius: 25px;
  padding: 3rem;
  text-align: center;
  max-width: 90%;
  width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  animation: scaleUp 0.3s ease forwards;
  color: white;
}

@keyframes scaleUp {
  to {
    transform: scale(1);
  }
}

.success-modal i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.success-modal h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.success-modal p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Modal de alerta */
/* Existing CSS classes from your avaliacao.css */

/* ... (Your existing CSS code) ... */

/* Modal Base Styles (Generic for both success and error) */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease; /* Reuse existing fadeIn animation */
}

/* Modal Content Base Styles (Generic for both success and error, inherits from success-modal-content) */
.modal-content-wrapper {
  background: var(
    --active-gradient
  ); /* This will be overridden for error modal if you define an error gradient */
  border-radius: 25px;
  padding: 3rem;
  text-align: center;
  max-width: 90%;
  width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  animation: scaleUp 0.3s ease forwards;
  color: white;
  position: relative; /* Needed for absolute positioning of close button */
}

/* Error Modal Specific Styles */
#errorModal .modal-content-wrapper {
  background: var(
    --secondary-gradient
  ); /* Use a different gradient for error, or define a new one */
}

/* Modal Icon */
.modal-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: white; /* Ensure icon color matches modal */
}

/* Modal Title */
.modal-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

/* Modal Message Text */
.modal-message-text {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 0;
  color: white;
}

/* Close Button (using your existing close button approach) */
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close-btn:hover {
  color: white;
}

/* Utility class to hide elements */
.d-none {
  display: none !important;
}

/* Keyframes (already in your CSS, just ensuring they are present) */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  to {
    transform: scale(1);
  }
}

.invalid-feedback {
  color: yellow !important;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: yellow;
}
