/* Button */
.open-review-btn {
  padding: 10px 20px;
  background-color: #b30000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 100px;
}

/* === Base Popup Styling === */
.review-modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
}

.review-modal-content {
  background: white;
  padding: 40px;
  width: 90%;
  max-width: 700px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  color: #b30000;
  cursor: pointer;
}

.review-title {
  color: #b30000;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.review-description {
  font-size: 14px;
  color: #444;
  margin-bottom: 30px;
  text-align: center;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-row input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #b30000;
  border-radius: 6px;
  width: 100%;
  outline: none;
}

.rating-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.rating-section,
.recommend-section {
  flex: 1;
  font-size: 14px;
}

.star-rating {
  direction: rtl;
  display: inline-flex;
  gap: 5px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #b30000;
}

textarea {
  width: 100%;
  height: 100px;
  border: 1px solid #b30000;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 20px;
  outline: none;
}

.submit-btn {
  background-color: #b30000;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #990000;
}

/* Responsive */
@media (max-width: 600px) {
  .review-modal{
    padding-top: 100px;
    overflow-x: auto;
  }
  .form-row {
    flex-direction: column;
  }

  .rating-row {
    flex-direction: column;
  }
}
