/* ═══════════════════════════════════════════════════════════
   QARIBIA — Reviews · Post-Trip Feedback
   ══════════════════════════════════════════════════════════ */

.rv-body {
  background-color: var(--warm-white);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 10% 20%, rgba(200, 150, 62, 0.03) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(45, 90, 66, 0.04) 0%, transparent 60%);
  background-blend-mode: overlay, normal, normal;
  background-attachment: fixed;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────── */
.rv-header {
  position: relative;
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--midnight) 100%);
  padding: 140px 40px 60px;
  overflow: hidden;
}

.rv-header__noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.rv-header__bg-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.rv-header__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
}

.rv-header__content {
  max-width: 680px;
}

.rv-header__title {
  font-family: 'Lora', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.rv-header__title em {
  font-style: italic;
  color: var(--gold-light);
}

.rv-header__sub {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 520px;
}


/* ── Empty State ─────────────────────────────────────────── */
.rv-empty {
  max-width: 600px;
  margin: 0 auto;
  padding: 120px 40px;
  text-align: center;
}

.rv-empty__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.rv-empty__icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.rv-empty h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-primary);
}

.rv-empty p {
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.7;
}


/* ── Main Review Form ────────────────────────────────────── */
.rv-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 40px 100px;
}

.rv-main__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Booking Ref Pill */
.rv-ref {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  align-self: flex-start;
}

.rv-ref i {
  color: var(--amber);
}

.rv-ref strong {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
}


/* ── Review Cards ────────────────────────────────────────── */
.rv-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rv-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 28px 32px;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.rv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.8);
}

.rv-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.rv-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.rv-card__icon--stay {
  background: linear-gradient(135deg, var(--sage), var(--deep-green));
}

.rv-card__icon--flight {
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
}

.rv-card__icon--transfer {
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
}

.rv-card__icon--destination {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
}

.rv-card__icon--trip {
  background: linear-gradient(135deg, var(--slate), var(--midnight));
}

/* Per-card comment */
.rv-card__comment {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.rv-card-textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.4);
  resize: vertical;
  min-height: 56px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.rv-card-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.08);
}

.rv-card-textarea::placeholder {
  color: rgba(0, 0, 0, 0.22);
  font-size: 0.83rem;
}

.rv-card__info {
  flex: 1;
  min-width: 0;
}

.rv-card__label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.rv-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rv-card__detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Star Rating ─────────────────────────────────────────── */
.rv-stars {
  display: flex;
  gap: 6px;
}

.rv-stars button {
  background: none;
  border: none;
  padding: 4px;
  font-size: 1.4rem;
  color: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  line-height: 1;
}

.rv-stars button:hover {
  transform: scale(1.25);
}

.rv-stars button.active {
  color: var(--gold);
}

.rv-stars button.hovered {
  color: var(--gold-light);
  transform: scale(1.15);
}

.rv-stars--large {
  gap: 10px;
  justify-content: center;
}

.rv-stars--large button {
  font-size: 2rem;
  padding: 6px;
}

.rv-stars__label {
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: 8px;
  min-height: 1.2em;
  transition: opacity 0.3s;
}

/* Card-level star row */
.rv-card__rating {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rv-card__rating .rv-stars__label {
  margin-top: 0;
  text-align: left;
  font-size: 0.75rem;
}


/* ── Overall Section ─────────────────────────────────────── */
.rv-overall {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.rv-overall__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.rv-overall__title i {
  color: var(--deep-green);
  margin-right: 8px;
}

.rv-textarea-label {
  display: block;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 8px;
}

.rv-textarea-label span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.rv-textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.rv-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.1);
}

.rv-textarea::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

.rv-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  justify-content: flex-start;
  text-align: left;
}

.rv-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}


/* ── Submit Button ───────────────────────────────────────── */
.rv-submit-btn {
  width: 100%;
  padding: 18px 32px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.4s var(--ease-smooth);
  box-shadow: 0 8px 32px rgba(200, 150, 62, 0.25);
}

.rv-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(200, 150, 62, 0.35);
}

.rv-submit-btn:active {
  transform: translateY(0);
}

.rv-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}


/* ── Thank You State ─────────────────────────────────────── */
.rv-thanks {
  max-width: 700px;
  margin: 0 auto;
  padding: 120px 40px;
  text-align: center;
}

.rv-thanks__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.rv-thanks__icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--amber));
  color: #fff;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 16px 48px rgba(200, 150, 62, 0.3);
  position: relative;
  animation: popIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.rv-thanks__icon::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(200, 150, 62, 0.4);
  animation: pulseRing 2s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.rv-thanks h2 {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.rv-thanks__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Summary stars recap */
.rv-thanks__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
}

.rv-thanks__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.rv-thanks__chip i {
  color: var(--gold);
  font-size: 0.75rem;
}

.rv-thanks__chip strong {
  font-family: var(--font-heading);
  font-weight: 700;
}

.rv-thanks__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}


/* ── Toast (reuse pattern) ───────────────────────────────── */
.rv-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--charcoal);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  z-index: 9000;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  border-left: 3px solid var(--gold);
}

.rv-toast.show {
  transform: translateX(-50%) translateY(0);
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .rv-header {
    padding: 120px 20px 40px;
  }

  .rv-header__title {
    font-size: 2.4rem;
  }

  .rv-main {
    padding: 30px 20px 80px;
  }

  .rv-card {
    padding: 20px;
    border-radius: 18px;
  }

  .rv-card__top {
    flex-wrap: wrap;
  }

  .rv-overall {
    padding: 24px 20px;
  }

  .rv-stars--large button {
    font-size: 1.6rem;
  }

  .rv-thanks h2 {
    font-size: 2.4rem;
  }

  .rv-thanks {
    padding: 80px 20px;
  }

  .rv-thanks__actions {
    flex-direction: column;
    width: 100%;
  }

  .rv-thanks__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .rv-card__rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .rv-thanks__summary {
    flex-direction: column;
    align-items: center;
  }
}