/* Registration Online page + success page */

.reg-banner { background: linear-gradient(135deg, #0b2e59 0%, #123f78 60%, #0b2e59 100%); color: #fff; padding: 30px 0 70px; position: relative; overflow: hidden; }
.reg-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.07) 0 120px, transparent 121px), radial-gradient(circle at 85% 80%, rgba(232,106,12,.15) 0 160px, transparent 161px); }
.reg-banner .container { position: relative; }
.rb-hi { display: block; font-family: 'Baloo 2', sans-serif; font-weight: 700; color: var(--gold); font-size: 1.05rem; }
.reg-banner h1 { font-size: 1.85rem; font-weight: 800; margin: 2px 0 16px; line-height: 1.25; }
.rb-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.rb-chip { display: flex; align-items: center; gap: 10px; text-align: left; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 8px 14px; }
.rb-chip > i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy); font-size: 1rem; flex: 0 0 32px; }
.rb-chip span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .5px; opacity: .8; }
.rb-chip strong { font-size: .9rem; }

.reg-main { background: var(--bg-alt); padding-bottom: 40px; }
.reg-card { background: #fff; border-radius: 16px; box-shadow: 0 14px 44px rgba(11,46,89,.14); margin-top: -46px; position: relative; overflow: hidden; border-top: 4px solid var(--saffron); }
.reg-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 24px; background: #fffaf2; border-bottom: 1px solid #f3e3c6; }
.form-no { font-size: .88rem; color: var(--muted); }
.form-no i { color: var(--saffron); }
.form-no strong { color: var(--navy); letter-spacing: .5px; }
.reg-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 30px; }
.reg-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1s steps(2) infinite; }
.reg-badge.open { background: #e6f6ec; color: var(--green); }
.reg-badge.waitlist { background: #f3e5f5; color: #6a1b9a; }
.reg-badge.soon { background: #fff3db; color: #b26a00; }
.reg-badge.closed { background: #fde8e8; color: #c62828; }

.reg-step { padding: 22px 24px 6px; }
.reg-step + .reg-step { border-top: 1px dashed var(--line); margin-top: 14px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step-no { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-family: 'Baloo 2', sans-serif; font-size: 1.05rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--saffron); }
.step-head h2 { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.2; }
.step-head p { font-size: .8rem; color: var(--muted); margin: 0; }
.reg-step .form-label { font-size: .84rem; }
.reg-step .form-control, .reg-step .form-select { font-size: .92rem; }
.form-select { border-radius: 8px; padding-top: .6rem; padding-bottom: .6rem; }
.form-select:focus { border-color: var(--saffron); box-shadow: 0 0 0 .2rem rgba(232,106,12,.15); }


.flat-option { display: block; cursor: pointer; margin: 0; }
.flat-option input { position: absolute; opacity: 0; }
.fo-box { display: block; position: relative; border: 2px solid var(--line); border-radius: 10px; padding: 10px 14px 10px 46px; transition: all .2s; }
.fo-box strong { display: block; color: var(--navy); font-size: .98rem; }
.fo-meta { font-size: .82rem; color: var(--muted); }
.fo-tick { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; font-size: .8rem; }
.flat-option input:checked + .fo-box { border-color: var(--green); background: #f1fbf5; }
.flat-option input:checked + .fo-box .fo-tick { background: var(--green); border-color: var(--green); }
.flat-option input:focus-visible + .fo-box { box-shadow: 0 0 0 .2rem rgba(13,107,52,.2); }

.fee-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 12px 18px; border-radius: 10px; background: linear-gradient(90deg, var(--green), var(--green-2)); color: #fff; }
.fee-box span { font-weight: 600; font-size: .92rem; }
.fee-box strong { font-family: 'Baloo 2', sans-serif; font-size: 1.5rem; line-height: 1; }

.reg-submit { padding: 18px 24px 26px; margin-top: 14px; border-top: 1px dashed var(--line); text-align: center; }
.reg-submit .declare { display: flex; justify-content: center; align-items: flex-start; gap: 8px; padding-left: 0; text-align: left; font-size: .88rem; margin: 0 auto 16px; max-width: 760px; }
.reg-submit .declare .form-check-input { float: none; margin: .2rem 0 0; flex: 0 0 auto; }
.reg-submit .btn-submit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-submit { min-width: 280px; padding: .75rem 2rem; font-size: 1.02rem; border-radius: 30px; box-shadow: 0 8px 20px rgba(232,106,12,.3); }

.reg-closed { text-align: center; padding: 40px 20px; }
.reg-closed > i { font-size: 3.4rem; color: var(--saffron); }
.reg-closed h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 8px 0; }
.reg-closed p { color: var(--muted); }

/* Success page */
.reg-id { display: inline-block; margin-top: 8px; border: 2px dashed var(--green); background: #eef8f1; border-radius: 12px; padding: 10px 28px; }
.reg-id span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.reg-id strong { display: block; font-family: 'Baloo 2', sans-serif; font-size: 2rem; color: var(--green); letter-spacing: 1px; line-height: 1.2; }
.reg-id small { color: var(--muted); }
.success-card .pc-list { padding: 0 4px; }
.next-box { display: flex; gap: 10px; background: #fff7e6; border: 1px dashed var(--saffron); border-radius: 10px; padding: 12px 14px; font-size: .9rem; margin: 0 4px; }
.next-box > i { color: var(--saffron); font-size: 1.3rem; }

/* Printable one-page receipt slip */
.print-slip { display: none; }
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  .util-bar, .site-header, .main-nav, .site-footer, .float-actions, .mobile-cta, .back-top, .no-print, .tricolor,
  .success-card, .skip-link { display: none !important; }
  html, body { background: #fff !important; padding: 0 !important; font-size: 11pt; }
  main.section { padding: 0 !important; background: #fff !important; }
  .container, .row, [class*="col-"] { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .print-slip { display: block; border: 2px solid #0b2e59; border-radius: 6px; overflow: hidden; color: #1d2733; page-break-inside: avoid; font-family: 'Poppins', Arial, sans-serif; }
  .ps-tri { display: flex; height: 5px; } .ps-tri span { flex: 1; } .ps-tri span:nth-child(1) { background: #ff9933; } .ps-tri span:nth-child(2) { background: #fff; } .ps-tri span:nth-child(3) { background: #138808; }
  .ps-head { display: flex; justify-content: space-between; align-items: center; background: #0b2e59; color: #fff; padding: 10px 16px; }
  .ps-hi { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 16pt; color: #ff8a2a; line-height: 1.1; }
  .ps-en { font-weight: 700; letter-spacing: 1px; font-size: 10.5pt; }
  .ps-sub { font-size: 8pt; opacity: .85; }
  .ps-paid { border: 2px solid #3ddc84; color: #3ddc84; font-weight: 800; font-size: 14pt; letter-spacing: 3px; padding: 2px 14px; border-radius: 4px; transform: rotate(-8deg); }
  .ps-title { text-align: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 14pt; color: #0b2e59; padding: 8px 0 4px; border-bottom: 1px dashed #c9d3df; margin: 0 16px; }
  .ps-idrow { display: flex; gap: 10px; padding: 10px 16px; }
  .ps-idrow > div { flex: 1; border: 1.5px dashed #0d6b34; background: #eef8f1; border-radius: 6px; padding: 6px 10px; text-align: center; }
  .ps-idrow span { display: block; font-size: 7.5pt; text-transform: uppercase; color: #5d6b7a; letter-spacing: .5px; }
  .ps-idrow strong { font-size: 12pt; color: #0d6b34; }
  .ps-table { width: calc(100% - 32px); margin: 0 16px; border-collapse: collapse; font-size: 9pt; }
  .ps-table th, .ps-table td { border: 1px solid #dde4ec; padding: 5px 8px; text-align: left; vertical-align: top; }
  .ps-table th { background: #f3f6fa; color: #5d6b7a; font-weight: 600; width: 17%; white-space: nowrap; }
  .ps-table td { font-weight: 600; color: #0b2e59; }
  .ps-dates { display: flex; gap: 10px; padding: 10px 16px 0; }
  .ps-dates > div { flex: 1; background: #fff7e6; border: 1px solid #f0d9ae; border-radius: 6px; padding: 5px 10px; font-size: 9pt; }
  .ps-dates span { color: #5d6b7a; margin-right: 6px; } .ps-dates strong { color: #c62828; }
  .ps-note { margin: 10px 16px 0; font-size: 8pt; color: #5d6b7a; line-height: 1.5; }
  .ps-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 7px 16px; background: #071d3a; color: #ffffff; font-size: 7.5pt; }
}

@media (max-width: 767.98px) {
  .reg-banner { padding: 18px 0 56px; }
  .rb-hi { font-size: .9rem; }
  .reg-banner h1 { font-size: 1.25rem; margin-bottom: 12px; }
  .rb-chips { gap: 6px; }
  .rb-chip { padding: 6px 10px; flex: 1 1 100%; }
  .rb-chip strong { font-size: .82rem; }
  .reg-card { margin-top: -40px; border-radius: 12px; }
  .reg-card-top { padding: 10px 14px; }
  .form-no { font-size: .8rem; }
  .reg-badge { font-size: .72rem; }
  .reg-step { padding: 18px 14px 4px; }
  .step-no { width: 36px; height: 36px; flex-basis: 36px; font-size: .92rem; }
  .step-head h2 { font-size: 1.02rem; }
  .step-head p { font-size: .74rem; }
  .fee-box { padding: 10px 14px; }
  .fee-box span { font-size: .8rem; }
  .fee-box strong { font-size: 1.25rem; }
  .reg-submit { padding: 16px 14px 22px; }
  .reg-submit .declare { font-size: .8rem; }
  .btn-submit { min-width: 0; width: 100%; font-size: .95rem; }
  .reg-id strong { font-size: 1.5rem; }
  .reg-id { padding: 8px 18px; }
}
