/* =========================================================
   review/index.html — "Leave a review" page
   Extends css/style.css (tokens, buttons, form fields, nav,
   footer, social icons). This file only adds the review bits.
   ========================================================= */

[hidden]{display:none !important}

/* Current page marker in the nav */
.nav-current{color:#fff !important;position:relative}
.nav-current::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:#E03A30;border-radius:2px}

/* ---------- Hero ---------- */
.rev-hero{max-width:780px;text-align:center;padding-bottom:clamp(44px,7vw,72px)}
.rev-hero h1{margin-top:22px}
.rev-lede{margin-left:auto;margin-right:auto;max-width:56ch}
.rev-cta-row{justify-content:center;margin-top:32px}
.rev-stars{display:flex;justify-content:center;gap:9px;margin-top:24px}
.rev-star{font-size:clamp(30px,5vw,40px);line-height:1;color:#FBBC04;text-shadow:0 4px 14px rgba(251,188,4,.4);animation:revStarPop .5s cubic-bezier(.2,1.5,.4,1) backwards}
.rev-star:nth-child(1){animation-delay:.05s}
.rev-star:nth-child(2){animation-delay:.14s}
.rev-star:nth-child(3){animation-delay:.23s}
.rev-star:nth-child(4){animation-delay:.32s}
.rev-star:nth-child(5){animation-delay:.41s}
@keyframes revStarPop{from{opacity:0;transform:scale(.4) rotate(-18deg)}to{opacity:1;transform:none}}
.rev-fb-btn{display:inline-flex;align-items:center;gap:10px}
.rev-fb-btn svg{flex:none;color:#fff}
.rev-microtrust{font-size:13px;line-height:1.6;color:#8b929b;margin:22px auto 0;max-width:52ch}

/* ---------- Write section ---------- */
#review-form{scroll-margin-top:70px}
.rev-write-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,52px);align-items:start}
.rev-chips{display:flex;flex-wrap:wrap;gap:9px;margin-top:26px}
.rev-chip{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.16);color:#c2c8d0;font-family:'Inter',sans-serif;font-weight:600;font-size:13.5px;line-height:1.35;text-align:left;border-radius:999px;padding:9px 15px;cursor:pointer;transition:border-color .15s,color .15s,background .15s}
.rev-chip:hover{border-color:rgba(224,58,48,.5);color:#fff;background:rgba(224,58,48,.12)}
.rev-chip:focus-visible{outline:2px solid #E03A30;outline-offset:2px}
.rev-chip[aria-pressed="true"]{background:rgba(127,216,160,.12);border-color:rgba(127,216,160,.45);color:#7fd8a0}
.rev-chip[aria-pressed="true"]::before{content:"✓ ";font-weight:700}
.rev-privacy-tip{margin-top:22px;font-size:13.5px;line-height:1.6;color:#9aa0a8;border-left:3px solid #E03A30;padding-left:12px}
.rev-privacy-tip strong{color:#fff}

.rev-form-card{background:linear-gradient(155deg,rgba(255,255,255,.075),rgba(255,255,255,.025));box-shadow:0 16px 40px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.07)}
.rev-form-card fieldset{border:0;margin:0;padding:0;min-width:0}
.rev-form-card legend{padding:0}
.rev-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* Star picker: inputs run 5..1 in the markup and the row is reversed, so "this star and the ones
   before it" is just "this label and the labels after it" in CSS */
.rev-rate-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.rev-rate-stars{display:inline-flex;flex-direction:row-reverse;gap:4px}
.rev-rate-stars input{position:absolute;opacity:0;width:1px;height:1px}
.rev-rate-stars label{cursor:pointer;font-size:36px;line-height:1;color:#4a535d;padding:0 2px;transition:color .12s,transform .12s}
.rev-rate-stars label:hover,.rev-rate-stars label:hover~label,
.rev-rate-stars input:checked~label{color:#FBBC04}
.rev-rate-stars label:hover{transform:scale(1.12)}
.rev-rate-stars input:focus-visible+label{outline:2px solid #E03A30;outline-offset:2px;border-radius:6px}
.rev-rate-word{font-family:'Poppins',sans-serif;font-weight:700;font-size:15px;color:#fff}

.rev-count{display:block;text-align:right;font-size:12px;color:#8b929b;margin-top:5px}
.rev-hint{font-size:12.5px;line-height:1.5;color:#8b929b;margin-top:-6px}
.rev-publish{display:grid;gap:8px}
.rev-choice{display:flex;align-items:flex-start;gap:10px;padding:12px 13px;border:1px solid rgba(255,255,255,.18);border-radius:10px;cursor:pointer;font-size:14.5px;color:#e6e9ed;line-height:1.4}
.rev-choice:hover{border-color:rgba(255,255,255,.35)}
.rev-choice input{margin:2px 0 0;accent-color:#E03A30;flex:none;width:16px;height:16px}
.rev-choice:has(input:checked){border-color:#E03A30;background:rgba(224,58,48,.1)}
.rev-error{font-size:13.5px;font-weight:600;color:#ff9d96;margin:0}
.rev-fail{padding:16px;border:1px solid rgba(255,157,150,.45);border-radius:12px;background:rgba(224,58,48,.1)}
.rev-fail p{font-size:14px;line-height:1.55;color:#e6e9ed;margin:0 0 12px}
.rev-fail .rev-fail-title{font-family:'Poppins',sans-serif;font-weight:700;font-size:15.5px;color:#ff9d96;margin-bottom:6px}
.rev-fail strong{color:#fff}
.rev-fail-actions{display:flex;flex-wrap:wrap;gap:10px}
.rev-fail-actions .btn-secondary{padding:11px 16px;font-size:14px}
@media(max-width:520px){.rev-fail-actions .btn-secondary{width:100%;text-align:center}}
.btn-submit{cursor:pointer}
.btn-submit:disabled{opacity:.6;cursor:wait}

.rev-fb-box{margin:0 0 18px;padding:16px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.04)}
.rev-fb-box p{font-size:14px;color:#c2c8d0;margin:0 0 12px}
.rev-back{display:inline-block}
#revThanks:focus{outline:none}

/* ---------- Policy ---------- */
.rev-policy{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:12px}
.rev-policy li{position:relative;padding:16px 18px 16px 46px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:14px;font-size:15px;line-height:1.6;color:#c2c8d0}
.rev-policy li::before{content:"✓";position:absolute;left:18px;top:15px;font-weight:800;color:#E03A30}
.rev-policy strong{color:#fff}
.rev-policy a{color:#fff}
.rev-policy-note{margin-top:18px;font-size:12.5px;line-height:1.6;color:#7d8794;text-align:center}

/* ---------- Referral ---------- */
.rev-referral{text-align:center}
.rev-center-lede{margin-left:auto;margin-right:auto;text-align:center}
.rev-referral-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:30px}
.rev-referral-actions button{cursor:pointer;border:0}
.rev-status{font-size:13px;font-weight:600;color:#7fd8a0;margin-top:11px;min-height:19px;text-align:center}

/* ---------- Responsive ---------- */
@media(max-width:880px){.rev-write-grid{grid-template-columns:1fr}}
@media(max-width:520px){
  .rev-cta-row .btn-primary,.rev-cta-row .btn-secondary,
  .rev-referral-actions .btn-primary,.rev-referral-actions .btn-secondary{width:100%;justify-content:center;text-align:center}
  .rev-rate-stars label{font-size:40px}
}
@media(prefers-reduced-motion:reduce){
  .rev-star{animation:none}
  .rev-chip,.rev-rate-stars label{transition:none}
  .rev-rate-stars label:hover{transform:none}
}

#policy{scroll-margin-top:70px}
