/* ═══════════════════════════════════════════
   WONDER MODAL — Card-Stacking Booking CSS
═══════════════════════════════════════════ */

#wonder-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(ellipse at center, #1a4a2e 0%, #0e3208 70%, #091f05 100%);
  display: flex; align-items: center; justify-content: center;
  animation: wmFadeIn 0.25s ease;
}
@keyframes wmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.wm-close {
  position: absolute; right: 20px; top: 20px; z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff; border: none;
  font-size: 20px; cursor: pointer; backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.wm-close:hover { background: rgba(255,255,255,0.2); }

.wm-container {
  position: relative; width: 100%; max-width: 480px; height: 640px;
  margin: 0 auto; padding: 0 16px;
}

.wm-cards-stack { position: relative; width: 100%; height: 100%; }

.wm-card {
  position: absolute; left: 0; right: 0; top: 0;
  max-width: 440px; margin: 0 auto;
  border-radius: 24px; overflow: hidden;
  background: #FBF6EA; color: #244437;
  border: 1px solid rgba(36,68,55,0.1);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

/* ─── Step content ─── */
.wm-step-body { display: flex; flex-direction: column; gap: 20px; padding: 28px; }
.wm-header {}
.wm-step-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(36,68,55,0.6); margin: 0 0 4px; }
.wm-step-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 36px; font-weight: 500; line-height: 1.15; margin: 0; }

/* ─── Fields ─── */
.wm-field { display: flex; flex-direction: column; gap: 10px; }
.wm-field-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(36,68,55,0.7); }
.wm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wm-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

/* ─── Choice buttons ─── */
.wm-choice {
  height: 52px; border-radius: 16px; border: 2px solid;
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: 'Karla', sans-serif;
  transition: all 0.15s ease;
}
.wm-choice:hover { opacity: 0.85; }

/* ─── Summary bar ─── */
.wm-summary {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 16px; padding: 16px 20px;
  background: rgba(14,50,8,0.05);
}
.wm-sum-main { font-weight: 600; font-size: 15px; }
.wm-sum-detail { color: rgba(36,68,55,0.6); font-size: 15px; }
.wm-sum-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 500; }

/* ─── Primary button ─── */
.wm-primary-btn {
  height: 52px; width: 100%; border-radius: 50px; border: none;
  background: #FFE86B; color: #244437;
  font-size: 17px; font-weight: 700; cursor: pointer;
  font-family: 'Karla', sans-serif;
  transition: filter 0.15s, transform 0.1s;
}
.wm-primary-btn:hover { filter: brightness(0.95); }
.wm-primary-btn:active { transform: scale(0.99); }

/* ─── Confirm table ─── */
.wm-table {
  display: flex; flex-direction: column;
  border: 1px solid rgba(36,68,55,0.15); border-radius: 16px; overflow: hidden;
  margin: 0;
}
.wm-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(36,68,55,0.1);
}
.wm-row:last-child { border-bottom: none; }
.wm-row-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(36,68,55,0.6); margin: 0; }
.wm-row-val { font-size: 15px; font-weight: 600; }
.wm-row-val-big { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 500; }

.wm-note { font-size: 14px; line-height: 1.6; color: rgba(36,68,55,0.65); }
.wm-secure-note { text-align: center; font-size: 12px; color: rgba(36,68,55,0.55); margin: 0; }

/* ─── Input fields ─── */
.wm-input-field { display: flex; flex-direction: column; gap: 8px; }
.wm-input {
  height: 52px; border-radius: 16px; border: 2px solid rgba(36,68,55,0.25);
  padding: 0 16px; font-size: 17px; background: #FBF6EA; color: #244437;
  font-family: 'Karla', sans-serif; outline: none;
  transition: border-color 0.2s;
}
.wm-input:focus { border-color: rgba(36,68,55,0.5); box-shadow: 0 0 0 3px rgba(36,68,55,0.1); }

/* ─── Tab (collapsed card) ─── */
.wm-tab { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.wm-tab-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(14,50,8,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.wm-tab-text { min-width: 0; flex: 1; }
.wm-tab-title { font-size: 15px; font-weight: 700; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-tab-sub { font-size: 13px; color: rgba(36,68,55,0.6); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Success ─── */
.wm-success-flag { font-size: 64px; margin-bottom: 12px; animation: wmBounce 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.15s both; }
@keyframes wmBounce { 0% { transform: scale(0) rotate(-25deg); } 100% { transform: scale(1) rotate(0); } }

.wm-done-btn {
  height: 48px; padding: 0 28px; border-radius: 50px; border: none;
  background: #244437; color: #FBF6EA;
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: 'Karla', sans-serif;
  transition: filter 0.15s;
}
.wm-done-btn:hover { filter: brightness(1.1); }

/* ─── Mobile responsive ─── */
@media (max-width: 520px) {
  .wm-container { height: 580px; padding: 0 8px; }
  .wm-step-body { padding: 20px; gap: 16px; }
  .wm-step-title { font-size: 28px; }
  .wm-choice { height: 46px; font-size: 14px; }
  .wm-input { height: 46px; font-size: 15px; }
  .wm-primary-btn { height: 48px; font-size: 16px; }
}
