/*
 * RateTheReg.com – Public UI styles
 * Namespaced to avoid theme conflicts.
 */

.ratethereg-ui{max-width:860px;margin:0 auto;}

.ratethereg-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  box-shadow:0 10px 28px rgba(0,0,0,.06);
  padding:28px;
}

.ratethereg-card__title{
  margin:0 0 8px;
  font-size:32px;
  line-height:1.15;
  font-weight:800;
}

.ratethereg-card__desc{
  margin:0 0 18px;
  color:rgba(0,0,0,.65);
  font-size:15px;
  line-height:1.45;
}

.ratethereg-form{margin:0;}

.ratethereg-field{margin:0 0 16px;}

.ratethereg-label{
  display:block;
  margin:0 0 6px;
  font-weight:600;
  font-size:14px;
  color:rgba(0,0,0,.75);
}

.ratethereg-input,
.ratethereg-select,
.ratethereg-textarea{
  width:100%;
  box-sizing:border-box;
  background:#f2f4f7;
  border:1px solid rgba(0,0,0,.12);
  border-radius:10px;
  padding:12px 14px;
  font-size:16px;
  outline:none;
}

.ratethereg-textarea{min-height:140px;resize:vertical;}

.ratethereg-input:focus,
.ratethereg-select:focus,
.ratethereg-textarea:focus{
  border-color:rgba(0,0,0,.28);
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

.ratethereg-row{display:grid;grid-template-columns:1fr;gap:14px;}
@media(min-width:720px){.ratethereg-row{grid-template-columns:1fr 1fr;}}

.ratethereg-actions{margin-top:16px;}

.ratethereg-btn{
  width:100%;
  border:0;
  border-radius:10px;
  padding:12px 16px;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
}

/* Let theme / WP decide button color, but keep layout */
.ratethereg-btn{background:var(--e-global-color-primary, #5b74ff);color:#fff;}
.ratethereg-btn:hover{filter:brightness(.97);}

.ratethereg-note{margin:12px 0 0;color:rgba(0,0,0,.65);font-size:13px;}

.ratethereg-message{margin-top:12px;font-size:14px;}

/* Auth tabs */
.ratethereg-tabs{display:flex;gap:10px;margin:16px 0 18px;}
.ratethereg-tab{
  flex:1;
  border:1px solid rgba(0,0,0,.12);
  background:#f6f7f9;
  color:rgba(0,0,0,.75);
  border-radius:10px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
}
.ratethereg-tab.is-active{background:#111827;color:#fff;border-color:#111827;}
.ratethereg-pane{display:none;}
.ratethereg-pane.is-active{display:block;}

.ratethereg-field--inline{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.ratethereg-checkbox{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:14px;color:rgba(0,0,0,.75);}
.ratethereg-link{font-size:14px;text-decoration:none;color:var(--e-global-color-primary, #5b74ff);font-weight:700;}
.ratethereg-link:hover{text-decoration:underline;}

.ratethereg-message--error{padding:10px 12px;border-radius:10px;background:#fef2f2;border:1px solid rgba(220,38,38,.25);color:#991b1b;}
.ratethereg-message--success{padding:10px 12px;border-radius:10px;background:#ecfdf5;border:1px solid rgba(16,185,129,.25);color:#065f46;}

/* Link styled as button (used for logout and login/register link panels) */
.ratethereg-btn--link{display:inline-block;text-align:center;text-decoration:none;line-height:1;}

/* Make the Turnstile widget sit nicely */
.ratethereg-turnstile{margin:10px 0 0;}


/* --------------------------------------------------------------------------
   FRONTEND FEATURES: Social share buttons
----------------------------------------------------------------------------*/
.rtr-share{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0}
.rtr-share-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;color:#111827;text-decoration:none;font-weight:700;font-size:14px;line-height:1;cursor:pointer;transition:transform .06s ease, box-shadow .12s ease, background .12s ease}
.rtr-share-btn:hover{box-shadow:0 6px 18px rgba(0,0,0,.08);transform:translateY(-1px)}
.rtr-share-btn:active{transform:translateY(0)}
.rtr-share-ico{display:inline-flex}
.rtr-share-facebook{background:linear-gradient(180deg,#ffffff,#f8fafc)}
.rtr-share-x{background:linear-gradient(180deg,#ffffff,#f8fafc)}
.rtr-share-whatsapp{background:linear-gradient(180deg,#ffffff,#f8fafc)}
.rtr-share-copy{background:linear-gradient(180deg,#ffffff,#f8fafc)}
.rtr-share-toast{margin-left:6px;font-weight:700;font-size:13px;opacity:0;transform:translateY(2px);transition:opacity .15s ease, transform .15s ease;color:#111827}
.rtr-share-toast.is-show{opacity:1;transform:translateY(0)}


/* --------------------------------------------------------------------------
   FRONTEND FEATURES: Review proof media (image/video)
----------------------------------------------------------------------------*/
.ratethereg-proof{margin-top:12px;padding:12px;border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb}
.ratethereg-proof__title{font-weight:800;font-size:13px;color:#111827;margin-bottom:10px;letter-spacing:.02em}
.ratethereg-proof__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.ratethereg-proof__item{display:block;border:1px solid rgba(0,0,0,.06);border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.ratethereg-proof__img{display:block;width:100%;height:auto}
.ratethereg-proof__item--video video{width:100%;height:auto;display:block}

/* Proof lightbox */
.ratethereg-proof__img{max-height:380px;object-fit:cover}
.rtr-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:999999;display:none;align-items:center;justify-content:center;padding:24px}
.rtr-lightbox.is-open{display:flex}
.rtr-lightbox__inner{max-width:92vw;max-height:92vh;position:relative}
.rtr-lightbox__img{max-width:92vw;max-height:92vh;border-radius:14px;display:block}
.rtr-lightbox__close{position:absolute;top:-14px;right:-14px;width:34px;height:34px;border-radius:999px;border:0;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.25);cursor:pointer;font-weight:800;line-height:34px}
