/* ===== FEEDBACK WIDGET - النسخة المحسنة ===== */
.feedback-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 10000;
}

.feedback-icon {
    width: 40px;                    /* نفس حجم ثيمات */
    height: 40px;                   /* نفس حجم ثيمات */
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(184, 148, 31, 0.9));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: feedbackBounce 3s infinite;  /* نفس الأنيميشن */
    position: relative;
    overflow: hidden;
    opacity: 0.8;
}

/* نفس أنيميشن البونس */
@keyframes feedbackBounce {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-4px) scale(1.05); 
    }
}

.feedback-icon:hover {
    transform: scale(1.15) rotate(12deg);   /* نفس الهوفر */
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, rgba(212, 175, 55, 1), rgba(184, 148, 31, 1));
    opacity: 1;
}

.feedback-icon i {
    color: #000;
    font-size: 1.1rem;              /* نفس حجم الأيقونة */
    font-weight: bold;
    transition: transform 0.3s ease;
}

.feedback-icon:hover i {
    transform: scale(1.2);          /* نفس تأثير الهوفر */
}

.feedback-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feedback-icon:hover {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.8);
  opacity: 1;
}

.feedback-icon:hover::before {
  opacity: 1;
}

body.scrolled .feedback-icon {
    opacity: 0.7;
    transform: scale(0.9);
}

body.scrolled .feedback-icon:hover {
    opacity: 1;
    transform: scale(1) rotate(12deg);
}

.feedback-icon i {
  color: #000;
  font-size: 1.3rem;
  font-weight: bold;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.feedback-icon:hover i {
  transform: scale(1.2);
}

/* المودال المحسن */
.feedback-modal {
  position: absolute;
  bottom: 65px;
  right: 0;
  width: 350px;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: none;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.feedback-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(184, 148, 31, 0.04));
  pointer-events: none;
  border-radius: 20px;
}

.feedback-modal.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: modalSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.9);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* الهيدر المحسن */
.feedback-header {
  padding: 20px 25px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(184, 148, 31, 0.1));
  border-radius: 20px 20px 0 0;
  position: relative;
}

.feedback-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 25px;
  right: 25px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.feedback-header h3 {
  color: #d4af37;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.feedback-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.feedback-close:hover {
  background: rgba(212, 175, 55, 0.3);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* البودي المحسن */
.feedback-body {
  padding: 25px;
}

.form-group {
  margin-bottom: 18px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form-input:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 0 0 3px rgba(212, 175, 55, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: #888;
  font-size: 0.85rem;
}

.form-input textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* الأكشنز المحسنة */
.feedback-actions {
  margin-top: 15px;
}

.feedback-submit {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #000;
  border: none;
  padding: 14px 25px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.feedback-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s;
}

.feedback-submit:hover::before {
  left: 100%;
}

.feedback-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #e6c158, #c9a235);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(212, 175, 55, 0.5),
    0 3px 6px rgba(0, 0, 0, 0.3);
}

.feedback-submit:disabled {
  background: #555;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

/* الرسائل المحسنة */
.success-message {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  margin-top: 15px;
  font-size: 0.85rem;
  display: none;
  backdrop-filter: blur(10px);
  line-height: 1.5;
}

.error-message {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #dc3545;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  margin-top: 15px;
  font-size: 0.85rem;
  display: none;
  backdrop-filter: blur(10px);
  line-height: 1.5;
}

/* للموبايل - محسن */
@media (max-width: 768px) {
  .feedback-widget {
    bottom: 20px;
    right: 20px;
  }
  
  .feedback-modal {
    width: 320px;
    right: -10px;
    bottom: 60px;
  }
  
  .feedback-icon {
    width: 48px;
    height: 48px;
  }
  
  .feedback-icon i {
    font-size: 1.2rem;
  }
  
  .feedback-body {
    padding: 20px;
  }
  
  .form-input {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .feedback-modal {
    width: 300px;
    right: -15px;
  }
  
  .feedback-icon {
    width: 45px;
    height: 45px;
  }
  
  body.scrolled .feedback-icon {
    opacity: 0.5;
  }
  
  .feedback-header {
    padding: 18px 20px;
  }
  
  .feedback-body {
    padding: 18px;
  }
}

@media (max-width: 360px) {
  .feedback-modal {
    width: 280px;
    right: -20px;
  }
  
  .feedback-header h3 {
    font-size: 1rem;
  }
  
  .form-input {
    font-size: 0.8rem;
  }
}