/* ============================================================
   BEAS — review.css
   Customer Review Submission Page
   ============================================================ */

/* ── FULL PAGE CENTERING ─────────────────────────────────── */
.review-page {
  min-height: 100vh;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
}

/* ── THANK YOU IMAGE STAGE ───────────────────────────────── */
.review-thankyou-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 540px;
}
.review-thankyou-img {
  width: clamp(180px, 50vw, 320px);
  height: auto;
  display: block;
  margin: 0 auto 32px;
  animation: reviewImgIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes reviewImgIn {
  from { opacity: 0; transform: scale(0.7) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── PROGRESS BAR ────────────────────────────────────────── */
.review-progress-wrap {
  width: 100%;
  max-width: 540px;
  background: var(--border-card);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  position: relative;
}
.review-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--beas-navy), var(--beas-orange));
  transition: none;
  box-shadow: 0 0 8px rgba(170, 68, 1, 0.4);
}
.review-progress-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── REVIEW FORM CARD ────────────────────────────────────── */
.review-form-wrap {
  display: none;
  width: 100%;
  max-width: 600px;
  animation: reviewFormIn 0.5s ease both;
}
.review-form-wrap.show { display: block; }

@keyframes reviewFormIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.review-card-header {
  background: linear-gradient(135deg, var(--beas-navy), #004080);
  padding: 28px 32px 24px;
  text-align: center;
}
.review-card-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.review-card-header p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin: 0;
}

.review-card-body { padding: 28px 32px; }

/* ── FORM GROUPS ─────────────────────────────────────────── */
.rev-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rev-form-group {
  margin-bottom: 18px;
}
.rev-form-group label {
  display: block;
  font-size: 0.72rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.rev-form-group label .req { color: #d63031; }

.rev-input, .rev-select, .rev-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rev-input:focus, .rev-select:focus, .rev-textarea:focus {
  border-color: var(--beas-orange);
  box-shadow: 0 0 0 3px rgba(170,68,1,0.1);
}
.rev-input.error, .rev-select.error, .rev-textarea.error {
  border-color: #d63031;
  box-shadow: 0 0 0 3px rgba(214,48,49,0.1);
}
.rev-textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

/* ── STAR RATING ─────────────────────────────────────────── */
.rev-stars {
  display: flex;
  gap: 6px;
  align-items: center;
}
.rev-star {
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--border-color);
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
  user-select: none;
}
.rev-star:hover, .rev-star.active { color: #f39c12; }
.rev-star:hover { transform: scale(1.2); }
.rev-star-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 8px;
  font-style: italic;
}

/* ── SECTION DIVIDER ─────────────────────────────────────── */
.rev-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beas-orange);
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 6px;
  margin: 24px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rev-section-title i { font-size: 0.9rem; }

/* ── SUBMIT BUTTON ───────────────────────────────────────── */
.rev-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 14px !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.06em;
  margin-top: 8px;
}

/* ── SUCCESS DIALOG ──────────────────────────────────────── */
.rev-dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,20,50,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: revFadeIn 0.25s ease;
}
.rev-dialog-overlay.open { display: flex; }
@keyframes revFadeIn { from{opacity:0} to{opacity:1} }

.rev-dialog {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  max-width: 400px;
  width: 100%;
  text-align: center;
  padding: 40px 32px 32px;
  animation: revDialogIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes revDialogIn {
  from { opacity:0; transform:scale(0.85) translateY(20px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.rev-dialog-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4edda, #b8dfc4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #155724;
  margin: 0 auto 20px;
  animation: revIconPop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.15s both;
}
@keyframes revIconPop { from{transform:scale(0)} to{transform:scale(1)} }
.rev-dialog h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.rev-dialog p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
[data-theme="dark"] .rev-dialog-icon {
  background: rgba(21,87,36,0.25); color: #6fcf97;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .rev-form-row { grid-template-columns: 1fr; gap: 0; }
  .review-card-body { padding: 20px 18px; }
  .review-card-header { padding: 22px 18px 18px; }
}