/* ============================================================
   Workshop Training Registration – Front-End Styles
   ============================================================ */

:root {
  --wtr-primary:   #1a1a2e;
  --wtr-accent:    #0d6efd;
  --wtr-success:   #198754;
  --wtr-danger:    #dc3545;
  --wtr-gold:      #f0a500;
  --wtr-card-bg:   #ffffff;
  --wtr-radius:    12px;
  --wtr-shadow:    0 4px 24px rgba(0,0,0,.08);
}

/* ── Wrapper ────────────────────────────────────────────────── */
.wtr-wrapper {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 16px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.wtr-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--wtr-primary);
  margin-bottom: 8px;
}

/* ── Cards ──────────────────────────────────────────────────── */
.wtr-card {
  border: none;
  border-radius: var(--wtr-radius);
  box-shadow: var(--wtr-shadow);
  overflow: hidden;
}

.wtr-card-header {
  background: linear-gradient(135deg, var(--wtr-primary), #16213e);
  color: #fff;
  border-bottom: none;
  padding: 16px 24px;
}

.wtr-card-header h5 { color: #fff; font-weight: 600; }

.card-body { padding: 24px; }

/* ── Form controls ──────────────────────────────────────────── */
.wtr-label { font-weight: 600; color: #333; margin-bottom: 6px; }

.form-control,
.form-select {
  border-radius: 8px;
  border: 1.5px solid #dee2e6;
  padding: 10px 14px;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--wtr-accent);
  box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

input[readonly] { background: #f0f4f8; cursor: not-allowed; }

/* ── Currency options ───────────────────────────────────────── */
.wtr-currency-option {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all .2s;
  min-width: 180px;
}

.wtr-currency-option:has(input:checked) {
  border-color: var(--wtr-accent);
  background: #e7f1ff;
}

.wtr-currency-option label { cursor: pointer; font-weight: 600; margin: 0; }

/* ── Fee badge ──────────────────────────────────────────────── */
.wtr-fee-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--wtr-primary), #0d6efd);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1rem;
}
.wtr-fee-badge:empty { display: none; }

/* ── Accommodation rate pill ────────────────────────────────── */
.wtr-accom-rate-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff7e6;
  border: 1.5px solid #ffd06b;
  border-radius: 10px;
  padding: 10px 16px;
}

.wtr-accom-rate-label { font-weight: 600; color: #664d03; font-size: .9rem; }
.wtr-accom-rate-value { font-weight: 800; color: #b45309; font-size: 1rem; }

/* ── Days input ─────────────────────────────────────────────── */
.wtr-days-input { max-width: 140px; text-align: center; font-size: 1.1rem; font-weight: 700; }

/* ── Accommodation calc breakdown ───────────────────────────── */
.wtr-accom-calc {
  margin-top: 16px;
}

.wtr-accom-calc-inner {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1.5px solid #7dd3fc;
  border-radius: 10px;
  padding: 16px 20px;
  max-width: 420px;
}

.wtr-accom-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.wtr-calc-label {
  color: #374151;
  font-size: .9rem;
}

.wtr-calc-value {
  font-weight: 700;
  color: #0369a1;
  font-size: .95rem;
  text-align: right;
}

.wtr-accom-calc-divider {
  border-top: 1.5px dashed #7dd3fc;
  margin: 8px 0;
}

.wtr-accom-calc-subtotal {
  padding-top: 8px;
}

.wtr-accom-calc-subtotal .wtr-calc-label {
  font-weight: 700;
  color: #0c4a6e;
  font-size: .95rem;
}

.wtr-calc-subtotal-value {
  font-size: 1.1rem !important;
  color: #0c4a6e !important;
}

/* ── Payment Summary table ──────────────────────────────────── */
.wtr-summary-table {
  width: 100%;
}

.wtr-summary-table td {
  padding: 14px 24px;
  vertical-align: middle;
}

.wtr-summary-label {
  font-size: .95rem;
  color: #374151;
  font-weight: 500;
  width: 60%;
}

.wtr-summary-value {
  font-size: .95rem;
  font-weight: 600;
  color: #1a1a2e;
}

.wtr-summary-divider-row td {
  padding: 0 24px;
}

/* Grand total row */
.wtr-summary-total-row {
  background: linear-gradient(135deg, #f8faff, #eef2ff);
}

.wtr-summary-total-row .wtr-summary-label {
  font-size: 1rem;
}

.wtr-total-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--wtr-primary);
  letter-spacing: -.5px;
}

/* ── Pay button ─────────────────────────────────────────────── */
.wtr-pay-btn {
  background: linear-gradient(135deg, var(--wtr-gold), #e09600);
  color: #1a1a2e;
  font-weight: 800;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  padding: 14px 48px;
  box-shadow: 0 6px 24px rgba(240,165,0,.4);
  transition: transform .2s, box-shadow .2s;
}

.wtr-pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(240,165,0,.5);
  color: #1a1a2e;
}

.wtr-pay-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* ── Alerts ─────────────────────────────────────────────────── */
#wtr-alerts .alert { border-radius: var(--wtr-radius); font-size: .95rem; }

/* ── File preview ───────────────────────────────────────────── */
#id_file_preview img {
  max-height: 120px;
  border-radius: 8px;
  border: 2px solid #dee2e6;
}

/* ── Success card ───────────────────────────────────────────── */
.wtr-success-card {
  background: #d1fae5;
  border: 2px solid var(--wtr-success);
  border-radius: var(--wtr-radius);
  padding: 48px 32px;
}

.wtr-success-icon { font-size: 64px; margin-bottom: 16px; }

.wtr-success-card h3 {
  color: var(--wtr-success);
  font-weight: 800;
  margin-bottom: 12px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 576px) {
  .wtr-title          { font-size: 1.4rem; }
  .wtr-pay-btn        { width: 100%; }
  .wtr-currency-option{ min-width: 140px; }
  .wtr-accom-calc-inner { max-width: 100%; }
  .wtr-total-amount   { font-size: 1.2rem; }
}

/* ── Training Details Hero Banner ───────────────────────────── */
.wtr-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: var(--wtr-radius);
  padding: 40px 36px 32px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(15,52,96,.35);
  position: relative;
  overflow: hidden;
}

/* Decorative circle accents */
.wtr-hero::before,
.wtr-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .06;
  background: #fff;
}
.wtr-hero::before { width: 300px; height: 300px; top: -80px; right: -60px; }
.wtr-hero::after  { width: 180px; height: 180px; bottom: -60px; left: -40px; }

.wtr-hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.wtr-hero-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 24px;
  position: relative;
}

/* Meta row (date + venue) */
.wtr-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.wtr-hero-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 12px 18px;
  flex: 1 1 200px;
  min-width: 0;
  position: relative;
}

.wtr-hero-meta-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.wtr-hero-meta-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 3px;
}

.wtr-hero-meta-value {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: #f0f9ff;
  line-height: 1.4;
}

.wtr-hero-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin: 0;
  position: relative;
}

/* Responsive */
@media (max-width: 576px) {
  .wtr-hero              { padding: 28px 20px 24px; }
  .wtr-hero-title        { font-size: 1.3rem; }
  .wtr-hero-meta-item    { flex: 1 1 100%; }
}

/* ── Bid Tier Cards ──────────────────────────────────────────── */
.wtr-bid-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.wtr-bid-card {
  flex: 1 1 200px;
  border: 2.5px solid #dee2e6;
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  background: #fff;
  position: relative;
  user-select: none;
}

.wtr-bid-card:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Active (selected) state */
.wtr-bid-card.wtr-bid-active {
  border-color: var(--wtr-accent);
  box-shadow: 0 0 0 4px rgba(13,110,253,.12);
  background: #f0f6ff;
}

/* Checkmark badge on active */
.wtr-bid-card.wtr-bid-active::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--wtr-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 22px;
  text-align: center;
}

/* Early bird – green accent */
.wtr-bid-early                  { border-color: #bbf7d0; }
.wtr-bid-early.wtr-bid-active   { border-color: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.12); background: #f0fdf4; }
.wtr-bid-early.wtr-bid-active::after { background: #16a34a; }

/* Late – red accent */
.wtr-bid-late                   { border-color: #fecaca; }
.wtr-bid-late.wtr-bid-active    { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220,38,38,.12); background: #fff5f5; }
.wtr-bid-late.wtr-bid-active::after { background: #dc2626; }

/* Tag pill (Early Bird / Standard / Late) */
.wtr-bid-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 10px;
}

.wtr-bid-early .wtr-bid-tag  { color: #16a34a; }
.wtr-bid-late  .wtr-bid-tag  { color: #dc2626; }

/* Prices */
.wtr-bid-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.wtr-bid-price-usd,
.wtr-bid-price-ngn {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a2e;
}

.wtr-bid-price-usd small,
.wtr-bid-price-ngn small {
  font-size: .68rem;
  font-weight: 600;
  color: #6b7280;
  margin-left: 1px;
}

.wtr-bid-sep { color: #d1d5db; font-size: 1rem; }

.wtr-bid-deadline {
  font-size: .75rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.wtr-bid-savings {
  font-size: .75rem;
  font-weight: 700;
  color: #16a34a;
}

.wtr-bid-savings--late { color: #dc2626; }

/* Responsive */
@media (max-width: 480px) {
  .wtr-bid-card { flex: 1 1 100%; }
}

/* ── Gateway badges on currency options ─────────────────────── */
.wtr-gw-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

.wtr-gw-paystack {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.wtr-gw-flutterwave {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
