/* ==========================================================================
   Photo Booth Booking Form
   Palette pulled from the existing site (Audio Guestbook page):
   teal buttons, muted purple accent, orange CTA, script-style headers.
   Change the CSS variables below if the brand fonts/colors differ slightly
   from what I picked off the screenshot.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --color-teal: #4a9b95;
  --color-teal-dark: #3d817c;
  --color-teal-light: #eaf4f3;
  --color-purple: #7c6a94;
  --color-purple-light: #f1eef6;
  --color-orange: #f0952e;
  --color-orange-dark: #d97f1c;
  --color-text: #3f3f3f;
  --color-text-muted: #767676;
  --color-border: #e2e2e2;
  --color-bg-card: #f7f7f7;
  --color-white: #ffffff;
  --color-danger: #d9534f;

  --font-display: 'Pacifico', cursive;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 2px 10px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

.pbf-wrap {
  font-family: var(--font-body);
  color: var(--color-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 120px;
  line-height: 1.5;
}

.pbf-wrap h1, .pbf-wrap h2, .pbf-wrap h3 { margin: 0 0 8px; font-weight: 600; }

.pbf-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 42px;
  color: var(--color-teal);
  text-align: center;
  margin-bottom: 4px;
}

.pbf-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  font-size: 15px;
}

/* ---------- Step numbering ---------- */
.pbf-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 18px;
}
.pbf-step-label .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  flex-shrink: 0;
}
.pbf-step-label h2 { font-size: 20px; margin: 0; }

/* ---------- Booth type cards ---------- */
.pbf-booth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 700px) {
  .pbf-booth-grid { grid-template-columns: 1fr; }
}

.pbf-booth-card { position: relative; }
.pbf-booth-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pbf-booth-card label {
  display: block;
  cursor: pointer;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pbf-booth-card label:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.pbf-booth-card input[type="radio"]:checked + label {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px var(--color-teal-light);
}
.pbf-booth-card input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}
.pbf-booth-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-bg-card) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path fill="%23c9c9c9" d="M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/></svg>') center/48px no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.pbf-booth-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pbf-booth-info { padding: 14px 16px; text-align: center; }
.pbf-booth-info .name { font-weight: 600; font-size: 16px; }
.pbf-booth-info .from-price { color: var(--color-orange-dark); font-size: 14px; margin-top: 2px; }
.pbf-booth-info p.desc {
  font-size: 13px; color: var(--color-text-muted); margin: 6px 0 0;
}

/* ---------- Customization panel ---------- */
.pbf-panel {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 8px;
}
@media (max-width: 600px) { .pbf-panel { padding: 18px 16px; } }

.pbf-hidden { display: none !important; }

.pbf-field-row {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.pbf-field-row label.field-label {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}
.pbf-field-row .hint { font-size: 12px; color: var(--color-text-muted); font-style: italic; }
.pbf-base-price-line {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 15px;
}
.pbf-base-price-line .price { color: var(--color-orange-dark); }

.pbf-number-input {
  width: 90px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  margin-top: 6px;
}

/* Section heading inside the panel (Prints / Add-ons / Backdrop) */
.pbf-section-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-purple);
  font-weight: 700;
  margin: 22px 0 10px;
}
.pbf-section-heading:first-of-type { margin-top: 0; }

/* Radio / checkbox option rows */
.pbf-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}
.pbf-option:last-child { border-bottom: none; }
.pbf-option input[type="radio"],
.pbf-option input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--color-teal);
  flex-shrink: 0;
}
.pbf-option .option-label { flex: 1; font-size: 14.5px; }
.pbf-option .price-tag { font-size: 14px; font-weight: 600; white-space: nowrap; }
.pbf-option .price-tag .was { color: #b6b6b6; text-decoration: line-through; margin-right: 6px; font-weight: 400; }
.pbf-option .price-tag .now { color: var(--color-orange-dark); }
.pbf-option .price-tag .included { color: var(--color-teal-dark); }

/* Tooltip (click/tap to open — works on mobile, hover doesn't) */
.pbf-tip-wrap { position: relative; display: inline-flex; }
.pbf-tip-btn {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-purple);
  color: #fff;
  border: none;
  font-size: 11px;
  line-height: 18px;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
}
.pbf-tip-bubble {
  display: none;
  position: absolute;
  z-index: 20;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text);
  color: #fff;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 8px;
  width: 220px;
  line-height: 1.4;
  box-shadow: var(--shadow-soft);
}
.pbf-tip-bubble.open { display: block; }
.pbf-tip-bubble::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-text);
}

/* Backdrop thumbnails (replaces hover-to-view) */
.pbf-backdrop-thumb {
  width: 46px; height: 46px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-card) center/cover;
  cursor: zoom-in;
  border: 1px solid var(--color-border);
}
.pbf-backdrop-thumb:hover { outline: 2px solid var(--color-teal); }

/* Lightbox modal for full-size backdrop image */
.pbf-lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20,20,20,0.82);
  z-index: 100;
  align-items: center; justify-content: center;
  padding: 24px;
}
.pbf-lightbox.open { display: flex; }
.pbf-lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; }
.pbf-lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: none; color: #fff;
  font-size: 30px; cursor: pointer; line-height: 1;
}

/* Conditional text fields (green screen theme) */
.pbf-subfield { margin-top: 10px; margin-left: 28px; }
.pbf-subfield input[type="text"] { width: 100%; max-width: 320px; }

/* ---------- Text inputs generally ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 100%;
  color: var(--color-text);
  background: #fff;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px var(--color-teal-light);
}
textarea { resize: vertical; min-height: 90px; }

/* ---------- Contact / event section ---------- */
.pbf-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
@media (max-width: 640px) { .pbf-contact-grid { grid-template-columns: 1fr; } }
.pbf-form-group { display: flex; flex-direction: column; gap: 6px; }
.pbf-form-group label { font-size: 13.5px; font-weight: 600; }
.pbf-form-group.full { grid-column: 1 / -1; }
.pbf-honeypot { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Order summary ---------- */
.pbf-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .pbf-layout { grid-template-columns: 1fr; }
}

.pbf-summary {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 20px;
}
.pbf-summary h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-purple); }
.pbf-summary-list { list-style: none; margin: 12px 0; padding: 0; font-size: 13.5px; }
.pbf-summary-list li { display: flex; justify-content: space-between; padding: 5px 0; gap: 8px; }
.pbf-summary-list li span:first-child { color: var(--color-text-muted); }
.pbf-summary-empty { color: var(--color-text-muted); font-size: 13.5px; font-style: italic; }
.pbf-summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--color-border);
  padding-top: 12px; margin-top: 8px;
  font-weight: 700; font-size: 18px;
}
.pbf-summary-total .amount { color: var(--color-orange-dark); }

.pbf-submit-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  background: var(--color-orange);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s ease;
}
.pbf-submit-btn:hover { background: var(--color-orange-dark); }
.pbf-submit-btn:disabled { background: #d8d8d8; cursor: not-allowed; }

/* Mobile: summary collapses to a fixed bottom bar */
@media (max-width: 900px) {
  .pbf-summary {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    z-index: 40;
    max-height: 70vh;
    overflow-y: auto;
  }
  .pbf-summary.collapsed .pbf-summary-list { display: none; }
  .pbf-summary-toggle {
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
  }
  .pbf-summary-toggle .chevron { transition: transform .15s ease; }
  .pbf-summary.collapsed .chevron { transform: rotate(180deg); }
  .pbf-wrap { padding-bottom: 200px; }
}
.pbf-summary-toggle { display: none; }
@media (max-width: 900px) {
  .pbf-summary-toggle { display: flex; }
  .pbf-summary h3 { display: none; }
}

/* ---------- Status messages ---------- */
.pbf-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.pbf-status.show { display: block; }
.pbf-status.success { background: var(--color-teal-light); color: var(--color-teal-dark); }
.pbf-status.error { background: #fbeaea; color: var(--color-danger); }

.pbf-thankyou {
  text-align: center;
  padding: 60px 20px;
}
.pbf-thankyou h2 { font-family: var(--font-display); font-size: 34px; color: var(--color-teal); font-weight: 400; }

/* Required asterisk */
.req { color: var(--color-orange-dark); }