 /* ===== Review Section ===== */
.review-section {
  padding: 40px 20px;
  background: #f9f9f9;
  font-family: Arial, sans-serif;
}

.review-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.review-summary,
.review-list-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.review-summary {
  flex: 1 1 250px;
  text-align: center;
  padding: 20px;
}

.review-summary h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.rating-score {
  font-size: 36px;
  font-weight: bold;
}

.rating-score span {
  font-size: 18px;
  font-weight: normal;
}

.review-summary .stars {
  font-size: 24px;
  color: #f5b301;
  margin: 10px 0;
}

.review-summary p {
  font-size: 14px;
  color: #555;
}

/* ===== Scrollable Review List ===== */
.review-list-container {
  flex: 2 1 600px;
  display: flex;
  flex-direction: column;
  height: 420px;
}

.review-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.review-list h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.review-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  font-weight: bold;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-header .stars {
  color: #f5b301;
  font-size: 18px;
}

.review-item p {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

/* ===== Button Below Scroll ===== */
.review-action {
  padding: 15px 20px;
  text-align: right;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.submit-review-btn {
  padding: 10px 20px;
  background-color: #1D435F;
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.submit-review-btn:hover {
  background-color: #6d9abf;
}

/* ===== Review Modal ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 80px auto;
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.close:hover {
  color: #ff0000;
}

.modal-content h3 {
  margin-bottom: 20px;
  font-size: 22px;
  text-align: center;
}

.modal-content .form-group {
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.modal-content input[type="text"],
.modal-content textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.modal-content textarea {
  resize: none;
}

.modal-content button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #1D435F;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-content button[type="submit"]:hover {
  background-color: #6d9abf;
}

/* ===== Star Rating ===== */
.star-rating {
  font-size: 24px;
  display: flex;
  gap: 5px;
  cursor: pointer;
}

.star-rating span {
  color: #ccc;
  transition: color 0.2s;
}

.star-rating span.hover,
.star-rating span.selected {
  color: #f5b301; /* gold */
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .review-container {
    flex-direction: column;
  }
}
