/* Floating Help Button Component */

/* Floating Button - Perfect Circle */
.floating-help-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black);
  color: white;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-300) var(--ease);
}

.floating-help-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  background: var(--gray-800);
}

.floating-help-button:active {
  transform: scale(0.95);
}

.floating-help-button.button-active {
  transform: rotate(90deg);
}

/* Floating Card */
.floating-help-card {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 600px;
  max-height: calc(100vh - 140px);
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--dur-300) var(--ease);
  overflow: hidden;
}

.floating-help-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.close-button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--muted);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all var(--dur-200);
}

.close-button:hover {
  background: var(--border);
  color: var(--foreground);
}

/* Card Body */
.card-body {
  padding: 24px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--foreground);
  text-decoration: none;
  transition: all var(--dur-200);
  font-size: 15px;
}

.help-link:hover {
  background: var(--muted);
  transform: translateX(4px);
}

/* Card Footer */
.card-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.support-button {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--dur-200);
}

.support-button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Backdrop */
.help-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 9997;
  opacity: 0;
  transition: opacity var(--dur-300) ease;
}

.help-backdrop.backdrop-visible {
  opacity: 1;
}

/* Support Form Styles */
.support-form-compact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}

.required-mark {
  color: var(--primary);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--foreground);
  font-size: 15px;
  transition: all var(--dur-200);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

.character-count {
  text-align: right;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* File Upload Styles */
.file-upload-wrapper {
  position: relative;
}

.file-input {
  display: none;
}

.file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: var(--surface-2);
  color: var(--muted-foreground);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--dur-200);
}

.file-label:hover {
  border-color: var(--primary);
  background: var(--surface);
}

/* Submit Button */
.submit-button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--black);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-200);
}

.submit-button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  background: var(--gray-800);
}

.submit-button:active {
  transform: scale(0.98);
}

/* Response Info */
.response-info {
  display: flex;
  justify-content: space-around;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted-foreground);
}

/* Success Message */
.success-message {
  padding: 40px 20px;
  text-align: center;
}

.success-icon {
  color: var(--success);
  margin-bottom: 16px;
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 8px;
}

.success-text {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-bottom: 24px;
  line-height: 1.6;
}

.success-button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-200);
}

.success-button:hover {
  background: var(--accent);
}

/* Error Message */
.error-message {
  padding: 40px 20px;
  text-align: center;
}

.error-icon {
  color: var(--warning);
  margin-bottom: 16px;
}

.error-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 8px;
}

.error-text {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-bottom: 24px;
  line-height: 1.6;
}

.error-button {
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background: var(--warning);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-200);
}

.error-button:hover {
  opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .floating-help-button {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  .floating-help-card {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 120px);
    bottom: 80px;
    right: 16px;
    left: 16px;
  }

  .card-body {
    max-height: calc(100vh - 220px);
  }
}
