/* ===============================
   School Review System
================================== */

.srs-review-wrapper {
  max-width: 900px;
  margin: 0px auto;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  /* box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08); */
}

.srs-review-wrapper h2 {
  margin: 0 0 10px;
  font-size: 34px;
  color: #0d2b6b;
  font-weight: 700;
  text-align: center;
}

.srs-review-wrapper .subtitle {
  text-align: center;
  color: #777;
  margin-bottom: 40px;
}

.srs-field {
  margin-bottom: 28px;
}

.srs-field label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.srs-field label span {
  color: #e53935;
}

.srs-field input[type="text"],
.srs-field textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  transition: 0.3s;
  box-sizing: border-box;
}

.srs-field textarea {
  resize: vertical;
  min-height: 180px;
}

.srs-field input:focus,
.srs-field textarea:focus {
  outline: none;
  border-color: #0d2b6b;
  box-shadow: 0 0 0 4px rgba(13, 43, 107, 0.08);
}

/*==========================
Profile Upload
===========================*/

.srs-profile-upload {
  display: flex;
  align-items: center;
  gap: 20px;
}

#profile-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eee;
}

#profile_image {
  display: none;
}

.srs-upload-profile {
  width: 220px;
  height: 150px;

  border: 2px dashed #d5dce7;
  border-radius: 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: 0.3s;

  background: #fafbfc;

  color: #0d2b6b;

  font-weight: 600;

  text-align: center;
  padding-top: 20px;
}

.srs-upload-profile:hover {
  border-color: #0d2b6b;

  background: #eef5ff;
}

.srs-upload-profile i {
  font-size: 46px;

  margin-bottom: 12px;

  color: #0d2b6b;
}

.srs-upload-profile small {
  margin-top: 8px;

  color: #888;

  font-size: 12px;

  font-weight: 400;
}

/*==========================
Rating
===========================*/

.srs-stars {
  display: flex;
  gap: 10px;
  font-size: 38px;
}

.srs-star {
  cursor: pointer;
  color: #d5d5d5;
  transition: 0.2s;
}

.srs-star.active,
.srs-star:hover {
  color: #fdba12;
  transform: scale(1.12);
}

/*==========================
Dropzone
===========================*/

.srs-drop-area {
  border: 2px dashed #c9d4e5;
  border-radius: 12px;
  padding: 45px;
  text-align: center;
  transition: 0.3s;
  background: #fafcff;
}

.srs-drop-area.dragging {
  border-color: #0d2b6b;
  background: #eef4ff;
}

.drop-message strong {
  display: block;
  font-size: 20px;
  margin-bottom: 12px;
  color: #0d2b6b;
}

.drop-message {
  color: #666;
}

/* .srs-upload-btn {
  margin-top: 20px;
  background: #ee6161;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 13px 28px;
  cursor: pointer;
  transition: 0.3s;
}

.srs-upload-btn:hover {
  background: #163f91;
} */

.srs-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    background: #f45b63;
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.srs-upload-btn:hover {
    background: #e94b54;
    transform: translateY(-1px);
}

/*==========================
Gallery
===========================*/

/* Hide the native file input */
#gallery_images {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.srs-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.preview-item {
  position: relative;
}

.preview-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.remove-image {
  position: absolute;
  right: -8px;
  top: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f44336;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

/*==========================
Submit
===========================*/

.srs-submit-btn {
  width: 100%;
  background: #ee6161;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.srs-submit-btn:hover {
  background: #ab3e3e;
  transform: translateY(-2px);
}

/*==========================
Messages
===========================*/

#srs-message {
  margin-top: 20px;
  text-align: center;
  font-weight: 600;
}

#srs-message.success {
  color: #1b8a3d;
}

#srs-message.error {
  color: #d32f2f;
}

/*==========================
Responsive
===========================*/

@media (max-width: 768px) {
  .srs-review-wrapper {
    margin: 40px 0 0 0;
    padding: 0px;
  }
  .srs-review-wrapper h2 {
    font-size: 26px;
  }
  .srs-submit-btn {
    padding: 12px;
    font-size: 16px;
  }
  .srs-upload-btn {
    padding: 11px 32px;
    font-size: 16px;
  }

  .srs-profile-upload {
    flex-direction: column;
    align-items: flex-start;
  }

  .srs-stars {
    font-size: 32px;
  }

  .srs-drop-area {
    padding: 25px;
  }
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 24px 36px;
}
.hero h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  color: #1c2b56;
  letter-spacing: 0.5px;
}
.hero .underline {
  width: 56px;
  height: 4px;
  background: #e6483f;
  margin: 14px auto;
  border-radius: 2px;
}
.hero p {
  color: #6b7280;
  font-size: 1.05rem;
}

/* Stats card */
.stats-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(28, 43, 86, 0.06);
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 38px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat-block {
  text-align: center;
}
.stars-row {
  color: #f4a623;
  font-size: 1.4rem;
  letter-spacing: 6px;
  margin-bottom: 10px;
}
.stat-number {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  color: #1c2b56;
}
.stat-number span {
  font-size: 1.3rem;
  font-weight: 600;
  color: #6b7280;
}
.stat-label {
  color: #6b7280;
  font-size: 0.95rem;
  margin-top: 6px;
}
.stat-label strong {
  color: #e6483f;
  font-weight: 700;
}
.divider {
  width: 1px;
  height: 96px;
  background: #e2e2ea;
}
.stat-recommend {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
}
.heart-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fde7e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-recommend .stat-label {
  margin-top: 6px;
  line-height: 1.4;
}

/* Reviews section */
.reviews-section {
  max-width: 980px;
  margin: 0 auto;
}
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.reviews-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1c2b56;
  letter-spacing: 0.8px;
}
.write-review {
  color: #e6483f;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border-bottom: 2px solid #e6483f;
  padding-bottom: 4px;
}

.review-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(28, 43, 86, 0.06);
  padding: 28px 30px;
  margin-bottom: 24px;
}
.review-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.reviewer-info {
  flex: 1;
  min-width: 0;
}
.reviewer-name {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1c2b56;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fde7e6;
  color: #e6483f;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-top: 8px;
}
.review-meta {
  text-align: right;
  flex-shrink: 0;
}
.review-meta .srs-stars {
  font-size: 20px;
}
.review-meta .srs-stars {
  gap: 3px;
}
.stars-small {
  color: #f4a623;
  font-size: 1rem;
  letter-spacing: 3px;
}
.review-date {
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}
.review-text {
  color: #3f4657;
  line-height: 1.65;
  font-size: 0.98rem;
  margin: 18px 0 18px;
}
.review-images {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.review-images img {
  border-radius: 10px;
  object-fit: cover;
  width: 150px;
  height: 105px;
  flex: 1 1 150px;
  max-width: 180px;
}

.view-all-wrap {
  text-align: center;
  margin-top: 8px;
}
.view-all-btn {
  background: #fff;
  border: 2px solid #e6483f;
  color: #e6483f;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 44px;
  border-radius: 30px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.view-all-btn:hover {
  background: #e6483f;
  color: #fff;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.9rem;
  }
  .stats-card {
    gap: 24px;
    padding: 28px 20px;
  }
  .divider {
    display: none;
  }
  .review-top {
    flex-wrap: wrap;
  }
  .review-meta {
    text-align: left;
    margin-left: 76px;
  }
  .review-images img {
    height: 90px;
  }
}