/* ============================================================
   FEEDBACK WIDGET — temporary, remove with <link> + <script>
   ============================================================ */

.fb-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 88, 104, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fb-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 88, 104, 0.45);
  background: var(--color-primary-light);
}

.fb-fab:active { transform: translateY(0); }

/* --- Backdrop --- */
.fb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8999;
  background: rgba(36, 32, 30, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fb-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Panel --- */
.fb-panel {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  z-index: 9001;
  width: min(540px, 100vw);
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-warm);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -8px 40px rgba(36, 32, 30, 0.2);
  padding: 2rem 2rem 3rem;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.fb-panel.is-open {
  transform: translateX(-50%) translateY(0);
}

/* --- Header --- */
.fb-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.fb-panel__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fb-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-dark);
  transition: background 0.15s ease;
}

.fb-panel__close:hover { background: rgba(0, 0, 0, 0.14); }

/* --- Progress --- */
.fb-progress {
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  margin-bottom: 2rem;
}

.fb-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* --- Steps --- */
.fb-step { display: none; }
.fb-step.is-active {
  display: block;
  animation: fbFadeUp 0.35s ease;
}

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

.fb-step__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.fb-step__question {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* --- Options --- */
.fb-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: center;
}

.fb-option {
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid transparent;
  border-radius: 0.625rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.fb-option:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--color-primary);
}

.fb-option.is-selected {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-primary);
}

/* --- Textarea --- */
.fb-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-dark);
  resize: vertical;
  min-height: 100px;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.fb-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.95);
}

/* --- Submit --- */
.fb-submit {
  width: 100%;
  padding: 0.875rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.fb-submit:hover { background: var(--color-primary-light); transform: translateY(-1px); }
.fb-submit:active { transform: translateY(0); }

/* --- Done --- */
.fb-done {
  text-align: center;
  padding: 2rem 0 1rem;
}

.fb-done__icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.fb-done__msg {
  font-size: 1.0625rem;
  color: var(--color-dark);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.fb-done__close {
  padding: 0.75rem 2rem;
  background: transparent;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fb-done__close:hover {
  background: var(--color-primary);
  color: #fff;
}

/* --- Mobile --- */
@media (max-width: 480px) {
  .fb-panel { padding: 1.5rem 1.25rem 2.5rem; }
  .fb-options { flex-direction: column; }
  .fb-option { text-align: center; }
  .fb-fab span { display: none; }
  .fb-fab { padding: 0.875rem; }
}
