/* Self-contained styles for the site-wide floating help widget. Deliberately
   does not depend on dashboard.css/auth.css custom properties, since this
   partial is included on both the dashboard and the separate auth pages. */

.support-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  font-family: 'Roboto', system-ui, sans-serif;
}

.support-widget__launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.support-widget__launcher:hover,
.support-widget__launcher:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.42);
  outline: none;
}

.support-widget__launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.support-widget__launcher-wrap {
  position: relative;
  display: inline-block;
}

.support-widget__dismiss {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #64748b;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.support-widget__dismiss:hover {
  background: #475569;
}

.support-widget__panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: min(360px, calc(100vw - 40px));
  max-height: min(560px, calc(100vh - 100px));
  overflow-y: auto;
  border-radius: 14px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.support-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.support-widget__header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.support-widget__close {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.support-widget__close:hover {
  color: #1f2937;
}

.support-widget__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px;
}

.support-widget__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-widget__field span {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
}

.support-widget__field input,
.support-widget__field textarea {
  padding: 9px 11px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: #1f2937;
  background: #ffffff;
  resize: vertical;
}

.support-widget__field input:focus,
.support-widget__field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.support-widget__signed-in {
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.support-widget__feedback {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  min-height: 18px;
  color: #0f766e;
}

.support-widget__feedback.is-error {
  color: #b42318;
}

.support-widget__actions {
  display: flex;
  justify-content: flex-end;
}

.support-widget__submit {
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.support-widget__submit:hover {
  background: #1d4ed8;
}

.support-widget__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .support-widget {
    right: 14px;
    bottom: 14px;
  }

  .support-widget__panel {
    right: -6px;
  }
}
