/*=============== REVIEW BUTTON — STANDALONE ===============*/
/* This file is completely independent. Does NOT affect any existing styles. */

/* ── Floating button ── */
.review-float-btn {
  position: fixed;
  bottom: 8.5rem;  /* above scroll-up button */
  right: 1.5rem;
  z-index: 199;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--first-color);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  z-index: 199;
  box-shadow: 0 4px 20px hsla(var(--hue), var(--sat), var(--lig), 0.45);
  transition: transform 0.3s, background 0.3s;
}

.review-float-btn:hover {
  transform: scale(1.13);
  background: var(--first-color-alt);
}

/* Pulse rings */
.review-float-btn::before,
.review-float-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--first-color);
  opacity: 0;
  animation: rfb-pulse 2.4s ease-out infinite;
}

.review-float-btn::after {
  animation-delay: 1.2s;
}

@keyframes rfb-pulse {
  0%   { transform: scale(1);   opacity: 0.65; }
  75%  { transform: scale(1.8); opacity: 0;    }
  100% { transform: scale(1.8); opacity: 0;    }
}

/* RTL */
[dir="rtl"] .review-float-btn {
  right: auto;
  left: 1.5rem;
}

/* ── Modal overlay ── */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: hsla(0, 0%, 0%, 0.55);
  backdrop-filter: blur(5px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.review-modal-overlay.open {
  display: flex;
  opacity: 1;
}

/* ── Modal box ── */
.review-modal-box {
  background: var(--body-color);
  border: 1.5px solid var(--first-color-light, var(--first-color));
  border-radius: 1.5rem;
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}

.review-modal-overlay.open .review-modal-box {
  transform: translateY(0);
}

/* Close button */
.review-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.review-modal-close:hover {
  color: var(--first-color);
  transform: rotate(90deg);
}

[dir="rtl"] .review-modal-close {
  right: auto;
  left: 1rem;
}

/* Title */
.review-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.review-modal-sub {
  font-size: 0.82rem;
  color: var(--text-color-light);
  margin-bottom: 1.5rem;
}

/* Form */
.review-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.review-modal-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.review-modal-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--title-color);
}

.review-modal-group input,
.review-modal-group textarea {
  background: var(--container-color);
  border: 1.5px solid transparent;
  border-radius: 0.6rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text-color);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.review-modal-group input:focus,
.review-modal-group textarea:focus {
  border-color: var(--first-color);
}

.review-modal-group textarea {
  resize: vertical;
  min-height: 90px;
}

.review-modal-counter {
  font-size: 0.72rem;
  color: var(--text-color-light);
  text-align: right;
}

[dir="rtl"] .review-modal-counter { text-align: left; }
[dir="rtl"] .review-modal-group input,
[dir="rtl"] .review-modal-group textarea {
  text-align: right;
  direction: rtl;
}

/* Submit */
.review-modal-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--first-color);
  color: #fff;
  border: none;
  border-radius: 4rem;
  padding: 0.78rem 2rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-top: 0.4rem;
}

.review-modal-submit:hover {
  background: var(--first-color-alt);
  transform: translateY(-2px);
}

/* Mobile — above the floating navbar (show-menu: bottom:2rem, height ~7rem) */
@media screen and (max-width: 1023px) {
  .review-float-btn {
    bottom: 11rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 350px) {
  .review-float-btn {
    bottom: 12rem;
    right: 0.75rem;
    width: 46px;
    height: 46px;
  }
}
