:root {
  --color-bg: #0c1424;
  --color-card: #1a2438;
  --color-text: #ffffff;
  --color-muted: #aab3c4;
  --color-primary: #f39c12;
  --radius: 10px;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
}

body.light-mode {
  background-color: white;
  color: #4b352a;
}

body.light-mode .feedback__subtitle {
  color: #4b352a;
}

body.light-mode .feedback__form {
  background: transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-mode .feedback__btn {
  background: #4b352a;
  color: white;
}

body.light-mode .feedback__comments textarea {
  background: transparent;
  border: 1px solid #0c1424;
}

body.light-mode .feedback__item {
  background: transparent;
  color: #0c1424;
}

body.light-mode .feedback__item-comment {
  color: #0c1424;
}

/* ===== Feedback Section ===== */
.feedback {
  min-height: calc(100dvh - 70px);
  padding: 2rem 1rem;
  text-align: center;
}

.feedback__title {
  font-size: 2.5rem;
  font-weight: 700;
}

.feedback__subtitle {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.feedback__form {
  background-color: var(--color-card);
  width: 90%;
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: left;
}

.feedback__label {
  font-weight: 600;
  margin-bottom: 1rem;
}

.feedback__rating label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.feedback__stars span {
  font-size: 2rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.feedback__stars span.active {
  color: var(--color-primary);
}

.feedback__comments label {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.feedback__comments textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  border-radius: var(--radius);
  border: none;
  background: #2a344b;
  color: var(--color-text);
  resize: none;
  margin-top: 0.5rem;
}

.feedback__btn {
  width: 100%;
  background-color: var(--color-primary);
  border: none;
  padding: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius);
  color: var(--color-bg);
  margin-top: 1.5rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.feedback__btn:hover {
  opacity: 0.9;
}

.feedback__recent-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 3rem;
  justify-content: start;
}

/* ===== Recent Feedback ===== */
.feedback__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: center;
  /* justify-content: center; */
}

.feedback__item {
  background-color: #1f2937; /* dark gray */
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feedback__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.feedback__item-rating {
  color: #f59e0b;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.feedback__item-comment {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #e5e7eb;
}

.feedback__item-date {
  font-size: 0.8rem;
  color: #9ca3af;
  align-self: flex-end;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .feedback__item {
    padding: 0.75rem 1rem;
  }

  .feedback__item-rating {
    font-size: 1rem;
  }

  .feedback__item-comment {
    font-size: 0.9rem;
  }

  .feedback__form {
    width: 95%;
    padding: 1.5rem;
  }

  .header {
    flex-direction: column;
  }

  .header__nav {
    margin-top: 0.5rem;
  }

  .feedback__title {
    font-size: 1.5rem;
  }
}
