/* ══════════════════════════════════════════════════════════════════
   Public Seminars Page — Sandbox Clinic Branding
   Colors: #ED6823 (primary), #FFA235 (accent), #FFDE59, #000, #FFF
   ══════════════════════════════════════════════════════════════════ */

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f9fafb;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, #ED6823 0%, #FFA235 100%);
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(237,104,35,.3);
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.header-title {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.header-sub {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  margin: 2px 0 0;
}

/* ── Main ──────────────────────────────────────────────────── */
.main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px;
}

/* ── Section title ─────────────────────────────────────────── */
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

/* ── Loading ───────────────────────────────────────────────── */
.loading-state {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #ED6823;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h2 { color: #1e293b; margin-bottom: 8px; }
.empty-state p { color: #64748b; }

/* ── Seminar Cards ─────────────────────────────────────────── */
.seminar-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.seminar-card:hover {
  border-color: #ED6823;
  box-shadow: 0 4px 12px rgba(237,104,35,.12);
}
.seminar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.format-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.format-virtual     { background: #dbeafe; color: #1d4ed8; }
.format-face-to-face { background: #dcfce7; color: #15803d; }
.format-hybrid      { background: #fef3c7; color: #92400e; }

.date-badge {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.seminar-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.seminar-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}
.seminar-card-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 12px;
}
.btn-register-card {
  display: inline-block;
  padding: 8px 20px;
  background: #ED6823;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-register-card:hover { background: #d55a1c; }

/* ── Registration Section ──────────────────────────────────── */
.back-btn {
  background: none;
  border: none;
  color: #ED6823;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}
.back-btn:hover { text-decoration: underline; }

.reg-event-card {
  background: linear-gradient(135deg, #FFF8F3, #fff);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.reg-event-card h3 {
  font-size: 18px;
  color: #1e293b;
  margin-bottom: 10px;
}
.reg-event-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
}

.reg-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}
.reg-form-card h2 {
  font-size: 18px;
  color: #1e293b;
  margin-bottom: 4px;
}
.reg-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #64748b;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
  outline: none;
}
.form-group input:focus {
  border-color: #ED6823;
  box-shadow: 0 0 0 3px rgba(237,104,35,.1);
}

.btn-register {
  display: block;
  width: 100%;
  padding: 14px;
  background: #ED6823;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  margin-top: 8px;
}
.btn-register:hover { background: #d55a1c; }
.btn-register:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* ── Success Section ───────────────────────────────────────── */
.success-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
}
.success-icon { font-size: 48px; margin-bottom: 12px; }
.success-card h2 {
  color: #15803d;
  margin-bottom: 12px;
}
.success-card p {
  color: #475569;
  margin-bottom: 16px;
}
.success-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.success-card li {
  padding: 6px 0;
  color: #475569;
  font-size: 14px;
}
.btn-back {
  display: inline-block;
  padding: 10px 24px;
  background: #ED6823;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-back:hover { background: #d55a1c; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 20px;
  color: #94a3b8;
  font-size: 12px;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .header-inner { gap: 12px; }
  .header-title { font-size: 18px; }
  .seminar-card-meta { flex-direction: column; gap: 4px; }
}
