/* Feedback Modal Styles */

/* Overlay */
.vv-feedback-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

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

/* Modal Container */
.vv-feedback-modal {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  position: relative;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

/* Modal Header */
.vv-feedback-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.vv-feedback-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.vv-feedback-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #6b7280;
  transition: all 0.2s ease;
}

.vv-feedback-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.vv-feedback-close svg {
  width: 24px;
  height: 24px;
}

/* Form */
.vv-feedback-form {
  padding: 24px;
}

.vv-feedback-field {
  margin-bottom: 24px;
}

.vv-feedback-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.vv-feedback-field select,
.vv-feedback-field input[type="email"],
.vv-feedback-field textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.vv-feedback-field select:focus,
.vv-feedback-field input[type="email"]:focus,
.vv-feedback-field textarea:focus {
  outline: none;
  border-color: #2563EB;
}

.vv-feedback-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.vv-feedback-char-count {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
  text-align: right;
}

.vv-feedback-char-count.over-limit {
  color: #dc2626;
  font-weight: 600;
}

/* Star Rating */
.vv-feedback-stars {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.vv-feedback-star {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.vv-feedback-star:hover {
  background: #f9fafb;
  transform: scale(1.1);
}

.vv-feedback-star.active {
  color: #fbbf24;
}

.vv-feedback-star svg {
  width: 32px;
  height: 32px;
}

/* Actions */
.vv-feedback-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.vv-feedback-cancel,
.vv-feedback-submit {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid;
}

.vv-feedback-cancel {
  background: white;
  border-color: #e5e7eb;
  color: #374151;
}

.vv-feedback-cancel:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.vv-feedback-submit {
  background: #2563EB;
  border-color: #2563EB;
  color: white;
}

.vv-feedback-submit:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.vv-feedback-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error Message */
.vv-feedback-error {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-bottom: 24px;
}

.error-icon {
  font-size: 20px;
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 2px;
}

.error-text {
  color: #991b1b;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

/* Success Message */
.vv-feedback-success {
  padding: 48px 24px;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
}

.vv-feedback-success h3 {
  margin: 0 0 12px;
  font-size: 24px;
  color: #111827;
}

.vv-feedback-success p {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 16px;
}

.vv-feedback-close-success {
  padding: 12px 24px;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vv-feedback-close-success:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .vv-feedback-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .vv-feedback-modal {
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    max-width: 100%;
  }

  .vv-feedback-modal-header {
    padding: 20px;
  }

  .vv-feedback-modal-header h2 {
    font-size: 20px;
  }

  .vv-feedback-form {
    padding: 20px;
  }

  .vv-feedback-actions {
    flex-direction: column-reverse;
  }

  .vv-feedback-cancel,
  .vv-feedback-submit {
    width: 100%;
  }

  .vv-feedback-star svg {
    width: 28px;
    height: 28px;
  }
}

