:root {
  --primary: #1a3c6e;
  --accent: #f5a623;
  --accent2: #e8f4fd;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #718096;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --star-filled: #f5a623;
  --star-empty: #d1d5db;
  --radius: 18px;
  --shadow: 0 4px 32px rgba(26,60,110,0.10);
  --shadow-hover: 0 12px 48px rgba(26,60,110,0.18);
  --gradient: linear-gradient(135deg, #1a3c6e 0%, #2563ab 60%, #f5a623 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: #f4f8fb;
  color: var(--text-dark);
}

/* ─── HERO ─── */
.rate-hero {
  background: var(--gradient);
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rate-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: rgba(245,166,35,0.13);
  border-radius: 50%;
}
.rate-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 380px; height: 380px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.rate-hero h6 {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.rate-hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 14px;
}
.rate-hero p {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px 0;
  margin-bottom: 0;
}
.stat-item {
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.stat-stars { color: var(--star-filled); font-size: 1.1rem; }

/* ─── SECTION ─── */
.reviews-section {
  padding: 60px 0 40px;
}
.section-label {
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 3.2rem);
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 6px;
}
.section-sub {
  color: #fbc311;
  font-size: 15px;
}

/* ─── ADD TESTIMONIAL BUTTON ─── */
.btn-add-testimonial {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 13px 32px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(245,166,35,0.35);
  transition: all 0.28s ease;
  letter-spacing: 0.3px;
}
.btn-add-testimonial:hover {
  background: #d4891a;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,166,35,0.45);
}
.btn-add-testimonial .plus-icon {
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
}

/* ─── FILTER PILLS ─── */
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.pill {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}
.pill:hover, .pill.active {
  background: #f5a623;
  color: var(--white);
  border-color: #f5a623;
}

/* ─── REVIEW CARDS ─── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 26px 22px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease both;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: -10px; right: 20px;
  font-size: 100px;
  color: var(--accent);
  opacity: 0.10;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.review-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
  background: var(--primary);
}
.reviewer-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.2;
}
.reviewer-role {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}
.stars-row {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
}
.star {
  font-size: 16px;
  color: var(--star-empty);
}
.star.filled { color: var(--star-filled); }
.review-text {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.75;
}
.review-date {
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e8f4fd;
  color: #2563ab;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: auto;
}

/* ─── MODAL OVERLAY ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,40,0.55);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: 24px;
  padding: 10px 15px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  opacity: 0;
  position: relative;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text-dark); }
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* ─── FORM ─── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group label span { color: #e53e3e; }
.form-control-custom {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: #f9fbfd;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,60,110,0.10);
  background: var(--white);
}
textarea.form-control-custom { resize: vertical; min-height: 100px; }

/* ─── STAR RATING INPUT ─── */
.star-rating-input {
  display: flex;
  gap: 6px;
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.star-rating-input input { display: none; }
.star-rating-input label {
  font-size: 30px;
  color: var(--star-empty);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  margin-bottom: 0;
  font-weight: 400;
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  color: var(--star-filled);
  transform: scale(1.15);
}

/* ─── SUBMIT BTN ─── */
.btn-submit {
  width: 100%;
padding: 14px;
background: var(--gradient);
color: var(--white);
border: none;
border-radius: 12px;
font-family: 'Poppins', sans-serif;
font-size: 15px;
font-weight: 600;
cursor: pointer;
margin-top: 8px;
transition: opacity 0.2s, transform 0.2s;
letter-spacing: 0.3px;
}
.btn-submit:hover { 
  opacity: 0.9; 
  transform: translateY(-1px); 
}

/* ─── TOAST ─── */
.toast-notif {
  position: fixed;
  bottom: 30px; right: 30px;
  background: #1a3c6e;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  z-index: 99999;
}
.toast-notif.show { transform: translateY(0); opacity: 1; }
.toast-icon {
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── FOOTER ─── */
.footer-bottom {
  /*background: var(--primary);*/
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 22px;
  font-size: 13px;
  margin-top: 60px;
}
.footer-bottom strong { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 576px) {
  .modal-box { padding: 28px 20px; }
  .reviews-grid { grid-template-columns: 1fr; }
}
.empty-state-icon p {
  font-size: 16px;
  line-height: 25px;
  color: #ffffff;
  text-align: justify;
}