/* Survey Form Specific Styles */

/* Survey forms typically include feedback rating components, so we extend the feedback styles */

/* Hidden form fields for survey context */
input[type="hidden"] {
  display: none;
}

/* Enhanced star rating for survey forms */
.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
  margin-bottom: 25px;
  padding: 15px;
  background: linear-gradient(145deg, #ffffff 0%, #faf9f6 100%);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  box-shadow: inset 0 1px 3px rgba(182, 182, 182, 0.08);
}

.rating input {
  display: none;
}

.rating label {
  font-size: 32px;
  color: var(--desert-gold-200);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.rating label:hover {
  transform: scale(1.1);
}

.rating input:checked ~ label,
.rating label:hover,
.rating label:hover ~ label {
  color: var(--primary-color);
}

/* Ensure rating stars stay centered regardless of language */
.rating {
  direction: ltr !important;
  text-align: center !important;
}

.rating label {
  direction: ltr !important;
  text-align: center !important;
}

/* Arabic language - RTL star rating */
.form-arabic .rating {
  flex-direction: row;
}

.form-arabic .rating input:checked ~ label,
.form-arabic .rating label:hover,
.form-arabic .rating label:hover ~ label {
  color: var(--primary-color);
}

/* Suggestions/feedback textarea container for surveys */
.suggestions-container {
  display: none;
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #faf9f6 100%);
  border-radius: 12px;
  border: 2px solid var(--border-color);
  transition: var(--transition);
  box-shadow: inset 0 1px 3px rgba(182, 182, 182, 0.08);
}

.suggestions-container.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.suggestions-container textarea {
  width: 100%;
  min-height: 100px;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: linear-gradient(145deg, #ffffff 0%, #faf9f6 100%);
  color: var(--text-color);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  box-sizing: border-box;
  transition: var(--transition);
  box-shadow: inset 0 1px 3px rgba(182, 182, 182, 0.1);
}

.suggestions-container textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: linear-gradient(145deg, #ffffff 0%, #fffef8 100%);
  box-shadow: 0 0 12px rgba(204, 159, 44, 0.25),
    inset 0 1px 3px rgba(182, 182, 182, 0.1);
  transform: translateY(-1px);
}

.suggestions-container textarea::placeholder {
  color: var(--secondary-text);
}

.form-arabic .suggestions-container textarea {
  text-align: right;
  direction: rtl;
}

/* Survey-specific responsiveness */
@media (max-width: 480px) {
  .rating label {
    font-size: 28px;
    margin: 0 2px;
  }

  .suggestions-container {
    margin-top: 15px;
    padding: 15px;
  }

  .suggestions-container textarea {
    min-height: 80px;
    padding: 12px 14px;
  }
}

/* Enhanced animations for survey interactions */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(204, 159, 44, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(204, 159, 44, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(204, 159, 44, 0);
  }
}

/* Survey completion success state */
.survey-completed {
  animation: pulse 2s ease-in-out;
}
