:root {
  --feedback-bg: #f5f7fb;
  --feedback-card: #fff;
  --feedback-border: rgba(15, 76, 129, 0.12);
  --chip-bg: rgba(15, 76, 129, 0.08);
  --chip-text: #0f4c81;
  --chip-active-bg: #0f4c81;
  --chip-active-text: #fff;
}

.feedback-body {
  background: var(--feedback-bg);
  min-height: 100vh;
  color: #0b2540;
}

.feedback-header {
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
  background: #fff;
}

.feedback-nav {
  align-items: center;
  padding: 16px 0;
}

.feedback-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0f4c81;
  text-decoration: none;
}

.feedback-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: right;
}

.feedback-nav-actions .signed-in {
  font-size: 0.9rem;
  color: #516684;
}

.feedback-shell {
  max-width: 820px;
}

.feedback-intro {
  margin: 32px 0 24px;
  padding: 32px;
  border-radius: 16px;
  background: var(--feedback-card);
  border: 1px solid var(--feedback-border);
  box-shadow: 0 10px 30px rgba(10, 29, 58, 0.08);
}

.feedback-intro .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: #a855f7;
  margin-bottom: 6px;
}

.feedback-form {
  margin-bottom: 60px;
}

.feedback-section-card {
  background: var(--feedback-card);
  border: 1px solid var(--feedback-border);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(15, 76, 129, 0.06);
}

.feedback-section-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  color: #fff;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.question-block {
  margin-bottom: 20px;
}

.question-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #0f1e36;
  display: block;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-weight: 500;
  pointer-events: none;
  transition: all 0.2s ease;
}

.chip:focus-within span {
  outline: 2px solid rgba(37, 99, 235, 0.9);
  outline-offset: 2px;
}

.chip input:checked + span {
  background: var(--chip-active-bg);
  color: var(--chip-active-text);
  box-shadow: 0 6px 16px rgba(15, 76, 129, 0.25);
}

.feedback-form textarea,
.feedback-form input[type="text"] {
  width: 100%;
  border: 1px solid rgba(15, 76, 129, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1rem;
  resize: vertical;
  font-family: inherit;
  background: #fff;
}

.feedback-form textarea:focus,
.feedback-form input[type="text"]:focus {
  outline: 2px solid rgba(37, 99, 235, 0.6);
  border-color: transparent;
}

.conditional-block,
.conditional-inline {
  display: none;
}

.conditional-block.visible,
.conditional-inline.visible {
  display: block;
}

.conditional-inline input {
  max-width: 360px;
}

.form-actions {
  text-align: center;
  margin: 24px 0 60px;
}

.form-actions .btn {
  min-width: 190px;
}

.muted.tiny {
  font-size: 0.85rem;
  color: #59728f;
  margin-top: 8px;
}

.feedback-status {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  display: none;
}

.feedback-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.feedback-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.feedback-loading {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  z-index: 40;
}

.feedback-loading[hidden] {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(15, 76, 129, 0.15);
  border-top-color: #0f4c81;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .feedback-section-card {
    padding: 22px;
  }

  .feedback-section-head {
    flex-direction: column;
  }

  .option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .feedback-intro {
    padding: 24px;
  }

  .feedback-nav-actions {
    justify-content: flex-end;
  }
}
