:root{
  --sr-primary:#1976d2;
  --sr-primary-2:#2196f3;
  --sr-primary-dark:#0d47a1;
  --sr-primary-soft:#eaf4ff;
  --sr-primary-softer:#f5faff;
  --sr-text:#172033;
  --sr-heading:#10233f;
  --sr-muted:#66758a;
  --sr-line:#dbe8f5;
  --sr-line-strong:#c5dcf1;
  --sr-white:#fff;
  --sr-bg:#f6faff;
  --sr-star:#f5b301;
  --sr-success:#16a34a;
  --sr-success-bg:#eaf8ef;
  --sr-danger:#991b1b;
  --sr-danger-bg:#fff1f2;
}

.sr-hub,.sr-form-page,.sr-public{font-family:Arial,Helvetica,sans-serif;color:var(--sr-text)}

/* ===== QR HUB ===== */
.sr-hub{
  min-height:68vh;
  display:grid;
  place-items:center;
  padding:42px 18px;
  background:
    radial-gradient(circle at 12% 12%,rgba(33,150,243,.14),transparent 30%),
    radial-gradient(circle at 88% 82%,rgba(25,118,210,.09),transparent 32%),
    linear-gradient(135deg,#f8fbff 0%,#eef7ff 100%);
}
.sr-hero{
  position:relative;
  overflow:hidden;
  width:min(680px,100%);
  padding:42px;
  border:1px solid var(--sr-line);
  border-radius:24px;
  background:rgba(255,255,255,.97);
  box-shadow:0 20px 60px rgba(25,118,210,.12);
  text-align:center;
}
.sr-hero:before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:5px;
  background:linear-gradient(90deg,var(--sr-primary),var(--sr-primary-2));
}
.sr-kicker{
  display:inline-block;
  margin-bottom:12px;
  padding:7px 12px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--sr-primary),var(--sr-primary-2));
  color:#fff;
  box-shadow:0 5px 14px rgba(25,118,210,.18);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.sr-hero h1,.sr-form-card h1,.sr-public-head h1{
  margin:0;
  color:var(--sr-heading);
  font-size:clamp(29px,5vw,44px);
  line-height:1.08;
}
.sr-hero>p{
  margin:16px auto 26px;
  max-width:560px;
  color:var(--sr-muted);
  font-size:17px;
  line-height:1.6;
}
.sr-hub-actions{display:grid;gap:12px}
.sr-btn{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 18px;
  border-radius:15px;
  text-decoration:none;
  text-align:left;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease;
}
.sr-btn:hover{transform:translateY(-2px)}
.sr-btn b{display:block;font-size:16px}
.sr-btn small{display:block;margin-top:3px;font-size:12px;opacity:.76}
.sr-btn-google{
  border:1px solid var(--sr-line-strong);
  background:#fff;
  color:var(--sr-heading);
  box-shadow:0 5px 18px rgba(25,118,210,.06);
}
.sr-btn-google:hover{
  border-color:#9cc7eb;
  background:#f9fcff;
  box-shadow:0 10px 24px rgba(25,118,210,.11);
}
.sr-btn-site{
  border:1px solid transparent;
  background:linear-gradient(90deg,var(--sr-primary),var(--sr-primary-2));
  color:#fff;
  box-shadow:0 8px 22px rgba(25,118,210,.22);
}
.sr-btn-site:hover{box-shadow:0 12px 28px rgba(25,118,210,.28)}
.sr-btn-disabled{
  border:1px dashed #c7d8e8;
  background:#f7faff;
  color:#94a3b8;
  cursor:not-allowed;
}
.sr-google-g,.sr-site-icon{
  display:grid;
  place-items:center;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:11px;
  font-size:24px;
  font-weight:900;
}
.sr-google-g{background:#fff;border:1px solid #dbe7f2;color:#4285f4}
.sr-site-icon{background:rgba(255,255,255,.18);color:#fff}
.sr-existing{
  display:inline-block;
  margin-top:22px;
  color:var(--sr-primary);
  font-weight:700;
  text-decoration:none;
}
.sr-existing:hover{color:var(--sr-primary-dark);text-decoration:underline}

/* ===== REVIEW FORM ===== */
.sr-form-page{
  min-height:70vh;
  padding:40px 16px;
  background:
    radial-gradient(circle at 85% 10%,rgba(33,150,243,.10),transparent 30%),
    linear-gradient(180deg,#f8fbff 0%,var(--sr-bg) 100%);
}
.sr-form-card{
  position:relative;
  overflow:hidden;
  width:min(720px,100%);
  margin:auto;
  padding:34px;
  border:1px solid var(--sr-line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 16px 50px rgba(25,118,210,.10);
}
.sr-form-card:before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:4px;
  background:linear-gradient(90deg,var(--sr-primary),var(--sr-primary-2));
}
.sr-back{
  display:inline-flex;
  align-items:center;
  margin-bottom:18px;
  color:var(--sr-primary);
  font-weight:700;
  text-decoration:none;
}
.sr-back:hover{color:var(--sr-primary-dark)}
.sr-form-lead{color:var(--sr-muted);line-height:1.55}
.sr-form{display:grid;gap:18px;margin-top:24px}
.sr-form label>span,.sr-form legend{
  display:block;
  margin-bottom:7px;
  font-weight:800;
  color:var(--sr-heading);
}
.sr-form input,.sr-form select,.sr-form textarea{
  box-sizing:border-box;
  width:100%;
  padding:13px 14px;
  border:1px solid var(--sr-line-strong);
  border-radius:11px;
  background:#fff;
  color:var(--sr-text);
  font:inherit;
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.sr-form input:hover,.sr-form select:hover,.sr-form textarea:hover{border-color:#a9cce9}
.sr-form input:focus,.sr-form select:focus,.sr-form textarea:focus{
  border-color:var(--sr-primary-2);
  box-shadow:0 0 0 3px rgba(33,150,243,.13);
  background:#fbfdff;
}
.sr-form textarea{min-height:140px;resize:vertical}
.sr-form button{
  padding:14px 18px;
  border:0;
  border-radius:12px;
  background:linear-gradient(90deg,var(--sr-primary),var(--sr-primary-2));
  color:#fff;
  box-shadow:0 8px 20px rgba(25,118,210,.20);
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease;
}
.sr-form button:hover{transform:translateY(-1px);box-shadow:0 11px 25px rgba(25,118,210,.27)}
.sr-policy{color:#7a8ba0;line-height:1.45}
.sr-errors{
  display:grid;
  gap:6px;
  margin:18px 0;
  padding:13px;
  border:1px solid #fecaca;
  border-radius:11px;
  background:var(--sr-danger-bg);
  color:var(--sr-danger);
  font-size:14px;
}
.sr-form fieldset{margin:0;padding:0;border:0}
.sr-star-input{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px}
.sr-star-input input{position:absolute;opacity:0;pointer-events:none}
.sr-star-input label{font-size:38px;line-height:1;color:#d8e3ed;cursor:pointer;transition:color .12s ease,transform .12s ease}
.sr-star-input label:hover,.sr-star-input label:hover~label,.sr-star-input input:checked~label{color:var(--sr-star)}
.sr-star-input label:hover{transform:scale(1.06)}
.sr-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.sr-thanks .sr-check{
  display:grid;
  place-items:center;
  width:68px;
  height:68px;
  margin:0 auto 18px;
  border-radius:50%;
  background:var(--sr-primary-soft);
  color:var(--sr-primary);
  box-shadow:inset 0 0 0 1px #cfe5f8;
  font-size:34px;
  font-weight:900;
}
.sr-thanks-google{margin-top:22px}

/* ===== PUBLIC REVIEWS ===== */
.sr-public{
  max-width:1180px;
  margin:auto;
  padding:38px 18px 58px;
}
.sr-public-head{
  display:flex;
  justify-content:space-between;
  gap:30px;
  align-items:flex-end;
  margin-bottom:28px;
  padding:26px;
  border:1px solid var(--sr-line);
  border-radius:20px;
  background:linear-gradient(135deg,#fff 0%,#f4f9ff 100%);
  box-shadow:0 8px 28px rgba(25,118,210,.07);
}
.sr-public-head p{max-width:760px;color:var(--sr-muted);font-size:16px;line-height:1.55}
.sr-rating-box{
  display:flex;
  gap:14px;
  align-items:center;
  flex:0 0 auto;
  padding:15px 18px;
  border:1px solid #cfe2f4;
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 18px rgba(25,118,210,.07);
}
.sr-rating-box strong{font-size:34px;color:var(--sr-primary-dark)}
.sr-rating-box small{display:block;margin-top:4px;color:var(--sr-muted)}
.sr-stars,.sr-admin-stars{color:var(--sr-star);letter-spacing:1px}
.sr-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.sr-review-card{
  position:relative;
  overflow:hidden;
  padding:20px;
  border:1px solid var(--sr-line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 5px 22px rgba(25,118,210,.055);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}
.sr-review-card:before{
  content:"";
  position:absolute;
  top:0;left:0;
  width:100%;height:3px;
  background:linear-gradient(90deg,var(--sr-primary),var(--sr-primary-2));
  opacity:.72;
}
.sr-review-card:hover{
  transform:translateY(-2px);
  border-color:#c7def2;
  box-shadow:0 10px 28px rgba(25,118,210,.10);
}
.sr-review-top{display:flex;justify-content:space-between;gap:10px}
.sr-review-top b{display:block;font-size:16px;color:var(--sr-heading)}
.sr-review-top span{display:block;margin-top:4px;color:var(--sr-muted);font-size:12px}
.sr-review-meta{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}
.sr-review-meta>span{
  padding:5px 8px;
  border-radius:999px;
  background:var(--sr-primary-soft);
  color:var(--sr-primary-dark);
  font-size:11px;
  font-weight:700;
}
.sr-review-meta .sr-verified{background:var(--sr-success-bg);color:#16803c}
.sr-review-card p{margin:0;color:#415168;line-height:1.55}
.sr-empty{
  grid-column:1/-1;
  padding:40px;
  text-align:center;
  border:1px dashed var(--sr-line-strong);
  border-radius:16px;
  background:var(--sr-primary-softer);
  color:var(--sr-muted);
}
.sr-pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin-top:24px}
.sr-pagination a{color:var(--sr-primary);font-weight:700;text-decoration:none}
.sr-pagination a:hover{color:var(--sr-primary-dark);text-decoration:underline}
.sr-public-cta{
  position:relative;
  overflow:hidden;
  margin-top:34px;
  padding:28px;
  border-radius:18px;
  background:linear-gradient(90deg,var(--sr-primary),var(--sr-primary-2));
  box-shadow:0 12px 32px rgba(25,118,210,.20);
  color:#fff;
  text-align:center;
}
.sr-public-cta:after{
  content:"";
  position:absolute;
  width:190px;height:190px;
  right:-70px;top:-95px;
  border-radius:50%;
  background:rgba(255,255,255,.09);
}
.sr-public-cta h2{position:relative;z-index:1;margin:0 0 7px;font-size:27px}
.sr-public-cta p{position:relative;z-index:1;margin:0 0 16px;color:rgba(255,255,255,.88)}
.sr-public-cta a{
  position:relative;
  z-index:1;
  display:inline-block;
  padding:11px 17px;
  border:1px solid rgba(255,255,255,.6);
  border-radius:10px;
  background:#fff;
  color:var(--sr-primary-dark);
  box-shadow:0 5px 14px rgba(13,71,161,.14);
  font-weight:900;
  text-decoration:none;
  transition:transform .15s ease,box-shadow .15s ease;
}
.sr-public-cta a:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(13,71,161,.20)}

@media(max-width:850px){
  .sr-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sr-public-head{align-items:flex-start;flex-direction:column}
  .sr-rating-box{width:auto}
}
@media(max-width:580px){
  .sr-hero,.sr-form-card{padding:24px 18px;border-radius:18px}
  .sr-hub{padding:24px 12px}
  .sr-review-grid{grid-template-columns:1fr}
  .sr-public{padding:28px 12px}
  .sr-public-head{padding:20px 16px}
  .sr-rating-box{box-sizing:border-box;width:100%}
  .sr-review-top{align-items:flex-start}
  .sr-form-page{padding:22px 10px}
}

@media(prefers-reduced-motion:reduce){
  .sr-btn,.sr-form button,.sr-review-card,.sr-star-input label,.sr-public-cta a{transition:none}
  .sr-btn:hover,.sr-form button:hover,.sr-review-card:hover,.sr-public-cta a:hover{transform:none}
}
