/* ============================================================
   Photography Training Tickets — Frontend CSS v3
   Split layout: Image LEFT · Info RIGHT
   ============================================================ */

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

:root {
  --ptt-black:  #0d0d0d;
  --ptt-dark:   #1a1a1a;
  --ptt-mid:    #555;
  --ptt-muted:  #888;
  --ptt-border: #e5e5e0;
  --ptt-bg:     #f8f8f5;
  --ptt-white:  #fff;
  --ptt-gold:   #d4af37;
  --ptt-green:  #16a34a;
  --ptt-red:    #dc2626;
  --ptt-radius: 16px;
  --ptt-shadow: 0 8px 48px rgba(0,0,0,.13);
}

.ptt-wrapper * { box-sizing: border-box; }

/* ── Wrapper ─────────────────────────────────────────────── */

.ptt-wrapper {
  font-family: 'DM Sans', sans-serif;
  max-width: 960px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   SPLIT CARD  (image left · info right)
══════════════════════════════════════════════════════════ */

.ptt-event-card {
  background: var(--ptt-white);
  border-radius: var(--ptt-radius);
  box-shadow: var(--ptt-shadow);
  overflow: hidden;
  /* Default (no image): single column */
}

/* When a feature image is present → two-column grid */
.ptt-event-card.ptt-has-image {
  display: grid;
  grid-template-columns: 2fr 3fr;  /* image ~40% · info ~60% */
  min-height: 560px;
}

/* ── LEFT COLUMN ─────────────────────────────────────────── */

.ptt-split-left {
  position: relative;
  overflow: hidden;
  /* stretches to full card height */
}

.ptt-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
  cursor: default;
}

.ptt-img-wrap.ptt-has-video {
  cursor: pointer;  /* show pointer when clickable */
}

.ptt-feature-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s ease, filter .4s ease;
}

.ptt-img-wrap.ptt-has-video:hover .ptt-feature-img {
  transform: scale(1.04);
  filter: brightness(.75);
}

/* ── Play button overlay ─────────────────────────────────── */

.ptt-play-overlay {
  position: absolute;
  inset: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* Subtle dark gradient always visible so button isn't lost on dark images */
  background: radial-gradient(ellipse at center, rgba(0,0,0,.25) 0%, transparent 70%);
  transition: background .3s;
}

.ptt-play-overlay:hover {
  background: radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, transparent 70%);
}

/* Outer ring */
.ptt-play-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 28px rgba(0,0,0,.35), 0 0 0 6px rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  backdrop-filter: blur(4px);
}

.ptt-play-overlay:hover .ptt-play-ring {
  transform: scale(1.12);
  box-shadow: 0 6px 36px rgba(0,0,0,.45), 0 0 0 8px rgba(255,255,255,.3);
}

/* CSS-drawn play triangle */
.ptt-play-triangle {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #0d0d0d;
  margin-left: 4px; /* optical centre */
  transition: border-color .2s;
}

.ptt-play-overlay:hover .ptt-play-triangle {
  border-left-color: var(--ptt-gold);
}

/* "Watch preview" label under the ring */
.ptt-play-overlay::after {
  content: 'Watch Preview';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  opacity: 0;
  transition: opacity .25s;
  white-space: nowrap;
}

.ptt-play-overlay:hover::after {
  opacity: 1;
}

/* ── RIGHT COLUMN ────────────────────────────────────────── */

.ptt-split-right {
  display: flex;
  flex-direction: column;
  overflow-y: auto;        /* scroll if content overflows */
}

/* ── Event Header ────────────────────────────────────────── */

.ptt-event-header {
  background: linear-gradient(135deg, #0d0d0d 0%, #282828 100%);
  padding: 36px 36px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.ptt-event-header::after {
  content: '';
  position: absolute;
  bottom: -50px; right: -20px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(212,175,55,.07); pointer-events: none;
}

.ptt-event-badge {
  display: inline-block;
  font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ptt-gold); background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.3);
  padding: 3px 11px; border-radius: 20px; margin-bottom: 14px;
}

.ptt-event-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.2; margin: 0 0 10px; color: #fff;
}

.ptt-event-desc {
  font-size: 13px; line-height: 1.75;
  color: rgba(255,255,255,.65); margin: 0;
}

/* ── Meta bar ────────────────────────────────────────────── */

.ptt-event-meta {
  padding: 14px 36px; border-bottom: 1px solid var(--ptt-border);
  background: var(--ptt-bg); flex-shrink: 0;
}

.ptt-meta-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--ptt-mid); line-height: 1.5;
}

/* ── Learn / Bonus ───────────────────────────────────────── */

.ptt-learn-section,
.ptt-bonus-section {
  padding: 20px 36px;
  border-bottom: 1px solid var(--ptt-border);
  flex-shrink: 0;
}

.ptt-section-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--ptt-muted); margin: 0 0 12px;
}

.ptt-learn-list,
.ptt-bonus-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
}

.ptt-learn-list li,
.ptt-bonus-list li {
  font-size: 13px; color: var(--ptt-dark);
  padding-left: 18px; position: relative; line-height: 1.5;
}

.ptt-learn-list li::before { content:'→'; position:absolute; left:0; color:var(--ptt-gold); font-weight:800; }
.ptt-bonus-list li::before { content:'✓'; position:absolute; left:0; color:var(--ptt-green); font-weight:800; }

/* ── CTA ─────────────────────────────────────────────────── */

.ptt-book-btn-wrap {
  padding: 24px 36px;
  margin-top: auto; /* push to bottom of right column */
}

.ptt-book-btn {
  display: inline-block;
  background: var(--ptt-black); color: #fff;
  border: none; border-radius: 10px;
  padding: 13px 32px; font-size: 15px; font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  white-space: nowrap;
}

.ptt-book-btn:hover {
  background: #333; transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}

/* ══════════════════════════════════════════════════════════
   VIDEO LIGHTBOX
══════════════════════════════════════════════════════════ */

.ptt-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ptt-fade-in .2s ease;
}

.ptt-vlb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.ptt-vlb-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  animation: ptt-zoom-in .3s cubic-bezier(.34,1.4,.64,1);
}

@keyframes ptt-zoom-in {
  from { transform: scale(.88); opacity:0; }
  to   { transform: scale(1);   opacity:1; }
}

.ptt-vlb-close {
  position: absolute;
  top: -44px; right: 0;
  background: rgba(255,255,255,.12);
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 20px; font-weight: 300; line-height: 1;
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}

.ptt-vlb-close:hover { background: rgba(255,255,255,.25); }

.ptt-vlb-embed-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

.ptt-vlb-embed-wrap iframe,
.ptt-vlb-embed-wrap video {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}

/* ══════════════════════════════════════════════════════════
   TICKET SELECTION MODAL
══════════════════════════════════════════════════════════ */

.ptt-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: ptt-fade-in .2s ease;
}

@keyframes ptt-fade-in { from { opacity:0; } to { opacity:1; } }

.ptt-modal {
  background: var(--ptt-white);
  border-radius: var(--ptt-radius);
  width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  animation: ptt-slide-up .25s cubic-bezier(.34,1.56,.64,1);
  -webkit-overflow-scrolling: touch;
}

@keyframes ptt-slide-up {
  from { transform:translateY(20px); opacity:0; }
  to   { transform:translateY(0);    opacity:1; }
}

.ptt-modal-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 28px; border-bottom:1px solid var(--ptt-border);
  position:sticky; top:0; background:#fff; z-index:10;
}

.ptt-modal-header h2 {
  font-family:'DM Sans',sans-serif; font-size:18px; font-weight:800;
  margin:0; color:var(--ptt-dark);
}

.ptt-modal-close {
  background:none; border:none; font-size:22px; line-height:1;
  cursor:pointer; color:var(--ptt-muted); padding:4px 8px;
  border-radius:6px; transition:color .15s,background .15s;
}
.ptt-modal-close:hover { color:var(--ptt-dark); background:var(--ptt-bg); }

.ptt-modal-body { padding:24px 28px; }

/* Batch items */
.ptt-batch-item {
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 0; border-bottom:1px solid var(--ptt-border); gap:16px;
}
.ptt-batch-item:last-of-type { border-bottom:none; }
.ptt-batch-item.ptt-batch-soldout { opacity:.45; }
.ptt-batch-info { flex:1; }
.ptt-batch-label { font-size:14px; font-weight:600; color:var(--ptt-dark); margin-bottom:5px; }
.ptt-batch-price { display:flex; align-items:center; gap:8px; }
.ptt-price-current  { font-size:19px; font-weight:800; color:var(--ptt-dark); }
.ptt-price-original { font-size:14px; color:var(--ptt-muted); text-decoration:line-through; }

.ptt-sold-out-badge {
  display:inline-block; margin-top:5px;
  font-size:10px; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  color:var(--ptt-red); background:#fef2f2; border:1px solid #fecaca;
  padding:2px 8px; border-radius:20px;
}
.ptt-low-seats {
  display:inline-block; margin-top:5px; font-size:11px; font-weight:600;
  color:#d97706; background:#fffbeb; border:1px solid #fde68a;
  padding:2px 8px; border-radius:20px;
}

/* Qty controls */
.ptt-qty-control {
  display:flex; align-items:center;
  border:1.5px solid var(--ptt-border); border-radius:10px;
  overflow:hidden; flex-shrink:0;
}
.ptt-qty-btn {
  background:none; border:none; width:40px; height:40px;
  font-size:18px; font-weight:600; color:var(--ptt-dark);
  cursor:pointer; display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.ptt-qty-btn:hover:not(:disabled) { background:var(--ptt-bg); }
.ptt-qty-btn:disabled { cursor:not-allowed; color:#ccc; }
.ptt-qty-value {
  width:40px; height:40px; text-align:center; line-height:40px;
  font-size:15px; font-weight:700; color:var(--ptt-dark);
  border-left:1.5px solid var(--ptt-border);
  border-right:1.5px solid var(--ptt-border);
}

/* Total + form */
.ptt-total-bar {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 0 0; font-size:15px; color:var(--ptt-mid); font-weight:500;
  border-top:2px solid var(--ptt-border); margin-top:8px;
}
.ptt-total-amount { font-size:22px; font-weight:800; color:var(--ptt-dark); }

.ptt-form-divider { height:1px; background:var(--ptt-border); margin:20px 0; }
.ptt-form-title   { font-size:15px; font-weight:700; margin:0 0 18px; color:var(--ptt-dark); }
.ptt-form-group   { margin-bottom:16px; }
.ptt-form-group label {
  display:block; font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:1px; color:var(--ptt-muted); margin-bottom:6px;
}
.ptt-required { color:var(--ptt-red); }
.ptt-form-group input {
  width:100%; height:48px;
  border:1.5px solid var(--ptt-border); border-radius:10px;
  padding:0 14px; font-size:14px; font-family:'DM Sans',sans-serif;
  color:var(--ptt-dark); background:#fff; outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.ptt-form-group input:focus {
  border-color:var(--ptt-dark);
  box-shadow:0 0 0 3px rgba(13,13,13,.08);
}
.ptt-error-msg {
  background:#fef2f2; border:1px solid #fecaca; color:var(--ptt-red);
  border-radius:8px; padding:10px 14px; font-size:13px; margin-bottom:14px;
}
.ptt-pay-btn {
  width:100%; height:52px; background:var(--ptt-black); color:#fff;
  border:none; border-radius:12px; font-size:16px; font-weight:700;
  font-family:'DM Sans',sans-serif; cursor:pointer; margin-top:8px;
  transition:background .2s, transform .15s;
}
.ptt-pay-btn:hover:not(:disabled) { background:#333; transform:translateY(-1px); }
.ptt-pay-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.ptt-pay-note { text-align:center; font-size:12px; color:var(--ptt-muted); margin:10px 0 0; }
.ptt-no-batches { text-align:center; color:var(--ptt-muted); padding:28px 0; font-size:15px; }

/* ══════════════════════════════════════════════════════════
   TICKET CARD (embedded in confirmation page)
══════════════════════════════════════════════════════════ */

.ptt-ticket-card {
  font-family:'DM Sans',sans-serif; background:#fff;
  border-radius:var(--ptt-radius); overflow:hidden;
  box-shadow:var(--ptt-shadow); max-width:680px; margin:0 auto;
}
.ptc-header {
  background:linear-gradient(135deg,#0d0d0d,#282828);
  padding:32px 40px; color:#fff; position:relative; overflow:hidden;
}
.ptc-header::after {
  content:''; position:absolute; bottom:-50px; right:-30px;
  width:180px; height:180px; border-radius:50%;
  background:rgba(212,175,55,.06); pointer-events:none;
}
.ptc-badge {
  font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase;
  color:#d4af37; background:rgba(212,175,55,.12); border:1px solid rgba(212,175,55,.3);
  padding:3px 12px; border-radius:20px; display:inline-block; margin-bottom:12px;
}
.ptc-title { font-family:'Playfair Display',serif; font-size:22px; font-weight:700; margin-bottom:4px; }
.ptc-sub   { font-size:13px; color:rgba(255,255,255,.6); margin:0; }
.ptc-body  { padding:28px 40px; }
.ptc-grid  { display:grid; grid-template-columns:1fr 1fr; gap:18px 24px; margin-bottom:22px; }
.ptc-full  { grid-column:1/-1; }
.ptc-field label {
  display:block; font-size:10px; font-weight:700; letter-spacing:1.5px;
  text-transform:uppercase; color:#888; margin-bottom:4px;
}
.ptc-field span { font-size:14px; font-weight:600; color:#1a1a1a; }
.ptc-divider { border:none; border-top:1px dashed #ddd; margin:18px 0; }
.ptc-codes-title {
  font-size:11px; font-weight:700; letter-spacing:1.5px;
  text-transform:uppercase; color:#888; margin-bottom:12px;
}
.ptc-code-row {
  display:flex; align-items:center; justify-content:space-between;
  background:#f8f8f6; border-radius:10px; padding:12px 16px; margin-bottom:8px;
}
.ptc-seat { font-size:12px; color:#888; }
.ptc-code { font-family:'Courier New',monospace; font-size:17px; font-weight:700; letter-spacing:2px; }
.ptc-footer {
  background:#f8f8f6; padding:16px 40px;
  display:flex; justify-content:space-between; align-items:center;
}
.ptc-note  { font-size:12px; color:#999; }
.ptc-total { background:#0d0d0d; color:#fff; padding:7px 18px; border-radius:20px; font-size:13px; font-weight:700; }
.ptc-print-wrap { text-align:center; margin-top:20px; }
.ptc-print-btn {
  display:inline-flex; align-items:center; gap:8px;
  background:var(--ptt-black); color:#fff; text-decoration:none;
  padding:12px 28px; border-radius:10px;
  font-size:14px; font-weight:700; font-family:'DM Sans',sans-serif;
  transition:background .2s, transform .15s;
}
.ptc-print-btn:hover { background:#333; color:#fff; transform:translateY(-1px); }

/* ── Confirmation Banner ─────────────────────────────────── */
.ptt-confirmation-wrap { max-width:720px; margin:0 auto; font-family:'DM Sans',sans-serif; }
.ptt-confirmation-banner {
  display:flex; align-items:flex-start; gap:16px;
  background:#f0fdf4; border:1px solid #bbf7d0;
  border-radius:12px; padding:18px 24px; margin-bottom:28px;
  font-size:15px; color:#166534; line-height:1.6;
}
.ptt-confirmation-icon {
  flex-shrink:0; width:32px; height:32px;
  background:#16a34a; color:#fff; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; font-weight:700;
}

/* ── Notice Alerts ───────────────────────────────────────── */
.ptt-notice { border-radius:10px; padding:16px 20px; font-size:15px; font-family:'DM Sans',sans-serif; margin-bottom:16px; }
.ptt-notice-error { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.ptt-notice-info  { background:#eff6ff; color:#1e40af; border:1px solid #bfdbfe; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE  — stack vertically below 680px
══════════════════════════════════════════════════════════ */

@media (max-width: 680px) {

  .ptt-event-card.ptt-has-image {
    grid-template-columns: 1fr;  /* stack: image on top, info below */
  }

  .ptt-split-left { order: -1; }  /* image stays on top */

  .ptt-img-wrap { min-height: 260px; max-height: 340px; }

  .ptt-play-ring { width:60px; height:60px; }
  .ptt-play-triangle { border-width:10px 0 10px 17px; }

  .ptt-event-header,
  .ptt-event-meta,
  .ptt-learn-section,
  .ptt-bonus-section,
  .ptt-book-btn-wrap { padding-left:22px; padding-right:22px; }

  .ptt-event-title { font-size:22px; }

  .ptt-learn-list,
  .ptt-bonus-list { grid-template-columns:1fr; }

  .ptt-modal-body,
  .ptt-modal-header { padding-left:18px; padding-right:18px; }

  .ptc-header, .ptc-body, .ptc-footer { padding-left:20px; padding-right:20px; }
  .ptc-grid { grid-template-columns:1fr; }
}

@media (max-width: 440px) {
  .ptt-book-btn { width:100%; text-align:center; }
}
