/* ============================================================
   KEYPOINT — Feedback Page Styles
   ============================================================ */

/* Page Hero */
.page-hero {
  position: relative;
  padding: 120px 22px 80px;
  text-align: center;
  overflow: hidden;
}
.page-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.page-hero__orb--1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,102,204,0.2) 0%, transparent 70%);
  top: -80px; left: -80px;
  animation: ag-float-slow 9s ease-in-out infinite;
}
.page-hero__orb--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(41,151,255,0.15) 0%, transparent 70%);
  bottom: -40px; right: -40px;
  animation: ag-float-slow 12s ease-in-out infinite reverse;
}
.page-hero__floater {
  position: absolute;
  font-size: 32px;
  color: rgba(41,151,255,0.3);
  pointer-events: none;
  top: 30%; left: 8%;
  animation: ag-float 7s ease-in-out infinite;
}
.page-hero__floater--2 {
  font-size: 48px;
  top: 20%; right: 10%;
  animation: ag-float-reverse 9s ease-in-out infinite;
}
.page-hero__floater--3 {
  font-size: 24px;
  bottom: 25%; left: 20%;
  animation: ag-float-slow 6s ease-in-out infinite;
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

/* Steps */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted-48);
  background: var(--canvas);
  transition: all 0.4s var(--ag-ease);
}
.step--active .step__num {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 16px rgba(0,102,204,0.3);
  animation: ag-float-slow 3s ease-in-out infinite;
}
.step--done .step__num {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}
.step__label {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-muted-48);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.step--active .step__label { color: var(--primary); font-weight: 600; }
.step__connector {
  flex: 1;
  height: 1px;
  background: var(--hairline);
  min-width: 48px;
  margin: 0 4px;
  margin-bottom: 20px;
  transition: background 0.4s ease;
}
.step__connector--done { background: var(--primary); }

/* Form Panel */
.form-panel {
  background: var(--canvas);
  border-radius: var(--rounded-lg);
  padding: var(--space-xxl) var(--space-xl);
  border: 1px solid var(--hairline);
  animation: ag-fade-up 0.5s var(--ag-ease) both;
}
.form-panel--hidden {
  display: none;
}

/* Fields */
.field-group { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: var(--ink-muted-80);
  margin-bottom: 6px;
}
.field-wrap {
  position: relative;
}
.field-input {
  width: 100%;
  height: 52px;
  padding: 0 44px 0 16px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.374px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.12);
}
.field-input.error {
  border-color: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255,59,48,0.1);
}
.field-input::placeholder { color: var(--ink-muted-48); }
.field-select { cursor: pointer; }
.field-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted-48);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.field-icon--select { pointer-events: none; }
.field-error {
  display: block;
  font-size: 12px;
  color: #ff3b30;
  margin-top: 4px;
  min-height: 18px;
  letter-spacing: -0.1px;
}

/* 2-column row */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Textarea */
.field-textarea {
  height: auto !important;
  padding: 14px 16px;
  resize: vertical;
  min-height: 90px;
  line-height: 1.55;
}

/* Required star */
.required-star {
  color: #ff3b30;
  font-weight: 700;
  margin-left: 2px;
}

@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Drop Zone */
.drop-zone {
  position: relative;
  border: 1.5px dashed rgba(0,102,204,0.35);
  border-radius: var(--rounded-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background: rgba(0,102,204,0.02);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.4s var(--ag-ease);
  margin-bottom: 20px;
}
.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--primary);
  background: rgba(0,102,204,0.05);
  transform: translateY(-4px);
  outline: none;
}
.drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(0,102,204,0.08);
  transform: scale(1.02) translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,102,204,0.2);
}
.drop-zone.has-file {
  border-style: solid;
  border-color: var(--primary);
}

/* Particles inside drop zone */
.drop-zone__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dz-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
}
.dz-particle:nth-child(1) { left: 20%; bottom: 10%; animation: ag-particle-rise 3s ease-in infinite 0s; }
.dz-particle:nth-child(2) { left: 40%; bottom: 15%; animation: ag-particle-rise 3.5s ease-in infinite 0.8s; }
.dz-particle:nth-child(3) { left: 60%; bottom: 8%; animation: ag-particle-rise 2.8s ease-in infinite 1.6s; }
.dz-particle:nth-child(4) { left: 75%; bottom: 12%; animation: ag-particle-rise 4s ease-in infinite 0.4s; }
.dz-particle:nth-child(5) { left: 85%; bottom: 18%; animation: ag-particle-rise 3.2s ease-in infinite 2s; }

.drop-zone__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xxl);
}
.drop-zone__icon {
  margin: 0 auto 20px;
  animation: ag-float-slow 4s ease-in-out infinite;
}
.drop-zone__text {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.drop-zone__sub {
  font-size: 14px;
  color: var(--ink-muted-48);
  margin-bottom: 16px;
}
.drop-zone__formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.format-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: rgba(0,102,204,0.08);
  padding: 4px 10px;
  border-radius: var(--rounded-pill);
  border: 1px solid rgba(0,102,204,0.15);
}
.drop-zone__limit {
  font-size: 12px;
  color: var(--ink-muted-48);
}

/* Selected File */
.drop-zone__selected {
  width: 100%;
  padding: var(--space-xl);
}
.selected-file {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--canvas-parchment);
  border-radius: var(--rounded-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}
.selected-file__icon { font-size: 32px; animation: ag-float-slow 4s ease-in-out infinite; }
.selected-file__details { flex: 1; text-align: left; }
.selected-file__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.selected-file__size { font-size: 12px; color: var(--ink-muted-48); margin-top: 2px; }
.selected-file__remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--hairline);
  color: var(--ink-muted-48);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.selected-file__remove:hover { background: #ff3b30; color: white; }

/* Progress Bar */
.upload-progress {
  height: 4px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}
.upload-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--primary-on-dark));
  border-radius: 2px;
  transition: width 0.3s ease;
}
.upload-progress__label {
  font-size: 12px;
  color: var(--ink-muted-48);
  text-align: center;
  margin-top: 6px;
}

/* Form Notice */
.form-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,102,204,0.05);
  border-radius: var(--rounded-sm);
  margin-bottom: 20px;
}
.form-notice span {
  font-size: 12px;
  color: var(--ink-muted-48);
  line-height: 1.5;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Success State */
.success-state {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
}
.success-state__icon {
  animation: ag-float-slow 4s ease-in-out infinite;
  display: inline-block;
}
.check-path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw-check 0.8s ease-out 0.3s both;
}
@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}
.success-state__email {
  padding: 12px 24px;
  background: rgba(0,102,204,0.06);
  border-radius: var(--rounded-pill);
  display: inline-block;
}

/* Pricing Chips */
.pricing-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: 40px;
}
.pricing-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rounded-lg);
  padding: var(--space-xl);
  text-align: left;
  transition: transform 0.4s var(--ag-ease), box-shadow 0.4s var(--ag-ease);
  animation: ag-float 7s ease-in-out infinite;
  position: relative;
}
.pricing-chip:nth-child(2) { animation-delay: 2s; }
.pricing-chip:nth-child(3) { animation-delay: 4s; }
.pricing-chip:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,102,204,0.2);
}
.pricing-chip--featured {
  border-color: var(--primary-on-dark);
  background: rgba(41,151,255,0.08);
}
.pricing-chip__badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-on-dark);
  background: rgba(41,151,255,0.15);
  padding: 3px 10px;
  border-radius: var(--rounded-pill);
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.pricing-chip__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--body-muted);
  margin-bottom: 4px;
}
.pricing-chip__price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--on-dark);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.pricing-chip--featured .pricing-chip__price { color: var(--primary-on-dark); }
.pricing-chip__desc {
  font-size: 13px;
  color: var(--body-muted);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 833px) {
  .pricing-chips { grid-template-columns: 1fr; }
  .form-panel { padding: var(--space-xl) var(--space-lg); }
}
@media (max-width: 640px) {
  .steps { gap: 0; }
  .step__connector { min-width: 24px; }
  .form-actions { flex-direction: column; }
  .form-actions button { width: 100%; }
  .drop-zone__text { font-size: 22px; }
}

/* Feedback Media Type Selector */
.media-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 8px;
}
@media (max-width: 540px) {
  .media-type-selector {
    grid-template-columns: 1fr;
  }
}
.media-type-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  background: var(--canvas-parchment);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-muted-80);
  transition: all 0.3s var(--ag-ease);
}
.media-type-btn:hover {
  background: rgba(0, 102, 204, 0.04);
  border-color: var(--primary);
}
.media-type-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

