/* =============================================================
   PerformYou Booking — Styles
   Design: clean & premium, matches perform-you.biz theme
   ============================================================= */

:root {
  --gold:        #cc9918;
  --gold-dark:   #a67c10;
  --gold-light:  #fff8e7;
  --black:       #0d0d0d;
  --grey:        #44443d;
  --grey-light:  #888;
  --border:      #e8e8e2;
  --bg:          #f9f9f6;
  --white:       #ffffff;
  --radius-sm:   4px;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.06);
  --shadow:      0 4px 24px rgba(0,0,0,.09);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.15);
  --font:        'Oswald', Arial, sans-serif;
  --transition:  .2s ease;
}

/* ── Page hero ───────────────────────────────────────────────── */
.py-page-hero {
  position: relative;
  padding: 110px 125px 0;
  text-align: center;
}
.py-page-hero--black { background: var(--black); }
.py-page-hero--gold  { background: var(--gold); }
.py-page-hero-inner  { max-width: 680px; margin: 0 auto 64px; }

.py-page-hero-eyebrow {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin: 0 0 20px;
}
.py-page-hero--gold .py-page-hero-eyebrow { color: rgba(0,0,0,.4); }

.py-page-hero-title {
  font-family: var(--font);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.05;
  color: var(--gold);
  margin: 0 0 20px;
}
.py-page-hero--gold .py-page-hero-title { color: var(--black); }

.py-page-hero-sub {
  font-family: var(--font);
  font-size: 18px;
  color: rgba(255,255,255,.65);
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}
.py-page-hero--gold .py-page-hero-sub { color: rgba(0,0,0,.55); }

.py-wave { display: block; width: 100%; height: 80px; margin-bottom: -2px; }

.bg-black { background: var(--black);}

.py-page-body { background: var(--white); padding: 80px 125px 120px; }
.py-page-container { max-width: 1140px; margin: 0 auto; }
.py-page-container--narrow { max-width: 920px; }

/* ── No-artist gate ──────────────────────────────────────────── */
.py-no-artist {
  text-align: center;
  padding: 80px 32px;
  font-family: var(--font);
}
.py-no-artist-icon { font-size: 64px; margin-bottom: 28px; }
.py-no-artist-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--black);
  margin: 0 0 16px;
  letter-spacing: 1px;
}
.py-no-artist-sub {
  font-size: 17px;
  color: var(--grey-light);
  margin: 0 0 40px;
  line-height: 1.6;
}

/* ── Artist grid ─────────────────────────────────────────────── */
.py-artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: auto;
  gap: 32px;
  max-width: 1140px;
  margin: 0 auto 4rem;
  padding: 12px;
  box-sizing: border-box;
}

/* 1 artist: centered single card, not stretched full width */
.py-artist-grid:has(.py-artist-card:only-child) {
  grid-template-columns: minmax(220px, 320px);
  justify-content: center;
}

/* 2 artists: two centered cards */
.py-artist-grid:has(.py-artist-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(220px, 320px));
  justify-content: center;
}

/* 3 artists: three centered cards */
.py-artist-grid:has(.py-artist-card:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(200px, 300px));
  justify-content: center;
}
.py-artist-empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--grey-light);
  padding: 100px 32px;
  font-family: var(--font);
  font-size: 18px;
}

.py-artist-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.py-artist-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.py-artist-photo-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #111;
}
.py-artist-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.py-artist-card:hover .py-artist-photo { transform: scale(1.07); }

.py-artist-photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: #1a1a1a;
}

.py-artist-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.py-artist-card:hover .py-artist-photo-overlay { opacity: 1; }

.py-artist-book-btn {
  background: var(--gold);
  color: var(--black);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .5px;
  padding: 13px 30px;
  border-radius: 40px;
  pointer-events: none;
  white-space: nowrap;
}

.py-artist-price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 13px;
  border-radius: 20px;
}

.py-artist-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: var(--white);
}
.py-artist-name {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--black);
  letter-spacing: .3px;
}
.py-artist-tagline {
  font-size: 14px;
  color: var(--grey-light);
  margin: 0 0 16px;
  line-height: 1.45;
}
.py-artist-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--grey-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.py-artist-cta-inline {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .3px;
}

/* Ghost button for confirmation back-link */
.py-btn--ghost {
  background: transparent;
  color: var(--grey-light);
  border: 1.5px solid var(--border);
}
.py-btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: none;
  background: transparent;
}

.py-conf-actions {
  text-align: center;
  margin-top: 36px;
}

/* ── Booking form ────────────────────────────────────────────── */
.py-booking {
  font-family: var(--font);
  color: var(--black);
}

/* Artist header banner */
.py-artist-header {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  margin-bottom: 52px;
}
.py-artist-header-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}
.py-artist-header-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #222;
  border: 3px solid var(--gold);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.py-artist-header-info { flex: 1; }
.py-artist-header-info h2 {
  font-size: 24px;
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .5px;
}
.py-artist-header-info p {
  margin: 0 0 6px;
  font-size: 15px;
  color: rgba(255,255,255,.6);
}
.py-artist-header-meta {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  letter-spacing: .3px;
}
.py-artist-header-badge {
  background: var(--gold);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .3px;
}

/* Artist description / bio (post content) */
.py-artist-about {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 34px;
  margin: 0 0 52px;
}
.py-artist-about-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 0 0 14px;
}
.py-artist-about-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey);
}
.py-artist-about-text p { margin: 0 0 14px; }
.py-artist-about-text p:last-child { margin-bottom: 0; }
.py-artist-about-text a { color: var(--gold-dark); }

@media (max-width: 640px) {
  .py-artist-about { padding: 22px 22px; margin-bottom: 40px; }
  .py-artist-about-text { font-size: 15px; }
}

/* Notices */
.py-notice {
  padding: 18px 24px;
  border-radius: var(--radius);
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.6;
  font-family: var(--font);
}
.py-notice--error   { background: #fff5f5; border: 1px solid #fcc; color: #c00; }
.py-notice--warning { background: #fffbea; border: 1px solid #f0d060; color: #7a5800; }
.py-notice--success { background: #f0fff4; border: 1px solid #9ae6b4; color: #1a6335; }
.py-notice--admin   { background: #fff8e7; border: 2px dashed var(--gold); color: var(--grey); }
.py-notice a { color: inherit; font-weight: 700; }

/* Step headings */
.py-section-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey-light);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.py-step-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 8px;
  color: var(--black);
}
.py-step-subtitle {
  font-size: 16px;
  color: var(--grey-light);
  margin: 0 0 48px;
  line-height: 1.5;
}

/* Video type picker */
.py-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 16px;
  margin-bottom: 52px;
}
.py-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform .15s;
  background: var(--white);
  user-select: none;
}
.py-type-card input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.py-type-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.py-type-card--selected {
  border-color: var(--gold);
  background: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(204,153,24,.2);
}
.py-type-card--selected::after {
  content: '✓';
  position: absolute;
  top: 10px; right: 12px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
}
.py-type-icon  { font-size: 32px; line-height: 1; margin-bottom: 12px; display: block; }
.py-type-name  { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--black); letter-spacing: .3px; }
.py-type-desc  { font-size: 12px; color: var(--grey-light); line-height: 1.4; margin-bottom: 14px; min-height: 32px; }
.py-type-price { font-weight: 700; color: var(--gold); font-size: 19px; }

/* Form */
.py-form-section { margin-bottom: 44px; }
.py-field-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.py-field        { display: flex; flex-direction: column; }
.py-field label  {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 9px;
}
.py-req { color: var(--gold); }
.py-field input,
.py-field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
  box-sizing: border-box;
  outline: none;
}
.py-field input:focus,
.py-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(204,153,24,.12);
}
.py-field input::placeholder,
.py-field textarea::placeholder { color: #c0c0b8; }
.py-field textarea { resize: vertical; min-height: 140px; }
.py-field-hint    { font-size: 12px; color: var(--grey-light); margin-top: 8px; line-height: 1.5; }

/* Checkout bar */
.py-checkout-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  border-radius: var(--radius);
  padding: 26px 36px;
  margin-top: 48px;
  gap: 20px;
  flex-wrap: wrap;
}
.py-price-summary { font-size: 15px; color: rgba(255,255,255,.65); font-family: var(--font); }
.py-price-summary strong { color: var(--white); }
.py-price-display {
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  margin-left: 14px;
  display: inline-block;
}

/* Buttons */
.py-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 36px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform .15s, opacity var(--transition);
  white-space: nowrap;
}
.py-btn--gold { background: var(--gold); color: var(--black); }
.py-btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); color: var(--black); }
.py-btn--gold:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.py-btn--full  { width: 100%; padding: 18px; font-size: 18px; }
.py-btn--large { padding: 18px 52px; font-size: 19px; }

.py-btn-back {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  color: var(--grey-light);
  padding: 0 0 28px;
  display: block;
  letter-spacing: .3px;
}
.py-btn-back:hover { color: var(--black); }

/* Spinner */
.py-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.2);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: py-spin .6s linear infinite;
}
@keyframes py-spin { to { transform: rotate(360deg); } }

/* Payment step */
.py-payment-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  margin-top: 36px;
  align-items: start;
}
.py-order-summary {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  position: sticky;
  top: 32px;
}
.py-order-summary h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey-light);
  margin: 0 0 20px;
}
.py-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--grey);
}
.py-summary-artist { font-weight: 700; color: var(--black); margin-bottom: 6px; font-size: 16px; }
.py-summary-row--small { font-size: 13px; color: var(--grey-light); }
.py-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--border);
}
.py-total-row span   { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--grey-light); }
.py-total-row strong { font-size: 30px; color: var(--gold); font-weight: 700; }
.py-secure-note      { font-size: 12px; color: var(--grey-light); margin-top: 18px; text-align: center; line-height: 1.5; }

#py-payment-element { margin-bottom: 28px; }
.py-terms { font-size: 12px; color: var(--grey-light); text-align: center; margin-top: 16px; line-height: 1.6; }
.py-terms a { color: var(--gold); text-decoration: none; }

/* ── Private-use checkbox ────────────────────────────────────── */
.py-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.5; color: var(--grey-light); }
.py-checkbox input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--gold); cursor: pointer; }

/* ── Confirmation page ───────────────────────────────────────── */
.py-confirmation {
  max-width: 620px;
  margin: 0 auto;
  font-family: var(--font);
}
.py-conf-icon-wrap {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 36px;
}
.py-conf-title {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0 0 16px;
  text-align: center;
  color: var(--black);
}
.py-conf-subtitle {
  font-size: 17px;
  color: var(--grey-light);
  text-align: center;
  margin: 0 0 56px;
  line-height: 1.6;
}

/* Steps */
.py-conf-steps {
  display: flex;
  flex-direction: column;
  margin: 0 0 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.py-conf-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.py-conf-step:last-child { border-bottom: none; }
.py-conf-step--done    { background: var(--gold-light); }
.py-conf-step--pending { opacity: .4; }
.py-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  color: var(--grey-light);
  background: var(--white);
}
.py-conf-step--done .py-step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.py-step-label { flex: 1; }
.py-step-label strong { display: block; font-size: 16px; color: var(--black); margin-bottom: 3px; }
.py-step-label small  { font-size: 13px; color: var(--grey-light); }

/* Details card */
.py-conf-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.py-conf-card h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--grey-light);
  margin: 0 0 20px;
}
.py-conf-card table { width: 100%; border-collapse: collapse; font-size: 15px; }
.py-conf-card td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.py-conf-card tr:last-child td { border-bottom: none; }
.py-conf-card td:first-child {
  color: var(--grey-light);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  width: 40%;
  padding-right: 16px;
}
.py-conf-card td:last-child { color: var(--black); font-weight: 500; }
.py-video-cta { text-align: center; margin: 0 0 44px; }

/* ── Responsive ──────────────────────────────────────────────── */

/* Tablet landscape: ease padding from 125px */
@media (max-width: 1100px) {
  .py-page-hero { padding-left: 60px; padding-right: 60px; }
  .py-page-body { padding-left: 60px; padding-right: 60px; }
}

/* Tablet portrait: stack payment, reduce further */
@media (max-width: 900px) {
  .py-page-hero           { padding-left: 40px; padding-right: 40px; }
  .py-page-body           { padding-left: 40px; padding-right: 40px; }
  .py-payment-layout      { grid-template-columns: 1fr; gap: 28px; }
  .py-order-summary       { position: static; }
}

/* Mobile */
@media (max-width: 640px) {
  .py-page-hero           { padding: 72px 20px 0; }
  .py-page-hero-inner     { margin-bottom: 44px; }
  .py-page-hero-title     { font-size: 36px; }
  .py-page-body           { padding: 48px 20px 80px; }
  .py-field-row           { grid-template-columns: 1fr; gap: 16px; }
  .py-type-grid           { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .py-checkout-bar        { flex-direction: column; text-align: center; padding: 22px 24px; }
  .py-price-display       { display: block; margin: 6px 0 0; }
  .py-artist-header       { flex-direction: column; text-align: center; padding: 24px; }
  .py-conf-title          { font-size: 28px; }
  .py-conf-step           { padding: 18px 20px; gap: 14px; }
  .py-artist-grid         { gap: 20px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .py-type-grid   { grid-template-columns: 1fr 1fr; }
  .py-artist-grid,
  .py-artist-grid:has(.py-artist-card:only-child),
  .py-artist-grid:has(.py-artist-card:nth-child(2):last-child),
  .py-artist-grid:has(.py-artist-card:nth-child(3):last-child) {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Ensure booking wrap never overflows on any screen */
#py-booking-wrap {
  width: 100%;
  box-sizing: border-box;
}
