/* SRC Expo Registration – Modern professional UI */
:root {
  --primary: #3b5bdb;
  --primary-dark: #2b4acb;
  --primary-light: #edf2ff;
  --accent: #7048e8;
  --success: #37b24d;
  --danger: #e03131;
  --warning: #f59f00;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #adb5bd;
  --gray-600: #868e96;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: linear-gradient(160deg, #e8f0fe 0%, #f3e8ff 50%, #e0f2fe 100%);
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.5;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* Header / Logo */
.header {
  text-align: center;
  padding: 24px 0 12px;
}
.logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 6px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.02em;
}
.header p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-top: 4px;
}
.badge-event {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: 10px;
}

/* Card */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-top: 16px;
}

/* Progress */
.progress-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}
.progress-step {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  border-radius: 4px;
  transition: background .3s;
}
.progress-step.active { background: var(--primary); }
.progress-step.done { background: var(--success); }

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-900);
}
.step-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 22px;
}

/* Form elements */
.form-group { margin-bottom: 18px; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.required::after { content: ' *'; color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,91,219,.15);
}
.textarea { min-height: 90px; resize: vertical; }

.input-icon {
  position: relative;
}
.input-icon .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 1.1rem;
}
.input-icon .input { padding-left: 40px; }

/* Type selection cards */
.type-grid {
  display: grid;
  gap: 12px;
}
.type-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
}
.type-card:hover { border-color: var(--primary-light); background: var(--primary-light); }
.type-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59,91,219,.12);
}
.type-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.type-card.tech .icon-wrap { background: #dbe4ff; color: #3b5bdb; }
.type-card.business .icon-wrap { background: #d3f9d8; color: #2f9e44; }
.type-card.art .icon-wrap { background: #e5dbff; color: #7048e8; }
.type-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.type-card p { font-size: 0.8rem; color: var(--gray-600); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost {
  background: transparent;
  color: var(--gray-600);
}
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-success { background: var(--success); color: #fff; }

.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.btn-row .btn { flex: 1; }

/* Dynamic project / product blocks */
.item-block {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  background: var(--gray-50);
  position: relative;
}
.item-block .remove-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: #fff;
  border: 1px solid var(--gray-300);
  color: var(--danger);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.add-btn {
  width: 100%;
  border: 2px dashed var(--gray-300);
  background: #fff;
  color: var(--primary);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
}
.add-btn:hover { border-color: var(--primary); background: var(--primary-light); }

/* Image preview */
.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.preview-item {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-300);
}
.preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.preview-item .rm {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,.6); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 12px; border: none; cursor: pointer;
}

/* Duplicate match UI */
.match-list {
  background: #fff9db;
  border: 1px solid #ffe066;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 16px;
}
.match-list h4 { font-size: 0.9rem; margin-bottom: 8px; color: #e67700; }
.match-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid #ffe8a1;
  font-size: 0.85rem;
}
.match-item:last-child { border-bottom: none; }
.match-item button {
  background: var(--primary); color: #fff; border: none;
  padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; cursor: pointer;
}

/* Success page */
.success-card {
  text-align: center;
  padding: 32px 20px;
}
.success-icon {
  width: 72px; height: 72px;
  background: #d3f9d8;
  color: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 16px;
}
.qr-wrap {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: var(--shadow);
  margin: 18px 0;
}
.slot-badge, .table-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 10px 22px;
  border-radius: 999px;
  margin: 12px 0;
  letter-spacing: 0.02em;
}
.table-badge { background: var(--accent); }
.info-box {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: left;
  font-size: 0.9rem;
  margin-top: 16px;
}
.info-box strong { color: var(--gray-900); }

/* Verify page */
.valid-banner {
  background: #d3f9d8;
  color: #2b8a3e;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.invalid-banner {
  background: #ffe3e3;
  color: #c92a2a;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.text-sm { font-size: 0.85rem; }
.text-muted { color: var(--gray-600); }
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.alert-error { background: #ffe3e3; color: #c92a2a; }
.alert-success { background: #d3f9d8; color: #2b8a3e; }
.alert-info { background: #dbe4ff; color: #364fc7; }

footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* Mobile polish */
@media (max-width: 420px) {
  .card { padding: 22px 16px; }
  .header h1 { font-size: 1.2rem; }
}
