/* ============================================
   FEEDBACK CARD (inline, inside upload panel)
   ============================================ */

.feedback-card {
  display: none;
  flex-direction: column;
  margin: 0 16px 12px;
  padding: 16px;
  background: linear-gradient(145deg, var(--bg-modal-from) 0%, var(--bg-modal-to) 100%);
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  animation: feedbackSlideDown 0.25s ease-out;
  overflow: hidden;
}

.feedback-card.dismissing {
  animation: feedbackSlideUp 0.2s ease-in forwards;
}

@keyframes feedbackSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 300px;
  }
}

@keyframes feedbackSlideUp {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 300px;
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin: 0 16px;
    padding: 0 16px;
  }
}

.feedback-card-question,
.feedback-card-followup {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-heading);
  margin: 0 0 12px 0;
}

.feedback-card-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Star rating row */
.feedback-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.feedback-star {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: transform 0.15s ease;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-star:hover {
  transform: scale(1.15);
}

.feedback-star:active {
  transform: scale(0.95);
}

.feedback-star svg {
  fill: none;
  stroke: currentColor;
  transition: fill 0.15s ease, color 0.15s ease;
}

.feedback-star.active svg {
  fill: #F59E0B;
  stroke: #F59E0B;
  color: #F59E0B;
}

/* Google review section */
.feedback-card-google-review {
  display: none;
}

/* Shared button base */
.feedback-btn {
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.feedback-btn:active {
  transform: scale(0.96);
}

/* "Leave a Review" — green */
.feedback-btn-google-review {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.feedback-btn-google-review:hover {
  background: rgba(16, 185, 129, 0.25);
}

/* "Skip" — ghost */
.feedback-btn-skip,
.feedback-btn-skip-detail {
  background: transparent;
  color: var(--text-muted);
}

.feedback-btn-skip:hover,
.feedback-btn-skip-detail:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
}

/* "Submit" — blue primary */
.feedback-btn-submit {
  background: linear-gradient(135deg, #4169E1 0%, #3457c9 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(65, 105, 225, 0.2);
}

.feedback-btn-submit:hover {
  background: linear-gradient(135deg, #3457c9 0%, #2a47a8 100%);
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

/* Detail section */
.feedback-card-detail {
  display: none;
}

.feedback-textarea {
  width: 100%;
  background: var(--bg-hover);
  border: 1px solid var(--border-muted);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 60px;
  max-height: 120px;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.feedback-textarea::placeholder {
  color: var(--text-placeholder);
}

.feedback-textarea:focus {
  outline: none;
  border-color: rgba(65, 105, 225, 0.5);
}

.feedback-card-submit-row {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Thank-you flash */
.feedback-thankyou {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #10B981;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 500;
  animation: feedbackThankYouFade 1.2s ease-out forwards;
}

@keyframes feedbackThankYouFade {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============================================
   FEEDBACK TRIGGER BUTTON (in install strip)
   ============================================ */

.feedback-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border: none;
  background: none;
  color: #4169E1;
  border-radius: 6px;
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
}

.feedback-trigger-btn:hover {
  background: rgba(65, 105, 225, 0.1);
  color: #3457c9;
}

.feedback-trigger-btn:active {
  transform: scale(0.97);
}

.feedback-trigger-btn svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Separator dot between install btn and feedback btn */
.strip-separator {
  color: var(--text-separator);
  font-size: 10px;
  user-select: none;
}

/* ============================================
   REFER A FRIEND BUTTON (in install strip)
   ============================================ */

.refer-friend-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  border: none;
  background: none;
  color: #4169E1;
  border-radius: 6px;
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 1;
}

.refer-friend-btn:hover {
  background: rgba(65, 105, 225, 0.1);
  color: #3457c9;
}

.refer-friend-btn:active {
  transform: scale(0.97);
}

.refer-friend-btn svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Mobile: tighten + larger tap targets for stars */
@media (max-width: 480px) {
  .feedback-trigger-btn {
    font-size: 11px;
  }

  .refer-friend-btn {
    font-size: 11px;
  }

  .feedback-star {
    padding: 4px;
  }

  .feedback-star svg {
    width: 28px;
    height: 28px;
  }

  .feedback-stars {
    gap: 6px;
  }
}
