/* reviews.css */
.feedback-page {
  padding-top: 120px;
  background-color: #eff6fd;
}

.feedback-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* horizontal form */
.feedback-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-group label {
  font-weight: 500;
  margin-bottom: 6px;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

.feedback-form textarea {
  resize: vertical;
  grid-column: span 3;
}

.submit-btn {
  width: max-content;
  padding: 0px 30px;
  justify-self: right;
  grid-column: span 3;
  height: 52px;
  margin-top: 10px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #05668d;
  color: #05668d;
  background: transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.submit-btn:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(270deg, #05668d, #002164, #05668d);
  background-size: 400% 400%;
  animation: gradientMove 3s ease infinite;
}

/* descriptive text */
.feedback-text {
  margin: 10px 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: #555555;
  max-width: 900px;
}

.text {
  margin: 10px 0 22px;
  font-size: 15px;
  line-height: 1.7;
  color: #000000;
}

/* reviews grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
}

/* review card */
.review-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* review header */
.review-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.review-header .google-logo {
  width: 18px;
  /* fixed small size */
  height: 18px;
  object-fit: contain;
  display: inline-block;
}

.stars {
  color: #f4b400;
  font-size: 14px;
  margin-left: auto;
  letter-spacing: 1px;
}

/* review text */
.review-text {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 16px;
  min-height: 50px;
  /* keeps cards aligned */
}

/* review footer */
.review-footer {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
}

.review-name {
  font-weight: 600;
  color: #222;
}

/* show all button */
.show-all-wrap {
  margin-top: 30px;
  text-align: center;
}

.show-all-btn {
  height: 48px;
  padding: 0 28px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #05668d;
  color: #05668d;
  background: transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.show-all-btn:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(270deg, #05668d, #002164, #05668d);
}

/* responsive reviews */
@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.hidden {
  display: none;
}

/* Tablet */
@media (max-width: 992px) {
  .feedback-form {
    grid-template-columns: repeat(2, 1fr);
  }

  .feedback-form textarea,
  .submit-btn {
    grid-column: span 2;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .feedback-container {
    padding: 20px;
  }

  .feedback-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feedback-form textarea,
  .submit-btn {
    grid-column: span 1;
  }

  .submit-btn {
    height: 48px;
    border-radius: 14px;
  }
}

/* Desktop: make review textarea full width */
@media (min-width: 993px) {
  .feedback-form .field-group:has(textarea) {
    grid-column: span 3;
  }
}

@media (min-width: 993px) {
  .feedback-form .full-width {
    grid-column: span 3;
  }
}
