/* =========================================================
   PEGASUS AUTH DARK THEME
   Single shared file for:
   - Registration page
   - Login page
   - Thank You page

   Save as: public/assets/css/registercopy.css
   ========================================================= */

:root {
  --peg-bg: #050914;
  --peg-bg-2: #08101f;
  --peg-card: #101827;
  --peg-card-2: #121c2d;
  --peg-card-soft: #172235;
  --peg-input-bg: #0d1726;
  --peg-input-bg-2: #111c2d;
  --peg-border: #283447;
  --peg-border-soft: rgba(255, 255, 255, 0.08);
  --peg-text: #f7f9ff;
  --peg-text-soft: #d6deec;
  --peg-muted: #8794aa;
  --peg-muted-2: #66748a;
  --peg-gold: #e7c85b;
  --peg-gold-2: #f4d86f;
  --peg-gold-soft: rgba(231, 200, 91, 0.16);
  --peg-green: #20d6a5;
  --peg-green-2: #0ea77f;
  --peg-green-soft: rgba(32, 214, 165, 0.14);
  --peg-danger: #ff5d6c;
  --peg-warning: #f59e0b;
  --peg-radius: 16px;
  --peg-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--peg-bg) !important;
}

body {
  margin: 0;
  min-width: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--peg-text);
  background:
    radial-gradient(circle at 20% -10%, rgba(32, 214, 165, 0.10), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(231, 200, 91, 0.12), transparent 30%),
    linear-gradient(180deg, #050914 0%, #080d19 54%, #050914 100%) !important;
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

a {
  color: var(--peg-gold);
}

a:hover {
  color: var(--peg-gold-2);
}

/* Remove old auth page background */
.bg-login-img,
.authentication-wrapper,
.authentication-basic,
.authentication-inner {
  background: transparent !important;
}

/* =========================================================
   SHARED PAGE BACKGROUND
   ========================================================= */

.reg-page-wrap,
.auth-page-wrap,
.thankyou-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 54px 18px 70px;
  position: relative;
  overflow: hidden;
}

.reg-page-wrap::before,
.auth-page-wrap::before,
.thankyou-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
  opacity: 0.55;
}

.reg-page-wrap::after,
.auth-page-wrap::after,
.thankyou-page::after {
  content: '';
  position: fixed;
  width: 520px;
  height: 520px;
  right: -190px;
  bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 200, 91, 0.14), transparent 62%);
  pointer-events: none;
}

/* =========================================================
   SHARED CARD SYSTEM
   ========================================================= */

.reg-card,
.auth-card,
.thankyou-card {
  width: min(100%, 800px);
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--peg-card);
  border: 1px solid var(--peg-border-soft);
  box-shadow: var(--peg-shadow);
}

.auth-login-card {
  max-width: 620px;
}

.thankyou-card {
  max-width: 820px;
  padding: 42px;
}

.reg-card::before,
.auth-card::before,
.thankyou-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, transparent, var(--peg-gold), var(--peg-green), transparent);
}

.reg-card::after,
.auth-card::after,
.thankyou-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 0%, rgba(231, 200, 91, 0.10), transparent 34%),
    radial-gradient(circle at 100% 24%, rgba(32, 214, 165, 0.08), transparent 30%);
}

.auth-card-inner,
.thankyou-inner {
  position: relative;
  z-index: 1;
}

/* =========================================================
   HEADERS
   ========================================================= */

.reg-header,
.auth-header {
  position: relative;
  z-index: 1;
  padding: 38px 42px 16px;
  text-align: center;
  background: transparent;
}

.reg-header::before {
  content: 'REGISTRATION FLOW  •  SECURE BUSINESS ONBOARDING';
}

.auth-header::before {
  content: attr(data-kicker);
}

.reg-header::before,
.auth-header::before {
  display: block;
  margin-bottom: 10px;
  color: var(--peg-gold);
  font-size: 0.66rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.reg-header::after {
  display: none;
}

.reg-logo,
.auth-logo,
.thankyou-logo {
  object-fit: contain;
  padding: 9px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.reg-logo,
.auth-logo {
  width: 56px;
  height: 56px;
}

.thankyou-logo {
  width: 70px;
  height: 70px;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 20px;
}

.reg-header h1,
.auth-title,
.thankyou-title {
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.28rem);
  font-weight: 800;
  color: var(--peg-text);
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.thankyou-title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  margin-bottom: 10px;
}

.reg-header p,
.auth-subtitle,
.thankyou-subtitle {
  max-width: 580px;
  margin: 0 auto;
  color: var(--peg-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.thankyou-subtitle {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* =========================================================
   REGISTRATION STEP BAR
   ========================================================= */

.step-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 42px 22px;
}

.step-item {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--peg-border);
  background: rgba(255, 255, 255, 0.028);
  color: var(--peg-muted);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 2px);
  width: 10px;
  height: 1px;
  background: var(--peg-border);
  transform: translateY(-50%);
}

.step-item.active {
  border-color: rgba(231, 200, 91, 0.65);
  background: var(--peg-gold-soft);
  color: var(--peg-gold-2);
  transform: translateY(-1px);
}

.step-item.done {
  border-color: rgba(32, 214, 165, 0.55);
  background: var(--peg-green-soft);
  color: var(--peg-green);
}

.step-item.done:not(:last-child)::after,
.step-item.active:not(:last-child)::after {
  background: linear-gradient(90deg, currentColor, var(--peg-border));
}

.step-dot {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font-size: 0.62rem;
  font-weight: 800;
}

.step-item.active .step-dot {
  background: rgba(231, 200, 91, 0.15);
  color: var(--peg-gold-2);
  box-shadow: 0 0 0 5px rgba(231, 200, 91, 0.08);
}

.step-item.done .step-dot {
  background: rgba(32, 214, 165, 0.16);
  color: var(--peg-green);
  box-shadow: 0 0 0 5px rgba(32, 214, 165, 0.07);
}

.step-item.done .step-dot::before {
  content: '✓';
}

.step-item.done .step-dot span {
  display: none;
}

.step-label {
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-item.active .step-label,
.step-item.done .step-label {
  color: inherit;
}

/* =========================================================
   BODY + PANELS
   ========================================================= */

.reg-body,
.auth-body {
  position: relative;
  z-index: 1;
  padding: 10px 42px 42px;
}

.step-panel {
  display: none;
  position: relative;
  padding-top: 28px;
  animation: fadeSlide 0.32s ease;
}

.step-panel.active {
  display: block;
}

.auth-panel {
  position: relative;
  padding-top: 28px;
}

.step-panel::before,
.step-panel::after,
.auth-panel::before,
.auth-panel::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  height: 3px;
  border-radius: 999px;
}

.step-panel::before,
.auth-panel::before {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.step-panel::after,
.auth-panel::after {
  background: linear-gradient(90deg, var(--peg-gold), var(--peg-green));
}

.auth-panel::after {
  width: 100%;
}

#step-panel-1::after { width: 25%; }
#step-panel-2::after { width: 50%; }
#step-panel-3::after { width: 75%; }
#step-panel-4::after { width: 100%; }

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title,
.auth-section-title {
  position: relative;
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.72rem);
  font-weight: 800;
  color: var(--peg-text);
  margin: 0 0 8px;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-align: center;
}

.step-title::before,
.auth-section-title::before {
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(231, 200, 91, 0.38);
  background: rgba(231, 200, 91, 0.09);
  color: var(--peg-gold);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.18em;
}

#step-panel-1 .step-title::before { content: 'STEP 01 / 04'; }
#step-panel-2 .step-title::before { content: 'STEP 02 / 04'; }
#step-panel-3 .step-title::before { content: 'STEP 03 / 04'; }
#step-panel-4 .step-title::before { content: 'STEP 04 / 04'; }

.auth-section-title::before {
  content: attr(data-step);
}

.step-sub,
.auth-section-subtitle {
  max-width: 540px;
  margin: 0 auto 26px;
  color: var(--peg-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: center;
}

/* Hide any manually added step badge to prevent duplicate "STEP 03 / 04" */
.step-badge {
  display: none !important;
}

/* =========================================================
   FORMS
   ========================================================= */

.form-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.form-row .form-grp {
  flex: 1;
  min-width: 0;
}

.form-grp {
  width: 100%;
  max-width: 100%;
  margin-bottom: 18px;
}

.form-grp label {
  display: block;
  color: var(--peg-gold);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-grp label .req,
.req {
  color: var(--peg-gold-2);
  margin-left: 2px;
}

.peg-input,
.phone-input,
.form-control {
  font-family: inherit;
}

.peg-input,
.form-control {
  width: 100%;
  max-width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--peg-border) !important;
  border-radius: 13px !important;
  color: var(--peg-text-soft) !important;
  caret-color: var(--peg-gold-2);
  background: #0d1726;
  font-size: 0.88rem;
  outline: none;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.peg-input::placeholder,
.form-control::placeholder,
.phone-input::placeholder {
  color: rgba(148, 163, 184, 0.58) !important;
  opacity: 1 !important;
}

.peg-input:hover,
.form-control:hover {
  border-color: #39465a !important;
}

.peg-input:focus,
.form-control:focus {
  color: var(--peg-text) !important;
  border-color: rgba(231, 200, 91, 0.8) !important;
  background: var(--peg-input-bg-2) !important;
  box-shadow: 0 0 0 4px rgba(231, 200, 91, 0.09) !important;
}

.peg-input.is-invalid,
.form-control.is-invalid {
  border-color: var(--peg-danger) !important;
  box-shadow: 0 0 0 4px rgba(255, 93, 108, 0.08) !important;
}

.peg-input.is-valid,
.form-control.is-valid {
  border-color: var(--peg-green) !important;
}

textarea.peg-input,
textarea.form-control {
  height: auto;
  min-height: 96px;
  padding: 12px 15px;
  resize: vertical;
}

.field-error,
.invalid-feedback,
.invalid-feedbacks {
  display: block;
  margin-top: 6px;
  color: var(--peg-danger) !important;
  font-size: 0.74rem;
  font-weight: 700;
}

/* Phone */
.phone-group {
  min-height: 48px;
  width: 100%;
  max-width: 100%;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--peg-border);
  border-radius: 13px;
  background: var(--peg-input-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-group:focus-within {
  border-color: rgba(231, 200, 91, 0.8);
  box-shadow: 0 0 0 4px rgba(231, 200, 91, 0.09);
}

.phone-group.is-invalid {
  border-color: var(--peg-danger);
}

.phone-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-right: 1px solid var(--peg-border);
  background: rgba(32, 214, 165, 0.08);
  color: var(--peg-green);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.phone-flag img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-right: 4px;
}

.phone-input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  color: var(--peg-text-soft);
  caret-color: var(--peg-gold-2);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 0.88rem;
}

/* Select2 */
.select2-container {
  width: 100% !important;
  max-width: 100%;
}

.select2-container--default .select2-selection--single {
  height: 48px !important;
  display: flex !important;
  align-items: center;
  border: 1px solid var(--peg-border) !important;
  border-radius: 13px !important;
  background: var(--peg-input-bg) !important;
  outline: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100%;
  color: var(--peg-text-soft) !important;
  line-height: 48px !important;
  padding-left: 15px !important;
  padding-right: 38px !important;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(148, 163, 184, 0.58) !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  color: var(--peg-muted) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--peg-gold) transparent transparent transparent !important;
}

.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single {
  border-color: rgba(231, 200, 91, 0.8) !important;
  box-shadow: 0 0 0 4px rgba(231, 200, 91, 0.09) !important;
}

.select2-dropdown {
  border: 1px solid var(--peg-border) !important;
  border-radius: 13px !important;
  overflow: hidden;
  background: #101827 !important;
  color: var(--peg-text-soft) !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--peg-border) !important;
  border-radius: 10px !important;
  background: var(--peg-input-bg) !important;
  color: var(--peg-text) !important;
  outline: none;
}

.select2-results__option {
  color: var(--peg-text-soft) !important;
  background: #101827 !important;
  font-size: 0.86rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted {
  background: rgba(231, 200, 91, 0.16) !important;
  color: var(--peg-gold-2) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background: rgba(32, 214, 165, 0.13) !important;
  color: var(--peg-green) !important;
}

/* Password */
.pwd-wrap {
  position: relative;
}

.pwd-wrap .peg-input,
.pwd-wrap .form-control {
  padding-right: 44px;
}

.pwd-eye {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--peg-muted);
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pwd-eye:hover {
  color: var(--peg-gold);
}

.pwd-strength {
  margin-top: 9px;
}

.pwd-strength-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.pwd-strength-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.3s ease, background 0.3s ease;
}

.pwd-strength-text {
  display: block;
  margin-top: 5px;
  color: var(--peg-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.pwd-strength-text.pwd-weak{
    color: #ef4444 !important;
}
.pwd-strength-fill.pwd-weak {
  
  background: #ef4444 !important;
}

.pwd-strength-fill.pwd-medium {
  background: #f59e0b !important;
}

.pwd-strength-text.pwd-medium{
    color: #f59e0b !important;
}

.pwd-strength-text.pwd-strong{
    color: #22c55e !important;
}
.pwd-strength-fill.pwd-strong {  
  background: #22c55e !important;
}

/* Browser autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--peg-text) !important;
  caret-color: var(--peg-gold-2) !important;
  box-shadow: 0 0 0 1000px var(--peg-input-bg) inset !important;
  -webkit-box-shadow: 0 0 0 1000px var(--peg-input-bg) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* =========================================================
   PHOTO UPLOAD
   ========================================================= */

.photo-upload-area {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.photo-preview {
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border-radius: 50%;
  object-fit: cover;
  padding: 4px;
  border: 1px solid rgba(231, 200, 91, 0.45);
  background: rgba(231, 200, 91, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.photo-actions {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.photo-hint {
  width: 100%;
  color: var(--peg-muted);
  font-size: 0.73rem;
}

/* =========================================================
   ROLE CARDS
   ========================================================= */

.acct-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 6px;
}

.acct-type-card {
  min-height: 128px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  padding: 16px 10px;
  border: 1px solid var(--peg-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--peg-card-2);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.acct-type-card:hover {
  transform: translateY(-2px);
  border-color: rgba(231, 200, 91, 0.42);
  background: var(--peg-card-soft);
}

.acct-type-card input[type="radio"] {
  display: none;
}

.acct-type-card.selected,
.acct-type-card:has(input[type="radio"]:checked) {
  border-color: rgba(231, 200, 91, 0.78);
  background: rgba(231, 200, 91, 0.10);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26), inset 0 0 0 1px rgba(231, 200, 91, 0.18);
}

.acct-type-card.selected::after,
.acct-type-card:has(input[type="radio"]:checked)::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--peg-green);
  color: #06100d;
  font-size: 0.65rem;
  font-weight: 900;
}

.acct-type-icon {
  display: block;
  font-size: 1.85rem;
  line-height: 1;
}

.acct-type-name {
  display: block;
  color: var(--peg-text);
  font-size: 0.84rem;
  font-weight: 900;
}

.acct-type-desc {
  display: block;
  color: var(--peg-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

/* Legacy role styles */
.role-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  border: 1px solid var(--peg-border);
  border-radius: 14px;
  background: var(--peg-card-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.role-card:hover,
.role-card.selected {
  border-color: rgba(231, 200, 91, 0.58);
  background: rgba(231, 200, 91, 0.08);
}

.role-card input[type="radio"] {
  display: none;
}

.role-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(231, 200, 91, 0.13);
  color: var(--peg-gold);
}

.role-info h4 {
  margin: 0 0 2px;
  color: var(--peg-text);
  font-size: 0.9rem;
}

.role-info p {
  margin: 0;
  color: var(--peg-muted);
  font-size: 0.75rem;
}

.role-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--peg-border);
}

.role-card.selected .role-check {
  background: var(--peg-green);
  border-color: var(--peg-green);
}

/* =========================================================
   BUSINESS STEP
   ========================================================= */

.address-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.14fr 1.14fr;
  gap: 12px;
}

.business-section {
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.business-section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--peg-gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-heading span {
  display: inline-block;
  width: 5px;
  height: 22px;
  flex: 0 0 5px;
  border-radius: 20px;
  background: var(--peg-gold);
}

.step-progress {
  height: 5px;
  width: 100%;
  background: #253044;
  border-radius: 999px;
  overflow: hidden;
  margin: 26px 0 8px;
}

.step-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--peg-gold), var(--peg-green));
  border-radius: 999px;
}

.step-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #7f8ea3;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 28px;
}

/* =========================================================
   DOCUMENT UPLOADS
   ========================================================= */

.doc-upload-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-upload-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--peg-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--peg-card-2);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.doc-upload-item:hover {
  transform: translateY(-1px);
  border-color: rgba(231, 200, 91, 0.35);
}

.doc-upload-item.is-invalid {
  border-color: var(--peg-danger);
}

.doc-upload-item.has-file {
  border-color: rgba(32, 214, 165, 0.55);
  background: rgba(32, 214, 165, 0.08);
}

.doc-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(231, 200, 91, 0.25);
  background: rgba(231, 200, 91, 0.08);
  color: var(--peg-gold);
  font-size: 1.15rem;
}

.doc-info {
  min-width: 0;
}

.doc-info h5 {
  margin: 0 0 3px;
  color: var(--peg-text-soft);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
}

.doc-info small {
  color: var(--peg-muted-2);
  font-size: 0.69rem;
  font-weight: 700;
}

.doc-file-name {
  display: none;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--peg-green);
  font-size: 0.72rem;
  font-weight: 800;
}

.doc-upload-item.has-file .doc-file-name {
  display: block;
}

.doc-badge {
  display: inline-flex;
  justify-content: center;
  min-width: 74px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(231, 200, 91, 0.28);
  background: rgba(231, 200, 91, 0.08);
  color: var(--peg-gold);
  font-size: 0.66rem;
  font-weight: 900;
}

.doc-upload-item.has-file .doc-badge {
  color: var(--peg-green);
  border-color: rgba(32, 214, 165, 0.38);
  background: rgba(32, 214, 165, 0.10);
}

/* =========================================================
   CONSENT + SECURITY
   ========================================================= */

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  margin-bottom: 11px;
  border: 1px solid var(--peg-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.026);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.consent-item:hover,
.consent-item.checked {
  border-color: rgba(32, 214, 165, 0.55);
  background: rgba(32, 214, 165, 0.08);
}

.consent-cb {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid var(--peg-border);
  background: rgba(255, 255, 255, 0.035);
  color: transparent;
  font-size: 0.72rem;
  font-weight: 900;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.consent-item.checked .consent-cb {
  border-color: var(--peg-green);
  background: var(--peg-green);
  color: #07100d;
}

.consent-text {
  color: var(--peg-text-soft);
  font-size: 0.82rem;
  line-height: 1.55;
}

.consent-text a {
  color: var(--peg-gold);
  font-weight: 900;
  text-decoration: none;
}

.consent-text a:hover {
  text-decoration: underline;
}

input.peg-cb {
  display: none;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 13px 15px;
  border: 1px solid rgba(32, 214, 165, 0.22);
  border-radius: 15px;
  background: rgba(32, 214, 165, 0.07);
  color: var(--peg-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.security-note i {
  color: var(--peg-gold);
  font-size: 1.05rem;
}

/* =========================================================
   BUTTONS + LINKS
   ========================================================= */

.btn-peg,
.btn-upload-photo,
.btn-reset-photo,
.btn-doc-upload,
.btn-peg-home {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.btn-peg {
  padding: 12px 24px;
  border: 1px solid transparent;
}

.btn-upload-photo,
.btn-reset-photo {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 11px;
}

.btn-doc-upload {
  min-height: 35px;
  padding: 8px 13px;
  border: 1px solid rgba(231, 200, 91, 0.5);
  border-radius: 10px;
  background: rgba(231, 200, 91, 0.10);
  color: var(--peg-gold-2);
  font-size: 0.74rem;
}

.btn-peg-primary,
.btn-upload-photo,
.btn-peg-home {
  border: 1px solid rgba(231, 200, 91, 0.78);
  background: linear-gradient(180deg, var(--peg-gold-2), var(--peg-gold));
  color: #080c13 !important;
  box-shadow: 0 16px 30px rgba(231, 200, 91, 0.18);
}

.btn-peg-primary:hover,
.btn-upload-photo:hover,
.btn-peg-home:hover {
  color: #080c13 !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(231, 200, 91, 0.25);
}

.btn-doc-upload:hover {
  background: linear-gradient(180deg, var(--peg-gold-2), var(--peg-gold));
  color: #080c13;
  transform: translateY(-1px);
}

.btn-reset-photo,
.btn-peg-outline {
  border: 1px solid var(--peg-border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--peg-muted);
}

.btn-reset-photo:hover {
  border-color: rgba(255, 93, 108, 0.65);
  color: #fff;
  background: rgba(255, 93, 108, 0.12);
  transform: translateY(-1px);
}

.btn-peg-outline:hover {
  border-color: rgba(231, 200, 91, 0.5);
  color: var(--peg-gold);
  background: rgba(231, 200, 91, 0.08);
  transform: translateY(-1px);
}

.btn-peg:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none !important;
}

.btn-peg-full {
  width: 100%;
}

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.signin-link,
.auth-footer-text {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--peg-muted);
  text-align: center;
  font-size: 0.84rem;
}

.signin-link a,
.auth-footer-text a,
.auth-link,
.auth-download-link {
  color: var(--peg-gold);
  font-weight: 900;
  text-decoration: none;
}

.signin-link a:hover,
.auth-footer-text a:hover,
.auth-link:hover,
.auth-download-link:hover {
  color: var(--peg-gold-2);
  text-decoration: underline;
}

.auth-links-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 18px;
}

.auth-download-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-size: 0.78rem;
}

/* =========================================================
   ALERTS
   ========================================================= */

.peg-alert,
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  margin-bottom: 20px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  border: 1px solid transparent;
  font-weight: 700;
}

.peg-alert ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.peg-alert-danger,
.alert-danger {
  border-color: rgba(255, 93, 108, 0.35);
  background: rgba(255, 93, 108, 0.10);
  color: #ffb6be;
}

.peg-alert-success,
.alert-success {
  border-color: rgba(32, 214, 165, 0.35);
  background: rgba(32, 214, 165, 0.10);
  color: #95f3d8;
}

/* =========================================================
   THANK YOU PAGE
   ========================================================= */

.thankyou-page {
  align-items: center;
}

.thankyou-top {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 30px;
}

.thankyou-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(32, 214, 165, 0.35);
  background: rgba(32, 214, 165, 0.10);
  color: var(--peg-green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.thankyou-success-icon {
  width: 56px;
  height: 56px;
  margin: 18px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--peg-green-soft);
  border: 1px solid rgba(32, 214, 165, 0.45);
  color: var(--peg-green);
  font-size: 1.65rem;
  font-weight: 900;
}

.thankyou-section {
  position: relative;
  z-index: 1;
  border: 1px solid var(--peg-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--peg-card-2);
  padding: 22px;
  margin-bottom: 18px;
}

.thankyou-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--peg-gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.thankyou-section-title::before {
  content: '';
  width: 5px;
  height: 22px;
  flex: 0 0 5px;
  border-radius: 20px;
  background: var(--peg-gold);
}

.detail-grid,
.contact-grid {
  display: grid;
  gap: 12px;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-box,
.contact-card {
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--peg-input-bg);
}

.detail-label,
.contact-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--peg-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.detail-value,
.contact-card a,
.contact-card strong {
  display: block;
  color: var(--peg-text-soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  word-break: break-word;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-card a:hover {
  color: var(--peg-gold);
}

.contact-icon,
.review-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(231, 200, 91, 0.14);
  color: var(--peg-gold);
  font-size: 1.1rem;
}

.next-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.next-list li {
  display: flex;
  gap: 12px;
  color: var(--peg-text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 13px;
}

.next-list li:last-child {
  margin-bottom: 0;
}

.next-list li::before {
  content: '✓';
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(32, 214, 165, 0.12);
  color: var(--peg-green);
  border: 1px solid rgba(32, 214, 165, 0.35);
  font-size: 0.72rem;
  font-weight: 900;
}

.review-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid rgba(231, 200, 91, 0.26);
  background: rgba(231, 200, 91, 0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.review-box p {
  margin: 0;
  color: var(--peg-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.review-box strong {
  color: var(--peg-gold-2);
}

.thankyou-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.btn-peg-home {
  min-height: 48px;
  padding: 13px 28px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
  .reg-page-wrap,
  .auth-page-wrap,
  .thankyou-page {
    padding: 36px 14px 46px;
  }

  .reg-card,
  .auth-card,
  .thankyou-card {
    max-width: 720px;
    border-radius: 24px;
  }

  .auth-login-card {
    max-width: 620px;
  }

  .reg-header,
  .auth-header {
    padding: 34px 28px 14px;
  }

  .step-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 22px 28px 20px;
    gap: 12px;
  }

  .step-item:not(:last-child)::after {
    display: none;
  }

  .reg-body,
  .auth-body {
    padding: 10px 28px 34px;
  }

  .acct-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .thankyou-page {
    align-items: flex-start;
  }

  .thankyou-card {
    padding: 32px 24px;
  }

  .detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .reg-page-wrap,
  .auth-page-wrap,
  .thankyou-page {
    align-items: flex-start;
    padding: 20px 10px 34px;
  }

  .reg-card,
  .auth-card,
  .thankyou-card {
    border-radius: 20px;
  }

  .reg-card::before,
  .auth-card::before,
  .thankyou-card::before {
    left: 18px;
    right: 18px;
  }

  .reg-header,
  .auth-header {
    padding: 28px 18px 10px;
  }

  .reg-header::before,
  .auth-header::before {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    line-height: 1.5;
  }

  .reg-logo,
  .auth-logo {
    width: 50px;
    height: 50px;
  }

  .thankyou-logo {
    width: 58px;
    height: 58px;
  }

  .reg-header h1,
  .auth-title,
  .thankyou-title {
    font-size: 1.45rem;
    line-height: 1.22;
  }

  .reg-header p,
  .auth-subtitle,
  .thankyou-subtitle {
    font-size: 0.82rem;
  }

  .step-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
    gap: 10px;
  }

  .step-item {
    min-width: 0;
    padding: 9px 10px;
  }

  .step-dot {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .step-label {
    font-size: 0.62rem;
  }

  .reg-body,
  .auth-body {
    padding: 8px 18px 28px;
  }

  .step-panel,
  .auth-panel {
    padding-top: 24px;
  }

  .step-title,
  .auth-section-title {
    font-size: 1.32rem;
    line-height: 1.25;
  }

  .step-title::before,
  .auth-section-title::before {
    margin-bottom: 12px;
    font-size: 0.58rem;
  }

  .step-sub,
  .auth-section-subtitle {
    font-size: 0.8rem;
    margin-bottom: 22px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .photo-upload-area {
    flex-direction: column;
    align-items: flex-start;
  }

  .photo-actions {
    width: 100%;
  }

  .btn-upload-photo,
  .btn-reset-photo {
    flex: 1;
  }

  .acct-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .address-grid {
    grid-template-columns: 1fr;
  }

  .business-section {
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .step-progress-meta {
    font-size: 11px;
  }

  .doc-upload-item {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: flex-start;
  }

  .doc-badge,
  .btn-doc-upload {
    grid-column: 2;
    width: fit-content;
  }

  .step-nav {
    gap: 12px;
  }

  .step-nav .btn-peg {
    flex: 1;
    padding-left: 12px;
    padding-right: 12px;
  }

  .thankyou-section {
    padding: 18px;
  }

  .review-box {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .reg-page-wrap,
  .auth-page-wrap,
  .thankyou-page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .reg-header h1,
  .auth-title,
  .thankyou-title {
    font-size: 1.35rem;
  }

  .step-bar,
  .acct-type-grid {
    grid-template-columns: 1fr;
  }

  .step-label {
    font-size: 0.68rem;
  }

  .phone-flag {
    min-width: 76px;
    padding: 0 8px;
  }

  .phone-input {
    padding: 0 10px;
  }

  .step-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .step-nav span {
    display: none;
  }

  .btn-peg,
  .btn-peg-home {
    width: 100%;
  }

  .doc-upload-item {
    padding: 12px;
  }

  .doc-info h5 {
    font-size: 0.78rem;
  }

  .thankyou-card {
    padding: 28px 18px;
  }

  .thankyou-section-title {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
}

/* =========================================================
   CLEAN REGISTER FORM ALIGNMENT + VERIFICATION STYLES
   This block replaces all previous verification CSS patches.
   Keep it at the bottom of registercopy.css.
   ========================================================= */

:root {
  --peg-control-height: 48px;
  --peg-control-radius: 13px;
  --peg-verify-width: 92px;
  --peg-field-gap: 10px;
}

/* Equal 2-column layout */
.reg-card .form-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
  width: 100% !important;
}

.reg-card .form-grp {
  width: 100% !important;
  min-width: 0 !important;
  margin-bottom: 18px !important;
}

/* Common input style */
.reg-card .peg-input,
.reg-card .form-control {
  width: 100% !important;
  height: var(--peg-control-height) !important;
  min-height: var(--peg-control-height) !important;
  max-height: var(--peg-control-height) !important;
  padding: 0 15px !important;
  border: 1px solid var(--peg-border) !important;
  border-radius: var(--peg-control-radius) !important;
  background: var(--peg-input-bg) !important;
  color: var(--peg-text-soft) !important;
  -webkit-text-fill-color: var(--peg-text-soft) !important;
  font-size: 0.88rem !important;
  line-height: normal !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.reg-card .peg-input::placeholder,
.reg-card .form-control::placeholder,
.reg-card .phone-input::placeholder {
  color: rgba(148, 163, 184, 0.58) !important;
  -webkit-text-fill-color: rgba(148, 163, 184, 0.58) !important;
  opacity: 1 !important;
}

.reg-card .peg-input:hover,
.reg-card .form-control:hover {
  border-color: #39465a !important;
}

.reg-card .peg-input:focus,
.reg-card .form-control:focus {
  color: var(--peg-text) !important;
  -webkit-text-fill-color: var(--peg-text) !important;
  border-color: rgba(231, 200, 91, 0.8) !important;
  background: var(--peg-input-bg-2) !important;
  box-shadow: 0 0 0 4px rgba(231, 200, 91, 0.09) !important;
}

.reg-card .peg-input.is-invalid,
.reg-card .form-control.is-invalid,
.reg-card .phone-group.is-invalid {
  border-color: var(--peg-danger) !important;
  box-shadow: 0 0 0 4px rgba(255, 93, 108, 0.08) !important;
}

.reg-card .peg-input.is-valid,
.reg-card .form-control.is-valid,
.reg-card .phone-group.is-valid {
  border-color: var(--peg-green) !important;
  box-shadow: 0 0 0 4px rgba(32, 214, 165, 0.08) !important;
}

/* Select2 same size as normal input */
.reg-card .select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

.reg-card .select2-container--default .select2-selection--single {
  width: 100% !important;
  height: var(--peg-control-height) !important;
  min-height: var(--peg-control-height) !important;
  max-height: var(--peg-control-height) !important;
  display: flex !important;
  align-items: center !important;
  border: 1px solid var(--peg-border) !important;
  border-radius: var(--peg-control-radius) !important;
  background: var(--peg-input-bg) !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.reg-card .select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100% !important;
  padding-left: 15px !important;
  padding-right: 38px !important;
  color: var(--peg-text-soft) !important;
  font-size: 0.88rem !important;
  line-height: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.reg-card .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: var(--peg-control-height) !important;
  right: 8px !important;
}

.reg-card .select2-container--focus .select2-selection--single,
.reg-card .select2-container--open .select2-selection--single {
  border-color: rgba(231, 200, 91, 0.8) !important;
  box-shadow: 0 0 0 4px rgba(231, 200, 91, 0.09) !important;
}

/* Email + phone rows */
.reg-card .verification-group, .reg-card .phone-group-wrapper {
    width: 100% !important;
    min-height: var(--peg-control-height) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--peg-verify-width) !important;
    gap: var(--peg-field-gap) !important;
    align-items: center;
    box-sizing: border-box !important;
}

.reg-card .verification-group .peg-input {
  width: 100% !important;
  height: var(--peg-control-height) !important;
  min-width: 0 !important;
}

.reg-card .phone-group {
  width: 100% !important;
  height: var(--peg-control-height) !important;
  min-height: var(--peg-control-height) !important;
  max-height: var(--peg-control-height) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  border: 1px solid var(--peg-border) !important;
  border-radius: var(--peg-control-radius) !important;
  background: var(--peg-input-bg) !important;
  box-sizing: border-box !important;
}

.reg-card .phone-group:focus-within {
  border-color: rgba(231, 200, 91, 0.8) !important;
  box-shadow: 0 0 0 4px rgba(231, 200, 91, 0.09) !important;
}

.reg-card .phone-flag {
  height: 100% !important;
  max-width: 88px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 10px !important;
  border-right: 1px solid var(--peg-border) !important;
  background: rgba(32, 214, 165, 0.08) !important;
  color: var(--peg-green) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.reg-card .phone-flag img {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  margin-right: 4px !important;
}

.reg-card .phone-input,
.reg-card #phoneNumber.phone-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: calc(var(--peg-control-height) - 2px) !important;
  padding: 0 14px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--peg-text-soft) !important;
  -webkit-text-fill-color: var(--peg-text-soft) !important;
  font-size: 0.88rem !important;
  line-height: normal !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* Fix global CSS from demo/core files overriding input colors */
.reg-card input,
.reg-card select,
.reg-card textarea {
  color: var(--peg-text-soft) !important;
}

.reg-card .phone-input:focus,
.reg-card #phoneNumber.phone-input:focus {
  color: var(--peg-text) !important;
  -webkit-text-fill-color: var(--peg-text) !important;
}

/* Autofill fix */
.reg-card input:-webkit-autofill,
.reg-card input:-webkit-autofill:hover,
.reg-card input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--peg-text) !important;
  box-shadow: 0 0 0 1000px var(--peg-input-bg) inset !important;
  -webkit-box-shadow: 0 0 0 1000px var(--peg-input-bg) inset !important;
}

/* Verify button */
.reg-card .btn-verify {
    min-height: 37px;
    max-height: var(--peg-control-height) !important;
    padding: 0 14px !important;
    border: 1px solid rgba(231, 200, 91, 0.78) !important;
    border-radius: 11px !important;
    background: linear-gradient(180deg, var(--peg-gold-2), var(--peg-gold)) !important;
    color: #080c13 !important;
    -webkit-text-fill-color: #080c13 !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 16px 30px rgba(231, 200, 91, 0.18) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

.reg-card .btn-verify:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 34px rgba(231, 200, 91, 0.25) !important;
}

.reg-card .btn-verify:disabled {
  cursor: not-allowed !important;
  opacity: 0.75 !important;
  transform: none !important;
}

.reg-card .btn-verify.verified {
  border-color: rgba(32, 214, 165, 0.65) !important;
  background: linear-gradient(180deg, var(--peg-green), var(--peg-green-2)) !important;
  color: #07100d !important;
  -webkit-text-fill-color: #07100d !important;
  box-shadow: 0 16px 30px rgba(32, 214, 165, 0.18) !important;
}

.reg-card .btn-verify.verify-icon-only {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-self: start !important;
}

.reg-card .verify-check-circle {
  width: 26px !important;
  height: 26px !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #07100d !important;
  -webkit-text-fill-color: #07100d !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.reg-card .verification-group + .field-error,
.reg-card .phone-group-wrapper + .field-error {
  display: block !important;
  width: 100% !important;
  margin-top: 6px !important;
}

/* Password eye alignment */
.reg-card .pwd-wrap {
  position: relative !important;
}

.reg-card .pwd-wrap .peg-input {
  padding-right: 44px !important;
}

.reg-card .pwd-eye {
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  transform: translateY(-50%) !important;
  color: var(--peg-muted) !important;
}

/* =========================================================
   VERIFICATION MODAL
   ========================================================= */

.verification-modal {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 18px !important;
  background: rgba(5, 9, 20, 0.82) !important;
  backdrop-filter: blur(6px) !important;
  align-items: center !important;
  justify-content: center !important;
}

.verification-modal.show {
  display: flex !important;
}

.verification-modal-content {
  width: min(100%, 480px) !important;
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto !important;
  padding: 32px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)), var(--peg-card) !important;
  border: 1px solid rgba(231, 200, 91, 0.28) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58) !important;
  animation: pegModalIn 0.25s ease !important;
}

@keyframes pegModalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.verification-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding-bottom: 16px !important;
  margin-bottom: 22px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.verification-modal-header h3 {
  margin: 0 !important;
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif !important;
  color: var(--peg-text) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
}

.btn-close {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border: 1px solid var(--peg-border) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  color: var(--peg-muted) !important;
  font-size: 26px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
}

.btn-close:hover {
  color: var(--peg-gold) !important;
  border-color: rgba(231, 200, 91, 0.5) !important;
  background: rgba(231, 200, 91, 0.08) !important;
}

.verification-modal-body {
  margin-bottom: 22px !important;
}

.modal-subtitle {
  margin: 0 0 22px !important;
  color: var(--peg-muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.55 !important;
}

.otp-input-group {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 22px !important;
}

.otp-input {
  width: 100% !important;
  height: 52px !important;
  border: 1px solid var(--peg-border) !important;
  border-radius: 12px !important;
  background: var(--peg-input-bg) !important;
  color: var(--peg-text) !important;
  -webkit-text-fill-color: var(--peg-text) !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  outline: none !important;
  box-shadow: none !important;
}

.otp-input:focus {
  border-color: rgba(231, 200, 91, 0.8) !important;
  background: var(--peg-input-bg-2) !important;
  box-shadow: 0 0 0 4px rgba(231, 200, 91, 0.09) !important;
}

.modal-timer {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-bottom: 18px !important;
  color: var(--peg-muted) !important;
  font-size: 0.84rem !important;
}

.modal-timer span {
  color: var(--peg-gold) !important;
  font-weight: 900 !important;
}

.btn-resend {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--peg-gold) !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.btn-resend:hover:not(:disabled) {
  color: var(--peg-gold-2) !important;
  text-decoration: underline !important;
}

.btn-resend:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.modal-error {
  display: none !important;
  margin-bottom: 15px !important;
  padding: 11px 13px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 93, 108, 0.35) !important;
  background: rgba(255, 93, 108, 0.10) !important;
  color: var(--peg-danger) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

.modal-error.show {
  display: block !important;
}

.verification-modal-footer {
  display: flex !important;
  gap: 12px !important;
  justify-content: flex-end !important;
}

.verification-modal-footer .btn-peg {
  flex: 1 !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 20px !important;
  border-radius: 13px !important;
  font-weight: 900 !important;
}

.verification-modal-footer .btn-peg-primary {
  border: 1px solid rgba(231, 200, 91, 0.78) !important;
  background: linear-gradient(180deg, var(--peg-gold-2), var(--peg-gold)) !important;
  color: #080c13 !important;
  -webkit-text-fill-color: #080c13 !important;
  box-shadow: 0 16px 30px rgba(231, 200, 91, 0.18) !important;
}

.verification-modal-footer .btn-peg-outline {
  border: 1px solid var(--peg-border) !important;
  background: rgba(255, 255, 255, 0.025) !important;
  color: var(--peg-muted) !important;
  -webkit-text-fill-color: var(--peg-muted) !important;
}

.verification-modal-footer .btn-peg-outline:hover:not(:disabled) {
  border-color: rgba(231, 200, 91, 0.5) !important;
  color: var(--peg-gold) !important;
  -webkit-text-fill-color: var(--peg-gold) !important;
  background: rgba(231, 200, 91, 0.08) !important;
}

/* SweetAlert dark theme */
.swal2-popup {
  border: 1px solid rgba(231, 200, 91, 0.28) !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58) !important;
}

.swal2-title {
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 1.25rem !important;
}

.swal2-html-container {
  color: var(--peg-muted) !important;
}

.swal2-confirm {
  color: #080c13 !important;
  -webkit-text-fill-color: #080c13 !important;
  font-weight: 900 !important;
  border-radius: 12px !important;
}

/* Mobile */
@media (max-width: 640px) {
  .reg-card .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .reg-card .verification-group,
  .reg-card .phone-group-wrapper {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }

  .reg-card .btn-verify {
    width: 100% !important;
    max-width: 100% !important;
  }

  .reg-card .btn-verify.verify-icon-only {
    width: 48px !important;
    max-width: 48px !important;
  }

  .verification-modal-content {
    padding: 24px !important;
  }

  .otp-input-group {
    gap: 7px !important;
  }

  .otp-input {
    height: 46px !important;
    font-size: 1rem !important;
  }

  .verification-modal-footer {
    flex-direction: column-reverse !important;
  }
}

.profile-doc-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid rgba(120, 145, 190, 0.22);
  border-radius: 18px;
  background: rgba(15, 27, 48, 0.78);
}

.profile-doc-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.profile-doc-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(255, 215, 90, 0.08);
  border: 1px solid rgba(255, 215, 90, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.profile-doc-content {
  min-width: 0;
  flex: 1;
}

.profile-doc-content h5 {
  margin: 0;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.profile-doc-content small {
  display: block;
  margin-top: 5px;
  color: #8fa0b8;
  font-size: 12px;
  font-weight: 600;
}

.profile-doc-file {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 600;
  max-width: 100%;
}

.profile-doc-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-doc-note {
  margin: 7px 0 0;
  color: #9fb0c8;
  font-size: 12px;
  line-height: 1.4;
}

.profile-doc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.profile-doc-actions form {
  margin: 0;
}

.btn-doc-view,
.btn-doc-delete,
.profile-upload-btn {
  height: 38px;
  min-width: 92px;
  padding: 0 15px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-doc-view {
  background: rgba(255, 255, 255, 0.06);
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-doc-view:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-doc-delete {
  background: #ffffff;
  color: #111827;
  border: 1px solid #ffffff;
}

.btn-doc-delete:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.profile-upload-btn {
  background: rgba(255, 215, 90, 0.08);
  color: #f9d75d;
  border: 1px solid rgba(255, 215, 90, 0.65);
}

.profile-upload-btn:hover {
  background: #f9d75d;
  color: #111827;
}

@media (max-width: 768px) {
  .profile-doc-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-doc-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .btn-doc-view,
  .btn-doc-delete,
  .profile-upload-btn {
    min-width: 110px;
  }
}

/* 05June2026 */
.role-form-box {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(231, 200, 91, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(12, 22, 38, 0.96), rgba(18, 31, 52, 0.92));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.role-form-title {
  margin: 0;
  color: #f7f9ff;
  font-size: 22px;
  font-weight: 800;
}

.role-form-sub {
  margin: 6px 0 20px;
  color: rgba(247, 249, 255, 0.68);
  font-size: 14px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 12px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(247, 249, 255, 0.86);
  font-size: 13px;
  cursor: pointer;
}

.check-grid input {
  accent-color: #e7c85b;
}

.role-specific-form .peg-input {
  background: rgba(9, 17, 30, 0.9);
}

@media (max-width: 767px) {
  .check-grid {
    grid-template-columns: 1fr;
  }

  .role-form-box {
    padding: 16px;
  }
}
/* End 05June2026 */
/* 16June2026 */
#subRoleWrap {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#subRoleWrap .select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

.select2-results__option,
.select2-selection__rendered,
.select2-selection__choice {
  color: #ffffff !important;
}

.specialty-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.specialty-card {
  height: 220px;
  padding: 16px;
  border: 1px solid rgba(231, 200, 91, 0.28);
  border-radius: 16px;
  background: rgba(13, 23, 38, 0.95);
}

.specialty-card h5 {
  margin: 0 0 12px;
  color: #f7f9ff;
  font-size: 15px;
  font-weight: 800;
}

.specialty-scroll {
  max-height: 155px;
  overflow-y: auto;
  padding-right: 6px;
}

.specialty-check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 14px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 5px 5px 0 5px !important;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    left: 5px !important;
    top: 3px !important;
}
body .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background: 0 !important;
}


@media (max-width: 640px) {
  .specialty-cards-grid {
    grid-template-columns: 1fr;
  }
}


#subRoleWrap,
#subRoleWrap .form-grp,
#subRoleWrap .select2-container,
.role-form-box,
.role-specific-form {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.select2-container--default .select2-results__option,
.select2-container--default .select2-selection__rendered,
.select2-container--default .select2-selection__choice,
.select2-results__option {
  color: #ffffff !important;
}

.select2-container--default .select2-selection--multiple {
  min-height: 48px !important;
  border: 1px solid var(--peg-border) !important;
  border-radius: 13px !important;
  background: var(--peg-input-bg) !important;
  padding: 5px 8px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: rgba(231, 200, 91, 0.8) !important;
  box-shadow: 0 0 0 4px rgba(231, 200, 91, 0.09) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: rgba(231, 200, 91, 0.16) !important;
  border: 1px solid rgba(231, 200, 91, 0.35) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  padding: 3px 9px 3px 22px !important;
}

.dynamic-readonly-box {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--peg-border);
  border-radius: 13px;
  background: rgba(13, 23, 38, 0.75);
  color: var(--peg-muted);
  font-size: 0.86rem;
}

.specialty-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 18px;
  width: 100%;
}

.specialty-card {
  height: 220px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(231, 200, 91, 0.28);
  border-radius: 16px;
  background: rgba(13, 23, 38, 0.95);
}

.specialty-card h5 {
  margin: 0 0 12px;
  color: #f7f9ff;
  font-size: 15px;
  font-weight: 800;
}

.specialty-scroll {
  max-height: 155px;
  overflow-y: auto;
  padding-right: 6px;
}

.specialty-check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 14px;
}

.specialty-empty {
  color: var(--peg-muted);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 640px) {
  .specialty-cards-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Dropdown consistency + themed multiple select/check boxes ===== */
.form-grp select.peg-input,
.form-grp select.form-control,
.form-grp select:not(.select2-hidden-accessible) {
  width: 100% !important;
  height: 48px !important;
  padding: 0 42px 0 15px !important;
  border: 1px solid var(--peg-border) !important;
  border-radius: 13px !important;
  background-color: var(--peg-input-bg) !important;
  color: var(--peg-text-soft) !important;
  font-size: 0.88rem !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--peg-gold) 50%),
    linear-gradient(135deg, var(--peg-gold) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 20px) 21px,
    calc(100% - 14px) 21px !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
}

.form-grp select.peg-input:focus,
.form-grp select.form-control:focus,
.form-grp select:not(.select2-hidden-accessible):focus {
  border-color: rgba(231, 200, 91, 0.8) !important;
  background-color: var(--peg-input-bg-2) !important;
  box-shadow: 0 0 0 4px rgba(231, 200, 91, 0.09) !important;
}

.form-grp select option {
  background: #101827 !important;
  color: #ffffff !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 48px !important;
  border: 1px solid var(--peg-border) !important;
  border-radius: 13px !important;
  background: var(--peg-input-bg) !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 48px !important;
  padding-left: 15px !important;
  padding-right: 42px !important;
  color: var(--peg-text-soft) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 10px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--peg-gold) transparent transparent transparent !important;
}

.select2-container--default .select2-selection--multiple {
  position: relative !important;
  padding: 5px 42px 5px 10px !important;
  cursor: pointer !important;
}

.dynamic-main-specialty + .select2 .select2-selection--multiple::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--peg-gold);
  pointer-events: none;
}

.select2-container--open .select2-selection--multiple::after {
  transform: rotate(180deg);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 3px !important;
  background: rgba(231, 200, 91, 0.18) !important;
  border: 1px solid rgba(231, 200, 91, 0.55) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  padding: 4px 10px 4px 24px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--peg-gold-2) !important;
  border-right: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  background: rgba(231, 200, 91, 0.20) !important;
  color: #ffffff !important;
}

.select2-container--default .select2-results__option,
.select2-results__option {
  background: #101827 !important;
  color: #ffffff !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted {
  background: rgba(231, 200, 91, 0.18) !important;
  color: var(--peg-gold-2) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background: rgba(231, 200, 91, 0.28) !important;
  color: #ffffff !important;
}

.specialty-check {
  position: relative;
  cursor: pointer;
}

.specialty-check input[type="checkbox"],
.preference-grid input[type="checkbox"],
.role-specific-form input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  cursor: pointer;
  accent-color: var(--peg-gold);
}

.specialty-check:has(input[type="checkbox"]:checked) span {
  color: var(--peg-gold-2);
  font-weight: 700;
}

.specialty-check input[type="checkbox"]:checked,
.preference-grid input[type="checkbox"]:checked,
.role-specific-form input[type="checkbox"]:checked {
  filter: drop-shadow(0 0 5px rgba(231, 200, 91, 0.35));
}



/* ===== Select2 applied to every dropdown for consistent symmetry ===== */
.select2-container {
  width: 100% !important;
  max-width: 100% !important;
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  width: 100% !important;
  min-height: 48px !important;
  border: 1px solid var(--peg-border) !important;
  border-radius: 13px !important;
  background: var(--peg-input-bg) !important;
  box-shadow: none !important;
}

.select2-container--default .select2-selection--single {
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  width: 100% !important;
  line-height: 48px !important;
  padding-left: 15px !important;
  padding-right: 42px !important;
  color: var(--peg-text-soft) !important;
  font-size: 0.88rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
  color: rgba(214, 222, 236, 0.72) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 48px !important;
  right: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--peg-gold) transparent transparent transparent !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear,
.select2-container--default .select2-selection--multiple .select2-selection__clear {
  color: var(--peg-muted) !important;
  margin-right: 30px !important;
}

.select2-container--default .select2-selection--multiple {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  padding: 5px 42px 5px 10px !important;
  cursor: pointer !important;
}

.select2-container--default .select2-selection--multiple::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--peg-gold);
  pointer-events: none;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: rgba(231, 200, 91, 0.8) !important;
  background: var(--peg-input-bg-2) !important;
  box-shadow: 0 0 0 4px rgba(231, 200, 91, 0.09) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin-top: 3px !important;
  background: rgba(231, 200, 91, 0.18) !important;
  border: 1px solid rgba(231, 200, 91, 0.55) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  padding: 4px 10px 4px 24px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: var(--peg-gold-2) !important;
  border-right: 0 !important;
}
body .select2-container--default .select2-selection--single .select2-selection__clear {
    right: 15px !important;
    font-size: 14px !important;
    position: absolute !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__clear{
    height: 25px !important;
    margin-top: 0 !important;
    right: 15px !important;
}
.select2-dropdown {
  border: 1px solid var(--peg-border) !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  background: #101827 !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container--default .select2-selection--multiple .select2-search__field {
  color: #ffffff !important;
  background: transparent !important;
  border-color: var(--peg-border) !important;
  outline: none !important;
}

.select2-container--default .select2-results__option {
  background: #101827 !important;
  color: #ffffff !important;
  font-size: 0.86rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: rgba(231, 200, 91, 0.18) !important;
  color: var(--peg-gold-2) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background: rgba(231, 200, 91, 0.28) !important;
  color: #ffffff !important;
}

.role-specific-form input[type="checkbox"] {
  accent-color: var(--peg-gold) !important;
}


/* 16June2026 */

