.feedback-card-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1rem 0;
  text-align: center;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  max-height: 1000px;
  padding: 0.5rem 1.5rem;
}

.feedback-card-container.collapsed {
  max-height: 0;
  margin: 0;
  gap: 0;
  opacity: 0;
  padding: 0;
}

.feedback-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  transition: all 0.5s ease-in-out;
  max-height: 0;
  opacity: 0;
  transform: translateY(1.25rem);
  overflow: hidden;
  margin: 0;
}

.feedback-actions.visible {
  max-height: 31.25rem;
  opacity: 1;
  transform: translateY(0);
  margin: 1rem 0;
}

.feedback-title {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.5em;
  letter-spacing: -0.01em;
  color: #0c0e12;
  margin: 0;
  text-align: center;
}

.feedback-subtitle {
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.3em;
  color: rgba(12, 14, 18, 0.73);
  margin: 0;
  text-align: center;
}

.feedback-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: nowrap;
  align-content: center;
  gap: 0.5rem;
  width: 100%;
}

.feedback-button {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75em 1.25em;
  height: 2.6875rem;
  background: var(--color-surface-container);
  border: 0.5px solid rgba(12, 14, 18, 0.2);
  border-radius: 0.625rem;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3em;
  letter-spacing: -0.02em;
  color: rgba(12, 14, 18, 0.6);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  min-width: 9.1875rem;
}

.feedback-button:hover {
  border-color: rgba(12, 14, 18, 0.73);
  color: rgba(12, 14, 18, 0.73);
}

.feedback-button:active {
  color: var(--color-on-surface-container);
  border-color: var(--color-on-surface-container);
}

.feedback-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.feedback-button.disabled:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.trustpilot-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  transition: all 0.5s ease-in-out;
  max-height: 0;
  opacity: 0;
  transform: translateY(1.25rem);
  overflow: hidden;
  margin: 0;
}

.trustpilot-container.visible {
  max-height: 31.25rem;
  opacity: 1;
  transform: translateY(0);
  margin: 1rem 0;
}

.trustpilot-button:hover {
  background: #0848b8;
}

.trustpilot-logo {
  margin-top: 0.5rem;
}

.trustpilot-logo svg {
  width: 5.75rem;
  height: 1.4375rem;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  transition: all 0.5s ease-in-out;
  max-height: 0;
  opacity: 0;
  transform: translateY(1.25rem);
  overflow: hidden;
}

#feedback-input-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  transition: all 0.5s ease-in-out;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.5rem;
}

#feedback-input-container.hidden {
  opacity: 0;
  transform: translateY(-1.25rem);
  max-height: 0;
  overflow: hidden;
}

.feedback-form.visible {
  max-height: 31.25rem;
  opacity: 1;
  transform: translateY(0);
  margin: 1rem 0;
}

.feedback-textarea {
  width: 100%;
  min-height: 6.5rem;
  padding: 0.75em 1.25em;
  border: 1px solid rgba(12, 14, 18, 0.2);
  border-radius: 0.75rem;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5em;
  letter-spacing: -0.01em;
  color: #0c0e12;
  background: var(--color-surface-container);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease-in-out;
  margin-bottom: 1rem;
}

.feedback-textarea:focus-within {
  border-color: var(--color-primary);
}

.feedback-textarea::placeholder {
  color: rgba(12, 14, 18, 0.6);
}

.success-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ecf2fe;
  border: 1px solid rgba(12, 14, 18, 0.08);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  width: 100%;
  box-shadow: 0px 0.125rem 0.75rem 0px rgba(0, 0, 0, 0.06);
  transition: all 0.5s ease-in-out;
  opacity: 0;
  transform: translateY(1.25rem);
  max-height: 0;
  overflow: hidden;
  margin: 0;
}

.success-toast:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  max-height: 12.5rem;
  margin-bottom: 1rem;
}

.success-toast.hidden {
  opacity: 0;
  transform: translateY(-1.25rem);
  max-height: 0;
  overflow: hidden;
  margin: 0;
}

.success-toast .success-icon {
  width: 1rem;
  height: 1rem;
  color: #0c0e12;
  flex-shrink: 0;
}

.success-text {
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.4em;
  color: #063173;
}

@media (min-width: 768px) {
  .feedback-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feedback-button {
    flex: 0 1 auto;
    min-width: 9.1875rem;
  }
}

.feedback-actions,
.trustpilot-container,
.feedback-form,
#feedback-input-container,
.success-toast {
  transition: all 0.5s ease-in-out;
}
