:root {
  --reg-green:#12a530;
  --reg-green-dark:#087d2a;
  --reg-navy:#07162f;
  --reg-muted:#66758b;
  --reg-line:#dfe8e2;
  --reg-blue:#2563eb;
}

.register-page { background:#f7faf8; color:var(--reg-navy); }
.register-site-header { position:relative !important; z-index:50; }

.register-hero {
  position:relative;
  overflow:hidden;
  padding:74px 0 72px;
  text-align:center;
  background:
    radial-gradient(circle at 85% 10%, rgba(74,222,128,.20), transparent 26%),
    radial-gradient(circle at 10% 90%, rgba(34,197,94,.12), transparent 28%),
    linear-gradient(135deg,#fff 0%,#fbfffc 55%,#edfbf1 100%);
}
.register-hero .container { max-width:900px; }
.register-eyebrow {
  display:inline-flex;
  padding:9px 14px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  color:var(--reg-green-dark);
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
}
.register-hero h1 {
  margin:20px 0 0;
  font-size:clamp(46px,6vw,76px);
  line-height:.98;
  letter-spacing:-.055em;
}
.register-hero h1 span { color:var(--reg-green); }
.register-hero p {
  max-width:720px;
  margin:24px auto 0;
  color:var(--reg-muted);
  font-size:15px;
  line-height:1.7;
}

.register-shell { padding:52px 0 90px; }
.register-grid {
  display:grid;
  grid-template-columns:minmax(260px,.72fr) minmax(0,1.45fr);
  gap:28px;
  align-items:start;
}

.register-side {
  position:sticky;
  top:24px;
  padding:28px;
  border-radius:28px;
  color:#fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(74,222,128,.18), transparent 28%),
    linear-gradient(145deg,#06172c,#083b28);
  box-shadow:0 22px 60px rgba(6,23,44,.16);
}
.register-side-label {
  color:#86efac;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.register-side h2 {
  margin:12px 0 0;
  font-size:30px;
  line-height:1.05;
  letter-spacing:-.03em;
}
.register-side > p {
  margin:16px 0 0;
  color:#cbd5e1;
  line-height:1.7;
  font-size:12px;
}
.register-side-points {
  display:grid;
  gap:12px;
  margin-top:24px;
}
.register-side-points[hidden] { display:none !important; }
.register-side-points > div {
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(255,255,255,.055);
}
.register-side-points > div > span {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:10px;
  color:#062815;
  background:#86efac;
  font-weight:900;
}
.register-side-points p { margin:0; }
.register-side-points strong { display:block; font-size:11px; }
.register-side-points small { display:block; margin-top:2px; color:#a9b7c9; font-size:9px; }

.register-security {
  margin-top:22px;
  padding:13px 14px;
  border:1px solid rgba(250,204,21,.18);
  border-radius:14px;
  color:#fde68a;
  background:rgba(120,53,15,.18);
  font-size:9px;
  line-height:1.55;
}

.register-card {
  padding:30px;
  border:1px solid var(--reg-line);
  border-radius:30px;
  background:#fff;
  box-shadow:0 18px 55px rgba(15,23,42,.07);
}

.register-progress {
  display:grid;
  align-items:center;
  margin-bottom:28px;
}
.register-progress[hidden] { display:none !important; }
.register-progress-customer { grid-template-columns:1fr 50px 1fr; }
.register-progress-rider { grid-template-columns:1fr 24px 1fr 24px 1fr 24px 1fr; }

.progress-item {
  display:flex;
  align-items:center;
  gap:8px;
  color:#94a3b8;
}
.progress-item span {
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#edf2ef;
  font-size:10px;
  font-weight:900;
}
.progress-item b { font-size:10px; font-weight:850; }
.progress-item.active { color:var(--reg-green-dark); }
.progress-item.active span { color:#fff; background:var(--reg-green); }
.register-progress > i { height:1px; background:#e3e9e5; }

.register-step { display:none; }
.register-step.active { display:block; }

#phoneForm[hidden],
#otpForm[hidden] { display:none !important; }

.register-heading { margin-bottom:24px; text-align:center; }
.register-heading > span {
  color:var(--reg-green);
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
}
.register-heading h2 {
  margin:8px 0 0;
  font-size:32px;
  line-height:1.05;
  letter-spacing:-.03em;
}
.register-heading p {
  max-width:620px;
  margin:10px auto 0;
  color:var(--reg-muted);
  font-size:11px;
  line-height:1.6;
}

.role-switch {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  margin-bottom:22px;
}
.role-option {
  min-height:118px;
  padding:18px;
  border:1px solid #dfe7e2;
  border-radius:20px;
  text-align:left;
  background:#fff;
  cursor:pointer;
  transition:.18s ease;
}
.role-option:hover { transform:translateY(-2px); }
.role-option.active {
  border-color:rgba(18,165,48,.42);
  background:linear-gradient(145deg,#f0fdf4,#e8f9ed);
  box-shadow:0 12px 30px rgba(18,165,48,.10);
}
.role-icon { display:block; font-size:22px; }
.role-option strong { display:block; margin-top:8px; font-size:14px; color:var(--reg-navy); }
.role-option small { display:block; margin-top:4px; color:var(--reg-muted); font-size:9px; }

.register-form { display:grid; gap:14px; }
.two-column-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
.field-wide { grid-column:1 / -1; }

.field { display:grid; gap:7px; }
.field > span { color:#1e293b; font-size:10px; font-weight:800; }
.field input,
.field select {
  width:100%;
  min-height:48px;
  padding:0 13px;
  border:1px solid #d7e1da;
  border-radius:13px;
  outline:none;
  background:#fff;
  color:#0f172a;
  font:inherit;
  font-size:11px;
}
.field input[readonly] { background:#f5faf6; color:#475569; }
.field input[type="file"] { padding:11px 12px; }
.field input:focus,
.field select:focus {
  border-color:#34c759;
  box-shadow:0 0 0 3px rgba(52,199,89,.10);
}
.field small { color:#8793a4; font-size:8px; }

.phone-field {
  display:grid;
  grid-template-columns:68px 1fr;
  border:1px solid #d7e1da;
  border-radius:13px;
  overflow:hidden;
}
.phone-field:focus-within {
  border-color:#34c759;
  box-shadow:0 0 0 3px rgba(52,199,89,.10);
}
.phone-field b {
  display:grid;
  place-items:center;
  border-right:1px solid #e5e9e6;
  background:#f5faf6;
  color:#334155;
  font-size:11px;
}
.phone-field input { border:0; border-radius:0; box-shadow:none !important; }

.register-primary {
  min-height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:0 22px;
  border:0;
  border-radius:15px;
  color:#fff;
  background:linear-gradient(135deg,#087f2b,#31bd2e);
  box-shadow:0 13px 30px rgba(18,165,48,.18);
  font-size:11px;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
}
.register-primary:disabled { opacity:.55; cursor:not-allowed; }

.register-link-button {
  min-height:40px;
  border:0;
  background:transparent;
  color:var(--reg-green-dark);
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

.otp-cooldown {
  display:block;
  text-align:center;
  color:#64748b;
  font-size:9px;
}
.otp-cooldown[hidden] { display:none !important; }

.check-field {
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:13px;
  border-radius:13px;
  background:#f7faf8;
  color:#566276;
  font-size:9px;
  line-height:1.55;
}
.check-field a { color:var(--reg-green-dark); font-weight:800; }

.form-section-title {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:10px;
  padding:13px 14px;
  border-radius:15px;
  background:#f0fdf4;
}
.form-section-title > span {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  color:#fff;
  background:var(--reg-green);
  font-size:9px;
  font-weight:900;
}
.form-section-title strong { display:block; font-size:11px; }
.form-section-title small { display:block; margin-top:2px; color:#728096; font-size:8px; }

.conditional-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.register-alert {
  margin-bottom:18px;
  padding:13px 15px;
  border-radius:14px;
  font-size:10px;
  line-height:1.5;
}
.register-alert.error {
  color:#991b1b;
  border:1px solid #fecaca;
  background:#fef2f2;
}
.register-alert.success {
  color:#166534;
  border:1px solid #bbf7d0;
  background:#f0fdf4;
}

/* Blue check after successful file selection */
.field.file-ready { position:relative; }
.field.file-ready input[type="file"] {
  padding-right:54px !important;
  border-color:rgba(37,99,235,.38) !important;
  background:#f8fbff !important;
}
.field.file-ready::after {
  content:"\2713";
  position:absolute;
  right:14px;
  bottom:11px;
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:var(--reg-blue);
  font-size:15px;
  font-weight:900;
  box-shadow:0 6px 16px rgba(37,99,235,.23);
  pointer-events:none;
}
.field.file-ready .file-selected-note {
  display:block;
  color:var(--reg-blue) !important;
  font-weight:800;
}

.register-success {
  padding:32px 10px 22px;
  text-align:center;
}
.success-icon {
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  margin:0 auto 16px;
  border-radius:20px;
  color:#fff;
  background:var(--reg-green);
  font-size:28px;
  font-weight:900;
}
.register-success > span {
  color:var(--reg-green);
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
.register-success h2 { margin:10px 0 0; font-size:34px; }
.register-success p {
  max-width:560px;
  margin:12px auto 0;
  color:var(--reg-muted);
  font-size:11px;
  line-height:1.7;
}
.success-home { width:fit-content; margin:22px auto 0; }

@media (max-width:900px) {
  .register-grid { grid-template-columns:1fr; }
  .register-side { position:static; }
}

@media (max-width:680px) {
  .register-hero { padding:42px 0 46px; }
  .register-hero h1 { font-size:clamp(40px,12vw,54px); }
  .register-hero p { font-size:12px; }

  .register-shell { padding:24px 0 60px; }
  .register-grid { gap:18px; }

  .register-side { padding:21px; border-radius:22px; }
  .register-side h2 { font-size:25px; }

  .register-card { padding:18px 14px; border-radius:22px; }

  .register-progress-customer { grid-template-columns:1fr 28px 1fr; }
  .register-progress-rider {
    grid-template-columns:repeat(4,1fr);
    gap:7px;
  }
  .register-progress-rider > i { display:none; }

  .progress-item {
    justify-content:center;
    flex-direction:column;
    gap:4px;
    text-align:center;
  }
  .progress-item b { font-size:7px; }
  .progress-item span { width:24px; height:24px; font-size:8px; }

  .register-heading h2 { font-size:26px; }
  .role-switch { gap:8px; }
  .role-option { min-height:104px; padding:13px; border-radius:16px; }

  .two-column-form,
  .conditional-grid { grid-template-columns:1fr; }

  .field-wide { grid-column:auto; }
}


/* =========================================================
   APPLICATION STATUS ENTRY
   ========================================================= */
.existing-status-entry {
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
  padding:15px 16px;
  border:1px solid #dbeafe;
  border-radius:17px;
  background:linear-gradient(145deg,#f8fbff,#f2f8ff);
}

.existing-status-entry > div > span {
  display:block;
  color:#2563eb;
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
}

.existing-status-entry > div > strong {
  display:block;
  margin-top:4px;
  color:#0f172a;
  font-size:12px;
}

.existing-status-entry > div > small {
  display:block;
  margin-top:4px;
  color:#6b7890;
  font-size:8px;
  line-height:1.5;
}

.status-entry-button {
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  border-radius:13px;
  color:#fff;
  background:#2563eb;
  font-size:9px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
}

.signed-in-application-card {
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
  padding:16px;
  border:1px solid #bbf7d0;
  border-radius:18px;
  background:linear-gradient(145deg,#f0fdf4,#ecfdf3);
}

.signed-in-application-card[hidden] {
  display:none !important;
}

.signed-in-status-icon {
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#fff;
  background:var(--reg-green);
  font-size:18px;
  font-weight:900;
}

.signed-in-status-copy > span {
  display:block;
  color:var(--reg-green-dark);
  font-size:8px;
  font-weight:900;
  letter-spacing:.12em;
}

.signed-in-status-copy > strong {
  display:block;
  margin-top:4px;
  font-size:12px;
}

.signed-in-status-copy > small {
  display:block;
  margin-top:4px;
  color:#66758b;
  font-size:8px;
  line-height:1.5;
}

.signed-in-status-button {
  min-height:42px;
  padding:0 14px;
  box-shadow:none;
  white-space:nowrap;
}

@media (max-width:680px) {
  .existing-status-entry,
  .signed-in-application-card {
    grid-template-columns:1fr;
  }

  .status-entry-button,
  .signed-in-status-button {
    width:100%;
  }
}


/* =========================================================
   USE ANOTHER ACCOUNT
   ========================================================= */
.signed-in-status-actions {
  display:flex;
  flex-direction:column;
  gap:7px;
  align-items:stretch;
}

.register-secondary-button {
  min-height:38px;
  padding:0 12px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  color:#334155;
  background:#fff;
  font-size:9px;
  font-weight:850;
  cursor:pointer;
}

.register-secondary-button:hover {
  border-color:#94a3b8;
  background:#f8fafc;
}

@media (max-width:680px) {
  .signed-in-status-actions {
    width:100%;
  }
}
