/* Competition registration form (application.php) */

.reg-page {
  --reg-blue: #0e6b70;
  --reg-blue-dark: #0a4f53;
  --reg-blue-soft: #e2f1f0;
  --reg-orange: #f2a51a;
  --reg-orange-dark: #c98408;
  --reg-green: #3f8f4a;
  --reg-green-soft: #e7f4e8;
  --reg-red: #c8463d;
  --reg-red-soft: #fbe9e7;
  --reg-ink: #1d2430;
  --reg-muted: #6b7482;
  --reg-line: #e7e1d4;
  --reg-bg: #fffaf1;
  --reg-card: #ffffff;
  --reg-radius: 16px;
  --reg-shadow: 0 1px 2px rgba(29, 36, 48, .05), 0 6px 20px rgba(29, 36, 48, .07);
  background: var(--reg-bg);
}

.reg-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 16px 120px;
  color: var(--reg-ink);
  font-family: "Pragati Bangla", "Hind Siliguri", "Work Sans", Arial, sans-serif;
  font-size: 16px;
}

.reg-wrap *, .reg-wrap *::before, .reg-wrap *::after { box-sizing: border-box; }
.reg-wrap [hidden] { display: none !important; }
.reg-wrap small, .reg-bn { font-family: "Pragati Bangla", "Hind Siliguri", "Work Sans", sans-serif; }

/* ---------- Hero ---------- */
.reg-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    radial-gradient(circle at 88% -20%, rgba(242, 165, 26, .35) 0, rgba(242, 165, 26, 0) 45%),
    linear-gradient(135deg, var(--reg-blue) 0%, var(--reg-blue-dark) 100%);
  color: #fff;
  border-radius: var(--reg-radius);
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: var(--reg-shadow);
}
.reg-hero-title {
  margin: 0;
  color: #fff;
  font-family: "Baloo Da 2", "Hind Siliguri", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}
.reg-hero-sub { font-size: 14.5px; opacity: .9; margin-top: 2px; line-height: 1.4; }
@media (max-width: 575.98px) {
  /* One compact row on phones: title on the left, a small help button on the right */
  .reg-hero { padding: 12px 12px 12px 16px; }
  .reg-hero-title { font-size: 22px; }
  .reg-hero-sub { font-size: 13px; }
  .reg-hero-sub .reg-bn { display: none; }
}
.reg-chip {
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13.5px;
}

/* ---------- Steps ---------- */
.reg-steps ol {
  display: flex;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  counter-reset: step;
}
.reg-steps li {
  flex: 1;
  position: relative;
  text-align: center;
  font-size: 12.5px;
  color: var(--reg-muted);
  padding-top: 38px;
}
.reg-steps li::before {
  content: attr(data-num);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--reg-line);
  font-weight: 700;
  color: var(--reg-muted);
  z-index: 1;
}
.reg-steps li::after {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(-50% + 18px);
  right: calc(50% + 18px);
  height: 2px;
  background: var(--reg-line);
}
.reg-steps li:first-child::after { display: none; }
.reg-steps li.is-active { color: var(--reg-blue-dark); font-weight: 600; }
.reg-steps li.is-active::before { border-color: var(--reg-blue); background: var(--reg-blue); color: #fff; }
.reg-steps li.is-done { color: var(--reg-green); }
.reg-steps li.is-done::before { content: "✓"; border-color: var(--reg-green); background: var(--reg-green); color: #fff; }
.reg-steps li.is-done::after, .reg-steps li.is-active::after { background: var(--reg-green); }
.reg-steps li.is-done { cursor: pointer; }

/* ---------- Panels ---------- */
.reg-panel {
  background: var(--reg-card);
  border-radius: var(--reg-radius);
  box-shadow: var(--reg-shadow);
  padding: 20px 16px;
}
.reg-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--reg-ink);
  line-height: 1.2;
}
.reg-panel-title small { display: block; font-size: 14px; font-weight: 500; color: var(--reg-muted); margin-top: 2px; }
.reg-panel-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff3dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.reg-subhead {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px dashed var(--reg-line);
  font-size: 15px;
  font-weight: 700;
  color: var(--reg-blue-dark);
}
.reg-panel-hint { color: var(--reg-muted); font-size: 14px; margin: 6px 0 16px; }
.reg-req { color: var(--reg-red); }
.reg-optional { color: var(--reg-muted); font-weight: 400; font-size: 13px; }

/* ---------- Fields ---------- */
.reg-panel-title + .reg-grid, .reg-panel-title + #teamList { margin-top: 16px; }
/* Half-width boxes on phones: a little less padding so the text fits */
@media (max-width: 639.98px) {
  .reg-grid > .reg-half input, .reg-grid > .reg-half select { padding-left: 10px; font-size: 15px; }
  .reg-grid > .reg-half select { padding-right: 28px; background-position: right 10px center; }
  .reg-grid > .reg-half input[type="date"] { padding-right: 6px; font-size: 14px; }
  [data-team] { padding-left: 12px; padding-right: 12px; }
  .reg-member.reg-member-full { padding: 12px 10px; }
}
/* Phones: two columns, so short fields (.reg-half) sit side by side */
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 10px; }
.reg-grid > * { min-width: 0; grid-column: span 2; }
.reg-grid > .reg-half { grid-column: span 1; }
.reg-field > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--reg-ink);
}
.reg-field input[type="text"],
.reg-field input[type="tel"],
.reg-field input[type="email"],
.reg-field input[type="date"],
.reg-field select,
.reg-member input,
.reg-member select {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--reg-line);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--reg-ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.reg-field select, .reg-member select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2366737f' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.reg-wrap input:focus, .reg-wrap select:focus {
  outline: none;
  border-color: var(--reg-blue);
  box-shadow: 0 0 0 3px rgba(14, 107, 112, .18);
}
.reg-wrap .has-error input, .reg-wrap .has-error select, .reg-wrap .has-error .reg-toggle span { border-color: var(--reg-red); }
.reg-error { color: var(--reg-red); font-size: 13px; margin-top: 5px; min-height: 0; }
.reg-error:empty { display: none; }
.reg-age {
  display: inline-block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--reg-blue-dark);
  background: var(--reg-blue-soft);
  border-radius: 999px;
  padding: 3px 12px;
}
.reg-age:empty { display: none; }

.reg-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reg-toggle label { margin: 0; cursor: pointer; }
.reg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.reg-toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1.5px solid var(--reg-line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  background: #fff;
  transition: all .15s;
  text-align: center;
  padding: 0 6px;
}
.reg-toggle input:checked + span {
  border-color: var(--reg-blue);
  background: var(--reg-blue-soft);
  color: var(--reg-blue-dark);
  font-weight: 600;
}
.reg-toggle input:focus-visible + span { box-shadow: 0 0 0 3px rgba(14, 107, 112, .25); }

/* ---------- Competition day filters ---------- */
.reg-comp-tools {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -16px 12px;
  padding: 8px 16px 8px;
  background: #fff;
  box-shadow: 0 6px 10px -8px rgba(16, 42, 67, .25);
  border-bottom: 1px solid var(--reg-line);
}
.reg-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 24px 2px 0;
  margin-right: -16px;
  scrollbar-width: none;
  /* Fade at the right edge: more filters are a swipe away */
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
  mask-image: linear-gradient(to right, #000 85%, transparent);
  -webkit-overflow-scrolling: touch;
}
.reg-chips::-webkit-scrollbar { display: none; }
.reg-chip {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 13px;
  border: 1.5px solid var(--reg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--reg-ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.reg-chip.is-on { background: var(--reg-blue); border-color: var(--reg-blue); color: #fff; font-weight: 600; }
.reg-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(14, 107, 112, .25); }

.reg-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.reg-picked:empty { display: none; }
.reg-picked-label { font-size: 13.5px; font-weight: 600; color: var(--reg-muted); }
.reg-picked-chip {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--reg-blue-soft);
  color: var(--reg-blue-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.reg-picked-chip span { margin-left: 4px; opacity: .7; }

.reg-more {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px;
  border: 1.5px dashed var(--reg-line);
  border-radius: 12px;
  background: transparent;
  color: var(--reg-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.reg-more + .reg-comp-grid { margin-top: 10px; }
.reg-empty { text-align: center; padding: 28px 12px; color: var(--reg-muted); }
.reg-empty p { margin: 0 0 14px; }

/* ---------- Competition cards ---------- */
.reg-day { margin-bottom: 20px; }
.reg-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 6px 0 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff1d6 0%, #fff8ea 100%);
  border: 1px solid #f6d79a;
}
.reg-day-num {
  background: var(--reg-orange);
  color: #fff;
  border-radius: 8px;
  padding: 2px 10px;
  font-weight: 700;
  font-size: 15px;
}
.reg-day-date { font-weight: 700; font-size: 17px; color: #8a4b00; }
.reg-day-count { margin-left: auto; font-size: 13px; color: var(--reg-muted); }
.reg-comp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }

.reg-comp {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--reg-line);
  border-left: 6px solid var(--c, var(--reg-blue));
  border-radius: 12px;
  padding: 10px 42px 10px 10px;
  box-shadow: 0 2px 6px rgba(29, 36, 48, .06);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-family: inherit;
  color: inherit;
}
.reg-comp:hover { border-color: var(--c, var(--reg-blue)); }
.reg-comp:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(14, 107, 112, .25); }
.reg-comp-icon {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--c-soft, var(--reg-blue-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}
.reg-comp-body { flex: 1; min-width: 0; }
.reg-comp-name { display: block; font-weight: 700; font-size: 16px; color: var(--c, var(--reg-ink)); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reg-comp-name small { font-family: "Pragati Bangla", "Hind Siliguri", sans-serif; font-weight: 600; color: var(--c, var(--reg-ink)); opacity: .8; font-size: 15px; margin-left: 6px; }
.reg-comp-meta { font-size: 13px; color: var(--reg-muted); margin-top: 2px; line-height: 1.45; }
.reg-comp-meta .reg-badge { font-size: 11px; padding: 1px 7px; white-space: nowrap; display: inline-block; }
.reg-comp-fee { color: #b86a00; font-weight: 600; }
/* Details shown once the competition is selected */
.reg-comp-details { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--c, #c7e2e0); }
.reg-comp.is-selected { align-items: flex-start; }
.reg-comp.is-selected .reg-comp-name { white-space: normal; }
.reg-comp-meta strong { color: var(--reg-ink); font-weight: 600; }
.reg-comp-subject {
  font-size: 13px;
  color: var(--reg-ink);
  margin-top: 2px;
  line-height: 1.45;
}
.reg-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.reg-badge {
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 9px;
  background: #f0f2f4;
  color: var(--reg-muted);
}
.reg-badge-fee { background: #fff4e3; color: #b86a00; }
.reg-badge-free { background: var(--reg-green-soft); color: var(--reg-green); }
.reg-badge-team { background: #efeafd; color: #6544c4; }
.reg-badge-warn { background: var(--reg-red-soft); color: var(--reg-red); }
.reg-check {
  position: absolute;
  top: 50%;
  right: 10px;
  margin-top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--reg-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.reg-comp.is-selected { border-color: var(--c, var(--reg-blue)); background: var(--c-soft, #f3faf9); box-shadow: 0 0 0 1px var(--c, var(--reg-blue)) inset; }
.reg-comp.is-selected .reg-check { top: 14px; margin-top: 0; background: var(--c, var(--reg-blue)); border-color: var(--c, var(--reg-blue)); }
.reg-comp.is-selected .reg-comp-icon { background: #fff; }
.reg-comp.is-selected .reg-check::after { content: "✓"; }
.reg-comp.is-disabled { cursor: not-allowed; background: #fafbfc; border-left-color: #ced4da; box-shadow: none; }
.reg-comp.is-disabled .reg-comp-name { color: var(--reg-ink); }
.reg-comp.is-disabled .reg-comp-icon { filter: grayscale(1); opacity: .55; }
.reg-comp.is-disabled .reg-comp-name, .reg-comp.is-disabled .reg-comp-meta { opacity: .6; }
.reg-comp.is-disabled .reg-check { display: none; }
.reg-comp.is-registered { border-color: #bfe1a9; border-left-color: var(--reg-green); background: var(--reg-green-soft); }
.reg-comp-reason { font-size: 12.5px; color: var(--reg-red); font-weight: 600; margin-top: 2px; }
.reg-comp.is-registered .reg-comp-reason { color: var(--reg-green); }

/* ---------- Team ---------- */
.reg-card {
  border: 1.5px solid var(--reg-line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fff;
}
.reg-team-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.reg-team-head .reg-comp-icon { flex-basis: 38px; height: 38px; font-size: 19px; }
.reg-team-title { font-weight: 700; font-size: 16px; }
.reg-team-rule { font-size: 13.5px; color: var(--reg-muted); }
.reg-team-group {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--reg-blue-soft);
  color: var(--reg-blue-dark);
}
.reg-team-group.is-error { background: var(--reg-red-soft); color: var(--reg-red); }
.reg-member {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px dashed var(--reg-line);
  position: relative;
}
.reg-member:first-of-type { border-top: 0; }
.reg-member-label { font-size: 13px; font-weight: 700; color: var(--reg-muted); text-transform: uppercase; letter-spacing: .03em; }
.reg-member-you {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background: var(--reg-bg);
  border-radius: 10px;
  padding: 12px 14px;
}
.reg-member-remove {
  position: absolute;
  top: 8px;
  right: 0;
  border: 0;
  background: none;
  color: var(--reg-red);
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 6px;
  cursor: pointer;
}
.reg-member .has-error input, .reg-member .has-error select { border-color: var(--reg-red); }
/* Full details of a team member */
.reg-member.reg-member-full {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border: 1.5px solid var(--reg-line);
  border-radius: 12px;
  background: #fbfdfe;
}
.reg-member-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.reg-member-full .reg-member-label {
  background: var(--reg-blue-soft);
  color: var(--reg-blue-dark);
  padding: 4px 10px;
  border-radius: 999px;
}
.reg-member-full .reg-member-remove { position: static; }
.reg-member-full .reg-field > label { font-size: 13.5px; }
.reg-member-full .reg-age { margin-top: 6px; }
.reg-same-address {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 12px;
  background: var(--reg-bg);
  border-radius: 10px;
  cursor: pointer;
  margin: 0;
}
.reg-wrap .reg-member input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  padding: 0;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--reg-blue);
}
.reg-address-fields[hidden] { display: none; }

/* Age proof upload */
.reg-wrap .reg-proof-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.reg-proof { position: relative; }
.reg-proof-drop,
.reg-proof.is-done,
.reg-proof.is-onfile,
.reg-proof.is-uploading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  margin: 0;
}
.reg-proof-drop {
  border: 2px dashed #9ccdca;
  background: var(--reg-blue-soft);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.reg-proof-drop:hover { border-color: var(--reg-blue); }
.reg-proof-input:focus-visible + .reg-proof-drop { box-shadow: 0 0 0 3px rgba(14, 107, 112, .25); }
.reg-proof.is-done, .reg-proof.is-onfile { background: var(--reg-green-soft); border: 1.5px solid #bfe2aa; }
.reg-proof.is-uploading { background: var(--reg-bg); border: 1.5px solid var(--reg-line); }
.reg-proof-icon { font-size: 24px; line-height: 1; flex: 0 0 auto; }
.reg-proof-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.reg-proof-text strong { font-size: 14.5px; color: var(--reg-ink); }
.reg-proof-text small { font-size: 13px; color: var(--reg-muted); line-height: 1.4; }
.reg-proof.is-done .reg-proof-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reg-proof-change {
  margin: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid var(--reg-line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--reg-blue-dark);
  cursor: pointer;
}
.has-error > .reg-proof .reg-proof-drop { border-color: var(--reg-red); background: var(--reg-red-soft); }
.reg-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--reg-line);
  border-top-color: var(--reg-blue);
  border-radius: 50%;
  animation: reg-spin .8s linear infinite;
  flex: 0 0 22px;
}
@keyframes reg-spin { to { transform: rotate(360deg); } }
/* Upload progress, like the participant's own age proof upload */
.reg-progress {
  margin-top: 6px;
  border: 1px solid #0FA015;
  border-radius: 4px;
  padding: 3px;
  background: #fff;
}
.reg-progress-bar {
  height: 18px;
  min-width: 2.2em;
  background: #28a745;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  border-radius: 2px;
  transition: width .3s;
}

.reg-add-member {
  width: 100%;
  height: 44px;
  border: 1.5px dashed var(--reg-blue);
  border-radius: 10px;
  background: #fff;
  color: var(--reg-blue-dark);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
  font-family: inherit;
}
.reg-add-member:hover { background: var(--reg-blue-soft); }

/* ---------- Lunch ---------- */
.reg-lunch { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: #fffaf2; border-color: #f6dcb3; }
.reg-lunch-icon { font-size: 30px; }
.reg-lunch-body { flex: 1 1 200px; }
.reg-lunch-title { font-weight: 700; font-size: 16px; }
.reg-lunch-text { font-size: 14px; color: var(--reg-muted); margin-top: 2px; }
.reg-lunch-note { font-size: 13.5px; color: var(--reg-green); font-weight: 600; margin-top: 6px; }
.reg-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--reg-line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  margin-left: auto;
}
.reg-stepper button {
  width: 46px;
  height: 46px;
  border: 0;
  background: #fff;
  font-size: 22px;
  color: var(--reg-blue-dark);
  cursor: pointer;
}
.reg-stepper button:disabled { color: #c3cbd2; cursor: not-allowed; }
.reg-stepper output { min-width: 34px; text-align: center; font-weight: 700; font-size: 18px; }

/* ---------- Review ---------- */
.reg-review-section { border: 1.5px solid var(--reg-line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.reg-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--reg-bg);
  font-weight: 700;
  font-size: 15px;
}
.reg-review-head button {
  border: 0;
  background: none;
  color: var(--reg-blue-dark);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
}
.reg-review-body { padding: 4px 14px 10px; }
.reg-review-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef1f4; font-size: 14.5px; }
.reg-review-row:last-child { border-bottom: 0; }
.reg-review-row span:first-child { color: var(--reg-muted); }
.reg-review-row span:last-child { text-align: right; font-weight: 500; }
.reg-review-comp { padding: 10px 0; border-bottom: 1px solid #eef1f4; }
.reg-review-comp:last-child { border-bottom: 0; }
.reg-review-comp-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.reg-review-comp-sub { font-size: 13.5px; color: var(--reg-muted); margin-top: 2px; }
.reg-review-members { font-size: 13.5px; color: var(--reg-ink); margin-top: 4px; }
.reg-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  background: var(--reg-blue-soft);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}
.reg-total strong { font-size: 22px; color: var(--reg-blue-dark); }
.reg-confirm {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin: 4px 0 6px;
}
.reg-confirm input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--reg-blue); flex: 0 0 22px; }
.reg-alert {
  background: var(--reg-red-soft);
  color: #a3241c;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  margin-bottom: 14px;
}
.reg-alert ul { margin: 0; padding-left: 18px; }
.reg-notice {
  background: #fff4e3;
  color: #7a4600;
  border: 1px solid #f5d6a3;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.reg-notice .reg-btn { display: block; margin-top: 8px; }
.reg-empty { color: var(--reg-muted); font-size: 14.5px; padding: 6px 0; }

/* ---------- Bottom navigation ---------- */
.reg-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid var(--reg-line);
  box-shadow: 0 -4px 16px rgba(16, 42, 67, .08);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
}
.reg-nav-summary { flex: 1; font-size: 13.5px; color: var(--reg-muted); line-height: 1.3; min-width: 0; }
.reg-nav-summary strong { display: block; color: var(--reg-ink); font-size: 16px; }
.reg-nav-buttons { display: flex; gap: 8px; }
.reg-btn {
  height: 48px;
  border-radius: 10px;
  border: 0;
  padding: 0 20px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  white-space: nowrap;
}
.reg-btn-primary { background: var(--reg-orange); color: #fff; }
.reg-btn-primary:hover { background: var(--reg-orange-dark); }
.reg-btn-primary:disabled { opacity: .6; cursor: progress; }
.reg-btn-ghost { background: #eef1f4; color: var(--reg-ink); }
.reg-btn-ghost:hover { background: #e2e7eb; }

/* ---------- Toast ---------- */
.reg-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  background: var(--reg-ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  max-width: calc(100% - 32px);
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 1100;
  font-family: "Pragati Bangla", "Hind Siliguri", "Work Sans", Arial, sans-serif;
}
.reg-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .reg-wrap { padding: 24px 20px 130px; }
  .reg-hero { padding: 20px 24px; }
  .reg-hero-title { font-size: 28px; }
  .reg-panel { padding: 26px 28px; }
  .reg-grid { gap: 16px 18px; }
  .reg-grid > * { grid-column: span 1; }
  .reg-span-2 { grid-column: span 2; }
  .reg-comp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reg-comp-tools { margin: 0 -28px 14px; padding: 12px 28px 10px; }
  .reg-chips { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; -webkit-mask-image: none; mask-image: none; }
  .reg-member { grid-template-columns: 2fr 1.2fr 1.4fr; align-items: end; }
  .reg-member.reg-member-full { display: block; padding: 18px; }
  .reg-member-label { grid-column: 1 / -1; }
  .reg-steps li { font-size: 13.5px; }
  .reg-nav { padding-left: max(16px, calc((100% - 880px) / 2 + 20px)); padding-right: max(16px, calc((100% - 880px) / 2 + 20px)); }
}

@media (max-width: 380px) {
  .reg-btn { padding: 0 14px; }
  .reg-steps li { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .reg-wrap *, .reg-toast { transition: none !important; }
}


/* Prize line of a chosen competition */
.reg-comp-prize { margin-top: 6px; font-size: 13px; color: #7a5000; font-weight: 600; }

/* No field labels: what to type is shown in the box itself */
.reg-field input::placeholder { color: #4f5866; font-weight: 500; opacity: 1; }
.reg-field select:has(option[value=""]:checked),
.reg-member select:has(option[value=""]:checked) { color: #4f5866; font-weight: 500; }
.reg-field select option { color: var(--reg-ink); }
.reg-grid { row-gap: 14px; }
/* Phones: one field per row, so the "Enter ..." text fits in each box */
@media (max-width: 699.98px) {
  .reg-grid > .reg-half { grid-column: span 2; }
}
@media (max-width: 359.98px) {
  .reg-field input::placeholder { font-size: 13.5px; }
}
