/* ============================================================
   Deedge Hotel PH — Guest Review Form (public.css)
   ============================================================ */

:root {
  --primary:      #920404;
  --primary-dark: #6f0303;
  --accent-gold:  #C8A86B;
  --off-white:    #FAFAF8;
  --radius:       18px;
  --shadow:       0 12px 50px rgba(0,0,0,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(140deg, #f7f2ec 0%, #fafaf8 60%, #f0eae3 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

/* ── Card shell ──────────────────────────────────────────── */
.review-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  animation: cardIn .5s ease both;
}

@keyframes cardIn {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Header ──────────────────────────────────────────────── */
.review-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 34px 36px 28px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.review-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.hotel-logo { font-size: 2.6rem; display: block; margin-bottom: 6px; }

.review-header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .3px;
}

.review-header p {
  font-size: .85rem;
  opacity: .8;
  margin-top: 4px;
}

.guest-badge {
  display: inline-block;
  background: rgba(200,168,107,.22);
  border: 1px solid rgba(200,168,107,.45);
  color: #f0d08a;
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-top: 12px;
  letter-spacing: .3px;
}

/* ── Body ────────────────────────────────────────────────── */
.review-body { padding: 34px 36px; }

/* ── Steps ───────────────────────────────────────────────── */
.step { display: none; }
.step.active { display: block; animation: fadeUp .3s ease; }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── Step 1 intro ────────────────────────────────────────── */
.step-intro { text-align: center; margin-bottom: 24px; }
.step-intro h2 { font-size: 1.2rem; font-weight: 800; color: #222; margin-bottom: 6px; }
.step-intro p  { color: #888; font-size: .88rem; }

/* ── Star buttons ────────────────────────────────────────── */
.star-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.star-btn {
  background: #f7f7f7;
  border: 2px solid #e8e8e8;
  border-radius: 50%;
  width: 54px; height: 54px;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
  color: #ccc;
  position: relative;
}

.star-btn:hover {
  transform: scale(1.18) translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  background: #fff;
}

.star-btn.selected {
  transform: scale(1.1);
  background: #fff;
  border-width: 2px;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
}

.star-btn.bounce {
  animation: bounce .35s cubic-bezier(.34,1.56,.64,1);
}

@keyframes bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35) translateY(-6px); }
  100% { transform: scale(1.1); }
}

/* ── Star feedback bar ───────────────────────────────────── */
.star-feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 16px;
  background: #fafafa;
  border-radius: 30px;
  border: 1px solid #f0f0f0;
  transition: all .25s;
}

.sf-emoji { font-size: 1.4rem; line-height: 1; transition: all .2s; }
.sf-label {
  font-size: .88rem;
  font-weight: 700;
  color: #aaa;
  transition: color .2s;
  letter-spacing: .2px;
}

/* ── Rating display (step 2 top) ─────────────────────────── */
.rating-display {
  text-align: center;
  padding: 18px 20px;
  background: #fafafa;
  border-radius: 14px;
  border: 2px solid #f0f0f0;
  margin-bottom: 22px;
  transition: border-color .3s;
}

.rd-stars { font-size: 1.9rem; letter-spacing: 3px; line-height: 1; }
.rd-emoji { font-size: 2rem; margin-top: 6px; display: block; }
.rd-label { font-size: .88rem; font-weight: 700; margin-top: 4px; }

/* ── Step 2 feedback ─────────────────────────────────────── */
.step-feedback h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.4;
}

.step-feedback .prompt {
  font-size: .875rem;
  color: #777;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Form fields ─────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #555;
  margin-bottom: 7px;
}

.req { color: #e53935; font-weight: 800; }
.opt { color: #aaa; font-weight: 400; text-transform: none; font-size: .9em; }

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1.5px solid #e8e8e8;
  border-radius: 11px;
  padding: 11px 14px;
  font-size: .9rem;
  font-family: inherit;
  color: #333;
  background: #fdfdfd;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,168,107,.15);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-review {
  display: block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
  letter-spacing: .3px;
  box-shadow: 0 4px 16px rgba(146,4,4,.25);
  margin-top: 8px;
}

.btn-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(146,4,4,.3);
}

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

.btn-back {
  background: none;
  border: none;
  color: #aaa;
  font-size: .83rem;
  cursor: pointer;
  margin-top: 12px;
  display: block;
  text-align: center;
  width: 100%;
  transition: color .2s;
}

.btn-back:hover { color: #555; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .875rem;
  margin-bottom: 18px;
  line-height: 1.5;
}

.alert-danger  { background: #fff0f0; color: #c62828; border: 1px solid #ffcdd2; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }

/* ── Success state ───────────────────────────────────────── */
.success-view {
  text-align: center;
  padding: 16px 0 10px;
  animation: fadeUp .4s ease;
}

.success-view .success-icon {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 14px;
  animation: pop .5s cubic-bezier(.34,1.56,.64,1) .1s both;
}

@keyframes pop {
  from { transform:scale(0); opacity:0; }
  to   { transform:scale(1); opacity:1; }
}

.success-view h2 { font-size: 1.3rem; font-weight: 800; color: #222; margin-bottom: 10px; }
.success-view p  { color: #777; font-size: .9rem; line-height: 1.6; }

/* ── Blocked state ───────────────────────────────────────── */
.blocked-view {
  text-align: center;
  padding: 10px 0 14px;
  animation: fadeUp .4s ease;
}

.blocked-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 14px;
  animation: pop .5s cubic-bezier(.34,1.56,.64,1) .1s both;
}

.blocked-view h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 10px;
}

.blocked-view > p {
  color: #666;
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 22px;
}

.blocked-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
  text-align: left;
}

.blocked-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #fafaf8;
  border: 1px solid #ebebeb;
  border-radius: 12px;
}

.opt-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 1px; }

.blocked-option strong {
  display: block;
  font-size: .875rem;
  color: #333;
  margin-bottom: 3px;
}

.blocked-option small {
  display: block;
  font-size: .78rem;
  color: #999;
  line-height: 1.5;
}

.blocked-footer {
  font-size: .82rem;
  color: #bbb;
  margin-top: 8px;
}

/* ── Footer ──────────────────────────────────────────────── */
.review-footer {
  border-top: 1px solid #f0f0f0;
  padding: 14px 36px;
  text-align: center;
  font-size: .74rem;
  color: #bbb;
  letter-spacing: .2px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 560px) {
  .review-header { padding: 26px 22px 22px; }
  .review-body   { padding: 26px 22px; }
  .review-footer { padding: 14px 22px; }
  .star-btn      { width: 46px; height: 46px; font-size: 1.4rem; }
}
