/* ============================================================
   Roll in Paradise — Luxury Golden UI
   public/css/booking.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
.rip-booking-wrap {
  --gold-start:   #F7CA86;
  --gold-mid:     #D4964A;
  --gold-end:     #B77640;
  --gold-dark:    #8B5523;
  --gold-light:   #FDF3E3;
  --gold-pale:    #FEFAF3;
  --ink:          #1C1008;
  --ink-muted:    #6B4E2A;
  --ink-light:    #A07850;
  --white:        #FFFFFF;
  --border:       rgba(183,118,64,.18);
  --border-gold:  rgba(183,118,64,.45);
  --shadow-sm:    0 2px 12px rgba(139,85,35,.10);
  --shadow-md:    0 8px 32px rgba(139,85,35,.16);
  --shadow-lg:    0 20px 60px rgba(139,85,35,.18);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --grad:         linear-gradient(180deg, #F7CA86 0%, #B77640 100%);
  --grad-h:       linear-gradient(180deg, #FFD99A 0%, #C98844 100%);
  --grad-subtle:  linear-gradient(135deg, #FDF3E3 0%, #F5E0C0 100%);
}

/* ── Base ────────────────────────────────────────────────── */
.rip-booking-wrap *, .rip-booking-wrap *::before, .rip-booking-wrap *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
.rip-booking-wrap {
  max-width: 740px;
  margin: 0 auto;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ── Hero ────────────────────────────────────────────────── */
.rip-hero {
  position: relative;
  min-height: 240px;
  background: var(--grad);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
/* Compact hero for success screen — no wasted space */
#rip-booking-success .rip-hero { min-height: 140px; }
#rip-booking-success .rip-hero-text { min-height: 100px; padding: 1.5rem 2rem; }
.rip-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 7s ease;
}
.rip-hero:hover .rip-hero-bg { transform: scale(1.04); }
.rip-hero-overlay {
  position: relative; z-index: 2;
  padding: 2rem 2.5rem 1.75rem;
  width: 100%;
  background: linear-gradient(to top, rgba(28,16,8,.80) 0%, rgba(28,16,8,.10) 60%, transparent 100%);
}
.rip-hero-overlay h1 {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 300;
  color: #fff;
  letter-spacing: .02em; line-height: 1.15;
  margin-bottom: .35rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.rip-hero-overlay p {
  font-size: .72rem; font-weight: 300;
  color: rgba(255,255,255,.75);
  letter-spacing: .15em; text-transform: uppercase;
}
/* No-image hero */
.rip-hero-text {
  min-height: 180px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
}
.rip-hero-text::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.15);
  top: -80px; right: -60px;
}
.rip-hero-text::after {
  content: '';
  position: absolute;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  bottom: -40px; left: -20px;
}
.rip-hero-text h1 {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 300;
  color: var(--ink); letter-spacing: .02em;
  line-height: 1.2; margin-bottom: .5rem;
  position: relative; z-index: 1;
}
.rip-hero-text p {
  font-size: .72rem; font-weight: 400;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-dark); position: relative; z-index: 1;
}

/* ── Progress ────────────────────────────────────────────── */
.rip-progress {
  display: flex; align-items: center;
  padding: 1rem 2rem;
  background: var(--gold-pale);
  border-bottom: 1px solid var(--border);
}
.rip-progress-step { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.rip-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border-gold);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: var(--ink-light);
  font-family: var(--font-body);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.rip-progress-step.active .rip-step-num {
  background: var(--grad); border-color: var(--gold-mid); color: var(--ink);
  box-shadow: 0 3px 12px rgba(183,118,64,.40); transform: scale(1.12);
}
.rip-progress-step.done .rip-step-num {
  background: var(--grad); border-color: var(--gold-mid); color: var(--ink);
}
.rip-step-label { font-size: 11px; font-weight: 400; color: var(--ink-light); letter-spacing: .04em; }
.rip-progress-step.active .rip-step-label { color: var(--gold-dark); font-weight: 500; }
.rip-progress-step.done   .rip-step-label { color: var(--gold-mid); }
.rip-progress-line { flex: 1; height: 1px; background: var(--border-gold); margin: 0 8px; opacity: .55; }
@media (max-width: 480px) { .rip-step-label { display: none; } }

/* ── Steps ───────────────────────────────────────────────── */
.rip-step { display: none; }
.rip-step-active { display: block; animation: ripFadeUp .38s cubic-bezier(.22,1,.36,1) both; }
@keyframes ripFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rip-step-inner { padding: 2rem 2.5rem 2.5rem; }
.rip-step-inner h2 {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 400;
  color: var(--ink); margin-bottom: .25rem; letter-spacing: .01em;
}
.rip-sub {
  font-size: .72rem; color: var(--ink-light);
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 1.5rem;
}

/* ── Disclaimer ──────────────────────────────────────────── */
.rip-disclaimer {
  background: linear-gradient(135deg, #FEFAF2 0%, #FDF1DB 100%);
  border: 1px solid rgba(183,118,64,.22);
  border-left: 3px solid var(--gold-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 11px 15px;
  font-size: .78rem; color: var(--ink-muted);
  margin-bottom: 1.75rem; line-height: 1.6;
}

/* ── Tier cards ──────────────────────────────────────────── */
.rip-tier-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 1.5rem;
}
@media (max-width: 520px) { .rip-tier-grid { grid-template-columns: 1fr; } }

.rip-tier-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; position: relative;
  background: var(--white);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.rip-tier-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-md); border-color: var(--border-gold);
}
.rip-tier-card.rip-selected {
  border: 2px solid var(--gold-mid);
  box-shadow: 0 8px 32px rgba(183,118,64,.28);
  transform: translateY(-2px);
}

/* Tier image with gradient fallback pattern */
.rip-tier-img-wrap {
  height: 110px; position: relative; overflow: hidden;
}
.rip-tier-img-wrap .rip-tier-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s ease;
}
.rip-tier-card:hover .rip-tier-bg-img { transform: scale(1.06); }
.rip-tier-img-wrap .rip-tier-bg-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, rgba(0,0,0,.35) 100%);
}
/* Pattern for no image */
.rip-tier-pat {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.rip-tier-pat.pat-early    { background: linear-gradient(135deg, #F7CA86 0%, #D4964A 100%); }
.rip-tier-pat.pat-standard { background: linear-gradient(135deg, #EBB870 0%, #C07B36 100%); }
.rip-tier-pat.pat-final    { background: linear-gradient(135deg, #C8946A 0%, #8B5523 100%); }
.rip-tier-pat::before {
  content: '';
  position: absolute;
  width: 130px; height: 130px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  top: -35px; right: -30px;
}
.rip-tier-pat::after {
  content: '';
  position: absolute;
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,.10);
  bottom: -15px; left: 12px;
}
.rip-tier-pat-icon {
  position: relative; z-index: 1;
  font-size: 2rem; opacity: .55; user-select: none;
}
/* Badge pinned to top-right of image area */
.rip-tier-badge {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  font-size: 9.5px; font-weight: 500;
  padding: 3px 9px; border-radius: 12px;
  letter-spacing: .06em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.rip-badge-early    { background: rgba(255,255,255,.85); color: var(--gold-dark); }
.rip-badge-standard { background: rgba(255,255,255,.80); color: var(--gold-dark); }
.rip-badge-final    { background: rgba(28,16,8,.55);     color: #F7CA86; }

.rip-tier-body { padding: 14px 16px 18px; }
.rip-tier-price {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 500; color: var(--ink);
  line-height: 1; margin-bottom: 5px; letter-spacing: -.01em;
}
.rip-tier-slots { font-size: .7rem; color: var(--ink-light); letter-spacing: .05em; }

.rip-tier-check {
  position: absolute; top: 10px; left: 10px; z-index: 10;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad);
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(183,118,64,.6);
}
.rip-tier-card.rip-selected .rip-tier-check { display: flex; }

/* Training note & includes */
.rip-training-note {
  font-size: .77rem; color: var(--ink-muted);
  background: var(--gold-pale); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  margin-bottom: 1rem; line-height: 1.55;
}
.rip-includes {
  list-style: none; margin-bottom: 2rem;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.rip-includes li {
  font-size: .77rem; color: var(--ink-muted);
  padding: 6px 12px 6px 26px;
  background: var(--gold-pale); border: 1px solid var(--border);
  border-radius: 20px; position: relative;
}
.rip-includes li::before {
  content: '✓'; position: absolute; left: 9px; top: 50%;
  transform: translateY(-50%); color: var(--gold-mid); font-size: .7rem; font-weight: 700;
}

/* Primary button */
.rip-btn-primary {
  width: 100%; padding: 14px 20px;
  background: var(--grad); color: var(--ink);
  border: none; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: .88rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, opacity .15s;
  box-shadow: 0 4px 18px rgba(183,118,64,.38);
}
.rip-btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, transparent 55%);
  pointer-events: none;
}
.rip-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 8px 28px rgba(183,118,64,.48);
  background: var(--grad-h);
}
.rip-btn-primary:active:not(:disabled) { transform: translateY(0) scale(.998); }
.rip-btn-primary:disabled {
  background: linear-gradient(180deg, #ede6dd 0%, #cdc3ba 100%);
  color: #a9a09a; cursor: not-allowed; box-shadow: none;
}

.rip-btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm); padding: 7px 14px;
  font-size: .77rem; font-family: var(--font-body);
  color: var(--ink-muted); cursor: pointer;
  margin-bottom: 1.5rem; letter-spacing: .04em;
  transition: background .15s, color .15s;
}
.rip-btn-back:hover { background: var(--gold-pale); color: var(--gold-dark); }

/* Accommodation toggle */
.rip-accom-toggle {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-bottom: 1.5rem;
}
.rip-toggle-opt {
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; cursor: pointer; background: var(--white);
  transition: border-color .2s, background .2s, transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.rip-toggle-opt:hover {
  border-color: var(--border-gold); background: var(--gold-pale); transform: translateY(-2px);
}
.rip-toggle-opt.rip-selected {
  border: 2px solid var(--gold-mid);
  background: linear-gradient(135deg, #FEFAF3 0%, #FDF2DE 100%);
  box-shadow: 0 4px 16px rgba(183,118,64,.15);
}
.rip-toggle-opt p:first-child { font-size: .88rem; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.rip-toggle-opt p:last-child  { font-size: .73rem; color: var(--ink-light); }

/* Room cards */
.rip-room-section { margin-bottom: 1.5rem; }
.rip-room-type-title {
  font-size: .67rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-light);
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.rip-room-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rip-room-card {
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; background: var(--white);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, border-color .2s;
  box-shadow: var(--shadow-sm);
}
.rip-room-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-gold);
}
.rip-room-card.rip-selected {
  border: 2px solid var(--gold-mid); box-shadow: 0 6px 24px rgba(183,118,64,.22);
}
.rip-room-img {
  height: 88px; background-size: cover; background-position: center;
  position: relative;
}
.rip-room-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(28,16,8,.22) 100%);
}
.rip-room-no-img {
  height: 88px; background: var(--grad-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; opacity: .4;
}
.rip-room-info { padding: 10px 12px 13px; }
.rip-room-name { font-size: .84rem; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.rip-room-price {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500;
  color: var(--gold-dark); margin-bottom: 3px;
}
.rip-room-tag { font-size: .68rem; color: var(--ink-light); }

.rip-twin-note {
  font-size: .75rem; color: var(--ink-muted); margin-top: 10px;
  background: linear-gradient(135deg, #FFFBF0 0%, #FEF6DF 100%);
  border: 1px solid rgba(212,150,74,.22); border-radius: var(--radius-sm);
  padding: 10px 14px; line-height: 1.55;
}

/* Form */
.rip-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1.5rem; }
.rip-form-group.rip-full { grid-column: 1 / -1; }
.rip-form-group label {
  display: block; font-size: .7rem; font-weight: 500;
  color: var(--ink-muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .07em;
}
.rip-form-group input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--ink); font-family: var(--font-body);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.rip-form-group input:focus {
  outline: none; border-color: var(--gold-mid);
  box-shadow: 0 0 0 3px rgba(183,118,64,.11);
}
.rip-form-group input::placeholder { color: #C8A878; }
@media (max-width: 480px) { .rip-form-grid { grid-template-columns: 1fr; } }

/* Summary */
.rip-summary-card {
  background: var(--gold-pale); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem;
}
.rip-summary-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .875rem;
}
.rip-summary-row:last-of-type { border-bottom: none; }
.rip-summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 2px; margin-top: 4px; border-top: 1.5px solid var(--border-gold);
}
.rip-summary-total > span:first-child {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; color: var(--ink);
}
.rip-summary-total > span:last-child {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; color: var(--gold-dark);
}
.rip-sep-note { font-size: .7rem; color: var(--ink-light); margin-top: 10px; line-height: 1.55; }
.rip-tag {
  display: inline-block; font-size: .62rem; font-weight: 500;
  padding: 2px 8px; border-radius: 10px; margin-left: 6px;
  text-transform: uppercase; letter-spacing: .04em;
}
.rip-tag-training { background: rgba(247,202,134,.35); color: var(--gold-dark); }
.rip-tag-accom    { background: rgba(183,118,64,.15);  color: var(--gold-dark); }
.rip-muted { color: var(--ink-light); font-size: .875rem; }
small { font-size: .7rem; color: var(--ink-light); display: block; margin-top: 3px; }

/* Checkbox */
.rip-checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); margin-bottom: 1.25rem;
  background: var(--gold-pale); transition: border-color .2s;
}
.rip-checkbox-row input[type=checkbox] {
  margin-top: 2px; flex-shrink: 0;
  width: 17px; height: 17px; cursor: pointer; accent-color: var(--gold-mid);
}
.rip-checkbox-row label { font-size: .78rem; color: var(--ink-muted); line-height: 1.55; cursor: pointer; }

/* Pay button */
.rip-btn-pay {
  background: linear-gradient(180deg, #2B5EAA 0%, #1A3D7C 100%) !important;
  color: #fff !important; box-shadow: 0 4px 20px rgba(26,61,124,.32) !important;
}
.rip-btn-pay:hover:not(:disabled) {
  background: linear-gradient(180deg, #3569C4 0%, #1E4899 100%) !important;
  box-shadow: 0 8px 28px rgba(26,61,124,.42) !important;
}
.rip-btn-pay:disabled {
  background: linear-gradient(180deg, #ede6dd 0%, #cdc3ba 100%) !important;
  color: #a9a09a !important; box-shadow: none !important;
}
.rip-secure-note {
  text-align: center; font-size: .7rem; color: var(--ink-light);
  margin-top: 10px; letter-spacing: .04em;
}

/* Error */
.rip-error-msg {
  color: #7A2200; font-size: .8rem;
  padding: 10px 14px; background: #FEF0EB;
  border: 1px solid rgba(180,70,30,.18); border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

/* Spinner */
.rip-center { text-align: center; padding: 4rem 2rem; }
.rip-spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--gold-mid);
  animation: ripSpin .7s linear infinite; margin: 0 auto 1.25rem;
}
@keyframes ripSpin { to { transform: rotate(360deg); } }
.rip-center p { font-size: .88rem; color: var(--ink-muted); letter-spacing: .05em; }

/* ── Slot counter pills ──────────────────────────────────── */
.rip-slot-counter {
  display: inline-block;
  font-size: .68rem; font-weight: 500;
  padding: 3px 10px; border-radius: 12px;
  background: rgba(183,118,64,.10);
  color: var(--ink-light);
  border: 1px solid rgba(183,118,64,.2);
  margin-bottom: 8px;
  letter-spacing: .03em;
}
.rip-slots-low {
  background: rgba(230,140,20,.12);
  color: #a05a00;
  border-color: rgba(230,140,20,.3);
}
.rip-slots-critical {
  background: rgba(200,50,30,.10);
  color: #8B2200;
  border-color: rgba(200,50,30,.25);
  animation: ripPulse 1.8s ease-in-out infinite;
}
@keyframes ripPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,50,30,.15); }
  50%       { box-shadow: 0 0 0 5px rgba(200,50,30,.0); }
}

/* ── Sold-out tier card ───────────────────────────────────── */
.rip-tier-card.rip-sold-out {
  opacity: .72;
  cursor: not-allowed !important;
  pointer-events: none;
  filter: grayscale(.4);
}
.rip-tier-card.rip-sold-out:hover {
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
  border-color: var(--border) !important;
}
.rip-soldout-overlay {
  position: absolute; inset: 0; z-index: 8;
  background: rgba(28,16,8,.52);
  display: flex; align-items: center; justify-content: center;
}
.rip-soldout-overlay span {
  background: rgba(28,16,8,.80);
  color: #fff;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.2);
}

/* Step 1 inline error */
#rip-error-step1 {
  margin-top: .75rem;
}

/* ── Twin share popup modal ──────────────────────────────── */
.rip-modal-backdrop {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(28,16,8,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: ripBackdropIn .18s ease both;
}
@keyframes ripBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.rip-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 440px; width: 100%;
  box-shadow: 0 24px 80px rgba(28,16,8,.30);
  animation: ripModalIn .22s cubic-bezier(.34,1.56,.64,1) both;
  overflow: hidden;
}
@keyframes ripModalIn {
  from { opacity: 0; transform: scale(.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.rip-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem 0;
}
.rip-modal-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 400;
  color: var(--ink); margin: 0; letter-spacing: .01em;
}
.rip-modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--ink-light); line-height: 1;
  padding: 4px 8px; border-radius: 6px;
  transition: background .15s, color .15s;
}
.rip-modal-close:hover { background: var(--gold-pale); color: var(--gold-dark); }

.rip-modal-body { padding: 1rem 1.5rem 1.25rem; }
.rip-modal-icon { font-size: 2.2rem; margin-bottom: .75rem; line-height: 1; }
.rip-modal-text {
  font-size: .9rem; color: var(--ink-muted);
  line-height: 1.65; margin-bottom: .75rem;
  background: linear-gradient(135deg, #FEFAF2 0%, #FDF1DB 100%);
  border: 1px solid rgba(183,118,64,.2);
  border-left: 3px solid var(--gold-mid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
}
.rip-modal-sub {
  font-size: .78rem; color: var(--ink-light);
  line-height: 1.55; margin: 0;
}
.rip-modal-footer {
  padding: .25rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: 8px;
}
.rip-modal-cancel {
  background: none; border: none; cursor: pointer;
  font-size: .82rem; color: var(--ink-light);
  text-align: center; padding: 6px;
  font-family: var(--font-body);
  transition: color .15s;
}
.rip-modal-cancel:hover { color: var(--gold-dark); }

/* Prevent body scroll when modal open */
body.rip-modal-open { overflow: hidden; }

/* ⓘ info button on twin room cards */
.rip-twin-info-btn {
  background: none;
  border: 1.5px solid var(--gold-mid);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-mid);
  vertical-align: middle;
  margin-left: 5px;
  padding: 0;
  font-family: var(--font-body);
  font-style: normal;
  line-height: 1;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.rip-twin-info-btn:hover {
  background: var(--gold-mid);
  color: #fff;
}

/* T&C link */
.rip-tc-link {
  color: var(--gold-dark);
  text-decoration: underline;
  font-size: inherit;
  margin-left: 4px;
  white-space: nowrap;
}
.rip-tc-link:hover { color: var(--gold-mid); }

/* Improved spinner step */
.rip-processing-msg {
  font-size: 1rem; color: var(--ink); font-weight: 500;
  margin-bottom: .35rem;
}
.rip-processing-sub {
  font-size: .8rem; color: var(--ink-light); letter-spacing: .04em;
}

/* ── Success / Thank-you screen ──────────────────────────── */
#rip-booking-success { animation: ripFadeUp .5s cubic-bezier(.22,1,.36,1) both; }

.rip-success-body {
  text-align: center;
  padding: 1.75rem 2.5rem 2.5rem;
}

/* Animated SVG checkmark */
.rip-success-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.5rem;
}
.rip-check-svg {
  width: 72px; height: 72px;
  display: block;
}
.rip-check-circle {
  stroke: var(--gold-mid);
  fill: none;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: ripCircleDraw .55s cubic-bezier(.65,0,.45,1) .1s forwards;
  transform-origin: center;
  transform: rotate(-90deg);
}
.rip-check-tick {
  stroke: var(--gold-mid);
  fill: none;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: ripTickDraw .35s cubic-bezier(.65,0,.45,1) .6s forwards;
}
@keyframes ripCircleDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes ripTickDraw {
  to { stroke-dashoffset: 0; }
}

.rip-success-title {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 400;
  color: var(--ink); margin-bottom: .4rem;
  letter-spacing: .01em;
}
.rip-success-sub {
  font-size: .95rem; color: var(--ink-muted);
  margin-bottom: 2rem; line-height: 1.6;
}

/* Success order summary card */
.rip-success-card {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 0 auto 2rem;
  max-width: 420px;
  text-align: left;
}
.rip-success-card-header {
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-light); margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.rip-success-card .rip-summary-row { font-size: .875rem; }
.rip-success-card .rip-summary-total {
  font-family: var(--font-display);
}
.rip-success-card .rip-summary-total > span:last-child {
  font-size: 1.5rem;
}

/* What happens next */
.rip-success-next {
  max-width: 380px; margin: 0 auto 1rem;
  text-align: left;
}
.rip-success-next-title {
  font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-light); margin-bottom: 12px;
  text-align: center;
}
.rip-success-steps { display: flex; flex-direction: column; gap: 10px; }
.rip-success-step {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: .82rem; color: var(--ink-muted); line-height: 1.5;
}
.rip-success-step-icon {
  font-size: 1.1rem; flex-shrink: 0; margin-top: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Premium intro (above tier grid in Step 1)
   ═══════════════════════════════════════════════════════════════════════════ */
.rip-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 1.5rem 1rem 0;
}
.rip-intro-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 .6rem;
}
.rip-intro-heading {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 .9rem;
  color: var(--ink);
  line-height: 1.2;
}
.rip-intro-body {
  font-size: .98rem;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Locked tier cards
   ═══════════════════════════════════════════════════════════════════════════ */
.rip-tier-card.rip-locked {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(45%);
  position: relative;
}
.rip-tier-card.rip-locked:hover {
  transform: none !important;
  box-shadow: var(--shadow-sm) !important;
}
.rip-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(30, 20, 15, 0.58);
  backdrop-filter: blur(1.5px);
  z-index: 2;
  color: #fff;
  pointer-events: none;
  border-radius: inherit;
}
.rip-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
}
.rip-lock-label {
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}
.rip-tier-locked-msg {
  margin-top: 10px;
  font-size: .8rem;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.4;
  padding: 0 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Expanded application form — sections
   ═══════════════════════════════════════════════════════════════════════════ */
.rip-section {
  margin: 1.6rem 0;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.rip-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: var(--ink);
}
.rip-section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: .5px;
}
.rip-optional {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: .82rem;
}
.rip-hint {
  font-size: .8rem;
  color: var(--ink-muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Payment plan selector
   ═══════════════════════════════════════════════════════════════════════════ */
.rip-pay-plan {
  margin-top: 1.8rem;
  padding: 1.4rem;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.rip-pay-plan-title {
  font-size: .75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1rem;
}
.rip-pay-plan-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-bottom: .7rem;
  transition: border-color .15s, box-shadow .15s;
}
.rip-pay-plan-opt input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--brand);
}
.rip-pay-plan-opt:hover { border-color: var(--brand-light); }
.rip-pay-plan-opt.rip-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(139, 85, 35, 0.08);
}
.rip-pay-plan-opt > div:first-of-type { flex: 1; }
.rip-pay-plan-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 3px;
}
.rip-pay-plan-desc {
  font-size: .83rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.rip-pay-plan-amount {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand);
  white-space: nowrap;
}

/* Schedule preview */
.rip-pay-schedule {
  margin-top: 1.1rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}
.rip-pay-schedule-title,
.rip-success-schedule-title {
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 .7rem;
}
.rip-schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rip-schedule-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed #ede2cf;
  font-size: .9rem;
  color: var(--ink);
}
.rip-schedule-list li:last-child { border-bottom: 0; }
.rip-schedule-note {
  margin: 10px 0 0;
  font-size: .78rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Legal checkboxes
   ═══════════════════════════════════════════════════════════════════════════ */
.rip-legal {
  margin-top: 1.6rem;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.rip-legal-title {
  font-size: .75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: .6rem;
}
.rip-legal-intro {
  font-size: .88rem;
  color: var(--ink-muted);
  margin: 0 0 .9rem;
}
.rip-legal-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: .9rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.5;
}
.rip-legal-row + .rip-legal-row {
  border-top: 1px dashed #ede2cf;
}
.rip-legal-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.rip-legal-row a {
  color: var(--brand);
  text-decoration: underline;
  font-weight: 600;
}
.rip-legal-row a:hover { color: var(--brand-dark, #6a4019); }

/* ═══════════════════════════════════════════════════════════════════════════
   Success screen — schedule list
   ═══════════════════════════════════════════════════════════════════════════ */
.rip-success-schedule {
  margin: 1.4rem 0 .5rem;
  padding: 1.2rem;
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Mobile tweaks
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .rip-intro-heading { font-size: 1.45rem; }
  .rip-section { padding: 1.1rem; }
  .rip-pay-plan-opt { flex-wrap: wrap; }
  .rip-pay-plan-amount { margin-left: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Twin preference toggle (Accommodation section — Step 3)
   ═══════════════════════════════════════════════════════════════════════════ */
.rip-section-intro {
  font-size: .92rem;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}
.rip-pref-toggle {
  display: grid;
  gap: .7rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .rip-pref-toggle { grid-template-columns: 1fr 1fr; }
}
.rip-pref-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.rip-pref-opt input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.rip-pref-opt:hover { border-color: var(--brand-light); }
.rip-pref-opt.rip-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(139, 85, 35, 0.08);
}
.rip-pref-opt > div:last-child { flex: 1; }
.rip-pref-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: 3px;
}
.rip-pref-desc {
  font-size: .82rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════════════════════
   [rip_pay] — customer-facing pay page
   ═══════════════════════════════════════════════════════════════════════════ */
.rip-pay-wrap {
  max-width: 480px;
  margin: 2rem auto;
  padding: 0 20px 40px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.rip-pay-card {
  background: #fff;
  border: 1px solid var(--border, #eadcc0);
  border-radius: 14px;
  padding: 36px 28px 32px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}
.rip-pay-brand {
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand, #8B5523);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.rip-pay-greeting {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: #2a1810;
}
.rip-pay-amount {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 3rem;
  font-weight: 700;
  color: #2a1810;
  margin: .4rem 0 .3rem;
  letter-spacing: -1px;
}
.rip-pay-desc {
  font-size: .95rem;
  color: #6d5440;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}
.rip-pay-booking {
  background: #fdf9f0;
  border: 1px solid var(--border, #eadcc0);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 1.5rem;
  text-align: left;
}
.rip-pay-booking-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: .9rem;
}
.rip-pay-booking-row span { color: #6d5440; }
.rip-pay-form { margin: 1.5rem 0 1rem; }
.rip-pay-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #8B5523, #d4964a);
  color: #fff;
  border: none;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: .3px;
  transition: transform .1s, box-shadow .15s;
}
.rip-pay-btn:hover {
  box-shadow: 0 6px 20px rgba(139,85,35,0.35);
  transform: translateY(-1px);
}
.rip-pay-btn:active { transform: translateY(0); }
.rip-pay-secure {
  font-size: .8rem;
  color: #8a7560;
  margin: 1rem 0 0;
}
.rip-pay-notice {
  background: #fef5f0;
  border: 1px solid #f2cec2;
  color: #702822;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .85rem;
  margin-bottom: 1rem;
  text-align: left;
}
.rip-pay-success {
  background: #fff;
  border: 1px solid var(--border, #eadcc0);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0,0,0,0.04);
}
.rip-pay-success-icon { margin-bottom: 1rem; }
.rip-pay-success h2 {
  margin: 0 0 10px;
  color: #1d9e75;
  font-size: 1.5rem;
}
.rip-pay-lead { font-size: 1.05rem; color: #2a1810; margin: 0 0 12px; }
.rip-pay-pending, .rip-pay-empty {
  background: #fff;
  border: 1px solid var(--border, #eadcc0);
  border-radius: 14px;
  padding: 40px 30px;
  text-align: center;
}
.rip-pay-pending h2, .rip-pay-empty h2 {
  margin: 0 0 10px;
  color: var(--brand, #8B5523);
  font-size: 1.3rem;
}
