.ksc-registration-page .registration-container{max-width:1160px}
.ksc-intake-strip{display:flex;flex-wrap:wrap;gap:.45rem 1rem;align-items:center;max-width:1080px;margin:0 auto 18px;padding:12px 16px;background:#f5f8f6;border:1px solid #dce8dc;border-radius:12px;color:#466457;font-size:.9rem}
.ksc-intake-strip strong{color:#00542a}
.ksc-shell{min-height:940px}
.ksc-shell .registration-steps{gap:6px}
.ksc-shell .registration-main{position:relative}
.ksc-shell .ksc-step-panel.is-active[hidden]{display:block!important}
.ksc-step-panel[hidden]{display:none!important}
.ksc-submit-btn{display:none}
.ksc-shell.is-final-step #kscSubmit{display:inline-flex}
.ksc-shell.is-final-step #kscNext{display:none}
.minda-institution-native{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Address sections */
.ksc-address-section{padding:0}
.ksc-address-section+.ksc-address-section{margin-top:30px;padding-top:28px;border-top:1px solid #e3ebe6}
.ksc-subsection-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}
.ksc-subsection-index{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#f7efe1;color:#8a5b18;font-size:.72rem;font-weight:800}
.ksc-subsection-heading h3{margin:0;color:#00542a;font-size:1rem;font-weight:700}
.ksc-subsection-heading p{margin:3px 0 0;color:#65746b;font-size:.8rem}
.ksc-same-address-box{background:#f7faf8;border:1px solid #dce8dc;border-radius:12px;padding:1rem 1rem 1rem 2.7rem}
.ksc-same-address-box .form-check-input{margin-left:-1.65rem}
.ksc-address-copy-note{margin:0 0 4px;padding:12px 14px;border:1px solid #d9e8dc;border-radius:10px;background:#f1f8f3;color:#3d6549;font-size:.82rem;line-height:1.6}
.ksc-address-copy-note[hidden],#kscIcAddressFields[hidden]{display:none!important}
.ksc-area-field .form-control:disabled,.ksc-area-field .form-select:disabled{background:#f1f4f2;color:#7a877e;cursor:not-allowed}
.ksc-area-field.is-unavailable label{color:#6e7d73}
.ksc-area-field.is-unavailable .ksc-kedah-required{display:none}
.ksc-area-help.is-unavailable{color:#7a6a48}

/* Review */
.ksc-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.ksc-review-grid section{border:1px solid #e0e9e3;border-radius:12px;padding:1rem;background:#fbfdfb}
.ksc-review-grid h3{font-size:.95rem;color:#00542a;font-weight:700;margin-bottom:.8rem}.ksc-review-grid dl{margin:0}
.ksc-review-row{display:grid;grid-template-columns:minmax(120px,.8fr) 1.2fr;gap:.7rem;padding:.42rem 0;border-bottom:1px dashed #e6ece8}
.ksc-review-row:last-child{border-bottom:0}
.ksc-review-row dt{font-size:.8rem;color:#6b7770;font-weight:500}
.ksc-review-row dd{font-size:.86rem;color:#17382a;margin:0;text-align:right;overflow-wrap:anywhere}
.ksc-pending-note{background:#fff9eb;border:1px solid #ead8a9;border-radius:10px;padding:.85rem 1rem;color:#675321;font-size:.88rem}
#kscCgpaOptional{display:none;color:#62776a;font-size:.74rem;font-weight:400}
#kscCgpaWrap.is-optional #kscCgpaRequired{display:none}
#kscCgpaWrap.is-optional #kscCgpaOptional{display:inline}

/* Clickable step navigation */
.ksc-shell .registration-step{padding:0;position:relative}
.ksc-shell .registration-step-button{display:flex;align-items:center;gap:12px;width:100%;padding:12px 10px;border:0;border-radius:9px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer;transition:background-color .18s ease,transform .18s ease,opacity .18s ease}
.ksc-shell .registration-step-button:hover{background:rgba(255,255,255,.09)}
.ksc-shell .registration-step-button:focus-visible{outline:2px solid #f3d38b;outline-offset:2px}
.ksc-shell .registration-step.is-active .registration-step-button{background:rgba(255,255,255,.12)}
.ksc-shell .registration-step.is-complete .registration-step-number{background:#dcefe2;border-color:#dcefe2;color:#00542a;font-size:0}
.ksc-shell .registration-step.is-complete .registration-step-number::before{content:'✓';font-size:.9rem;font-weight:800}
.ksc-shell .registration-step.has-error .registration-step-number{border-color:#ffd2d6;background:#fff0f1;color:#9d2430}
.ksc-shell .registration-step.has-error .registration-step-button{box-shadow:inset 0 0 0 1px rgba(255,210,214,.35)}
.ksc-shell .registration-step.has-error::after{content:'';position:absolute;right:9px;top:10px;width:7px;height:7px;border-radius:50%;background:#ffb6bd;box-shadow:0 0 0 2px rgba(255,255,255,.12)}
.ksc-shell .registration-step.is-active.has-error .registration-step-number,.ksc-shell .registration-step.is-active.is-complete .registration-step-number{background:#c08329;border-color:#c08329;color:#201b13;font-size:.75rem}
.ksc-shell .registration-step.is-active.has-error .registration-step-number::before,.ksc-shell .registration-step.is-active.is-complete .registration-step-number::before{content:none}
.ksc-toast--info .minda-toast__icon{background:#c08329;color:#fff}
.ksc-toast--info{border-color:#ead8a9!important;background:#fffaf0!important}
.ksc-toast--info .minda-toast__title{color:#604719!important}
.ksc-toast--info .minda-toast__message{color:#705b2d!important}

@media(max-width:991.98px){
  .ksc-shell{min-height:0}
  .ksc-shell .registration-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ksc-shell .registration-step-button{flex-direction:column;gap:6px;text-align:center;padding:8px 2px}
  .ksc-shell .registration-step.has-error::after{right:18%;top:5px}
}
@media(max-width:767.98px){
  .ksc-review-grid{grid-template-columns:1fr}
  .ksc-review-row{grid-template-columns:1fr}.ksc-review-row dd{text-align:left}
  .registration-actions{flex-wrap:wrap}.registration-actions .btn{flex:1 1 auto}
  .ksc-shell.is-final-step #kscSubmit{order:3;flex:1 0 100%}
}
@media(max-width:575.98px){
  .ksc-subsection-heading{gap:9px}
  .ksc-subsection-index{flex-basis:30px;width:30px;height:30px}
}
@media(prefers-reduced-motion:reduce){.registration-progress-fill{transition:none}}

/* IC-first profile context */
.ksc-profile-context{display:flex;align-items:flex-start;gap:.8rem;max-width:1080px;margin:0 auto 16px;padding:13px 15px;border:1px solid #e6dcc5;border-radius:12px;background:#fffaf1;color:#6b5730}
.ksc-profile-context--existing{border-color:#d7e6dc;background:#f4faf6;color:#3f654d}
.ksc-profile-context-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:#c08329;color:#fff;font-size:.78rem;font-weight:800}
.ksc-profile-context--existing .ksc-profile-context-icon{background:#08783d}
.ksc-profile-context strong{display:block;margin-bottom:2px;color:#55451f;font-size:.82rem}.ksc-profile-context--existing strong{color:#00542a}.ksc-profile-context span{display:block;font-size:.74rem;line-height:1.6}
.ksc-selected-education{display:flex;flex-wrap:wrap;gap:.25rem .6rem;align-items:center;max-width:1080px;margin:0 auto 16px;padding:11px 14px;border:1px solid #dce8df;border-radius:10px;background:#fbfdfb}.ksc-selected-education span{color:#7a887f;font-size:.7rem}.ksc-selected-education strong{color:#00542a;font-size:.77rem}.ksc-selected-education small{flex:1 0 100%;color:#65746b;font-size:.69rem}
.ksc-registration-page .form-control:disabled,.ksc-registration-page .form-select:disabled{background:#f2f5f3;color:#617168;border-color:#dfe6e1;cursor:not-allowed}
.minda-combobox.is-locked .minda-combobox__input{background:#f2f5f3;color:#617168;cursor:not-allowed}

/* --------------------------------------------------------------------------
   Single-page IC lookup / verification gate
   -------------------------------------------------------------------------- */
.ksc-identity-gate{
  margin:0 0 24px;
  padding:18px 20px;
  border:1px solid #dce8e0;
  border-radius:14px;
  background:#fbfdfb;
}
.ksc-identity-heading{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:15px}
.ksc-identity-heading h2{margin:3px 0 4px;color:#00542a;font-size:1.08rem;font-weight:700}
.ksc-identity-heading p{max-width:760px;margin:0;color:#66766d;font-size:.78rem;line-height:1.6}
.ksc-change-ic{flex:0 0 auto;color:#8a5b18;font-size:.73rem;font-weight:600;text-decoration:none}
.ksc-change-ic:hover{text-decoration:underline;color:#6f4710}
.ksc-identity-row,.ksc-verify-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.ksc-identity-field label{display:block;margin-bottom:6px;color:#17382a;font-size:.78rem;font-weight:600}
.ksc-identity-action{display:flex;align-items:flex-end;padding-bottom:1px}
.ksc-identity-action .btn{min-width:145px;justify-content:center;white-space:nowrap}
.ksc-inline-verify{margin-top:15px;padding-top:15px;border-top:1px solid #e4ebe6}
.ksc-inline-status{display:flex;align-items:flex-start;gap:.75rem;margin-top:14px;padding:12px 14px;border-radius:10px;font-size:.76rem;line-height:1.55}
.ksc-inline-status strong{display:block;margin-bottom:1px;font-size:.78rem}
.ksc-inline-status span{display:block}
.ksc-inline-status-icon{display:grid!important;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:50%;font-size:.72rem;font-weight:800}
.ksc-inline-status--success{border:1px solid #d7e6dc;background:#f3faf5;color:#446a51}
.ksc-inline-status--success strong{color:#00542a}
.ksc-inline-status--success .ksc-inline-status-icon{background:#08783d;color:#fff}
.ksc-inline-status--warning{border:1px solid #ead8a9;background:#fff9ec;color:#6f5a2a}
.ksc-inline-status--warning strong{color:#604719}
.ksc-inline-status--warning .ksc-inline-status-icon{background:#c08329;color:#fff}
.ksc-inline-verify .ksc-verify-row{margin-top:12px}

.ksc-shell.is-identity-locked .registration-main .ksc-step-panel{opacity:.58}
.ksc-shell.is-identity-locked .registration-step-button{cursor:not-allowed;opacity:.65}
.ksc-shell.is-identity-locked .registration-actions #kscNext,
.ksc-shell.is-identity-locked .registration-actions #kscPrevious,
.ksc-shell.is-identity-locked .registration-actions #kscSubmit{cursor:not-allowed}
.ksc-shell.is-identity-locked .registration-main .ksc-step-panel input:disabled,
.ksc-shell.is-identity-locked .registration-main .ksc-step-panel select:disabled,
.ksc-shell.is-identity-locked .registration-main .ksc-step-panel textarea:disabled{background:#f4f6f5;color:#87928c}

.ksc-education-choice{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,420px);
  gap:1rem;
  align-items:center;
  margin:0 0 20px;
  padding:14px 16px;
  border:1px solid #dbe8df;
  border-radius:12px;
  background:#f7fbf8;
}
.ksc-education-choice strong{display:block;color:#00542a;font-size:.82rem;margin-bottom:2px}
.ksc-education-choice span{display:block;color:#66766d;font-size:.72rem;line-height:1.55}

@media(max-width:767.98px){
  .ksc-identity-heading{display:block}
  .ksc-change-ic{display:inline-block;margin-top:8px}
  .ksc-identity-row,.ksc-verify-row{grid-template-columns:1fr}
  .ksc-identity-action .btn{width:100%}
  .ksc-education-choice{grid-template-columns:1fr}
}


/* KSC password setup is intentionally inside KSC registration only. */
.ksc-access-password-box {
  margin-top: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(0, 84, 42, .15);
  border-radius: .75rem;
  background: #f5faf7;
}

.ksc-access-password-heading h3 {
  margin: .2rem 0 .25rem;
  color: #00542a;
  font-size: 1rem;
  font-weight: 700;
}

.ksc-access-password-heading p,
.ksc-access-password-note {
  color: #64756b;
  font-size: .76rem;
  line-height: 1.6;
}

.ksc-access-password-note {
  margin-top: .35rem;
  padding: .7rem .8rem;
  border-radius: .5rem;
  background: #fff;
}

.ksc-access-password-note strong {
  color: #17382a;
}

.ksc-form-ready-note{display:flex;align-items:center;gap:.55rem;margin-bottom:1rem;padding:.7rem .85rem;border:1px solid #dce9e0;border-radius:.55rem;background:#f3faf6;color:#416050;font-size:.72rem}.ksc-form-ready-note>span{width:24px;height:24px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#0a8a48;color:#fff;font-size:.75rem;font-weight:700}
.ksc-study-eligibility-note{display:grid;gap:.22rem;margin-bottom:1rem;padding:.78rem .9rem;border:1px solid #ecdcae;border-radius:.55rem;background:#fff9e9}.ksc-study-eligibility-note strong{color:#8b611b;font-size:.74rem}.ksc-study-eligibility-note span{color:#78694d;font-size:.68rem;line-height:1.55}
.ksc-password-control{position:relative}.ksc-password-control .form-control{padding-right:2.8rem}.ksc-password-toggle{position:absolute;top:50%;right:.55rem;width:34px;height:34px;display:grid;place-items:center;padding:0;border:0;border-radius:.4rem;background:transparent;color:#6b7c72;transform:translateY(-50%)}.ksc-password-toggle:hover,.ksc-password-toggle:focus-visible{background:#eef5f1;color:#00542a;outline:none}.ksc-password-toggle svg{width:18px;height:18px;fill:currentColor}
.ksc-consent-box{padding:1rem 1.05rem;border:1px solid #d7e3dc;border-radius:.72rem;background:#f8fbf9}.ksc-consent-heading h3{margin:.16rem 0 .22rem;color:#00542a;font-size:.96rem;font-weight:700}.ksc-consent-heading p{margin:0;color:#738178;font-size:.68rem}.ksc-consent-list{margin:.8rem 0;padding-left:1.15rem;color:#53645a;font-size:.69rem;line-height:1.6}.ksc-consent-list li+li{margin-top:.35rem}.ksc-consent-list a{color:#00542a;font-weight:600}.ksc-consent-check{padding-top:.7rem;border-top:1px solid #e4ebe7}.ksc-consent-check .form-check-label{color:#17382a;font-size:.72rem;font-weight:600}


/* Five-step KSC registration + in-form privacy notice. */
.ksc-shell .ksc-step-link{text-decoration:none}.ksc-shell .ksc-step-link:hover{color:inherit}.ksc-privacy-link{display:inline;padding:0;border:0;background:transparent;color:#00542a;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px}.ksc-privacy-link:hover,.ksc-privacy-link:focus-visible{color:#003a20}.ksc-privacy-modal .modal-content{overflow:hidden;border:1px solid #dce6e0;border-radius:.85rem;box-shadow:0 18px 50px rgba(23,56,42,.16)}.ksc-privacy-modal .modal-header{align-items:flex-start;padding:1rem 1.15rem;border-bottom-color:#e8eeea;background:#f8fbf9}.ksc-privacy-modal .modal-title{margin-top:.18rem;color:#00542a;font-size:1.15rem;font-weight:700}.ksc-privacy-modal .modal-body{padding:.35rem 1.15rem .8rem}.ksc-privacy-modal-section{padding:.8rem 0;border-bottom:1px solid #edf1ef}.ksc-privacy-modal-section:last-child{border-bottom:0}.ksc-privacy-modal-section h3{margin:0 0 .28rem;color:#17382a;font-size:.82rem;font-weight:700}.ksc-privacy-modal-section p{margin:0;color:#607168;font-size:.71rem;line-height:1.65}.ksc-privacy-modal .modal-footer{border-top-color:#e8eeea;background:#fbfcfb}.ksc-privacy-close-btn{min-width:120px;background:#00542a;color:#fff;font-size:.75rem;font-weight:600}.ksc-privacy-close-btn:hover,.ksc-privacy-close-btn:focus{background:#003a20;color:#fff}


/* Polished current-study selector. The native select remains for form submission only. */
.ksc-education-picker{position:relative;min-width:0}
.ksc-education-native-choice{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ksc-education-picker__toggle{width:100%;min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding:.72rem .85rem;border:1px solid #cfdcd4;border-radius:.62rem;background:#fff;color:#17382a;text-align:left;transition:border-color .15s ease,box-shadow .15s ease}
.ksc-education-picker__toggle:hover{border-color:#9fb7aa}.ksc-education-picker__toggle:focus-visible,.ksc-education-picker.is-open .ksc-education-picker__toggle{border-color:#00542a;box-shadow:0 0 0 .18rem rgba(0,84,42,.08);outline:none}
.ksc-education-picker__selected{min-width:0;display:block}.ksc-education-picker__selected strong,.ksc-education-picker__selected span,.ksc-education-picker__selected small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ksc-education-picker__selected strong{color:#00542a;font-size:.76rem;font-weight:700}.ksc-education-picker__selected span{margin-top:.1rem;color:#17382a;font-size:.76rem;font-weight:500}.ksc-education-picker__selected small{margin-top:.12rem;color:#77867d;font-size:.65rem}
.ksc-education-picker__chevron{width:9px;height:9px;flex:0 0 auto;border-right:2px solid #607269;border-bottom:2px solid #607269;transform:rotate(45deg) translateY(-2px);transition:transform .15s ease}.ksc-education-picker.is-open .ksc-education-picker__chevron{transform:rotate(225deg) translate(-2px,-1px)}
.ksc-education-picker__menu{position:absolute;z-index:40;top:calc(100% + 6px);right:0;left:0;max-height:310px;overflow-y:auto;padding:.4rem;border:1px solid #d7e2db;border-radius:.68rem;background:#fff;box-shadow:0 16px 38px rgba(23,56,42,.14)}
.ksc-education-picker__option{width:100%;display:grid;gap:.12rem;padding:.7rem .75rem;border:0;border-radius:.5rem;background:transparent;color:#17382a;text-align:left;cursor:pointer}.ksc-education-picker__option:hover,.ksc-education-picker__option:focus-visible{background:#f2f7f4;outline:none}.ksc-education-picker__option.is-selected{background:#edf7f1}.ksc-education-picker__option strong{color:#00542a;font-size:.72rem;font-weight:700}.ksc-education-picker__option span{font-size:.72rem;line-height:1.45}.ksc-education-picker__option small{color:#7a8980;font-size:.63rem;line-height:1.45}.ksc-education-picker__option--new{margin-top:.25rem;border-top:1px solid #edf1ef;border-radius:.3rem .3rem .5rem .5rem}.ksc-education-picker__option--new strong{color:#a86f18}

/* Step 1 review should not reset the application accidentally. */
.ksc-precheck-summary-modal .modal-content{border:1px solid #dce6e0;border-radius:.85rem;overflow:hidden;box-shadow:0 18px 50px rgba(23,56,42,.16)}
.ksc-precheck-summary-modal .modal-header{padding:1rem 1.1rem;background:#f8fbf9;border-bottom-color:#e8eeea}.ksc-precheck-summary-modal .modal-title{margin-top:.15rem;color:#00542a;font-size:1.05rem;font-weight:700}
.ksc-precheck-summary-ok{display:flex;align-items:center;gap:.65rem;padding:.75rem .8rem;border-radius:.55rem;background:#eef8f2}.ksc-precheck-summary-ok>span{width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#0a8a48;color:#fff;font-weight:700}.ksc-precheck-summary-ok strong,.ksc-precheck-summary-ok small{display:block}.ksc-precheck-summary-ok strong{color:#00542a;font-size:.76rem}.ksc-precheck-summary-ok small{margin-top:.12rem;color:#607168;font-size:.65rem;line-height:1.5}
.ksc-precheck-summary-ic{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.75rem;padding:.72rem .8rem;border:1px solid #e4ebe7;border-radius:.55rem}.ksc-precheck-summary-ic span{color:#77867d;font-size:.65rem;font-weight:600}.ksc-precheck-summary-ic strong{color:#17382a;font-size:.82rem}.ksc-precheck-summary-note{margin:.65rem 0 0;color:#7a8980;font-size:.66rem;line-height:1.55}
.ksc-precheck-summary-modal .modal-footer{gap:.5rem;background:#fbfcfb;border-top-color:#e8eeea}.ksc-precheck-change-btn{border:1px solid #d6dfda;background:#fff;color:#8a5b13;font-size:.7rem;font-weight:600}.ksc-precheck-close-btn{background:#00542a;color:#fff;font-size:.7rem;font-weight:600}.ksc-precheck-close-btn:hover,.ksc-precheck-close-btn:focus{background:#003a20;color:#fff}
