/* ============================================================
   reviews.css
   Styles for resources/views/reviews.blade.php
   ============================================================ */

.testimonials {
  background: #f8f9fc;
  padding: 35px 35px;
}

/* HEADER */
.reviews-header {
  position: relative;
  text-align: center;
  margin-bottom: 30px;
}

.reviews-header h2 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 6px;
}

.reviews-header p {
  margin: 0;
  color: #666;
  font-size: 15px;
}

/* WRITE REVIEW BUTTON (HEADER) */
.header-review-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #ff7a00;
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.header-review-btn:hover {
  background: #e66e00;
}

/* =========================
   REVIEW FORM (FULL WIDTH)
========================= */

.review-form-wrapper {
  background: #fff;
  padding: 35px 40px;
  margin: 0 auto 35px;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  display: none;
}

.review-form {
  width: 100%;
}

/* FORM GROUP */
.review-form .form-group {
  margin-bottom: 16px;
}

/* LABELS */
.review-form label {
  display: block;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

/* INPUTS */
.review-form input,
.review-form textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.review-form textarea {
  resize: none;
}

/* =========================
   STAR RATING
========================= */

.rating-group {
  text-align: left;
}

.rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-self: start;
  gap: 6px;
}

.rating-stars input {
  display: none;
}

.rating-stars label {
  font-size: 22px;
  color: #ddd;
  cursor: pointer;
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
  color: #f4b400;
}

/* =========================
   FORM BUTTONS
========================= */

.form-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.review-btn {
  background: #ff7a00;
  color: #fff;
  border: none;
  padding: 10px 26px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.review-btn:hover {
  background: #e66e00;
}

/* =========================
   REVIEWS GRID
========================= */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* REVIEW CARD */
.review-box {
  background: #fff;
  padding: 18px 16px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.review-box img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.review-box .stars i {
  color: #ddd;
  font-size: 14px;
}

.review-box .stars i.active {
  color: #f4b400;
}

.review-box p {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-review-btn {
    position: static;
    transform: none;
    margin-top: 15px;
  }

  .review-form-wrapper {
    padding: 25px 18px;
  }
}

@media (max-width: 576px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.default-user-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.default-user-icon i {
  font-size: 22px;
  color: #777;
}

/* FIXED AVATAR WRAPPER */
.review-avatar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

/* PROFILE IMAGE */
.review-avatar img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.review-name {
  margin: 6px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.review-text {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 576px) {
  .form-actions {
    display: flex;
    gap: 10px;
  }

  .form-actions .review-btn {
    flex: 1;
    padding: 12px 0;
    text-align: center;
  }
}
