/* =============================================
   product_review.css
   Styles scoped to the Product Rating & Review Form
   ============================================= */

/* Section wrapper */
.product-review-form {
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

/* Card container */
.form-container {
  max-width: 670px;
  margin: 112px auto auto;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Alert / success message */
.alert-msg {
  position: relative;
  background: #b1e7c178;
  width: 100%;
  margin: auto;
  border: 1px solid green;
  border-radius: 3px;
  color: green;
  padding: 8px 5px;
  box-shadow:
    rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px,
    rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px,
    rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

/* Inline field / form-level error */
.error-message {
  color: red;
  font-size: 13px;
  margin-top: 4px;
}

/* Form heading */
.review-title {
  text-align: center;
  margin-bottom: 15px;
  color: #333;
}

/* "* marked fields are mandatory" note */
.note {
  text-align: center;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Red asterisk */
.required {
  color: red;
}

/* ---- Form internals ---- */

.pro-review-form .form-group {
  margin-bottom: 20px;
}

.pro-review-form input,
.pro-review-form textarea,
.pro-review-form select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s;
}

.pro-review-form input:focus,
.pro-review-form textarea:focus,
.pro-review-form select:focus {
  border-color: #4caf50;
}

.pro-review-form select {
  border-color: #4caf50;
  color: rgb(236, 178, 17);
}

.pro-review-form label {
  color: darkgreen;
  font-size: 15px;
}

/* Submit button */
.submit-btn {
  display: block;
  margin: auto;
  width: unset;
  padding: 12px;
  background: #0f5937;
  color: white;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #45a049;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .form-container {
    margin-top: 80px;
    padding: 20px 15px;
  }
}

@media (max-width: 480px) {
  .form-container {
    margin-top: 60px;
    padding: 15px 10px;
  }
}