/* =========================================================
   Pertamina UMK Academy 2026
   Bootstrap 5 + custom CSS
   ========================================================= */

:root {
  --navy: #183c67;
  --navy-dark: #15375f;
  --blue: #1678c2;
  --blue-dark: #0d6eb8;
  --blue-soft: #eef7ff;
  --green: #a8cf18;
  --red: #f43b4f;
  --page-bg: #f4f7fb;
  --field-bg: #f9fbfd;
  --text: #243650;
  --muted: #66738a;
  --border: #dce2ea;
  --shadow: 0 18px 34px rgba(24, 45, 77, 0.12);
  --card-radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 70px minmax(0, 1fr) 40px;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;

  background: #ffffff;
  border-bottom: 1px solid #d9dee6;
  box-shadow: 0 2px 8px rgba(23, 46, 79, 0.08);
}

.topbar-inner {
  height: 70px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-main {
  color: #0870b8;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.brand-sub {
  margin-top: 4px;
  color: #9fc300;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  white-space: nowrap;
}

.brand-divider {
  width: 1px;
  height: 25px;
  margin-left: 1px;
  background: #d3d9e1;
}

.prototype-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 10px;
  color: #17385f;
  background: #f2f5f9;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.helpdesk-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.helpdesk-link i {
  color: #ff2943;
  font-size: 15px;
}

.helpdesk-link:hover {
  color: var(--navy);
}

/* Main */
.login-main {
  min-height: 0;
  padding: 32px 20px 33px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.login-card {
  width: 446px;
  max-width: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(227, 232, 239, 0.72);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
}

.login-card-body {
  padding: 39px 40px 39px;
}

.hero-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border-radius: 0;
}

.hero-icon {
  width: 80px;
  margin: 0 auto 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
}

.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-icon svg circle {
  fill: none;
}

.intro-copy {
  text-align: center;
}

.intro-copy h1 {
  max-width: 360px;
  margin: 0 auto;
  color: #17385f;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.7px;
}

.intro-copy p {
  max-width: 344px;
  margin: 12px auto 31px;
  color: #647087;
  font-size: 14px;
  line-height: 1.43;
}

.login-form {
  margin: 0;
}

.field-group {
  margin-bottom: 16px;
}

.password-group {
  margin-bottom: 17px;
}

.form-label {
  margin-bottom: 5px;
  color: #364152;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.35px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
}

.forgot-link {
  color: #0071c9;
  font-size: 12px;
  font-weight: 700;
}

.forgot-link:hover {
  color: #005fa8;
  text-decoration: underline;
}

.input-shell {
  position: relative;
}

.input-shell .form-control {
  height: 47px;
  padding: 9px 43px 9px 39px;
  color: #27374f;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  box-shadow: none;
}

.input-shell .form-control:focus {
  background: #ffffff;
  border-color: #70b7ef;
  box-shadow: 0 0 0 3px rgba(22, 120, 194, 0.12);
}

.input-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 14px;
  color: #9ba7b8;
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 9px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #98a4b5;
  background: transparent;
  border: 0;
  border-radius: 8px;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--navy);
  background: #eef2f7;
  outline: none;
}

.invalid-feedback {
  font-size: 11px;
}

.consent-box {
  margin: 0 0 24px;
  padding: 12px 13px 12px 12px;
  background: #f5faff;
  border: 1px solid #cfe6fb;
  border-radius: 12px;
}

.consent-box .form-check {
  min-height: 0;
  margin: 0;
  padding-left: 22px;
}

.consent-box .form-check-input {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  margin-left: -22px;
  border-radius: 2px;
}

.consent-box .form-check-input:checked {
  background-color: #087df0;
  border-color: #087df0;
}

.consent-box .form-check-label {
  display: block;
  color: #40516a;
  font-size: 11px;
  line-height: 1.62;
}

.login-button {
  width: 100%;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 4px 8px rgba(20, 112, 184, 0.2);
}

.login-button:hover,
.login-button:focus {
  color: #ffffff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.login-button:disabled {
  opacity: 0.82;
}

.login-button i {
  font-size: 16px;
}

.or-divider {
  width: 100%;
  margin: 15px 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.or-divider span {
  height: 1px;
  background: #e4e8ed;
}

.or-divider strong {
  color: #9ca7b8;
  font-size: 11px;
  font-weight: 800;
}

.onboarding-button {
  width: 100%;
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #0673c5;
  background: #ffffff;
  border: 1.5px solid #0075d1;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
}

.onboarding-button i {
  color: var(--green);
  font-size: 17px;
}

.onboarding-button:hover,
.onboarding-button:focus {
  color: #005da3;
  background: #f4faff;
  border-color: #005fa8;
}

.form-message {
  min-height: 0;
  margin-top: 0;
  color: var(--navy);
  font-size: 12px;
  text-align: center;
}

.form-message:not(:empty) {
  margin-top: 12px;
}

.security-strip {
  min-height: 49px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: var(--navy);
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.security-strip i {
  color: var(--green);
  font-size: 15px;
}

/* Footer */
.site-footer {
  padding: 0 20px;
  display: grid;
  place-items: center;
  color: #8a97aa;
  background: #ffffff;
  border-top: 1px solid #eef1f4;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 767.98px) {
  .page-shell {
    grid-template-rows: auto 1fr auto;
  }

  .topbar-inner {
    min-height: 70px;
    height: auto;
    padding: 12px 18px;
  }

  .brand-main {
    font-size: 18px;
  }

  .brand-sub {
    font-size: 10px;
    letter-spacing: 1.55px;
  }

  .prototype-badge {
    font-size: 9px;
    padding-inline: 8px;
  }

  .helpdesk-link span {
    display: none;
  }

  .helpdesk-link {
    width: 34px;
    height: 34px;
    justify-content: center;
    border: 1px solid #edf0f4;
    border-radius: 50%;
  }

  .helpdesk-link i {
    font-size: 16px;
  }

  .login-main {
    padding: 22px 14px 24px;
    align-items: center;
  }

  .login-card {
    width: min(100%, 446px);
  }

  .login-card-body {
    padding: 32px 25px 30px;
  }

  .intro-copy h1 {
    font-size: 23px;
  }

  .intro-copy p {
    margin-bottom: 26px;
  }

  .site-footer {
    min-height: 54px;
    padding: 10px 16px;
  }
}

@media (max-width: 399.98px) {
  .topbar-inner {
    padding-inline: 14px;
  }

  .brand-wrap {
    gap: 8px;
  }

  .prototype-badge {
    max-width: 91px;
    white-space: normal;
    line-height: 1.1;
  }

  .login-main {
    padding-inline: 10px;
  }

  .login-card-body {
    padding: 29px 19px 27px;
  }

  .intro-copy h1 {
    font-size: 21px;
  }

  .intro-copy p {
    font-size: 13px;
  }

  .label-row {
    align-items: flex-end;
  }

  .forgot-link {
    font-size: 11px;
  }

  .onboarding-button {
    padding-inline: 12px;
    font-size: 13px;
  }

  .security-strip {
    padding-inline: 14px;
    font-size: 11px;
  }
}

@media (max-height: 780px) and (min-width: 768px) {
  .login-main {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .login-card-body {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero-icon {
    margin-bottom: 10px;
  }

  .intro-copy p {
    margin-bottom: 22px;
  }
}










/* =========================================================
   ONBOARDING PAGE
   ========================================================= */

.onboarding-main {
  min-height: calc(100vh - 110px);
  padding: 32px 20px 38px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f4f7fb;
}

.onboarding-card {
  width: 100%;
  max-width: 1080px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(225, 231, 238, 0.75);
  border-radius: 17px;
  box-shadow: 0 15px 30px rgba(26, 48, 78, 0.14);
}

/* Header internal onboarding */

.onboarding-header {
  padding: 23px 32px 19px;
  color: #ffffff;
  background: #193f69;
}

.onboarding-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.onboarding-header h1 {
  margin: 0 0 3px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.35px;
}

.onboarding-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.4;
}

.cancel-button {
  min-width: 54px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #355b84;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.cancel-button:hover {
  color: #ffffff;
  background: #426b98;
}

/* Progress */

.onboarding-progress {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  gap: 7px;
}

.progress-step {
  min-width: 0;
  padding: 0 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #8fa4bc;
  background: transparent;
  border: 0;
  text-align: center;
  cursor: default;
}

.progress-icon {
  width: 35px;
  height: 35px;
  margin-bottom: 7px;
  display: grid;
  place-items: center;
  color: #c2cfdd;
  background: #557393;
  border-radius: 50%;
  font-size: 15px;
  transition: 0.2s ease;
}

.progress-label {
  display: block;
  color: #90a3ba;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.progress-step.completed {
  cursor: pointer;
}

.progress-step.completed .progress-icon {
  color: #ffffff;
  background: #a9cd08;
}

.progress-step.completed .progress-label {
  color: #ffffff;
}

.progress-step.active .progress-icon {
  color: #ffffff;
  background: #ed3049;
  box-shadow: 0 0 0 4px #ffffff;
}

.progress-step.active .progress-label {
  color: #ffffff;
}

.progress-step.completed:hover .progress-icon {
  transform: translateY(-1px);
}

/* Body */

.onboarding-body {
  min-height: 320px;
  padding: 33px 32px 31px;
}

.onboarding-step {
  display: none;
  animation: onboardingFade 0.22s ease;
}

.onboarding-step.active {
  display: block;
}

@keyframes onboardingFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onboarding-section-title {
  margin-bottom: 17px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #183c67;
}

.onboarding-section-title h2 {
  margin: 0;
  color: #173a62;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.onboarding-section-title.title-with-icon > i {
  color: #a8ce08;
  font-size: 20px;
}

.section-description {
  margin: 0 0 9px;
  color: #647087;
  font-size: 12px;
  line-height: 1.48;
}

.onboarding-form-grid .form-label,
.other-program-question .form-label {
  margin-bottom: 5px;
  color: #364255;
  font-size: 12px;
  font-weight: 700;
}

.onboarding-form-grid .form-label span,
.other-program-question span,
.question-label span {
  color: #364255;
}

.onboarding-body .form-control,
.onboarding-body .form-select {
  min-height: 42px;
  padding: 9px 12px;
  color: #27364c;
  background-color: #f9fafc;
  border: 1px solid #dbe1e9;
  border-radius: 9px;
  font-size: 14px;
  box-shadow: none;
}

.onboarding-body .form-control:focus,
.onboarding-body .form-select:focus {
  background-color: #ffffff;
  border-color: #0e72e8;
  box-shadow: 0 0 0 2px rgba(14, 114, 232, 0.1);
}

.onboarding-body .form-control.is-invalid,
.onboarding-body .form-select.is-invalid {
  border-color: #dc3545;
}

.onboarding-textarea {
  min-height: 83px;
  resize: vertical;
}

.field-note {
  margin-top: 6px;
  color: #8a96a9;
  font-size: 10px;
}

.invalid-feedback {
  font-size: 11px;
}

/* Step 4 */

.question-label {
  margin: 0 0 11px;
  color: #364255;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.radio-group {
  position: relative;
  margin-bottom: 8px;
}

.radio-group .form-check-input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.radio-group .form-check-label {
  color: #314056;
  font-size: 14px;
}

.radio-invalid-message {
  display: none;
  margin-top: 4px;
  color: #dc3545;
  font-size: 11px;
}

.radio-group.is-invalid .radio-invalid-message {
  display: block;
}

.field-explanation {
  margin: 9px 0 0;
  color: #6a768b;
  font-size: 11px;
  line-height: 1.55;
}

.conditional-program-box {
  margin-top: 17px;
  padding: 15px 16px 16px;
  background: #f4faff;
  border: 1px solid #cce4fb;
  border-radius: 11px;
}

.conditional-program-box h3 {
  margin: 0 0 15px;
  padding-bottom: 5px;
  color: #173a62;
  border-bottom: 1px solid #173a62;
  font-size: 12px;
  font-weight: 800;
}

/* Step 5 */

.legal-info-box {
  margin-top: 16px;
  padding: 16px 17px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #173a62;
  background: #f8faec;
  border: 1px solid #dbe5a4;
  border-radius: 11px;
}

.legal-info-icon {
  flex-shrink: 0;
  color: #0785de;
  font-size: 19px;
}

.legal-info-box strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.legal-info-box p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

/* Step 7 */

.commitment-box {
  height: 240px;
  padding: 16px;
  overflow-y: auto;
  color: #37455b;
  background: #ffffff;
  border: 1px solid #273c59;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: #c2c7ce transparent;
}

.commitment-box p {
  margin: 0 0 11px;
}

.commitment-box p:last-child {
  margin-bottom: 0;
}

.commitment-box strong {
  color: #173a62;
}

.commitment-check {
  margin-top: 20px;
}

.commitment-check .form-check {
  padding-left: 24px;
}

.commitment-check .form-check-input {
  width: 14px;
  height: 14px;
  margin-left: -24px;
}

.commitment-check .form-check-label {
  color: #364255;
  font-size: 12px;
  line-height: 1.55;
}

/* Actions */

.onboarding-actions {
  margin: 0 32px;
  padding: 16px 0 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #edf0f4;
}

.onboarding-back-button {
  min-width: 95px;
  min-height: 40px;
  color: #4e5c70;
  background: #f0f2f5;
  border: 0;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
}

.onboarding-back-button:hover:not(:disabled) {
  color: #334155;
  background: #e5e8ed;
}

.onboarding-back-button:disabled {
  color: #cbd1d9;
  background: #f4f5f7;
  opacity: 1;
}

.onboarding-next-button,
.onboarding-finish-button {
  min-width: 112px;
  min-height: 40px;
  padding: 9px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  background: #1978c4;
  border: 0;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 3px 6px rgba(25, 120, 196, 0.2);
}

.onboarding-finish-button {
  min-width: 206px;
}

.onboarding-next-button:hover,
.onboarding-finish-button:hover {
  color: #ffffff;
  background: #106db4;
}

.onboarding-form-message {
  padding: 0 32px 20px;
  color: #173a62;
  font-size: 12px;
  text-align: center;
}

.onboarding-form-message:empty {
  display: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767.98px) {
  .onboarding-main {
    padding: 20px 12px 28px;
  }

  .onboarding-card {
    border-radius: 14px;
  }

  .onboarding-header {
    padding: 20px 18px 16px;
  }

  .onboarding-header h1 {
    font-size: 18px;
  }

  .onboarding-header p {
    font-size: 11px;
  }

  .cancel-button {
    min-width: 50px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .onboarding-progress {
    padding: 5px 3px 4px;
    display: grid;
    grid-template-columns: repeat(7, 88px);
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .progress-step {
    width: 88px;
  }

  .progress-icon {
    width: 32px;
    height: 32px;
  }

  .progress-label {
    font-size: 9px;
  }

  .onboarding-body {
    min-height: 380px;
    padding: 25px 19px 26px;
  }

  .onboarding-section-title h2 {
    font-size: 16px;
  }

  .onboarding-actions {
    margin: 0 19px;
    padding-bottom: 24px;
  }

  .onboarding-back-button,
  .onboarding-next-button {
    min-width: 98px;
  }

  .onboarding-finish-button {
    min-width: 174px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .legal-info-box {
    padding: 14px;
  }

  .commitment-box {
    height: 280px;
  }
}

@media (max-width: 419.98px) {
  .onboarding-main {
    padding-inline: 8px;
  }

  .onboarding-header {
    padding-inline: 15px;
  }

  .onboarding-header-top {
    gap: 10px;
  }

  .onboarding-header h1 {
    font-size: 17px;
  }

  .onboarding-body {
    padding-inline: 15px;
  }

  .onboarding-actions {
    margin-inline: 15px;
    gap: 10px;
  }

  .onboarding-back-button {
    min-width: 86px;
  }

  .onboarding-next-button {
    min-width: 102px;
  }

  .onboarding-finish-button {
    min-width: 0;
    flex: 1;
  }
}


/* =========================================================
   RESPONSIVE FIX KHUSUS HALAMAN ONBOARDING
   Tambahkan pada bagian paling bawah style.css
   ========================================================= */

@media (max-width: 767.98px) {

  /* -----------------------------------------
     Container onboarding
     ----------------------------------------- */

  .onboarding-main {
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - 70px);
    padding: 16px 10px 28px;
    overflow-x: hidden;
  }

  .onboarding-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 14px;
  }

  /* -----------------------------------------
     Header internal onboarding
     ----------------------------------------- */

  .onboarding-header {
    width: 100%;
    padding: 19px 15px 17px;
  }

  .onboarding-header-top {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .onboarding-header-top > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .onboarding-header h1 {
    max-width: 100%;
    margin-bottom: 4px;
    font-size: 18px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .onboarding-header p {
    max-width: 100%;
    padding-right: 0;
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .cancel-button {
    min-width: 49px;
    flex: 0 0 auto;
    padding: 6px 9px;
    font-size: 10px;
  }

  /* -----------------------------------------
     Progress onboarding

     Desktop: 7 langkah dalam satu baris
     Mobile: 4 langkah pada baris pertama,
             3 langkah pada baris kedua
     ----------------------------------------- */

  .onboarding-progress {
    width: 100%;
    max-width: 100%;
    margin-top: 19px;
    padding: 4px 0 2px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 5px;
    row-gap: 15px;

    overflow: visible;
    overscroll-behavior: auto;
  }

  .progress-step {
    width: 100%;
    min-width: 0;
    padding: 0 2px;
  }

  .progress-icon {
    width: 31px;
    height: 31px;
    margin: 0 auto 7px;
    font-size: 13px;
  }

  .progress-step.active .progress-icon {
    box-shadow: 0 0 0 3px #ffffff;
  }

  .progress-label {
    width: 100%;
    min-height: 21px;
    display: block;

    font-size: 8.5px;
    line-height: 1.2;
    text-align: center;

    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
  }

  /* Membuat tiga langkah pada baris terakhir lebih seimbang */

  .progress-step:nth-child(5) {
    grid-column-start: 1;
  }

  /* -----------------------------------------
     Isi form onboarding
     ----------------------------------------- */

  .onboarding-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 25px 15px 25px;
  }

  .onboarding-step {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .onboarding-section-title {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding-bottom: 9px;
  }

  .onboarding-section-title h2 {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .onboarding-section-title.title-with-icon {
    align-items: flex-start;
  }

  .onboarding-section-title.title-with-icon > i {
    flex: 0 0 auto;
    margin-top: 1px;
  }

  .section-description,
  .question-label,
  .field-explanation {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  /* -----------------------------------------
     Bootstrap grid menjadi satu kolom
     ----------------------------------------- */

  .onboarding-form-grid {
    width: 100%;
    margin-right: 0;
    margin-left: 0;

    --bs-gutter-x: 0;
    --bs-gutter-y: 18px;
  }

  .onboarding-form-grid > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .onboarding-body .form-control,
  .onboarding-body .form-select,
  .onboarding-body textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .onboarding-body .form-control,
  .onboarding-body .form-select {
    min-height: 43px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .onboarding-textarea {
    min-height: 105px;
  }

  .field-note {
    font-size: 10px;
    line-height: 1.4;
  }

  /* -----------------------------------------
     Pilihan radio
     ----------------------------------------- */

  .radio-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 18px;
  }

  .radio-group .form-check-inline {
    margin-right: 0;
  }

  .radio-invalid-message {
    width: 100%;
  }

  /* -----------------------------------------
     Detail program pembinaan lain
     ----------------------------------------- */

  .conditional-program-box {
    width: 100%;
    max-width: 100%;
    padding: 14px;
  }

  .conditional-program-box .row {
    margin-right: 0;
    margin-left: 0;

    --bs-gutter-x: 0;
    --bs-gutter-y: 16px;
  }

  .conditional-program-box .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .conditional-program-box h3 {
    line-height: 1.4;
  }

  /* -----------------------------------------
     Informasi legalitas
     ----------------------------------------- */

  .legal-info-box {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    gap: 11px;
  }

  .legal-info-box > div:last-child {
    min-width: 0;
  }

  .legal-info-box strong,
  .legal-info-box p {
    overflow-wrap: break-word;
  }

  .legal-info-box p {
    font-size: 11px;
    line-height: 1.5;
  }

  /* -----------------------------------------
     Komitmen
     ----------------------------------------- */

  .commitment-box {
    width: 100%;
    max-width: 100%;
    height: 290px;
    padding: 14px;
  }

  .commitment-check {
    width: 100%;
    max-width: 100%;
    margin-top: 17px;
  }

  .commitment-check .form-check-label {
    white-space: normal;
    overflow-wrap: break-word;
  }

  /* -----------------------------------------
     Tombol navigasi
     ----------------------------------------- */

  .onboarding-actions {
    width: auto;
    margin: 0 15px;
    padding: 16px 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .onboarding-back-button,
  .onboarding-next-button {
    min-width: 98px;
    min-height: 42px;
  }

  .onboarding-finish-button {
    min-width: 168px;
    min-height: 42px;
    padding-right: 13px;
    padding-left: 13px;
    font-size: 12px;
  }

  .onboarding-form-message {
    padding-right: 15px;
    padding-left: 15px;
  }
}


/* =========================================================
   LAYAR MOBILE KECIL
   ========================================================= */

@media (max-width: 419.98px) {

  .onboarding-main {
    padding: 12px 7px 22px;
  }

  .onboarding-card {
    border-radius: 12px;
  }

  .onboarding-header {
    padding: 17px 13px 15px;
  }

  .onboarding-header h1 {
    font-size: 17px;
  }

  .onboarding-header p {
    font-size: 10.5px;
  }

  .cancel-button {
    min-width: 45px;
    padding: 6px 7px;
  }

  .onboarding-progress {
    column-gap: 3px;
    row-gap: 14px;
  }

  .progress-icon {
    width: 29px;
    height: 29px;
    font-size: 12px;
  }

  .progress-label {
    min-height: 20px;
    font-size: 7.8px;
  }

  .onboarding-body {
    padding: 23px 13px 24px;
  }

  .onboarding-actions {
    margin-right: 13px;
    margin-left: 13px;
    gap: 10px;
  }

  .onboarding-back-button {
    min-width: 88px;
  }

  .onboarding-next-button {
    min-width: 100px;
  }

  .onboarding-finish-button {
    min-width: 0;
    flex: 1 1 auto;
  }
}


/* =========================================================
   LAYAR SANGAT KECIL
   ========================================================= */

@media (max-width: 350px) {

  .onboarding-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .progress-step:nth-child(5) {
    grid-column-start: auto;
  }

  .progress-label {
    font-size: 7.5px;
  }

  .onboarding-actions {
    flex-wrap: wrap;
  }

  .onboarding-back-button,
  .onboarding-next-button,
  .onboarding-finish-button {
    width: 100%;
    min-width: 100%;
  }
}




/* Informasi akun pada onboarding */

.account-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid #edf0f4;
}

.account-section-title {
  margin-bottom: 12px;
}

.onboarding-password-wrapper {
  position: relative;
}

.onboarding-password-wrapper .form-control {
  padding-right: 46px;
}

.onboarding-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  color: #8d9aab;
  background: transparent;
  border: 0;
  border-radius: 7px;

  transform: translateY(-50%);
}

.onboarding-password-toggle:hover,
.onboarding-password-toggle:focus-visible {
  color: #183c67;
  background: #eef2f7;
  outline: none;
}

.password-guidance {
  margin-top: 6px;
  color: #8a96a9;
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  .account-section {
    margin-top: 25px;
    padding-top: 23px;
  }
}