/* ===========================
   FONTS
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'Big Caslon';
  src: local('Big Caslon'), local('BigCaslon');
  font-weight: normal;
  font-style: normal;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

#event-description {
  white-space: pre-line;
}

:root {
  --accent:       #ffffff;
  --accent-dark:  #420606;
  --accent-light: #ffffff;
  --gold:         #420606;
  --text:         #420606;
  --text-muted:   #420606;
  --bg:           #420606;
  --card-bg:      #ffffff;
  --border:       #e8d8d0;
  --cream:        #F7F0E8;
  --success:      #5a8a6a;
  --error:        #9b3a3a;
  --radius:       14px;
  --shadow:       0 2px 8px rgba(80,20,20,0.07), 0 8px 32px rgba(80,20,20,0.05);
  --hero-h:       480px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
}

h1, h2, h3, h4 {
  font-family: 'Big Caslon', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-weight: normal;
  letter-spacing: .01em;
}

a { color: var(--text); }
svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  height: var(--hero-h);
  background-image: url('https://thesistertribe.nl/wp-content/uploads/2026/04/WhatsApp-Image-2026-04-01-at-17.06.24.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(60,10,18,0.88) 0%, rgba(60,10,18,0.4) 65%, rgba(60,10,18,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px 44px;
  color: #fff;
}
.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: normal;
  margin-bottom: 10px;
  line-height: 1.15;
  color: #fff;
}
.hero-content p { font-size: 1rem; opacity: .85; margin-bottom: 20px; font-weight: 300; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; }
.meta-item { display: flex; align-items: center; gap: 7px; font-size: .88rem; opacity: .9; font-weight: 300; }
.meta-item svg { width: 15px; height: 15px; }

/* ===========================
   MAIN LAYOUT
=========================== */
.main-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 72px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .main-layout { grid-template-columns: 1fr; }
  .summary-panel { order: 1; position: static; }
}

/* ===========================
   CARDS
=========================== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
.card h2 {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 20px;
  color: var(--text);
}

.main-content { min-width: 0; }

/* ===========================
   EVENT INFO
=========================== */
#event-info-card p { color: var(--text); line-height: 1.8; font-weight: 300; }
.organiser { margin-top: 16px; font-size: .88rem; color: var(--text); }
.organiser strong { color: var(--text); font-weight: 500; }

/* ===========================
   TICKET TYPES
=========================== */
.ticket-type {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1.5px solid #631018;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color .2s, background .2s;
  background: #ffffff;
}
.ticket-type:last-child { margin-bottom: 0; }
.ticket-type.selected { border-color: #84000f; background: #ffffff; }
.ticket-type.sold-out { opacity: .45; pointer-events: none; }

.ticket-info { flex: 1; min-width: 0; }
.ticket-name { font-weight: 500; font-size: .98rem; color: var(--text); font-family: 'Poppins', sans-serif; }
.ticket-desc { font-size: .83rem; color: var(--text-muted); margin-top: 3px; font-weight: 300; }
.ticket-avail { font-size: .78rem; color: var(--text-muted); margin-top: 5px; font-weight: 300; }
.ticket-avail.low { color: var(--gold); }
.ticket-avail.sold { color: var(--error); }

.ticket-price { font-weight: 500; font-size: 1rem; color: var(--text); white-space: nowrap; font-family: 'Poppins', sans-serif; }
.ticket-free { font-weight: 500; font-size: 1rem; color: var(--success); }

.qty-control { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 400; color: var(--text);
  transition: border-color .15s, background .15s, color .15s;
}
.qty-btn:hover:not(:disabled) { border-color: var(--text); color: var(--text); background: var(--accent); }
.qty-btn:disabled { opacity: .3; cursor: default; }
.qty-val { width: 28px; text-align: center; font-weight: 500; font-size: .98rem; color: var(--text); }

/* ===========================
   FORM
=========================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .83rem; font-weight: 500; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; }
.field input {
  padding: 11px 16px;
  border: 1.5px solid #631018;
  border-radius: 8px;
  font-size: .95rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  background: #ffffff;
  color: var(--text);
  transition: border-color .15s;
  outline: none;
}
.field input:focus { border-color: #631018; background: #420606; color: #ffffff; }
.field:nth-child(3) { grid-column: 1 / -1; }

.terms-row { margin: 20px 0 22px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .88rem; color: #420606; font-weight: 300; }
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
  accent-color: #420606 ; cursor: pointer;
}

.error-msg {
  background: #fdf0f0; border: 1px solid #e8c0c0;
  border-radius: 8px; color: var(--error);
  font-size: .86rem; padding: 10px 16px; margin-bottom: 16px;
}

.btn-checkout {
  width: 100%; padding: 15px 24px;
  background: #420606;
  color: #fff; border: none; border-radius: 10px;
  font-size: .92rem; font-weight: 500;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-checkout:hover:not(:disabled) { background: #420606; }
.btn-checkout:active:not(:disabled) { transform: scale(.98); }
.btn-checkout:disabled { opacity: .4; cursor: not-allowed; }
.btn-icon { width: 18px; height: 18px; stroke: #fff; }


/* ===========================
   KORTINGSCODE
=========================== */
.discount-row { margin: 20px 0 10px; }
.discount-input-wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.discount-input-wrap input { min-width: 0; flex: 1 1 60%; }
.discount-input-wrap button { flex: 0 0 auto; }
.discount-input-wrap input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid #631018;
  border-radius: 8px;
  font-size: .9rem; font-family: 'Poppins', sans-serif; font-weight: 300;
  background: #ffffff; color: #420606;
  outline: none; transition: border-color .15s;
  letter-spacing: .06em;
}
.discount-input-wrap input:focus { border-color: #420606; }
.discount-input-wrap input:disabled { opacity: .6; background: #FAF6F2; }
.discount-input-wrap button {
  padding: 10px 18px;
  background: #420606; color: #fff;
  border: none; border-radius: 8px;
  font-size: .82rem; font-weight: 500;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
.discount-input-wrap button:hover:not(:disabled) { background: #5C1220; }
.discount-input-wrap button:disabled { opacity: .6; cursor: default; }
#discount-feedback { margin-top: 7px; min-height: 18px; }
.summary-row.discount { color: #5a8a6a; font-weight: 400; }

.terms-row { margin: 20px 0 22px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .88rem; color: var(--text-muted); font-weight: 300; }
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}



/* ===========================
   SUMMARY PANEL
=========================== */
.summary-panel { position: sticky; top: 24px; }
.summary-card {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 28px;
  color: #420606;
}
.summary-card h3 {
  font-family: 'Big Caslon', 'Palatino Linotype', Georgia, serif;
  font-size: 1.3rem;
  font-weight: normal;
  margin-bottom: 20px;
  color: #420606;
}
.summary-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: .88rem; }
.summary-item-name { opacity: .8; flex: 1; font-weight: 300; }
.summary-item-price { font-weight: 500; white-space: nowrap; }
.summary-divider { border: none; border-top: 1px solid rgba(255,255,255,.2); margin: 16px 0; }
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; margin-bottom: 8px; color: #420606;}
.summary-row.service { opacity: .75; font-weight: 300; }
.summary-row.total { margin-top: 4px; font-size: 1rem; }
.summary-row.total strong { font-size: 1.3rem; color: var(--text); }
.summary-note { margin-top: 18px; font-size: .76rem; opacity: .65; text-align: center; font-weight: 300; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.pay-icon {
  font-size: .7rem; background: #420606;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px; padding: 3px 8px;
  color: rgba(255,255,255,.8); font-weight: 400;
}

/* ===========================
   LOADING OVERLAY
=========================== */
.loading-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(250,246,242,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay p { font-size: .9rem; color: var(--text-muted); font-weight: 300; }

/* ===========================
   FOOTER
=========================== */

.site-footer {
  text-align: center; padding: 28px;
  font-size: .8rem; color: #FFFFFF;
  font-weight: 300; letter-spacing: .03em;
}

.built-footer {
     color: #FFFFFF;
}
/* ===========================
   SUCCESS / CANCELLED PAGES
=========================== */
.status-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--bg);
}
.status-box {
  background: var(--card-bg); border-radius: var(--radius);
  padding: 52px 44px; max-width: 560px; width: 100%;
  box-shadow: var(--shadow); text-align: center;
  border: 1px solid var(--border);
}
.status-icon { font-size: 2.8rem; margin-bottom: 20px; }
.status-box h1 {
  font-size: 2rem; font-weight: normal; margin-bottom: 14px;
  color: #420606;
}
.status-box p { color: var(--text); margin-bottom: 8px; font-weight: 300; }
.status-detail { background: #ffffff; border-radius: 10px; padding: 18px 20px; margin: 22px 0; text-align: left; border: 1px solid var(--border); }
.status-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: .88rem; }
.status-detail dt { color: var(--text); font-weight: 400; }
.status-detail dd { font-weight: 500; }
.btn-back {
  display: inline-block; margin-top: 28px; padding: 13px 32px;
  background: #420606; color: #fff; border-radius: 8px;
  text-decoration: none; font-weight: 500; font-size: .88rem;
  letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s;
}
.btn-back:hover { background: var(--accent-dark); }