/* Full-screen until initRegistrationFlow() finishes (avoids flashing step 0 then jumping). */
.registration-init-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 248, 252, 0.92);
  backdrop-filter: blur(4px);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.registration-init-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.registration-init-loader.registration-init-loader--payment {
  z-index: 100000;
}

.registration-init-loader-inner {
  text-align: center;
  padding: 32px;
  max-width: 320px;
}

.registration-init-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: registration-init-spin 0.75s linear infinite;
}

.registration-init-loader-text {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}

.registration-init-loader-sub {
  color: var(--muted);
  font-size: 13px;
  margin: 10px 0 0;
  line-height: 1.4;
  opacity: 0.9;
}

@keyframes registration-init-spin {
  to {
    transform: rotate(360deg);
  }
}

:root {
  --primary: #1f6ea5;
  --primary-dark: #155e8b;
  --green: #14a085;
  --orange: #f39c12;
  --danger: #e53935;
  --bg: #f4f8fc;
  --white: #ffffff;
  --text: #2c3e50;
  --muted: #6f7f90;
  --border: #dce4ec;
  --light-blue: #e9f3fb;
  --shadow: 0 8px 24px rgba(31, 110, 165, 0.08);
  --radius: 10px;
  --transition: 0.2s ease;
  --transition-fast: 0.12s ease-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.registration-page {
  background: var(--bg);
  padding: 36px 16px 50px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}

.registration-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Block clicks until config + registrationFlow.js finish loading. */
html.registration-flow-booting .registration-container > *:not(.page-head) {
  pointer-events: none;
  user-select: none;
  cursor: progress;
}

.page-head {
  text-align: center;
  margin-bottom: 28px;
}

.page-head h1 {
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.page-head p {
  color: var(--muted);
  font-size: 16px;
}

.page-head .small-note {
  margin-top: 4px;
  font-size: 15px;
}

.page-head .small-note span {
  color: var(--primary);
  font-weight: 700;
}

.progress-wrap {
  margin: 28px 0;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.step-item {
  flex: 1;
  text-align: center;
  min-width: unset;
}

.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #cfd9e2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b8b9c;
  font-weight: 700;
  transition: var(--transition);
}

.step-item.active .step-dot,
.step-item.done .step-dot {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.step-label {
  margin-top: 8px;
  font-size: 13px;
  color: #6f7f90;
  text-align: center;
  white-space: nowrap;
  font-size: 12px;
  display: flex;
  justify-content: flex-start;
}

.step-line {
  height: 4px;
  width: 70px;
  background: #d8e6f2;
  margin: 0 8px;
  border-radius: 10px;
}

.step-line.done {
  background: var(--primary);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hidden {
  display: none !important;
}

.step-tag {
  display: inline-block;
  background: var(--light-blue);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.card h2 {
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  margin-bottom: 4px;
}

.card-sub {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 15px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/*
 * Step-0b only has two sub-category cards (Paramedical / Medical UG). Keep
 * them at the same visual size as the step-0 cards but centre the pair so
 * there's no empty third-column gap on the right.
 */
#step-0b .choice-grid {
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
}

.choice-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  /* Only animate cheap properties; animating box-shadow on hover is janky in many browsers. */
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  contain: layout style;
}

.choice-card:hover,
.choice-card.selected {
  border-color: var(--primary);
  background: #f6fbff;
  /* Apply shadow without transition so hover feedback is immediate. */
  box-shadow: 0 8px 20px rgba(31, 110, 165, 0.08);
}

.choice-icon {
  font-size: 32px;
  line-height: 1;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.choice-icon svg,
.choice-icon img {
  display: block;
}

.choice-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 20px;
}

.choice-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-grid.full {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dob-note {
  margin-top: -2px;
  font-size: 12px;
  color: #5b6f82;
}

.form-group.span2 {
  grid-column: span 2;
}

label {
  font-size: 13px;
  font-weight: 700;
  color: #33475b;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 110, 165, 0.08);
}

.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.radio-group label {
  font-weight: 500;
}

.otp-row {
  display: flex;
  gap: 10px;
}

.manual-link {
  margin-top: 16px;
}

.manual-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.info-box,
.warn-box,
.date-box {
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14px;
}

.info-box {
  background: #eef8f2;
  border: 1px solid #b9e0c4;
  color: #245d31;
}

.warn-box {
  background: #fff8e8;
  border: 1px solid #f3da97;
  color: #7a5a00;
}

.registration-flow-warn-ico {
  display: inline-block;
  margin-right: 8px;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.date-box {
  background: #f5faff;
  border: 1px solid #d6e9f8;
  color: #33556f;
}

.upload-zone {
  border: 2px dashed #b8cfdf;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #fafcff;
  cursor: pointer;
}

.upload-zone small {
  color: var(--muted);
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.ws-opt {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.ws-opt:hover,
.ws-opt.selected {
  border-color: var(--primary);
  background: #f4faff;
  color: var(--primary);
  font-weight: 600;
}

.btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-row.center {
  justify-content: center;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: #f4faff;
}

.btn.btn-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: wait;
  pointer-events: none;
  opacity: 0.94;
}

/*
 * Soft-disabled state: button LOOKS disabled (greyed out, not-allowed cursor)
 * but stays clickable so the click handler can surface a helpful error message
 * (e.g. "Please select a user type"). Use this in place of the native
 * `disabled` attribute when you want feedback on click.
 */
.btn.is-disabled {
  background: #cbd5e1;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.85;
  box-shadow: none;
}

.btn.is-disabled:hover {
  background: #cbd5e1;
}

.btn-outline.is-disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #cbd5e1;
}

.btn-outline.is-disabled:hover {
  background: #f1f5f9;
}

.btn-loading .btn-spinner {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: registration-init-spin 0.65s linear infinite;
}

.btn-outline.btn-loading .btn-spinner--outline {
  border-color: rgba(31, 110, 165, 0.28);
  border-top-color: var(--primary);
}

.btn-loading .btn-loading-label {
  white-space: nowrap;
}

.otp-destination-hint {
  margin-top: 12px;
  line-height: 1.55;
  font-size: 14px;
}

.otp-destination-hint strong {
  color: var(--primary);
  font-weight: 700;
  word-break: break-all;
}

.payment-box {
  text-align: center;
  background: #f7fbff;
  border: 1px solid #d6e9f8;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.payment-breakdown {
  text-align: left;
  max-width: 360px;
  margin: 0 auto 16px;
}

.payment-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e4eef8;
  font-size: 15px;
  color: var(--muted);
}

.payment-breakdown-row span:last-child {
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.payment-total-block {
  margin-top: 8px;
}

.payment-label {
  color: var(--muted);
  margin-bottom: 6px;
}

.payment-total-block .payment-label {
  font-weight: 600;
  color: #55697c;
}

.payment-amount {
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}

.payment-type {
  color: #55697c;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pm-opt {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
  font-weight: 600;
}

.pm-opt.selected,
.pm-opt:hover {
  border-color: var(--primary);
  background: #f4faff;
  color: var(--primary);
}

.terms-wrap {
  margin-top: 18px;
}

.terms-wrap a,
.terms-policy-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.terms-wrap a:hover,
.terms-policy-links a:hover {
  color: var(--primary-dark);
}

.review-section {
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.review-section h4 {
  background: #f8fbfe;
  color: var(--primary);
  font-size: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eef3f7;
  font-size: 14px;
}

.review-row:last-child {
  border-bottom: none;
}

.rk {
  color: #597083;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 8px;
  overflow-wrap: break-word;
}

.rv {
  color: #22384d;
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.success-wrap {
  text-align: center;
  padding: 10px 0;
}

.success-icon,
.failed-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
}

.success-icon {
  background: var(--green);
}

.failed-icon {
  background: var(--danger);
}

.reg-id {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  background: #f4faff;
  border: 1px solid #cfe4f5;
  border-radius: 10px;
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
}

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #23384b;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 10px;
  align-items: center;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {

  .choice-grid,
  .form-grid,
  .workshop-grid,
  .payment-methods {
    grid-template-columns: 1fr;
  }

  #step-0b .choice-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .form-group.span2 {
    grid-column: span 1;
  }

  .page-head h1 {
    font-size: 40px;
  }

  .step-label {
    font-size: 11px;
  }

  .step-item {
    min-width: 82px;
  }

  .step-line {
    width: 30px;
  }

  .otp-row {
    flex-direction: column;
  }
}

/* new css for workshops */

.section-block {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid #e3edf5;
  border-radius: 12px;
  background: #fafcff;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f6ea5;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: #1f6ea5;
  border-radius: 4px;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.ws-opt {
  border: 1px solid #dce4ec;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  transition: 0.25s ease;
  font-size: 15px;
  font-weight: 500;
}

.ws-opt:hover {
  border-color: #1f6ea5;
  background: #f4faff;
}

.ws-opt.selected {
  border: 2px solid #1f6ea5;
  background: #e9f3fb;
  color: #1f6ea5;
  font-weight: 700;
}

.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.radio-group label {
  font-weight: 600;
  color: #33475b;
}

.accom-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e3edf5;
  border-radius: 10px;
  background: #ffffff;
}

#accom-section .form-grid {
  margin-top: 4px;
}

#accom-section textarea {
  margin-top: 2px;
}

@media (max-width: 768px) {
  .workshop-grid {
    grid-template-columns: 1fr;
  }
}

.workshop-preference-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}

.workshop-card {
  height: 100%;
}

.workshop-card .form-group {
  margin-bottom: 10px;
}

.workshop-card select {
  width: 100%;
  border: 1px solid #dce4ec;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  color: #2c3e50;
  outline: none;
  transition: 0.25s ease;
}

.workshop-card select:focus {
  border-color: #1f6ea5;
  box-shadow: 0 0 0 3px rgba(31, 110, 165, 0.08);
}

.selected-workshop-note {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4faff;
  border: 1px solid #d6e9f8;
  color: #1f6ea5;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .workshop-preference-row {
    grid-template-columns: 1fr;
  }
}

#intl-country-box,
#intl-state-box,
#india-state-box {
  width: 100%;
}

.choice-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* New styles for inline OTP button */
.input-with-btn {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-btn input {
  width: 100%;
  padding-right: 105px; /* Creates space so text doesn't hide behind the button */
}

.btn-inside {
  position: absolute;
  right: 6px;
  background: var(--light-blue);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-inside:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

input[type="date"] {
  height: 46px; /* Adjust to match your other inputs */
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
}

.workshop-notice {
  background: #fff5e6;
  border: 1px solid #ffe0b3;
  color: #855d00;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* SEPRECON 2026 delegate badge modal */
.badge-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.badge-modal.hidden {
  display: none;
}

.badge-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.badge-modal-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(94vh, 900px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  padding: 24px 22px 22px;
}

.badge-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
}

.badge-modal-close:hover {
  color: #0f172a;
}

.badge-modal-panel h2 {
  margin: 0 32px 8px 0;
  font-size: 1.35rem;
  color: var(--text);
}

.badge-modal-sub {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.badge-modal-body-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}

.badge-modal-col-form {
  flex: 1 1 240px;
  min-width: 0;
}

.badge-modal-col-preview {
  flex: 1 1 300px;
  min-width: 260px;
}

.badge-modal-preview-wrap {
  margin-bottom: 0;
}

.badge-modal-preview-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-modal-preview-box {
  position: relative;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.badge-preview-loading,
.badge-preview-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 14px;
}

.badge-preview-error {
  color: var(--danger);
}

.badge-modal-form {
  margin-bottom: 8px;
}

.badge-modal-actions {
  margin-top: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-modal-actions .btn {
  min-width: 120px;
}

@media (max-width: 768px) {
  .badge-modal-body-row {
    flex-direction: column;
    gap: 16px;
  }

  .badge-modal-col-preview {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .badge-modal-panel {
    padding: 20px 16px 16px;
    width: min(520px, 100%);
  }

  .badge-modal-actions {
    flex-direction: column;
  }

  .badge-modal-actions .btn {
    width: 100%;
  }
}