/* Feedback Page Styles - Enhanced */

/* Page Title Enhancement */
.page-title .title_left h3 {
  color: #1e293b;
  font-weight: 700;
  font-size: 28px;
  position: relative;
  padding-bottom: 12px;
}

.page-title .title_left h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #1ABB9C 0%, #16a085 100%);
  border-radius: 2px;
}

/* Form Helper Text */
.form-text.text-muted {
  font-size: 13px;
  color: #64748b;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-text.text-muted::before {
  content: 'ℹ';
  color: #1ABB9C;
  font-weight: bold;
  font-size: 14px;
}

/* Honeypot Field - Hidden from humans, visible to bots */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  /* Alternative method - makes it invisible but still in DOM */
  /* display: none would be too obvious to smart bots */
}

.feedback-panel {
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(26, 187, 156, 0.1);
  background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
  overflow: hidden;
}

.feedback-panel .x_title {
  background: linear-gradient(135deg, #1ABB9C 0%, #16a085 100%);
  padding: 24px 30px;
  margin: 0 !important;
  border-radius: 0 !important;
}

.feedback-panel .x_title h2 {
  color: #ffffff !important;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feedback-panel .x_title h2 small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 400;
  margin-left: 8px;
}

.feedback-panel .x_content {
  padding: 36px 30px;
}

.feedback-form .form-group {
  margin-bottom: 28px;
}

.feedback-form label {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
  display: block;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.feedback-form .required {
  color: #ef4444;
  font-size: 16px;
  margin-left: 2px;
}


/* Form Controls - Enhanced */
.feedback-form .form-control {
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  padding: 14px 18px;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  color: #1e293b;
  font-weight: 500;
}

.feedback-form .form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.feedback-form .form-control:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.feedback-form .form-control:focus {
  border-color: #1ABB9C;
  box-shadow: 0 0 0 4px rgba(26, 187, 156, 0.1);
  background: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.feedback-form select.form-control {
  height: auto;
  min-height: 52px;
  padding: 14px 50px 14px 18px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%231ABB9C' d='M2 5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 18px center;
  background-size: 14px;
  cursor: pointer;
  white-space: normal;
  text-overflow: ellipsis;
  font-weight: 500;
}

.feedback-form select.form-control:hover {
  border-color: #1ABB9C;
}

.feedback-form select.form-control option {
  padding: 14px;
  font-size: 15px;
}

.feedback-form textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
  font-family: inherit;
}

/* Field Meta (error + char count) */
.field-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

/* Character Count - Enhanced */
.char-count {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.form-control:focus + .field-meta .char-count {
  color: #1ABB9C;
  background: #ecfdf5;
}

/* Field Error Messages - Enhanced */
.field-error {
  font-size: 13px;
  color: #ef4444;
  font-weight: 600;
  display: none;
  padding: 4px 12px;
  background: #fef2f2;
  border-radius: 8px;
  border-left: 3px solid #ef4444;
}

.field-error.show {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: shakeError 0.4s ease;
}

.field-error.show::before {
  content: '⚠';
  font-size: 14px;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Error state for form controls - Enhanced */
.feedback-form .form-control.error {
  border-color: #ef4444;
  background-color: #fef2f2;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.feedback-form .form-control.error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
  background-color: #ffffff;
}

/* Star Rating - Enhanced */
.rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 0;
}

.rating-stars input[type="radio"] {
  display: none;
}

.rating-stars label {
  cursor: pointer;
  font-size: 36px;
  color: #cbd5e1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  position: relative;
}

.rating-stars label::before {
  content: '★';
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  color: #fbbf24;
  transition: opacity 0.2s ease;
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input[type="radio"]:checked ~ label {
  color: #fbbf24;
}

.rating-stars input[type="radio"]:checked ~ label {
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.rating-stars label:hover {
  transform: scale(1.2) rotate(-5deg);
  filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.4));
}

.rating-stars label:active {
  transform: scale(1.1);
}

/* Submit Group - Enhanced */
.submit-group {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid #e2e8f0;
}

.submit-group .btn {
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.submit-group .btn-primary {
  background: linear-gradient(135deg, #1ABB9C 0%, #16a085 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(26, 187, 156, 0.4);
}

.submit-group .btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.submit-group .btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.submit-group .btn-primary:hover {
  background: linear-gradient(135deg, #16a085 0%, #138d75 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26, 187, 156, 0.5);
}

.submit-group .btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 187, 156, 0.4);
}

.submit-group .btn-default {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
}

.submit-group .btn-default:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #475569;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Loading state */
#submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

#submit-btn.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Alert Messages - Enhanced */
.feedback-panel .alert {
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feedback-panel .alert::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
}

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

.feedback-panel .alert i {
  font-size: 32px;
  flex-shrink: 0;
  animation: iconPop 0.5s ease 0.3s both;
}

@keyframes iconPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.feedback-panel .alert .alert-content {
  flex: 1;
}

.feedback-panel .alert .alert-content strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feedback-panel .alert .alert-content p {
  font-size: 14px;
  font-weight: 400;
}

.feedback-panel .alert-success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #10b981;
  color: #065f46;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.feedback-panel .alert-success::before {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.feedback-panel .alert-success i {
  color: #10b981;
}

.feedback-panel .alert-danger {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 2px solid #ef4444;
  color: #7f1d1d;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

.feedback-panel .alert-danger::before {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.feedback-panel .alert-danger i {
  color: #ef4444;
}

/* Success Modal - Enhanced */
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

.success-modal.show {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.success-modal-content {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 56px 64px;
  border-radius: 24px;
  text-align: center;
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(26, 187, 156, 0.1);
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-modal-content::-webkit-scrollbar {
  width: 8px;
}

.success-modal-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.success-modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.success-modal-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.success-icon {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #1ABB9C 0%, #16a085 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 10px 30px rgba(26, 187, 156, 0.4);
  animation: bounceIn 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s both;
  position: relative;
}

.success-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1ABB9C 0%, #16a085 100%);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0) rotate(-180deg);
  }
  50% {
    transform: scale(1.3) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.success-icon i {
  font-size: 48px;
  color: white;
  position: relative;
  z-index: 1;
  animation: checkmark 0.5s ease 0.5s both;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Submitted Details in Success Modal */
.submitted-details {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
  border: 2px solid #e2e8f0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
  animation: slideInDetails 0.6s ease 0.4s both;
}

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

.submitted-details h3 {
  color: #1e293b;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submitted-details h3::before {
  content: '📋';
  font-size: 20px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin: 0 -12px;
  border-radius: 8px;
  border-bottom: 1px solid #e2e8f0;
  opacity: 0;
  animation: fadeInRow 0.4s ease forwards;
  transition: background-color 0.2s ease;
}

.detail-row:hover {
  background-color: rgba(26, 187, 156, 0.05);
}

.detail-row:nth-child(2) { animation-delay: 0.5s; }
.detail-row:nth-child(3) { animation-delay: 0.6s; }
.detail-row:nth-child(4) { animation-delay: 0.7s; }
.detail-row:nth-child(5) { animation-delay: 0.8s; }
.detail-row:nth-child(6) { animation-delay: 0.9s; }
.detail-row:nth-child(7) { animation-delay: 1.0s; }

@keyframes fadeInRow {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #475569;
  min-width: 120px;
  font-size: 14px;
}

.detail-label i {
  color: #1ABB9C;
  font-size: 14px;
  width: 16px;
  text-align: center;
}

.detail-value {
  flex: 1;
  color: #1e293b;
  font-weight: 500;
  font-size: 14px;
  word-break: break-word;
}

.detail-value.description-text {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 8px;
}

.detail-value.description-text::-webkit-scrollbar {
  width: 6px;
}

.detail-value.description-text::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.detail-value.description-text::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.detail-value.description-text::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Rating Stars Display */
.rating-display {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.rating-display i {
  font-size: 16px;
}

.rating-display i.filled {
  color: #fbbf24;
}

.rating-display i.empty {
  color: #cbd5e1;
}

.success-modal-content h2 {
  color: #1e293b;
  font-size: 32px;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.success-modal-content p {
  color: #475569;
  font-size: 17px;
  margin: 0 0 10px;
  line-height: 1.6;
}

.success-modal-content .sub-text {
  color: #94a3b8;
  font-size: 15px;
  margin-bottom: 36px;
}

.success-modal-content .btn {
  padding: 16px 48px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1ABB9C 0%, #16a085 100%);
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(26, 187, 156, 0.4);
  opacity: 0;
  animation: fadeInButton 0.5s ease 1.2s forwards;
}

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

.success-modal-content .btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 30px rgba(26, 187, 156, 0.5);
}

.success-modal-content .btn:active {
  transform: translateY(-1px) !important;
}

/* FAQ Section - Enhanced */
.faq-section {
  padding: 0;
}

.faq-item {
  padding: 20px;
  margin-bottom: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: linear-gradient(to right, #ffffff 0%, #f8fafc 100%);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #1ABB9C;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 187, 156, 0.1);
  transform: translateX(4px);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h4 {
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item h4 i {
  color: #1ABB9C;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.faq-item:hover h4 i {
  transform: rotate(360deg);
}

.faq-item p {
  color: #64748b;
  margin: 0;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.7;
}

/* Feedback Link in Navbar - Enhanced (matches styles.css) */
/* See styles.css for the main feedback link styling */

/* Responsive - Enhanced */
@media (max-width: 992px) {
  .feedback-panel .x_content {
    padding: 28px 24px;
  }
  
  .success-modal-content {
    padding: 44px 48px;
  }
}

@media (max-width: 768px) {
  .feedback-link {
    padding: 8px 16px !important;
    font-size: 13px;
    border-radius: 20px;
  }
  
  .feedback-link i {
    font-size: 14px;
  }
  
  .page-title .title_left h3 {
    font-size: 24px;
  }
  
  .feedback-panel .x_title {
    padding: 20px 24px;
  }
  
  .feedback-panel .x_title h2 {
    font-size: 20px;
  }
  
  .feedback-panel .x_content {
    padding: 24px 20px;
  }
  
  .feedback-form .form-control {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .submit-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .submit-group .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 32px;
  }
  
  .success-modal-content {
    padding: 36px 32px;
    border-radius: 20px;
  }
  
  .success-icon {
    width: 80px;
    height: 80px;
  }
  
  .success-icon i {
    font-size: 40px;
  }
  
  .success-modal-content h2 {
    font-size: 26px;
  }
  
  .submitted-details {
    padding: 20px 16px;
  }
  
  .submitted-details h3 {
    font-size: 16px;
  }
  
  .detail-row {
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
  }
  
  .detail-label {
    min-width: auto;
    font-size: 13px;
  }
  
  .detail-value {
    font-size: 13px;
    padding-left: 24px;
  }
  
  .faq-item {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .feedback-link {
    padding: 6px 12px !important;
    gap: 6px;
  }
  
  .feedback-link span {
    display: none;
  }
  
  .feedback-link i {
    margin: 0;
  }
  
  .rating-stars label {
    font-size: 30px;
  }
}
