/* src/components/styles/feedback.css */

/* ============================================================
   FEEDBACK MODAL - PREMIUM STYLING
   ============================================================ */

.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: feedbackFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feedback-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Modal Container - More Modern */
.feedback-container {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 2.5rem;
  max-width: 580px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(192, 132, 252, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: feedbackSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

/* Subtle gradient border effect */
.feedback-container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 32px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.2), rgba(232, 121, 169, 0.1), rgba(192, 132, 252, 0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Scrollbar */
.feedback-container::-webkit-scrollbar {
  width: 4px;
}
.feedback-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}
.feedback-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.4), rgba(232, 121, 169, 0.4));
  border-radius: 10px;
}
.feedback-container {
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 132, 252, 0.3) transparent;
}

/* Close Button - More Modern */
.feedback-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}
.feedback-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
  border-color: rgba(192, 132, 252, 0.3);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.1);
}
.feedback-close:focus-visible {
  outline: 2px solid rgba(192, 132, 252, 0.5);
  outline-offset: 2px;
}

/* Header - More Modern */
.feedback-header {
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}
.feedback-header::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.4), rgba(232, 121, 169, 0.4), transparent);
  border-radius: 2px;
}
.feedback-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f0e6ff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
}
.feedback-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0.5rem 0 0 0;
  line-height: 1.6;
  font-weight: 400;
}

/* Form Fields - More Modern */
.feedback-field {
  margin-bottom: 1.25rem;
}
.feedback-field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.feedback-field .required {
  color: #ff6b8a;
  font-weight: 600;
}
.feedback-field .optional {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.feedback-field select,
.feedback-field input[type="text"],
.feedback-field input[type="email"],
.feedback-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.feedback-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  padding-right: 2.8rem;
  cursor: pointer;
}
.feedback-field select option {
  background: #1a1a2e;
  color: #f0e6ff;
}
.feedback-field input::placeholder,
.feedback-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus {
  outline: none;
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.08);
  background: rgba(255, 255, 255, 0.07);
}
.feedback-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

/* Character Counter */
.char-counter {
  text-align: right;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}
.char-counter.over-limit {
  color: #ff6b8a;
}
.char-counter .highlight {
  color: rgba(255, 255, 255, 0.5);
}

/* Field Hints & Errors */
.field-hint {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}
.field-error {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #ff6b8a;
  margin-top: 0.3rem;
  min-height: 1.2em;
  font-weight: 400;
  animation: feedbackShake 0.4s ease;
}
.feedback-field.has-error select,
.feedback-field.has-error input,
.feedback-field.has-error textarea {
  border-color: rgba(255, 107, 138, 0.3);
  box-shadow: 0 0 0 4px rgba(255, 107, 138, 0.05);
}

/* Actions - More Modern */
.feedback-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: flex-end;
}
.feedback-cancel,
.feedback-submit {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
}
.feedback-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.feedback-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}
.feedback-submit {
  background: linear-gradient(135deg, #e879a9, #c084fc);
  color: #fff;
  min-width: 150px;
  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.15), transparent);
  transition: left 0.6s ease;
}
.feedback-submit:hover:not(:disabled)::before {
  left: 100%;
}
.feedback-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(192, 132, 252, 0.4);
}
.feedback-submit:active:not(:disabled) {
  transform: translateY(0);
}
.feedback-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.feedback-submit:focus-visible {
  outline: 2px solid rgba(192, 132, 252, 0.5);
  outline-offset: 2px;
}

/* Success State - More Modern */
.feedback-success {
  text-align: center;
  padding: 2.5rem 0 1.5rem 0;
  animation: feedbackSuccessPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.feedback-success .success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, #34d399, #6ee7b7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(52, 211, 153, 0.35);
  animation: feedbackSuccessBounce 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.feedback-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem 0;
  background: linear-gradient(135deg, #f0e6ff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.feedback-success p {
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================================
   FOOTER BUTTON - MORE PROMINENT & MODERN
   ============================================================ */

.feedback-footer-btn {
  background: linear-gradient(135deg, rgba(232, 121, 169, 0.15), rgba(192, 132, 252, 0.15));
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 16px;
  padding: 0.85rem 1.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.03em;
  margin-top: 0.75rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Glow effect behind the button */
.feedback-footer-btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 121, 169, 0.3), rgba(192, 132, 252, 0.3));
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feedback-footer-btn:hover::before {
  opacity: 1;
}

/* Shine animation on hover */
.feedback-footer-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.feedback-footer-btn:hover::after {
  left: 100%;
}

.feedback-footer-btn i {
  font-size: 1rem;
  color: rgba(192, 132, 252, 0.7);
  transition: all 0.3s ease;
}

.feedback-footer-btn:hover {
  background: linear-gradient(135deg, rgba(232, 121, 169, 0.25), rgba(192, 132, 252, 0.25));
  color: #ffffff;
  border-color: rgba(192, 132, 252, 0.4);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 8px 30px rgba(192, 132, 252, 0.2),
    0 0 40px rgba(192, 132, 252, 0.05);
}

.feedback-footer-btn:active {
  transform: translateY(0) scale(0.98);
}

.feedback-footer-btn:hover i {
  color: rgba(232, 121, 169, 0.9);
  transform: scale(1.1) rotate(-5deg);
}

/* Optional: Add a pulse animation to draw attention */
@keyframes feedbackBtnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.3);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(192, 132, 252, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 132, 252, 0);
  }
}

.feedback-footer-btn {
  animation: feedbackBtnPulse 2s ease-in-out 2;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes feedbackSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes feedbackShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes feedbackSuccessPop {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes feedbackSuccessBounce {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

/* Form Error Message (global) */
.form-error-message {
  text-align: center;
  margin-bottom: 12px;
  padding: 10px 16px;
  background: rgba(255, 107, 138, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 138, 0.15);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 107, 138, 0.8);
  animation: feedbackShake 0.4s ease;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .feedback-container {
    padding: 1.75rem 1.5rem;
    width: 94%;
    border-radius: 24px;
    max-height: 92vh;
  }
  
  .feedback-header h2 {
    font-size: 1.8rem;
  }
  .feedback-header::after {
    width: 50px;
    bottom: -12px;
  }
  
  .feedback-subtitle {
    font-size: 0.8rem;
  }
  
  .feedback-field {
    margin-bottom: 1rem;
  }
  .feedback-field select,
  .feedback-field input,
  .feedback-field textarea {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
  }
  
  .feedback-actions {
    flex-direction: column-reverse;
    gap: 0.6rem;
  }
  .feedback-cancel,
  .feedback-submit {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.9rem;
    border-radius: 14px;
  }
  
  .feedback-success .success-icon {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
  }
  .feedback-success h3 {
    font-size: 1.5rem;
  }
  
  .feedback-close {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
    top: 12px;
    right: 14px;
  }
  
  .feedback-footer-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
    border-radius: 14px;
  }
  .feedback-footer-btn::before {
    border-radius: 14px;
  }
}

@media (max-width: 400px) {
  .feedback-container {
    padding: 1.25rem 1rem;
    border-radius: 20px;
  }
  .feedback-header h2 {
    font-size: 1.5rem;
  }
  .feedback-field select,
  .feedback-field input,
  .feedback-field textarea {
    font-size: 0.85rem;
    padding: 0.6rem 0.75rem;
    border-radius: 12px;
  }
  .feedback-field textarea {
    min-height: 80px;
  }
}

/* ============================================================
   DARK MODE SUPPORT (already dark)
   ============================================================ */

@media (prefers-color-scheme: light) {
  /* Keep dark theme - it matches the site */
}