/* css/register.css */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Mulish:wght@300;400;500;600&display=swap');

body.reg-page {
  background: var(--dark);
  min-height: 100vh;
}

/* ── Header ── */
.reg-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(15,14,12,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.reg-header__back {
  color: var(--muted); text-decoration: none;
  font-size: 0.85rem; transition: color 0.2s;
}
.reg-header__back:hover { color: var(--gold); }
.reg-header__brand {
  font-family: 'Playfair Display', serif;
  color: var(--gold); font-size: 1rem;
}
.reg-header__date { font-size: 0.8rem; color: var(--muted); }

/* ── Main layout ── */
.reg-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}

/* ── Sections ── */
.reg-section {
  transition: opacity 0.3s;
}
.reg-section--locked {
  opacity: 0.35;
  pointer-events: none;
}
.reg-section--locked.unlocked {
  opacity: 1;
  pointer-events: auto;
}

.reg-section__head {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1rem;
}
.reg-step-badge {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 900; line-height: 1;
  color: rgba(201,151,58,0.25);
  flex-shrink: 0; padding-top: 0.1rem;
}
.reg-section.active .reg-step-badge { color: var(--gold); }
.reg-section__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; color: var(--cream); line-height: 1.2;
}
.reg-section__sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }

/* ── Cards ── */
.reg-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.5rem;
}
.reg-card__actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 0.75rem; margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Phone hint ── */
.phone-hint {
  font-size: 0.78rem; color: var(--gold);
  margin-top: 0.3rem; min-height: 1rem;
  transition: opacity 0.3s;
}

/* ── Organization items ── */
.org-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin-bottom: 0.75rem;
}
.org-item .form-input { flex: 1; }
.org-remove {
  background: none; border: none;
  color: var(--muted); cursor: pointer; font-size: 1.1rem;
  padding: 0.75rem 0.5rem; transition: color 0.2s; flex-shrink: 0;
}
.org-remove:hover { color: var(--accent); }

.add-org-btn {
  background: none; border: 1px dashed rgba(201,151,58,0.25);
  border-radius: 8px; color: var(--muted);
  font-family: 'Mulish', sans-serif; font-size: 0.82rem;
  padding: 0.6rem 1rem; cursor: pointer; width: 100%;
  text-align: left; transition: all 0.2s;
  margin-top: 0.25rem;
}
.add-org-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ════════════════════════════════════
   PERFORMANCE ACCORDION
════════════════════════════════════ */
.perf-accordion {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.25s;
}
.perf-accordion.is-open { border-color: rgba(201,151,58,0.3); }
.perf-accordion.is-new  { border-color: rgba(201,151,58,0.5); animation: glowIn 0.4s ease; }
@keyframes glowIn { from { box-shadow: 0 0 0 3px rgba(201,151,58,0.3); } to { box-shadow: none; } }

/* Collapsed header */
.perf-summary {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer;
  user-select: none;
}
.perf-summary__num {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700; color: var(--gold); flex-shrink: 0;
}
.perf-summary__info { flex: 1; }
.perf-summary__title { font-size: 0.95rem; color: var(--cream); font-weight: 600; }
.perf-summary__meta  { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.perf-summary__price { font-size: 0.85rem; color: var(--gold); font-weight: 600; white-space: nowrap; }
.perf-summary__arrow {
  color: var(--muted); font-size: 0.8rem; transition: transform 0.25s; flex-shrink: 0;
}
.perf-accordion.is-open .perf-summary__arrow { transform: rotate(180deg); }

/* Expanded body */
.perf-body {
  display: none; padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.perf-accordion.is-open .perf-body { display: block; }

.perf-body__inner { padding-top: 1.25rem; }

/* Sub-nomination custom field */
.sub-custom-wrap { margin-top: 0.5rem; }

/* Phonogram section */
.phonogram-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.phonogram-section__label {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.75rem;
}
.phonogram-options { display: flex; flex-direction: column; gap: 0.6rem; }

.radio-option {
  display: flex; align-items: flex-start; gap: 0.6rem;
  background: var(--dark3); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; padding: 0.75rem 1rem; cursor: pointer;
  transition: border-color 0.2s;
}
.radio-option:has(input:checked) { border-color: rgba(201,151,58,0.4); }
.radio-option input[type=radio] { margin-top: 0.15rem; accent-color: var(--gold); flex-shrink: 0; }
.radio-option__text strong { display: block; font-size: 0.9rem; color: var(--cream); }
.radio-option__text small  { font-size: 0.78rem; color: var(--muted); }

.file-upload-area {
  margin-top: 0.75rem;
  border: 1px dashed rgba(201,151,58,0.3);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.file-upload-area:hover, .file-upload-area.drag-over {
  border-color: var(--gold);
  background: rgba(201,151,58,0.04);
}
.file-upload-area input[type=file] { display: none; }
.upload-file-name {
  font-size: 0.82rem; color: var(--gold); margin-top: 0.5rem;
  word-break: break-all;
}

/* Perf footer actions */
.perf-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.perf-actions .btn-delete {
  background: none; border: none;
  color: var(--muted); font-family: 'Mulish', sans-serif;
  font-size: 0.82rem; cursor: pointer; transition: color 0.2s;
  display: flex; align-items: center; gap: 0.3rem;
}
.perf-actions .btn-delete:hover { color: var(--accent); }

.btn-save-perf {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold); color: var(--dark);
  border: none; border-radius: 8px;
  font-family: 'Mulish', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  padding: 0.7rem 1.5rem; cursor: pointer;
  transition: all 0.25s;
}
.btn-save-perf:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-save-perf:disabled { opacity: 0.5; pointer-events: none; }

/* Saved badge */
.saved-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(100,200,100,0.12); color: #7ecc7e;
  border: 1px solid rgba(100,200,100,0.2);
  border-radius: 20px; font-size: 0.75rem; font-weight: 700;
  padding: 0.2rem 0.6rem; letter-spacing: 0.05em;
}

/* ── Add performance button ── */
.add-perf-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: transparent;
  border: 1px dashed rgba(201,151,58,0.3);
  border-radius: 10px; color: var(--gold);
  font-family: 'Mulish', sans-serif; font-size: 0.95rem; font-weight: 600;
  padding: 1rem; cursor: pointer; width: 100%;
  transition: all 0.25s; margin-bottom: 0.5rem;
}
.add-perf-btn:hover { border-color: var(--gold); background: rgba(201,151,58,0.04); }

/* ── Receipt upload block ── */
.receipt-block { }
.receipt-block__title {
  font-size: 0.9rem; font-weight: 600; color: var(--cream);
  margin-bottom: 1rem;
}
.receipt-upload-area {
  border: 1px dashed rgba(201,151,58,0.3);
  border-radius: 8px; padding: 2rem; text-align: center;
  cursor: pointer; transition: all 0.2s;
}
.receipt-upload-area:hover { border-color: var(--gold); background: rgba(201,151,58,0.04); }
.receipt-upload-area.drag-over { border-color: var(--gold); background: rgba(201,151,58,0.08); }
.upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.upload-text { font-size: 0.9rem; color: var(--muted); }
.upload-link { color: var(--gold); cursor: pointer; text-decoration: underline; }
.upload-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; opacity: 0.6; }
.receipt-preview {
  display: flex; align-items: center; gap: 0.75rem;
  background: rgba(100,200,100,0.08); border: 1px solid rgba(100,200,100,0.2);
  border-radius: 8px; padding: 0.75rem 1rem; margin-top: 0.75rem;
  font-size: 0.85rem; color: #7ecc7e;
}

/* ── Returning banner ── */
.returning-banner {
  background: rgba(201,151,58,0.08);
  border: 1px solid rgba(201,151,58,0.3);
  border-radius: 12px; padding: 1.25rem 1.5rem;
  display: flex; align-items: flex-start; gap: 1rem;
  order: -1;
}
.returning-banner__icon { font-size: 1.8rem; flex-shrink: 0; }
.returning-banner strong { color: var(--cream); }
.returning-banner__sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }

/* ══════════════════════════════════════════
   ATTACH SECTIONS (phonogram + receipt)
══════════════════════════════════════════ */
.attach-section {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.attach-section__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.attach-section__label .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
}

/* ── Drop zone ── */
.file-drop-zone {
  border: 1px dashed rgba(201,151,58,0.25);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: all 0.2s;
  margin-top: 0.5rem;
  cursor: default;
}
.file-drop-zone.hidden { display: none; }
.file-drop-zone.drag-over {
  border-color: var(--gold);
  background: rgba(201,151,58,0.05);
}

.drop-zone-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
}
.drop-icon { font-size: 1.25rem; }

.btn-pick {
  background: rgba(201,151,58,0.12);
  border: 1px solid rgba(201,151,58,0.3);
  border-radius: 6px;
  color: var(--gold);
  font-family: 'Mulish', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-pick:hover { background: rgba(201,151,58,0.22); }

/* ── Upload progress bar ── */
.drop-progress {
  margin-top: 0.75rem;
}
.drop-progress.hidden { display: none; }
.drop-progress__bar {
  height: 3px;
  border-radius: 2px;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s linear;
}
.drop-progress__label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ══════════════════════════════════════════
   CUSTOM AUDIO PLAYER CARD
══════════════════════════════════════════ */
.audio-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15,14,12,0.6);
  border: 1px solid rgba(201,151,58,0.2);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-top: 0.5rem;
}
.audio-card__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  opacity: 0.7;
}
.audio-card__player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.audio-play-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  color: var(--dark);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, background 0.2s;
  line-height: 1;
  padding-left: 2px; /* optical centering of ▶ */
}
.audio-play-btn:hover  { transform: scale(1.08); background: var(--gold-lt, #d4a84b); }
.audio-play-btn.playing { padding-left: 0; }

.audio-track {
  flex: 1;
  min-width: 0;
}
.audio-progress {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  position: relative;
  overflow: visible;
}
.audio-progress::after {
  content: '';
  position: absolute;
  inset: -6px 0;
}
.audio-progress__fill {
  height: 100%;
  border-radius: 2px;
  background: var(--gold);
  width: 0%;
  pointer-events: none;
  transition: width 0.1s linear;
}
.audio-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════
   RECEIPT CARD
══════════════════════════════════════════ */
.receipt-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* Image thumbnail */
.receipt-thumb-link {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}
.receipt-thumb {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(201,151,58,0.2);
}
.receipt-thumb__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 8px;
}
.receipt-thumb-link:hover .receipt-thumb__overlay { opacity: 1; }

/* PDF button */
.receipt-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201,151,58,0.1);
  border: 1px solid rgba(201,151,58,0.25);
  border-radius: 8px;
  color: var(--gold);
  font-family: 'Mulish', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}
.receipt-pdf-btn:hover { background: rgba(201,151,58,0.2); }
.receipt-pdf-local { cursor: default; }

/* Replace button */
.btn-replace-attach {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--muted);
  font-family: 'Mulish', sans-serif;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-replace-attach:hover { border-color: var(--gold); color: var(--gold); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .reg-header { padding: 0.75rem 1rem; }
  .reg-header__date { display: none; }
  .reg-main { padding: 1.5rem 1rem 3rem; }
  .perf-summary { flex-wrap: wrap; }
  .audio-card { flex-wrap: wrap; }
  .receipt-thumb { height: 50px; }
}