/* ── Registration page shell ── */
.hackathon-registration-page {
  padding: 0 0 var(--space-16, 4rem);
  background: var(--bg-soft, #f8fafc);
}

.registration-page-header,
.registration-hero .section__header {
  margin-bottom: 0;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-8, 2rem) var(--space-6, 1.5rem);
}

.registration-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  color: var(--text-muted, #5f666e);
  text-decoration: none;
  margin-bottom: var(--space-4, 1rem);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
  transition: color 0.2s ease;
}

.registration-back-link:hover {
  color: var(--navy, #191b1f);
}

.registration-page-title,
.registration-hero .section__title {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: var(--font-size-h1, 40px);
  font-weight: var(--font-weight-bold, 700);
  color: var(--navy, #191b1f);
  margin-bottom: var(--space-2, 0.5rem);
  line-height: var(--line-height-h1, 1.2);
}

.registration-page-subtitle,
.registration-hero .section__subtitle {
  color: var(--text-muted, #5f666e);
  font-size: var(--font-size-p, 14px);
  margin-bottom: 0;
  line-height: var(--line-height-p, 21px);
}

.registration-page-body {
  margin-top: var(--space-8, 2rem);
}

.registration-form-card,
.registration-status-card {
  background: var(--bg, #fff);
  border: 1px solid var(--border, #dedede);
  border-radius: var(--radius, 16px);
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.3), 0 2px 8px rgba(15, 23, 42, 0.06);
  padding: var(--space-6, 1.5rem);
  max-width: 720px;
  margin: 0 auto;
  overflow: visible !important;
  transform: none !important;
}

.hackathon-registration-form-shell,
.hackathon-registration-form-shell .login_outer.layered2,
.hackathon-registration-form-shell .contest-register--page {
  overflow: visible !important;
  transform: none !important;
}

.registration-status-card--success {
  text-align: center;
}

.registration-status-card--success .registration-status-icon {
  color: #198754;
  font-size: 3rem;
  margin-bottom: var(--space-4, 1rem);
}

.registration-status-card--info,
.registration-status-card--error {
  text-align: center;
}

.registration-status-card .registration-status-title,
.registration-status-card h2 {
  text-align: center;
  margin: 0 0 10px;
}

.registration-status-card .registration-status-message,
.registration-status-card p.registration-status-message,
#hackathon-registration-status .registration-status-message,
.quiz-registration-status .registration-status-message {
  text-align: center !important;
  margin: 0 auto 24px !important;
  max-width: 26rem;
  display: block;
  width: 100%;
}

.registration-status-card .registration-status-cta {
  text-align: center;
}

.hackathon-registration-page-body #hackathon-registration-status.registration-status-card,
.hackathon-registration-page-body #hackathon-registration-status.quiz-registration-status {
  text-align: center !important;
}

.hackathon-registration-page-body #hackathon-registration-status .registration-status-message {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.registration-form-loader {
  text-align: center;
  padding: var(--space-12, 3rem) var(--space-4, 1rem);
  color: var(--text-muted, #5f666e);
}

.registration-form-loader p {
  margin-top: var(--space-3, 0.75rem);
  margin-bottom: 0;
}

/* ── Form container ── */
.hackathon-registration-form-shell .contest-register--page {
  max-width: 100%;
}

.hackathon-registration-form-shell .contest-register--page #form-title {
  display: none;
}

.hackathon-registration-form-shell .contest-register--page .predefined_content {
  margin-bottom: var(--space-6, 1.5rem);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.hackathon-registration-form-shell .contest-register--page .predefined_content:empty,
.hackathon-registration-form-shell .contest-register--page .predefined_content.is-collapsed {
  display: none !important;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Profile summary (prefilled OAuth details) */
.hackathon-registration-form-shell #challenge_profile_view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-4, 1rem);
  padding: var(--space-5, 1.25rem);
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border, #dedede);
  border-radius: var(--radius-sm, 8px);
}

.hackathon-registration-form-shell .reg-profile-summary__header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3, 0.75rem);
  margin-bottom: var(--space-2, 0.5rem);
  padding-bottom: var(--space-3, 0.75rem);
  border-bottom: 1px solid var(--brand-border-light, #f0f0f0);
}

.hackathon-registration-form-shell .reg-profile-summary__title {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: var(--font-size-xs, 0.75rem);
  font-weight: var(--font-weight-semibold, 600);
  letter-spacing: var(--letter-spacing-label, 0.08em);
  text-transform: uppercase;
  color: var(--text-muted, #5f666e);
}

.hackathon-registration-form-shell #challenge_profile_view .quiz_form_edit {
  float: none;
  position: static;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 14px;
  border: 1px solid var(--primary, #e30009);
  border-radius: 100px;
  background: var(--bg, #fff);
  color: var(--primary, #e30009) !important;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-semibold, 600);
  line-height: 1.2;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.hackathon-registration-form-shell #challenge_profile_view .quiz_form_edit:hover {
  background: var(--primary-subtle, #fff5f2);
  color: var(--primary-hover, #c40008) !important;
}

.hackathon-registration-form-shell #challenge_profile_view .description-list-row {
  display: grid;
  grid-template-columns: minmax(88px, 120px) 1fr;
  gap: var(--space-1, 0.25rem) var(--space-3, 0.75rem);
  align-items: baseline;
  padding: var(--space-2, 0.5rem) 0;
  border-bottom: 1px solid var(--brand-border-light, #f0f0f0);
  font-size: var(--font-size-sm, 0.875rem);
  width: auto;
  float: none;
  margin-bottom: 0;
}

.hackathon-registration-form-shell #challenge_profile_view .description-list-row:not(.half-width) {
  grid-column: 1 / -1;
}

.hackathon-registration-form-shell #challenge_profile_view .description-list-row.half-width {
  grid-column: span 1;
}

.hackathon-registration-form-shell #challenge_profile_view .description-list-row:last-child:not(.half-width) {
  border-bottom: 0;
}

.hackathon-registration-form-shell #challenge_profile_view .description-list-row.half-width:last-child {
  border-bottom: 1px solid var(--brand-border-light, #f0f0f0);
}

.hackathon-registration-form-shell #challenge_profile_view .description-list-row label {
  position: static !important;
  display: block;
  margin: 0;
  color: var(--text-muted, #5f666e);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
  line-height: 1.4;
}

.hackathon-registration-form-shell #challenge_profile_view .description-list-row span {
  color: var(--text, #191b1f);
  font-weight: var(--font-weight-medium, 500);
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 575px) {
  .hackathon-registration-form-shell #challenge_profile_view {
    grid-template-columns: 1fr;
  }

  .hackathon-registration-form-shell #challenge_profile_view .description-list-row.half-width {
    grid-column: 1 / -1;
  }
}

.hackathon-registration-form-shell #email_id[readonly] {
  background: var(--bg-soft, #f8fafc) !important;
  color: var(--text-muted, #5f666e);
  cursor: not-allowed;
}

/* ── Form grid ── */
.hackathon-registration-form-shell .login_outer.layered2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4, 1rem) var(--space-3, 0.75rem);
  overflow: visible;
  padding-right: 0;
  max-height: none;
}

.hackathon-registration-form-shell .input-section-main {
  display: contents;
}

/* Full-width fields */
.hackathon-registration-form-shell .quiz_email,
.hackathon-registration-form-shell .create-section.webinar-checkbox,
.hackathon-registration-form-shell .submit-outer,
.hackathon-registration-form-shell #common_error_message_err,
.hackathon-registration-form-shell .submit-confirm-tc,
.hackathon-registration-form-shell .create-section.section-full,
.hackathon-registration-form-shell .create-section[class*="section-full"],
.hackathon-registration-form-shell .create-section.reg-multiselect-host,
.hackathon-registration-form-shell .create-section[class*="field-extrafield-"],
.hackathon-registration-form-shell .create-section:has(textarea),
.hackathon-registration-form-shell .create-section:has(input[type="file"]),
.hackathon-registration-form-shell .field-resume,
.hackathon-registration-form-shell .field-linkedin,
.hackathon-registration-form-shell .field-job-change,
.hackathon-registration-form-shell .field-sex,
.hackathon-registration-form-shell .input_select_box,
.hackathon-registration-form-shell .create-section.input:not(.input_sec) {
  grid-column: 1 / -1;
}

/* ── Field wrapper: label on top ── */
.hackathon-registration-form-shell .create-section {
  position: relative;
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 0.5rem);
}

.hackathon-registration-form-shell .input-section-main .input_sec {
  flex: unset;
  max-width: none;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hackathon-registration-form-shell .input_sec + .input_select_box {
  top: 0;
}

/* Reset floating-label positioning */
.hackathon-registration-form-shell .create-section label,
.hackathon-registration-form-shell .input_sec label,
.hackathon-registration-form-shell .input_select_box label {
  position: static !important;
  order: 1;
  display: block;
  margin: 0 !important;
  padding: 0;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text, #191b1f);
  line-height: 1.4;
  pointer-events: auto;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  left: auto !important;
  top: auto !important;
  transition: none;
}

.hackathon-registration-form-shell .create-section label span,
.hackathon-registration-form-shell .input_sec label span {
  color: var(--primary, #e30009);
  margin-left: 2px;
}

/* Disable oauth floating-label shrink (label-after-input fields e.g. LinkedIn, Company) */
.hackathon-registration-form-shell .input_sec input:focus ~ label,
.hackathon-registration-form-shell .input_sec input.valid ~ label,
.hackathon-registration-form-shell .input_sec input.readonly ~ label,
.hackathon-registration-form-shell .create-section input:focus ~ label,
.hackathon-registration-form-shell .create-section input.valid ~ label,
.hackathon-registration-form-shell .create-section input.readonly ~ label {
  font-size: var(--font-size-sm, 0.875rem) !important;
  font-weight: var(--font-weight-semibold, 600) !important;
  color: var(--text, #191b1f) !important;
  line-height: 1.4 !important;
  top: auto !important;
  left: auto !important;
  background: transparent !important;
  padding: 0 !important;
}

.hackathon-registration-form-shell .create-section.input_sec,
.hackathon-registration-form-shell .create-section.layered.input_sec {
  overflow: visible !important;
  z-index: 1;
}

.hackathon-registration-form-shell .create-section.reg-autocomplete-field-open {
  z-index: 200 !important;
}

.hackathon-registration-form-shell .create-section.reg-country-field-open {
  z-index: 200 !important;
}

/* Shared floating dropdown positioning (country + autocomplete) */
.hackathon-registration-form-shell .reg-floating-dropdown {
  position: fixed !important;
  top: var(--reg-float-top) !important;
  left: var(--reg-float-left) !important;
  width: var(--reg-float-width) !important;
  max-height: var(--reg-float-max-height) !important;
  transform: none !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 100070 !important;
}

/* Country code dropdown — in-form list always hidden; only body portaled copy shows */
.hackathon-registration-form-shell .b2boauth-custom-select .select-items,
.hackathon-registration-form-shell .reg-mobile-input-row .select-items {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body > .select-items.reg-country-dropdown-open:not(.select-hide) {
  display: block !important;
  min-width: 280px;
  width: 280px !important;
  height: auto !important;
  margin: 0;
  padding: 4px 0;
  border: 1px solid var(--border, #dedede) !important;
  border-radius: var(--radius-sm, 8px) !important;
  background: var(--bg, #fff) !important;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(15, 23, 42, 0.12)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  font-family: var(--font-sans, 'Inter', sans-serif) !important;
  font-size: var(--font-size-sm, 0.875rem) !important;
  font-weight: var(--font-weight-medium, 500) !important;
  line-height: 1.4 !important;
}

body > .select-items.reg-country-dropdown-open div {
  position: static !important;
  top: auto !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--brand-border-light, #f0f0f0) !important;
  background: var(--bg, #fff) !important;
  color: var(--text, #191b1f) !important;
  cursor: pointer;
  white-space: nowrap;
}

body > .select-items.reg-country-dropdown-open div:last-child {
  border-bottom: 0 !important;
}

body > .select-items.reg-country-dropdown-open div:hover,
body > .select-items.reg-country-dropdown-open div.same-as-selected {
  background: var(--primary-subtle, #fff5f2) !important;
  color: var(--primary, #e30009) !important;
}

.hackathon-registration-form-shell .reg-mobile-input-row {
  position: relative;
  z-index: 1;
}

.hackathon-registration-form-shell .reg-mobile-input-row .b2boauth-custom-select {
  z-index: 2;
}

/* Autocomplete — company, designation, location */
.hackathon-registration-form-shell .autocomplete-items {
  display: none !important;
}

body > .autocomplete-items.reg-autocomplete-positioned:not(:empty) {
  display: block !important;
  min-width: 200px;
  height: auto !important;
  margin: 0;
  padding: var(--space-1, 0.25rem) 0;
  border: 1px solid var(--border, #dedede) !important;
  border-radius: var(--radius-sm, 8px) !important;
  background: var(--bg, #fff) !important;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(15, 23, 42, 0.12)) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  font-family: var(--font-sans, 'Inter', sans-serif) !important;
  font-size: var(--font-size-sm, 0.875rem) !important;
  font-weight: var(--font-weight-medium, 500) !important;
  line-height: 1.4 !important;
}

body > .autocomplete-items.reg-autocomplete-positioned div {
  padding: 10px 14px !important;
  margin: 0;
  border: 0 !important;
  border-bottom: 1px solid var(--brand-border-light, #f0f0f0) !important;
  background: var(--bg, #fff) !important;
  color: var(--text, #191b1f) !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

body > .autocomplete-items.reg-autocomplete-positioned div:last-child {
  border-bottom: 0 !important;
}

body > .autocomplete-items.reg-autocomplete-positioned div:first-child {
  border-top: 0 !important;
}

body > .autocomplete-items.reg-autocomplete-positioned div:hover,
body > .autocomplete-items.reg-autocomplete-positioned div:focus,
body > .autocomplete-items.reg-autocomplete-positioned div.autocomplete-active {
  background: var(--primary-subtle, #fff5f2) !important;
  color: var(--primary, #e30009) !important;
}

.hackathon-registration-form-shell .autocomplete-items div input[type="hidden"] {
  display: none !important;
}

/* Highest qualification — grouped autosuggest dropdown */
.hackathon-registration-form-shell .create-section.reg-qualification-field-open {
  z-index: 200 !important;
}

.hackathon-registration-form-shell .reg-qualification-input {
  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='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 7px;
  padding-right: 32px !important;
}

body > .reg-qualification-dropdown {
  display: none;
  position: fixed;
  min-width: 240px;
  margin: 0;
  padding: var(--space-1, 0.25rem) 0;
  border: 1px solid var(--border, #dedede);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg, #fff);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(15, 23, 42, 0.12));
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
  line-height: 1.4;
  z-index: 100070;
}

body > .reg-qualification-dropdown:not(:empty) {
  display: block;
}

body > .reg-qualification-dropdown .reg-qualification-group-label {
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary, #6b7280);
  background: var(--surface-subtle, #f7f7f8);
  border-bottom: 1px solid var(--brand-border-light, #f0f0f0);
  cursor: default;
}

body > .reg-qualification-dropdown .reg-qualification-option {
  padding: 10px 14px;
  border-bottom: 1px solid var(--brand-border-light, #f0f0f0);
  background: var(--bg, #fff);
  color: var(--text, #191b1f);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

body > .reg-qualification-dropdown .reg-qualification-option:last-child {
  border-bottom: 0;
}

body > .reg-qualification-dropdown .reg-qualification-option:hover,
body > .reg-qualification-dropdown .reg-qualification-option.is-active {
  background: var(--primary-subtle, #fff5f2);
  color: var(--primary, #e30009);
}

body > .reg-qualification-dropdown .reg-qualification-empty {
  padding: 12px 14px;
  color: var(--text-secondary, #6b7280);
  font-style: italic;
  cursor: default;
}

/* Higher institute — live search autosuggest dropdown */
.hackathon-registration-form-shell .create-section.reg-institute-field-open {
  z-index: 200 !important;
}

body > .reg-institute-dropdown {
  display: none;
  position: fixed;
  min-width: 240px;
  margin: 0;
  padding: var(--space-1, 0.25rem) 0;
  border: 1px solid var(--border, #dedede);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg, #fff);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(15, 23, 42, 0.12));
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
  line-height: 1.4;
  z-index: 100070;
}

body > .reg-institute-dropdown:not(:empty) {
  display: block;
}

body > .reg-institute-dropdown .reg-institute-option {
  padding: 10px 14px;
  border-bottom: 1px solid var(--brand-border-light, #f0f0f0);
  background: var(--bg, #fff);
  color: var(--text, #191b1f);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

body > .reg-institute-dropdown .reg-institute-option:last-child {
  border-bottom: 0;
}

body > .reg-institute-dropdown .reg-institute-option:hover,
body > .reg-institute-dropdown .reg-institute-option.is-active {
  background: var(--primary-subtle, #fff5f2);
  color: var(--primary, #e30009);
}

body > .reg-institute-dropdown .reg-institute-empty {
  padding: 12px 14px;
  color: var(--text-secondary, #6b7280);
  font-style: italic;
  cursor: default;
}

/* Work experience / salary — scrollable dropdown with a fixed option list height */
.hackathon-registration-form-shell .create-section.reg-expyr-field-open,
.hackathon-registration-form-shell .create-section.reg-salary-field-open {
  z-index: 200 !important;
}

.hackathon-registration-form-shell .reg-expyr-input,
.hackathon-registration-form-shell .reg-salary-input {
  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='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 7px;
  padding-right: 32px !important;
  cursor: pointer;
}

body > .reg-expyr-dropdown,
body > .reg-salary-dropdown {
  display: none;
  position: fixed;
  min-width: 200px;
  margin: 0;
  padding: var(--space-1, 0.25rem) 0;
  border: 1px solid var(--border, #dedede);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg, #fff);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(15, 23, 42, 0.12));
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
  line-height: 1.4;
  z-index: 100070;
}

body > .reg-expyr-dropdown:not(:empty),
body > .reg-salary-dropdown:not(:empty) {
  display: block;
}

body > .reg-expyr-dropdown .reg-expyr-option,
body > .reg-salary-dropdown .reg-salary-option {
  padding: 9px 14px;
  border-bottom: 1px solid var(--brand-border-light, #f0f0f0);
  background: var(--bg, #fff);
  color: var(--text, #191b1f);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

body > .reg-expyr-dropdown .reg-expyr-option:last-child,
body > .reg-salary-dropdown .reg-salary-option:last-child {
  border-bottom: 0;
}

body > .reg-expyr-dropdown .reg-expyr-option:hover,
body > .reg-expyr-dropdown .reg-expyr-option.is-active,
body > .reg-salary-dropdown .reg-salary-option:hover,
body > .reg-salary-dropdown .reg-salary-option.is-active {
  background: var(--primary-subtle, #fff5f2);
  color: var(--primary, #e30009);
}

body > .reg-expyr-dropdown .reg-expyr-empty,
body > .reg-salary-dropdown .reg-salary-empty {
  padding: 12px 14px;
  color: var(--text-secondary, #6b7280);
  font-style: italic;
  cursor: default;
}

@media screen and (min-width: 768px) {
  body.hackathon-registration-page-body .hackathon-registration-form-shell .input-section-main .autocomplete-items,
  body.hackathon-registration-page-body .hackathon-registration-form-shell .input-section-main [data-param-id="b2boauth_select_company"] ~ .autocomplete-items {
    width: auto !important;
  }
}

/* Inputs & selects (exclude hidden country-code select) */
.hackathon-registration-form-shell .input_txt_box,
.hackathon-registration-form-shell .create-section select:not(#countryCode),
.hackathon-registration-form-shell .select_sec select {
  order: 2;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border, #dedede) !important;
  border-radius: var(--radius-sm, 8px) !important;
  background: var(--bg, #fff) !important;
  box-shadow: none !important;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: var(--font-size-sm, 0.875rem);
  line-height: 1.4;
  color: var(--text, #191b1f);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  height: auto !important;
  -webkit-appearance: none;
  appearance: none;
}

.hackathon-registration-form-shell .create-section select:not(#countryCode),
.hackathon-registration-form-shell .input_select_box 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' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235F666E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 36px !important;
  cursor: pointer;
}

.hackathon-registration-form-shell .input_txt_box:focus,
.hackathon-registration-form-shell .create-section select:not(#countryCode):focus {
  outline: none;
  border-color: var(--primary, #e30009) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 227, 0, 9), 0.12) !important;
}

.hackathon-registration-form-shell .input_txt_box::placeholder {
  color: var(--text-subtle, #727272);
}

/* Date: hide native placeholder until value/focus */
.hackathon-registration-form-shell input[type="date"] {
  position: relative;
}

.hackathon-registration-form-shell input[type="date"]:not(:focus):invalid {
  color: transparent;
}

.hackathon-registration-form-shell input[type="date"]:focus,
.hackathon-registration-form-shell input[type="date"]:valid {
  color: var(--text, #191b1f);
}

.hackathon-registration-form-shell input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
}

/* Mobile with country code */
.hackathon-registration-form-shell .create-section:has(#b2boauth_mobile_num),
.hackathon-registration-form-shell .create-section:has(.reg-mobile-input-row) {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 0.5rem);
}

.hackathon-registration-form-shell .create-section:has(#b2boauth_mobile_num) label,
.hackathon-registration-form-shell .create-section:has(.reg-mobile-input-row) label {
  order: 0;
  margin: 0;
}

.hackathon-registration-form-shell .reg-mobile-input-row {
  display: flex;
  align-items: stretch;
  gap: var(--space-3, 0.75rem);
  width: 100%;
}

.hackathon-registration-form-shell .reg-mobile-input-row .b2boauth-custom-select {
  position: relative;
  flex: 0 0 118px;
  width: 118px;
  min-width: 118px;
}

.hackathon-registration-form-shell .b2boauth-custom-select select,
.hackathon-registration-form-shell .b2boauth-custom-select #countryCode {
  display: none !important;
}

.hackathon-registration-form-shell .reg-mobile-input-row #b2boauth_mobile_num {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 14px !important;
}

.hackathon-registration-form-shell .b2boauth-custom-select .select-selected {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  min-height: 40px;
  margin: 0 !important;
  padding: 8px 10px 8px 12px !important;
  border: 1px solid var(--border, #dedede) !important;
  border-radius: var(--radius-sm, 8px) !important;
  border-right: 1px solid var(--border, #dedede) !important;
  background: var(--bg-soft, #f8fafc) !important;
  font-size: var(--font-size-sm, 0.875rem) !important;
  font-weight: var(--font-weight-medium, 500) !important;
  color: var(--text, #191b1f) !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  text-align: left;
  line-height: 1.2;
  cursor: pointer;
}

.hackathon-registration-form-shell .b2boauth-custom-select .select-selected:after {
  display: none;
}

.hackathon-registration-form-shell .b2boauth-custom-select .select-selected .fa-angle-down {
  flex-shrink: 0;
  margin: 0;
  font-size: 14px;
  color: var(--text-muted, #5f666e);
}

.hackathon-registration-form-shell .b2boauth-custom-select .select-selected.select-arrow-active .fa-angle-down {
  transform: rotate(180deg);
}

.hackathon-registration-form-shell .b2boauth-custom-select .select-items div {
  position: static !important;
  top: auto !important;
  padding: 10px 14px !important;
  font-size: var(--font-size-sm, 0.875rem) !important;
  font-weight: var(--font-weight-medium, 500) !important;
  line-height: 1.4 !important;
  color: var(--text, #191b1f) !important;
  cursor: pointer;
  white-space: nowrap;
}

.hackathon-registration-form-shell .b2boauth-custom-select .select-items div:hover,
.hackathon-registration-form-shell .b2boauth-custom-select .select-items div.same-as-selected {
  background: var(--bg-soft, #f8fafc) !important;
}

.hackathon-registration-form-shell .create-section.layered:has(#b2boauth_mobile_num),
.hackathon-registration-form-shell .create-section:has(.select_sec) {
  grid-column: 1 / -1;
}

@media (max-width: 575px) {
  .hackathon-registration-form-shell .reg-mobile-input-row {
    flex-direction: column;
    gap: var(--space-2, 0.5rem);
  }

  .hackathon-registration-form-shell .reg-mobile-input-row .b2boauth-custom-select {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .hackathon-registration-form-shell .b2boauth-custom-select .select-items {
    width: 100% !important;
  }
}

/* File upload */
.hackathon-registration-form-shell .reg-file-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 0.5rem);
  order: 2;
  width: 100%;
}

.hackathon-registration-form-shell .reg-file-field > label {
  order: 0 !important;
  margin: 0 !important;
}

.hackathon-registration-form-shell .reg-file-control {
  order: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  min-height: 40px;
  padding: 5px 5px 5px 12px;
  border: 1px dashed var(--border, #dedede);
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-soft, #f8fafc);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hackathon-registration-form-shell .reg-file-control:focus-within {
  border-color: var(--primary, #e30009);
  background: var(--primary-subtle, #fff5f2);
}

.hackathon-registration-form-shell .reg-file-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--primary, #e30009);
  color: #fff;
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-semibold, 600);
  cursor: pointer;
  white-space: nowrap;
}

.hackathon-registration-form-shell .reg-file-name {
  flex: 1;
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--text-muted, #5f666e);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hackathon-registration-form-shell .reg-file-name.has-file {
  color: var(--text, #191b1f);
  font-weight: var(--font-weight-medium, 500);
}

.hackathon-registration-form-shell .reg-file-hint {
  order: 2;
  margin: 0;
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-muted, #5f666e);
  line-height: 1.4;
}

.hackathon-registration-form-shell .reg-file-control.is-uploading {
  opacity: 0.75;
  pointer-events: none;
}

.hackathon-registration-form-shell .reg-file-field.error .reg-file-control {
  border-color: #dc3545;
  background: #fef2f2;
}

.hackathon-registration-form-shell input.reg-file-input,
.hackathon-registration-form-shell .field-resume input[type="file"]:not(.reg-file-input) {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.hackathon-registration-form-shell .file-loader {
  display: none !important;
}

/* Checkbox / consent */
.hackathon-registration-form-shell .create-section.webinar-checkbox {
  margin-top: var(--space-5, 1.25rem);
  padding-top: var(--space-4, 1rem);
}

.hackathon-registration-form-shell .create-section.webinar-checkbox label.checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: var(--space-3, 0.75rem);
  font-size: var(--font-size-sm, 0.875rem) !important;
  font-weight: var(--font-weight-medium, 500) !important;
  color: var(--text-muted, #5f666e) !important;
  line-height: 1.5;
  cursor: pointer;
}

.hackathon-registration-form-shell .create-section.webinar-checkbox label.checkbox > p,
.hackathon-registration-form-shell .create-section.webinar-checkbox label.checkbox p {
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto;
  line-height: 1.5;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.hackathon-registration-form-shell .create-section.webinar-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  /* Optically center with the first text line (line-height 1.5 ≈ 21px vs 18px box). */
  margin: 1.5px 0 0 0;
  padding: 0;
  position: relative;
  top: 0;
  vertical-align: top;
  accent-color: var(--primary, #e30009);
  cursor: pointer;
}

/* Custom checkbox / radio / skills multi-select — horizontal chip row */
.hackathon-registration-form-shell .create-section.reg-multiselect-host,
.hackathon-registration-form-shell .create-section[class*="field-extrafield-"]:has(.multifield) {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.hackathon-registration-form-shell .create-section.reg-multiselect-host > label,
.hackathon-registration-form-shell .create-section.section-full > label,
.hackathon-registration-form-shell .create-section[class*="section-full"] > label,
.hackathon-registration-form-shell .create-section[class*="field-extrafield-"] > label {
  order: 0 !important;
  margin-top: 0 !important;
  width: 100%;
  max-width: 100%;
}

.hackathon-registration-form-shell .reg-multiselect-options {
  order: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 8px 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex: 1 1 100%;
}

.hackathon-registration-form-shell .multifield {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--border, #dedede);
  border-radius: 100px;
  background: var(--bg-soft, #f8fafc);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: var(--font-weight-medium, 500);
  color: var(--text, #191b1f);
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.hackathon-registration-form-shell .multifield:hover {
  border-color: rgba(var(--primary-rgb, 227, 0, 9), 0.35);
  background: var(--bg, #fff);
}

.hackathon-registration-form-shell .multifield:has(input:checked) {
  border-color: var(--primary, #e30009);
  background: var(--primary-subtle, #fff5f2);
  color: var(--primary, #e30009);
}

.hackathon-registration-form-shell .multifield input[type="checkbox"],
.hackathon-registration-form-shell .multifield input[type="radio"] {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary, #e30009);
  cursor: pointer;
}

.hackathon-registration-form-shell .multifield label {
  order: 0;
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.hackathon-registration-form-shell textarea.input_txt_box {
  min-height: 100px;
  resize: vertical;
}

/* Errors */
.hackathon-registration-form-shell .create-section .error,
.hackathon-registration-form-shell .create-section .error-txt {
  order: 3;
  margin: 0;
  font-size: var(--font-size-xs, 0.75rem);
  color: #dc3545;
  line-height: 1.4;
}

.hackathon-registration-form-shell #common_error_message_err:not(:empty) {
  grid-column: 1 / -1;
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm, 8px);
  color: #b91c1c;
  font-size: var(--font-size-sm, 0.875rem);
}

/* Submit */
.hackathon-registration-form-shell .submit-outer {
  margin-top: var(--space-4, 1rem);
  padding-top: var(--space-4, 1rem);
  border-top: 1px solid var(--brand-border-light, #f0f0f0);
  position: static !important;
  box-shadow: none !important;
  background: transparent !important;
  display: flex;
  justify-content: center;
}

.hackathon-registration-form-shell .submit-outer .submit-button2,
.hackathon-registration-form-shell #quiz_register_btn {
  width: 100%;
  max-width: 300px;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 24px;
  border: 0;
  border-radius: 100px;
  background: var(--primary, #e30009);
  color: #fff;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: var(--font-size-base, 1rem);
  font-weight: var(--font-weight-semibold, 600);
  text-transform: none !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hackathon-registration-form-shell .submit-outer .submit-button2:hover,
.hackathon-registration-form-shell #quiz_register_btn:hover {
  background: var(--primary-hover, #c40008);
}

.hackathon-registration-form-shell .submit-outer .submit-button2:disabled,
.hackathon-registration-form-shell .submit-outer .submit-button2.is-submitting,
.hackathon-registration-form-shell #quiz_register_btn:disabled,
.hackathon-registration-form-shell #quiz_register_btn.is-submitting {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
  transform: none;
  background: var(--primary, #e30009);
}

.hackathon-registration-form-shell .submit-outer .submit-button2.is-submitting,
.hackathon-registration-form-shell #quiz_register_btn.is-submitting {
  position: relative;
}

.hackathon-registration-form-shell .submit-confirm-tc {
  grid-column: 1 / -1;
  margin-top: var(--space-3, 0.75rem);
  text-align: center;
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-subtle, #727272);
}

.hackathon-registration-form-shell .submit-confirm-tc a {
  color: var(--text-muted, #5f666e);
  text-decoration: underline;
}

/* Field focus ring on wrapper (optional visual) */
.hackathon-registration-form-shell .create-section:focus-within:not(.webinar-checkbox) {
  z-index: 1;
}

@media (max-width: 767px) {
  .registration-page-title,
  .registration-hero .section__title {
    font-size: var(--font-size-h2, 28px);
  }

  .registration-page-body {
    margin-top: var(--space-6, 1.5rem);
  }

  .registration-form-card,
  .registration-status-card {
    padding: var(--space-5, 1.25rem) var(--space-4, 1rem);
  }

  .hackathon-registration-form-shell .login_outer.layered2 {
    grid-template-columns: 1fr;
    gap: var(--space-4, 1rem);
  }

  .hackathon-registration-form-shell .reg-file-control {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3, 0.75rem);
  }

  .hackathon-registration-form-shell .reg-file-btn {
    width: 100%;
  }
}

/* Current Status — keep as a dropdown when the user still needs to pick a value */
.hackathon-registration-form-shell .create-section.field-user-type,
.hackathon-registration-form-shell .create-section.reg-user-type-always {
  display: flex !important;
  visibility: visible !important;
}

/* Already known from OAuth / prior registration — hide the duplicate input */
.hackathon-registration-form-shell .create-section.reg-prefilled-hidden,
.hackathon-registration-form-shell .create-section.field-user-type.reg-prefilled-hidden,
.hackathon-registration-form-shell .create-section.reg-user-type-always.reg-prefilled-hidden {
  display: none !important;
  visibility: hidden !important;
}

/* Edit mode — restore prefilled fields so the user can change them */
.hackathon-registration-form-shell #contest_form.reg-form-editing .create-section.reg-prefilled-hidden,
.hackathon-registration-form-shell #contest_form.reg-form-editing .create-section.field-user-type,
.hackathon-registration-form-shell #contest_form.reg-form-editing .create-section.reg-user-type-always {
  display: flex !important;
  visibility: visible !important;
}

.hackathon-registration-form-shell .create-section.field-user-type select,
.hackathon-registration-form-shell .create-section.reg-user-type-always select {
  display: block !important;
  width: 100%;
}

.hackathon-registration-form-shell .create-section.reg-skills-field,
.hackathon-registration-form-shell .create-section.field-key-skills {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
}

.hackathon-registration-form-shell .reg-skills-wrap {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.hackathon-registration-form-shell .reg-skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.hackathon-registration-form-shell .reg-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  border: 1px solid var(--border, #dedede);
  border-radius: 100px;
  background: var(--bg-soft, #f8fafc);
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--text, #191b1f);
}

.hackathon-registration-form-shell .reg-skill-chip-remove {
  border: 0;
  background: transparent;
  color: var(--text-muted, #64748b);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.hackathon-registration-form-shell .reg-skill-chip-remove:hover {
  color: var(--primary, #e30009);
}

.hackathon-registration-form-shell .reg-skills-input {
  width: 100%;
}
