/* ── WRM Boarding Pass ──────────────────────────────────────────────
   Holographic foil edition — iridescent background, metallic text,
   real inked passport stamps, no total guest count
   ─────────────────────────────────────────────────────────────── */

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

:root {
  --bp-cream:      #F7F3EE;
  --bp-tan:        #E8DDD0;
  --bp-gold:       #C9A84C;
  --bp-brown:      #6B5C42;
  --bp-brown-lt:   #9A8370;
  --bp-near-black: #3A2E22;

  /* Holographic palette */
  --bp-holo-1: #f0c6f0;
  --bp-holo-2: #c6d9f7;
  --bp-holo-3: #c6f0e8;
  --bp-holo-4: #f7e4c0;
  --bp-holo-5: #f0d4f0;

  /* Metallic gold gradient */
  --bp-metallic: linear-gradient(105deg,
    #b8860b 0%, #e8c97a 20%, #c9a84c 38%,
    #fff8e1 50%, #c9a84c 62%, #e8c97a 80%, #b8860b 100%);
}

/* ── Page wrapper ── */
.wrm-bp-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px 32px;
  box-sizing: border-box;
  width: 100%;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

/* Above-card label */
.wrm-bp__above-label {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.wrm-bp__above-label span {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--bp-brown-lt);
  text-transform: uppercase;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.wrm-bp__above-rule { width: 36px; height: 1px; background: var(--bp-gold); }

/* ── Card shell ── */
.wrm-bp {
  width: 100%;
  max-width: 700px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 12px 48px rgba(58,46,34,0.22),
    0 2px 8px rgba(58,46,34,0.12),
    0 0 0 1px rgba(201,168,76,0.25);
  display: flex;
  flex-direction: row;
  position: relative;
}

/* ── HOLOGRAPHIC BACKGROUND — silver/platinum base with iridescent rainbow shift ── */
.wrm-bp__left,
.wrm-bp__right {
  background:
    /* Rainbow colour-shift overlay — thin pastel wash over silver */
    conic-gradient(
      from 190deg at 55% 45%,
      rgba(200,210,240,0.30),
      rgba(180,240,220,0.25),
      rgba(240,210,200,0.22),
      rgba(200,200,240,0.28),
      rgba(220,240,200,0.22),
      rgba(200,210,240,0.30)
    ),
    /* Silver-platinum base gradient */
    linear-gradient(145deg,
      #d8dce8 0%,
      #eceef4 18%,
      #f4f5f8 35%,
      #ffffff 50%,
      #eaecf2 65%,
      #d4d8e4 82%,
      #c8ccd8 100%
    );
  background-size: 400% 400%, 100% 100%;
  animation: bpHoloShift 10s ease-in-out infinite alternate;
}

@keyframes bpHoloShift {
  0%   { background-position: 0% 40%, 0 0; }
  33%  { background-position: 100% 60%, 0 0; }
  66%  { background-position: 50% 100%, 0 0; }
  100% { background-position: 0% 40%, 0 0; }
}

/* Static fallback for html2canvas / email capture */
@media print, (prefers-reduced-motion: reduce) {
  .wrm-bp__left,
  .wrm-bp__right {
    animation: none !important;
    background:
      linear-gradient(145deg,
        rgba(200,210,240,0.25) 0%,
        rgba(180,240,220,0.18) 35%,
        rgba(240,210,200,0.15) 65%,
        rgba(200,200,240,0.22) 100%
      ),
      #e8eaf0 !important;
  }
}

/* ── LEFT panel ── */
.wrm-bp__left {
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* ── TEAR DIVIDER ── */
.wrm-bp__tear-divider {
  width: 0;
  flex: 0 0 0;
  background: none;
  border-left: 2px dashed rgba(154,131,112,0.45);
  position: relative;
  overflow: visible;
}
.wrm-bp__tear-notch {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  /* White fill to punch out, dark ring to read as a real boarding pass notch */
  background: #fff;
  box-shadow:
    0 0 0 1.5px rgba(154,131,112,0.55),
    0 0 0 3px rgba(255,255,255,0.6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.wrm-bp__tear-notch--top    { top: -10px; }
.wrm-bp__tear-notch--bottom { bottom: -10px; }

/* ── RIGHT stub panel ── */
.wrm-bp__right {
  width: 185px;
  flex: 0 0 185px;
  padding: 18px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* ── TOP ROW: photo + status + logo ── */
.wrm-bp__top-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

/* Couple photo */
.wrm-bp__photo {
  width: 60px; height: 60px; min-width: 60px;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(201,168,76,0.4);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.2), 0 2px 8px rgba(0,0,0,0.12);
  box-sizing: border-box;
}
.wrm-bp__photo img { width:100%; height:100%; object-fit:cover; display:block; }

/* Status */
.wrm-bp__status-block { flex: 1; min-width: 0; padding-top: 2px; }
.wrm-bp__status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid rgba(201,168,76,0.35); border-radius: 3px;
  padding: 2px 7px; margin-bottom: 5px;
}
.wrm-bp__status-dot { width:5px; height:5px; border-radius:50%; background:var(--bp-gold); flex-shrink:0; }
.wrm-bp__status-label {
  font-size:8px; letter-spacing:0.18em; color:var(--bp-brown-lt);
  text-transform:uppercase; font-family:-apple-system,BlinkMacSystemFont,sans-serif;
}
/* Status title — solid gold, no shimmer */
.wrm-bp__status-title {
  font-size: 13px; letter-spacing: 0.1em;
  font-weight: 800; text-transform: uppercase; margin-bottom: 2px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--bp-gold);
}
@keyframes bpMetallicShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.wrm-bp__status-sub { font-size:11px; color:var(--bp-brown-lt); font-style:italic; }

/* Site logo */
.wrm-bp__site-logo-wrap {
  width:60px; height:60px; min-width:60px; border-radius:50%; overflow:hidden;
  flex-shrink:0; border:2px solid rgba(201,168,76,0.35);
  box-shadow:0 0 0 1px rgba(201,168,76,0.2);
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.45); box-sizing:border-box;
}
.wrm-bp__site-logo-img { width:100%; height:100%; object-fit:cover; display:block; }
.wrm-bp__site-logo-fallback {
  font-size:14px; color:var(--bp-gold); font-weight:700;
  letter-spacing:0.04em; font-family:-apple-system,BlinkMacSystemFont,sans-serif; font-style:italic;
}

/* Divider */
.wrm-bp__divider {
  height:1px;
  background:linear-gradient(to right, rgba(201,168,76,0.5), transparent);
  margin-bottom:11px; flex-shrink:0;
}

/* Fields */
.wrm-bp__fields { display:flex; gap:16px; margin-bottom:4px; flex-wrap:wrap; }
.wrm-bp__field-label {
  font-size:7px; letter-spacing:0.2em; color:var(--bp-brown-lt);
  text-transform:uppercase; margin-bottom:2px;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
}
.wrm-bp__field-value {
  font-size:14px; color:var(--bp-near-black);
  font-family:'Courier New',monospace; letter-spacing:0.04em; font-weight:700;
}

.wrm-bp__tagline {
  font-size:10px; color:var(--bp-brown-lt); font-style:italic;
  margin-bottom:11px; line-height:1.5;
}

/* Couple name — solid gold */
.wrm-bp__couple-name { text-align:center; margin-top:auto; padding-top:4px; }
.wrm-bp__couple-name-text {
  font-family:'Cormorant Garamond','Georgia',serif;
  font-size:24px; font-style:italic; font-weight:700;
  letter-spacing:0.02em; line-height:1.1; display:block;
  color: var(--bp-gold);
}

/* Left flight badge */
.wrm-bp__flight-badge {
  display:flex; align-items:center; justify-content:flex-end;
  gap:6px; margin-top:-4px; margin-bottom:10px;
}
.wrm-bp__flight-badge-svg { width:14px; height:14px; display:block; flex-shrink:0; }
.wrm-bp__flight-badge-num {
  font-size:11px; font-weight:700; color:var(--bp-near-black);
  letter-spacing:0.1em; font-family:-apple-system,BlinkMacSystemFont,sans-serif;
}

/* Stats */
.wrm-bp__stats-section { margin-bottom:12px; }
.wrm-bp__stats-label {
  font-size:7px; letter-spacing:0.22em; color:var(--bp-brown-lt);
  text-transform:uppercase; margin-bottom:6px;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
}
.wrm-bp__stats-grid { display:flex; flex-direction:column; gap:4px; }
.wrm-bp__stat-row { display:flex; align-items:center; gap:8px; }
.wrm-bp__stat-name {
  font-size:8px; color:var(--bp-brown); letter-spacing:0.04em;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
  flex:0 0 110px; white-space:nowrap;
}
.wrm-bp__stat-bar {
  flex:1; height:4px;
  background:rgba(232,221,208,0.6);
  border-radius:99px; overflow:hidden;
}
.wrm-bp__stat-fill {
  height:100%;
  background: linear-gradient(90deg, #b8860b, #e8c97a, #c9a84c);
  border-radius:99px;
  transition:width 0.6s ease;
}

/* Crew prediction */
.wrm-bp__prediction {
  font-size:10px; margin-bottom:10px; line-height:1.5;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
}
.wrm-bp__prediction-label { color:var(--bp-brown-lt); font-style:italic; margin-right:2px; }
.wrm-bp__prediction-text { color:var(--bp-near-black); font-weight:700; }

/* Cabin perks */
.wrm-bp__perks { margin-bottom:12px; }
.wrm-bp__perks-label {
  font-size:7px; letter-spacing:0.22em; color:var(--bp-brown-lt);
  text-transform:uppercase; margin-bottom:5px;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
}
.wrm-bp__perks-list { display:flex; flex-wrap:wrap; gap:5px; }
.wrm-bp__perk-tag {
  font-size:8px; padding:3px 8px; border-radius:99px;
  border:1px solid rgba(201,168,76,0.45);
  color:var(--bp-brown); letter-spacing:0.04em;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
  background:rgba(255,255,255,0.35);
  white-space:nowrap;
}

/* ── PASSPORT STAMPS — SVG circular seal style matching reference images ── */
.wrm-bp__stamps {
  margin-bottom: 12px;
}
.wrm-bp__stamps-label {
  font-size: 7px; letter-spacing: 0.22em; color: var(--bp-brown-lt);
  text-transform: uppercase; margin-bottom: 8px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.wrm-bp__stamps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Each circular stamp */
.wrm-bp__stamp {
  display: inline-block;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  position: relative;
}
.wrm-bp__stamp-ring {
  width: 100%;
  height: 100%;
  color: var(--stamp-color, #1a3a70);
  opacity: 0.85;
}
/* Stagger rotations via transform on the SVG */
.wrm-bp__stamps-grid .wrm-bp__stamp:nth-child(1) .wrm-bp__stamp-ring { transform: rotate(-7deg); }
.wrm-bp__stamps-grid .wrm-bp__stamp:nth-child(2) .wrm-bp__stamp-ring { transform: rotate(4deg);  }
.wrm-bp__stamps-grid .wrm-bp__stamp:nth-child(3) .wrm-bp__stamp-ring { transform: rotate(-2deg); }

/* ── Officially Invited overlay stamp on barcode ── */
.wrm-bp__official-stamp {
  position: absolute;
  /* 20% smaller than previous; angled like a real ink stamp */
  right: 4px;
  bottom: 16px;
  transform: rotate(-12deg);
  width: 94px;
  height: 65px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.46;
}
.wrm-bp__official-stamp svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Passenger motto */
.wrm-bp__motto {
  font-size:11px; font-style:italic; color:var(--bp-near-black);
  text-align:center; margin-bottom:10px; line-height:1.5;
  font-family:'Cormorant Garamond','Georgia',serif;
  border-top:1px dashed rgba(201,168,76,0.35);
  padding-top:10px;
}

/* Easter egg */
.wrm-bp__easter-id {
  font-size:7px; color:rgba(100,80,60,0.15); letter-spacing:0.16em;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
  text-align:center; margin-bottom:4px; user-select:none;
}
.wrm-bp__easter-id:hover { color:var(--bp-brown-lt); }

/* Left barcode */
.wrm-bp__left-barcode {
  display:flex; flex-direction:column; align-items:center;
  gap:4px; margin-top:10px; padding-top:10px; width:100%;
  position: relative; /* needed for official stamp overlay */
  overflow: visible;
}
.wrm-bp__left-bar-canvas { display:block; max-width:100%; }
.wrm-bp__left-bar-no {
  font-size:7px; color:var(--bp-brown-lt); letter-spacing:0.12em;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
}

/* ── RIGHT panel elements ── */
.wrm-bp__flight { text-align:center; width:100%; }
.wrm-bp__flight-label {
  font-size:7px; letter-spacing:0.22em; color:var(--bp-brown-lt);
  text-transform:uppercase; margin-bottom:3px;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
}
.wrm-bp__flight-num { display:flex; align-items:center; justify-content:center; gap:7px; }
.wrm-bp__flight-svg { width:18px; height:18px; display:block; flex-shrink:0; }
/* Flight number — solid gold */
.wrm-bp__flight-num-text {
  font-size:16px; font-weight:800; letter-spacing:0.06em;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
  color: var(--bp-gold);
}

.wrm-bp__qr-wrap {
  background:rgba(255,255,255,0.75);
  padding:6px; border-radius:8px;
  box-shadow:0 1px 6px rgba(58,46,34,0.12);
}
.wrm-bp__qr-canvas { display:block; border-radius:4px; }

.wrm-bp__privacy-note { text-align:center; }
.wrm-bp__privacy-title {
  font-size:7px; color:var(--bp-gold); letter-spacing:0.06em;
  font-weight:700; text-transform:uppercase; margin-bottom:2px;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
}
.wrm-bp__privacy-body {
  font-size:8px; color:var(--bp-brown-lt); font-style:italic; line-height:1.4;
}

.wrm-bp__barcode-wrap {
  margin-top:auto; padding-top:4px;
  display:flex; flex-direction:column; align-items:center; gap:4px; width:100%;
}
.wrm-bp__bar-canvas { display:block; }
.wrm-bp__pass-no {
  font-size:7px; color:var(--bp-brown-lt); letter-spacing:0.1em;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
  text-align:center; word-break:break-all;
}

/* ── Privacy pill ── */
.wrm-bp__privacy-pill {
  display:flex; align-items:center; gap:8px;
  background:rgba(255,255,255,0.45); border-radius:20px;
  padding:5px 13px; border:1px solid rgba(201,168,76,0.3);
  max-width:700px; width:100%; box-sizing:border-box;
}
.wrm-bp__privacy-pill-icon { font-size:11px; flex-shrink:0; }
.wrm-bp__privacy-pill-text {
  font-size:9px; color:var(--bp-brown-lt); letter-spacing:0.06em;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
}

/* ── Action buttons ── */
.wrm-bp__actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.wrm-bp__btn {
  padding:11px 26px; border-radius:999px; border:1.5px solid;
  cursor:pointer; font-size:10px; font-weight:700; letter-spacing:0.14em;
  text-transform:uppercase; transition:all 0.2s;
  font-family:-apple-system,BlinkMacSystemFont,sans-serif;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation; white-space:nowrap;
}
.wrm-bp__btn--primary  { background:var(--bp-gold); border-color:var(--bp-gold); color:#0a0a0a; }
.wrm-bp__btn--primary:hover  { background:#e8c97a; border-color:#e8c97a; }
.wrm-bp__btn--secondary { background:transparent; border-color:rgba(112,78,23,0.3); color:#704e17; }
.wrm-bp__btn--secondary:hover { background:rgba(112,78,23,0.06); }
.wrm-bp__btn:disabled { opacity:0.65; cursor:not-allowed; }

/* ── Mobile ── */
@media (max-width:600px) {
  .wrm-bp { flex-direction:column; max-width:100%; }
  .wrm-bp__tear-divider {
    width:auto; height:0; flex:none; background:none;
    border-top:2px dashed rgba(154,131,112,0.4);
  }
  .wrm-bp__tear-notch { top:50%; transform:translateY(-50%); left:auto; }
  .wrm-bp__tear-notch--top    { left:-10px; }
  .wrm-bp__tear-notch--bottom { right:-10px; left:auto; }
  .wrm-bp__right {
    width:100%; flex:none; flex-direction:row; flex-wrap:wrap;
    justify-content:space-around; align-items:center;
    padding:14px 16px; gap:12px;
  }
  .wrm-bp__barcode-wrap { margin-top:0; }
  .wrm-bp__couple-name-text { font-size:22px; }
  .wrm-bp__left { padding:18px 16px 14px; }
  .wrm-bp__stat-name { flex:0 0 90px; }
  .wrm-bp__stamps { gap:5px; }
  .wrm-bp__stamp { width:44px; height:44px; font-size:5px; }
  .wrm-bp__stamp--official { width:52px; height:52px; }
}

@media print {
  .wrm-bp__actions, .wrm-bp__above-label, .wrm-bp__privacy-pill { display:none!important; }
  .wrm-bp { box-shadow:none; border-radius:10px; }
  .wrm-bp__left, .wrm-bp__right { animation:none!important; }
}
