/* APMF 2026 Preview — Shared Styles */

:root {
  --primary: #120531;
  --primary-2: #261257;
  --primary-3: #4f2f9c;
  --accent: #f0a94d;
  --accent-hover: #e68d1f;
  --sand: #f7efe3;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --bg: #f4f1ea;
  --bg-2: #fbf8f2;
  --card: rgba(255, 255, 255, 0.94);
  --card-strong: #ffffff;
  --text: #1f1831;
  --text-muted: #6d687c;
  --border: rgba(37, 21, 75, 0.12);
  --border-strong: rgba(37, 21, 75, 0.2);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 36px rgba(20, 12, 48, 0.08);
  --shadow-lg: 0 28px 60px rgba(20, 12, 48, 0.16);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1280px;
  --max-w-form: 960px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at top left, rgba(240, 169, 77, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(79, 47, 156, 0.18), transparent 24%),
    linear-gradient(180deg, #f7f2e8 0%, #f4f1ea 44%, #f8f6f2 100%);
}

img {
  display: block;
  max-width: 100%;
}

/* Layout */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-form { max-width: var(--max-w-form); margin: 0 auto; padding: 0 20px; }
.page { min-height: 100vh; padding-bottom: 60px; }

/* Header */
.header {
  background: rgba(18, 5, 49, 0.78);
  backdrop-filter: blur(18px);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo {
  color: white;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.header-logo img {
  height: 34px;
  width: auto;
}
.header-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.header-wordmark strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
}
.header-wordmark span {
  color: rgba(255,255,255,0.68);
  font-size: 0.75rem;
}
.header-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  margin-left: 24px;
  transition: color 0.2s;
}
.header-nav a:hover { color: white; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(240, 169, 77, 0.2), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(255,255,255,0.08), transparent 22%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 46%, var(--primary-3) 100%);
  padding: 92px 0 86px;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg-2));
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 38px;
  align-items: center;
}
.hero-copy {
  max-width: 660px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 17px;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 0 10px;
}
.hero-meta {
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-panel {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  border-radius: 28px;
  padding: 24px;
  backdrop-filter: blur(10px);
}
.hero-panel-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.66);
  margin-bottom: 12px;
}
.hero-panel-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 8px;
}
.hero-panel p {
  font-size: 0.92rem;
  margin: 0;
  color: rgba(255,255,255,0.76);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  gap: 8px;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 16px 30px rgba(240, 169, 77, 0.25);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.22);
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }
.btn-secondary-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-secondary-dark:hover { border-color: var(--primary); }
.btn-full { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.72);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.card-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(18, 5, 49, 0.06);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Split sections */
.section-shell {
  padding: 64px 0 18px;
}
.section-heading {
  max-width: 680px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 16px 0 12px;
  color: var(--primary);
}
.section-heading p {
  color: var(--text-muted);
  font-size: 1.03rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(37, 21, 75, 0.08);
  box-shadow: var(--shadow);
}
.feature-kicker {
  color: var(--accent-hover);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: stretch;
}
.spotlight-main,
.spotlight-side {
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.spotlight-main {
  background:
    linear-gradient(135deg, rgba(18, 5, 49, 0.96), rgba(42, 18, 89, 0.96)),
    #120531;
  color: white;
  padding: 34px;
}
.spotlight-main h3,
.spotlight-side h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 12px;
}
.spotlight-main p {
  color: rgba(255,255,255,0.78);
}
.spotlight-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.spotlight-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
}
.spotlight-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.spotlight-stat span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
}
.spotlight-side {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(244,239,230,0.98));
  padding: 26px;
  border: 1px solid rgba(37, 21, 75, 0.08);
}
.spotlight-side p {
  color: var(--text-muted);
}
.checklist {
  list-style: none;
  margin-top: 18px;
}
.checklist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* Forms */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-input, .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  background: white;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
}
.form-input.error { border-color: var(--error); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Ticket Selection */
.ticket-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.ticket-option:hover { border-color: var(--primary); }
.ticket-option.selected {
  border-color: var(--primary);
  background: rgba(26, 10, 74, 0.03);
}
.ticket-option.selected::after {
  content: '\2713';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.ticket-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.ticket-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.ticket-price { font-size: 18px; font-weight: 800; color: var(--primary); }
.ticket-price span { font-size: 13px; font-weight: 400; color: var(--text-muted); }

/* Quantity */
.qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover { border-color: var(--primary); background: var(--primary); color: white; }
.qty-value { font-size: 18px; font-weight: 700; min-width: 24px; text-align: center; }

/* Attendee Slots */
.attendee-slot {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.attendee-slot.filled {
  border-style: solid;
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.03);
}
.attendee-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.attendee-slot-title { font-weight: 600; font-size: 14px; }
.attendee-slot-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.status-incomplete { background: #fef3c7; color: #92400e; }
.status-complete { background: #dcfce7; color: #166534; }
.attendee-toggle {
  font-size: 14px;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
}
.attendee-toggle:hover { text-decoration: underline; }
.attendee-fields { display: none; }
.attendee-fields.open { display: block; }

/* Voucher */
.voucher-row {
  display: flex;
  gap: 8px;
}
.voucher-row .form-input { flex: 1; }
.voucher-msg {
  font-size: 13px;
  margin-top: 6px;
  font-weight: 600;
}
.voucher-msg.valid { color: var(--success); }
.voucher-msg.invalid { color: var(--error); }

/* Summary */
.summary {
  background: rgba(26, 10, 74, 0.03);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}
.summary-row.discount { color: var(--success); }
.summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 800;
}

/* Info Box */
.info-box {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 14px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #1e40af;
  margin: 16px 0;
  line-height: 1.5;
}

/* Payment */
.payment-method {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.payment-method:hover { border-color: var(--primary); }
.payment-method.selected { border-color: var(--primary); background: rgba(26,10,74,0.03); }
.payment-icon { font-size: 24px; }
.payment-label { font-weight: 600; }
.payment-sublabel { font-size: 13px; color: var(--text-muted); }

/* Processing overlay */
.processing {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.processing.active { display: flex; }
.processing-card {
  background: white;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success Page */
.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
  color: white;
}
.success-title {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-display);
  text-align: center;
  margin-bottom: 8px;
}
.success-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Timeline */
.timeline { margin: 24px 0; }
.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.timeline-dot.done { background: var(--success); color: white; }
.timeline-dot.pending { background: var(--border); color: var(--text-muted); }
.timeline-dot.active { background: var(--accent); color: var(--primary); }
.timeline-content h4 { font-size: 15px; font-weight: 600; }
.timeline-content p { font-size: 13px; color: var(--text-muted); }

/* Section title */
.section-title {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-display);
  margin: 32px 0 16px;
}

.page-hero {
  padding: 72px 0 34px;
  color: white;
  background:
    radial-gradient(circle at 80% 10%, rgba(240, 169, 77, 0.16), transparent 20%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 55%, var(--primary-3) 100%);
}
.page-hero .container-form {
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.page-hero p {
  max-width: 700px;
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.page-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 0.86rem;
}
.page-shell {
  margin-top: -26px;
  position: relative;
  z-index: 1;
}

.status-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(37, 21, 75, 0.08);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.status-chip {
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(18,5,49,0.04);
}
.status-chip span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.status-chip strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.shell-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.flow-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 20px;
}
.receipt-card {
  background: linear-gradient(180deg, #fff, #faf8f2);
  border: 1px solid rgba(37, 21, 75, 0.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.receipt-card h3,
.status-card h3 {
  font-family: var(--font-display);
  margin-bottom: 10px;
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(37, 21, 75, 0.08);
}
.receipt-line:last-child {
  border-bottom: none;
}
.receipt-line.total {
  font-weight: 800;
  font-size: 1.05rem;
}
.muted {
  color: var(--text-muted);
}

.page-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.attendee-editor {
  display: grid;
  gap: 16px;
}
.editor-card {
  background: rgba(255,255,255,0.94);
  border-radius: 22px;
  border: 1px solid rgba(37, 21, 75, 0.08);
  box-shadow: var(--shadow);
  padding: 22px;
}
.editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.editor-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.editor-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.editor-status.complete {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}
.editor-status.incomplete {
  background: rgba(245, 158, 11, 0.16);
  color: #9a4f08;
}

.helper-card {
  background: linear-gradient(180deg, rgba(18,5,49,0.98), rgba(35,16,75,0.98));
  color: white;
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.helper-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.helper-card p,
.helper-card li {
  color: rgba(255,255,255,0.74);
}
.helper-card ul {
  padding-left: 18px;
  margin: 16px 0 0;
}

/* Footer */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  margin-top: 60px;
}
.footer a { color: var(--accent); text-decoration: none; }

/* Preview banner */
.preview-banner {
  background: var(--warning);
  color: var(--primary);
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 40px; }
  .card { padding: 16px; }
  .header-nav { display: none; }
}

@media (max-width: 960px) {
  .hero-grid,
  .spotlight,
  .flow-panel,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .status-grid,
  .spotlight-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    text-align: left;
  }

  .hero-copy {
    max-width: none;
  }
}
