/* Sign up wizard (_RegisterPartial.cshtml) - scoped to .suForm, existing style.css / login.css colors only */

/* ---------- Card, headings ---------- */
/* wider card; width:100% lets it shrink on phones */
.hp_wrapper .suForm.form-login,
.hp_wrapper .suForm.form-login.maxW500 {
  width: 100%;
  max-width: 540px;
}
/* popups from this form: don't pin body (position:fixed) so the page doesn't jump to the top */
body.modal-open.suKeepScroll {
  position: static;
}
.suForm .fbox {
  padding: 22px 24px;
}
.suForm .login-wrap h2 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--themeColor2);
}
.suForm .login-wrap h2.suLead {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #414141;
}
.suForm .fbox .form-group {
  margin-bottom: 14px;
}
.suForm .fbox .form-group:last-child {
  margin-bottom: 0;
}

/* ---------- Inputs ---------- */
.suForm .fbox .input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.suForm .fbox .input-group > .form-control,
.suForm .fbox .input-group > .intl-tel-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  float: none;
}
.suForm .fbox .form-control {
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 0 8px 8px 0 !important;
  box-shadow: none;
}
.suForm .fbox select.form-control {
  padding: 0 10px;
}
.suForm .fbox .form-control:focus {
  border-color: var(--themeColor);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.16);
  outline: 0;
}

/* existing icon addon (icon + red required star) in a box on the left */
.suForm .fbox .input-group-addon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 48px;
  padding: 0 10px;
  font-size: 15px;
  color: #7c8a9b;
  background: #f7f7f7;
  border: 1px solid #ced4da;
  border-right: 0;
  border-radius: 8px 0 0 8px;
}
.suForm .fbox .input-group-addon b {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
  font-weight: 400;
}
/* hide the field-name label on focus; <em> stays in the DOM for validation messages */
.suForm .fbox .input-group-addon b em {
  display: none !important;
}
.suForm .fbox .input-group-addon b.req:after {
  margin-left: 2px;
}
.suForm .fbox .input-group:focus-within .input-group-addon {
  color: var(--themeColor);
  border-color: var(--themeColor);
}

/* Buttons inside the field (password eye / info) */
.suForm .fbox .input-group-btn {
  position: absolute;
  top: 0;
  right: 5px;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  width: auto;
}
.suForm .fbox .input-group-btn > .btn {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  font-size: 17px;
  color: #7c8a9b;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.suForm .fbox .input-group-btn > .btn:hover,
.suForm .fbox .input-group-btn > .btn:focus {
  color: var(--themeColor);
  background: transparent;
}
.suForm .fbox .input-group.suBtns1 .form-control {
  padding-right: 46px;
}

/* Phone (intl-tel-input with separate dial code) */
.suForm .fbox .intl-tel-input {
  display: block;
}
.suForm .fbox .intl-tel-input .form-control {
  width: 100%;
  padding-right: 38px;
}
/* valid / invalid tick: vertically centred on the right */
.suForm .fbox .intl-tel-input .fa-check,
.suForm .fbox .intl-tel-input .fa-remove {
  top: 0;
  bottom: 0;
  right: 14px;
  height: auto;
  display: flex;
  align-items: center;
  font-size: 14px;
  pointer-events: none;
}
.suForm .fbox .intl-tel-input.separate-dial-code .selected-flag,
.suForm .fbox .intl-tel-input.allow-dropdown .flag-container .selected-flag {
  background: #f7f7f7;
  border-right: 1px solid #ced4da;
  border-radius: 0;
}

/* Errors */
.suForm .fbox .form-group.ferr p,
.suForm .fbox .form-group p.error {
  margin: 5px 0 0;
  padding: 0;
  font-size: 12px;
  text-align: left;
  color: var(--errColor);
  background: none;
  border-radius: 0;
}
.suForm .fbox .form-group.ferr .form-control {
  border-color: var(--errColor);
}

/* Hints / links */
.suForm .fbox .suHint,
.suForm .fbox .labelInfoVisi .labelInfo {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #7c8a9b;
}
.suForm .fbox .suHint.suHintErr {
  color: var(--errColor);
}
/* hints stay 14px / grey when the field has an error */
.suForm .fbox .form-group.ferr p.suHint {
  font-size: 14px;
  color: #7c8a9b;
}
.suForm .fbox .form-group.ferr p.suHint.suHintErr {
  color: var(--errColor);
}
/* password hint: green + check when valid, red + cross when not */
.suForm .fbox .suHint.suHintOk,
.suForm .fbox .form-group.ferr p.suHint.suHintOk {
  color: #239c23;
}
.suForm .fbox .jsRegPassHint.suHintErr:before,
.suForm .fbox .jsRegPassHint.suHintOk:before {
  display: inline-block;
  margin-right: 6px;
  font-family: FontAwesome;
  font-weight: 400;
}
.suForm .fbox .jsRegPassHint.suHintErr:before {
  content: "\f00d";
}
.suForm .fbox .jsRegPassHint.suHintOk:before {
  content: "\f00c";
}
.suForm .suLink {
  font-weight: 700;
  color: var(--themeColor);
}
.suForm .suLink:hover,
.suForm .suLink:focus {
  color: var(--themeColor3);
  text-decoration: none;
}
.suForm .suInfoBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  font-size: 11px;
  color: var(--themeColor);
  background: rgba(255, 140, 0, 0.16);
  border: 0;
  border-radius: 50%;
}
.suForm .suInfoBtn:hover,
.suForm .suInfoBtn:focus {
  color: #ffffff;
  background: var(--themeColor);
  text-decoration: none;
  outline: 0;
}

/* Terms */
.suForm .suTerms {
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}
.suForm .fbox .suTerms label {
  margin: 0 5px 0 0;
  font-weight: 400;
  color: #414141;
}
.suForm .suTerms p.error {
  flex-basis: 100%;
}

/* ---------- Footer ---------- */
.suForm .fboxFooter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: #f7f7f7;
  border-top: 1px solid #e4e9ef;
}
.suForm .fboxFooter .btn {
  height: 44px;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
}
.suForm .fboxFooter .btn-theme {
  min-width: 160px;
  padding: 0 24px;
}
.suForm .fboxFooter .stepback,
.suForm .fboxFooter .stepskip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  background: #ffffff;
  border: 1px solid #ced4da;
}
.suForm .fboxFooter .stepback {
  width: 44px;
  padding: 0;
  font-size: 18px;
}
.suForm .fboxFooter .stepskip {
  padding: 0 18px;
}
/* step 3 "Re-Send Code" - white like the login popup's */
.suForm .fboxFooter .btn-default.suSmsSend {
  padding: 0 18px;
  color: var(--themeColor2);
  background: #ffffff;
  border: 1px solid #d8dce3;
}
.suForm .fboxFooter .btn-default.suSmsSend:hover,
.suForm .fboxFooter .btn-default.suSmsSend:focus {
  color: var(--themeColor);
  border-color: var(--themeColor);
}
.suForm .fboxFooter .stepback:hover,
.suForm .fboxFooter .stepskip:hover {
  color: var(--themeColor);
  border-color: var(--themeColor);
}
/* step 1 "Get Started" loading spinner */
.suForm .fboxFooter .btn.suBtnLoading,
.suForm .fboxFooter .btn.suBtnLoading[disabled] {
  cursor: progress;
  opacity: 0.9;
}
.suForm .fboxFooter .btn.suBtnLoading:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: suSpin 0.7s linear infinite;
}

/* ---------- Step 3: verification ---------- */
/* alert + invalid-code message, same look as login.css */
.suForm .suAlert {
  position: relative;
  margin-bottom: 15px;
  padding: 12px 14px 12px 40px;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  color: #a92f22;
  background: #fbeaea;
  border: 1px solid #f3d2d2;
  border-radius: 10px;
}
.suForm .suAlert strong {
  color: #8f2318;
}
.suForm .fgError {
  display: block;
  margin-bottom: 8px;
}
.suForm .fbox .fgError .error,
.suForm .fbox .form-group .fgError p.error {
  position: relative;
  display: block;
  margin: 8px 0 0;
  padding: 10px 14px 10px 40px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #a92f22;
  background: #fbeaea;
  border: 1px solid #f3d2d2;
  border-radius: 10px;
}
.suForm .suAlert:before,
.suForm .fbox .fgError .error:before {
  content: "!";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  color: #ffffff;
  background: var(--errColor);
  border-radius: 50%;
  transform: translateY(-50%);
}
.suForm .suGaBar {
  margin-bottom: 14px;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  background: var(--themeColor);
  border-radius: 8px;
}
.suForm .suGaBar .fa {
  margin-right: 6px;
}
/* Google Authentication / Verify Using SMS tabs - same look as the login popup */
.suForm .nav-tabs.btnToggleInterface {
  gap: 14px;
  margin-bottom: 18px;
}
.suForm .nav-tabs.btnToggleInterface:before,
.suForm .nav-tabs.btnToggleInterface:after {
  content: none;
  display: none;
}
.suForm .nav-tabs.btnToggleInterface > li {
  margin: 0;
}
.suForm .nav-tabs.btnToggleInterface > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--themeColor2);
  background: #f1f2f5;
  border: 1px solid #e3e6ec;
  border-radius: 10px;
  transition: all 0.15s ease;
}
.suForm .nav-tabs.btnToggleInterface > li > a i {
  font-size: 18px;
}
.suForm .nav-tabs.btnToggleInterface > li.active > a,
.suForm .nav-tabs.btnToggleInterface > li > a:hover,
.suForm .nav-tabs.btnToggleInterface > li > a:focus {
  color: #ffffff;
  background: var(--themeColor);
  border-color: var(--themeColor);
}
.suForm .nav-tabs.btnToggleInterface > li.orDiv {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.suForm .nav-tabs.btnToggleInterface > li.orDiv:before {
  content: "OR";
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  color: #8b95a5;
  background: #ffffff;
  border: 1px solid #e3e6ec;
  border-radius: 50%;
}
/* SMS: step 2 number as text; Send / Re-Send Code is in the footer */
.suForm .suSmsText {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  color: #414141;
}
.suForm .suSmsText strong {
  white-space: nowrap;
  color: var(--themeColor2);
}
/* "code sent" message - same look as the login popup */
.suForm .fbox .suSmsSent {
  position: relative;
  margin: 0;
  padding: 10px 14px 10px 40px;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  color: #1e7a44;
  background: #e8f6ee;
  border: 1px solid #c9ead6;
  border-radius: 10px;
}
/* resend countdown note - same look as the login popup */
.suForm .fbox .suSmsNote {
  margin: 0;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
  color: #8a5a08;
  background: #fdf3e3;
  border: 1px solid #f2dfb8;
  border-radius: 10px;
}
.suForm .fbox .suSmsSent:before {
  content: "\2713";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  color: #ffffff;
  background: #2e9e5c;
  border-radius: 50%;
  transform: translateY(-50%);
}
.suForm .suQrBox {
  align-self: center;
  margin-bottom: 14px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #e4e9ef;
  border-radius: 8px;
}
.suForm .suQrBox img {
  display: block;
  max-width: 160px;
}
.suForm .suKeyBox {
  margin-bottom: 16px;
  padding: 10px 12px;
  font-size: 13px;
  word-break: break-all;
  background: #f7f7f7;
  border: 1px solid #e4e9ef;
  border-radius: 8px;
}
.suForm .fbox .suKeyBox label {
  margin: 0;
  font-weight: 400;
  color: #7c8a9b;
}
.suForm .suKeyBox strong {
  color: var(--themeColor2);
}
.suForm .fbox .suLabel {
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--themeColor2);
}
.suForm .otpCells {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 340px;
  margin-bottom: 8px;
}
.suForm .otpCell {
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  padding: 0;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  color: var(--themeColor2);
  background: #ffffff;
  border: 2px solid #e4e9ef;
  border-radius: 10px;
  box-shadow: none;
}
.suForm .otpCell:focus {
  border-color: var(--themeColor);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.16);
  outline: 0;
}
.suForm .otpCell.filled {
  border-color: var(--themeColor);
}
/* SMS code accepted - green like the "code sent" message */
.suForm .otpCells.suVerified .otpCell {
  color: #1e7a44;
  background: #e8f6ee;
  border-color: #2e9e5c;
}
.suForm .suGaSetup {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* ---------- Step 4: address ---------- */
/* address fields are always shown, so hide the lookup's "Address" button */
.suForm #step4 .btn-adDetail {
  display: none !important;
}
/* pin the lookup's margin (the lookup script toggles .nomar) */
.suForm #step4 .jsGoogleAddressParent > .form-group:first-child {
  margin-bottom: 0 !important;
}

/* errors only for touched fields (.suTouched) or after Next Question (#step4.suSubmitted) */
.suForm #step4:not(.suSubmitted) .form-group:not(.suTouched) p.error {
  display: none !important;
}
.suForm #step4:not(.suSubmitted) .form-group.ferr:not(.suTouched) .form-control,
.suForm #step4:not(.suSubmitted) .form-group:not(.suTouched) .form-control.fieldEmpty {
  color: #333333;
  background-color: #ffffff;
  border-color: #ced4da;
  box-shadow: none;
}
.suForm #step4:not(.suSubmitted) .form-group.ferr:not(.suTouched) .input-group-addon {
  color: #7c8a9b;
  background: #f7f7f7;
  border-color: #ced4da;
}
/* lookup is optional - never shows the required error */
.suForm #step4 .jsGoogleAddressParent > .form-group:first-child p.error {
  display: none !important;
}
.suForm #step4 .jsGoogleAddressParent > .form-group.ferr:first-child .form-control {
  color: #333333;
  background-color: #ffffff;
  border-color: #ced4da;
}
.suForm #step4 .jsGoogleAddressParent > .form-group.ferr:first-child .form-control:focus {
  border-color: var(--themeColor);
}
.suForm #step4 .jsGoogleAddressParent > .form-group.ferr:first-child .input-group-addon {
  color: #7c8a9b;
  background: #f7f7f7;
  border-color: #ced4da;
}
.suForm #step4 .jsGoogleAddressParent > .form-group.ferr:first-child .input-group:focus-within .input-group-addon {
  color: var(--themeColor);
  border-color: var(--themeColor);
}
.suForm #step4:not(.suSubmitted) .form-group:not(.suTouched) .form-control:focus {
  border-color: var(--themeColor);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.16);
}
.suForm .fbox .adDetail {
  margin-top: 14px;
  padding: 0;
  background: none;
  box-shadow: none;
}
.suForm .fbox .adDetail:before {
  display: none;
}

/* ---------- Step 5: education ---------- */
.suForm .edu_additiondiv {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
.suForm .edu_additiondiv .row {
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  margin: 0;
}
.suForm .edu_additiondiv .row:before,
.suForm .edu_additiondiv .row:after {
  display: none;
}
.suForm .edu_additiondiv .col-sm-8,
.suForm .edu_additiondiv .col-sm-4 {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}
/* year column wide enough for the full "Graduation year" placeholder */
.suForm .edu_additiondiv .col-sm-8 {
  flex: 1.3 1 0;
}
.suForm .fbox .edu_additiondiv .gyear {
  padding: 0 10px;
}
.suForm .edu_additiondiv .col-sm-4 {
  flex: 1 1 0;
}
.suForm .edu_additiondiv .form-group {
  margin-bottom: 0;
}
.suForm .edu_additiondiv .delbtn {
  position: static;
  display: flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  padding: 0;
  font-size: 14px;
  color: #7c8a9b;
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 8px;
}
.suForm .edu_additiondiv .delbtn:hover {
  color: var(--errColor);
  background: #ffffff;
  border-color: var(--errColor);
}
.suForm .edu_additiondiv .delbtn .fa {
  top: 0;
}
/* keep the first (non-removable) row aligned with the removable ones */
.suForm #add_edudiv:has(.delbtn) .edu_additiondiv:not(:has(.delbtn)) .row {
  margin-right: 44px;
}
.suForm #add_edu {
  height: 38px;
  padding: 0 20px;
  font-weight: 700;
  border-radius: 8px;
}

/* ---------- Step 6: profile photo ---------- */
.suForm .suPhotoHead {
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.suForm .suPhotoHead h2 {
  margin: 0;
  padding: 0;
  font-size: 16px;
  text-align: left;
}
.suForm .suAvatar {
  display: flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 26px;
  color: var(--themeColor2);
  border: 2px solid var(--themeColor);
  border-radius: 50%;
}
.suForm #step6:has(.jsCropPreview li) .suAvatar {
  display: none;
}
.suForm .suPhotoBtns {
  flex-wrap: wrap;
}
.suForm .form-fileField > label > .fileBtn,
.suForm .jsSuTakePhoto {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
}
.suForm .form-fileField > label > .fileBtn:after {
  display: none;
}
.suForm .form-fileField > label > .fileBtn:hover {
  background: var(--themeColor3);
}
.suForm .orCambase .orBase {
  margin: 0 10px;
}
.suForm .orCambase .orBase:before {
  font-size: 12px;
  font-weight: 700;
  background: var(--themeColor2);
}
.suForm .orCambase .suInfoBtn {
  margin-left: 8px;
}
.suForm #step6 .ferror {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
  color: var(--errColor);
}
.suForm #step6 .ferror:empty {
  display: none;
}
/* picture saved: heading + Add / Take Picture hidden, green "Profile picture has been set." in the heading's place */
.suForm #step6 .suPhotoSet {
  display: none;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #1e7a44;
}
.suForm #step6 .suPhotoSet .fa {
  margin-right: 4px;
  color: #2e9e5c;
}
.suForm #step6.suHasPhoto .suPhotoSet {
  display: block;
}
.suForm #step6.suHasPhoto .suPhotoHead h2,
.suForm #step6.suHasPhoto .suPhotoBtns,
.suForm #step6.suHasPhoto .suHint {
  display: none !important;
}
/* saved photo: pencil to edit, x to remove - buttons sit on the circle's edge */
.suForm #step6 .jsCropPreview li {
  position: relative;
}
.suForm #step6 .jsCropPreview li > div {
  cursor: pointer;
}
.suForm #step6 .jsCropPreview li > div img {
  display: block;
  width: 100%;
  height: 100%;
}
.suForm #step6 .suPhotoEdit,
.suForm #step6 .suPhotoRemove {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 13px;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.suForm #step6 .suPhotoEdit {
  right: 9px;
  bottom: 9px;
  background: var(--themeColor);
}
.suForm #step6 .suPhotoRemove {
  top: 9px;
  right: 9px;
  background: var(--themeColor2);
}
.suForm #step6 .suPhotoEdit:hover,
.suForm #step6 .suPhotoEdit:focus {
  background: var(--themeColor3);
  outline: 0;
}
.suForm #step6 .suPhotoRemove:hover,
.suForm #step6 .suPhotoRemove:focus {
  background: var(--errColor);
  outline: 0;
}

/* ---------- Step 6 popup (#suPhotoModal) ----------
   moved to <body> by register_photo.js, so scoped by id, not .suForm */
#suPhotoModal .modal-dialog {
  width: calc(100% - 20px);
  max-width: 500px;
  margin: 30px auto;
}
/* camera / photo area: 360px square, shrinks on short screens (min 220px) */
#suPhotoModal .suCamView,
#suPhotoModal .suEdStage {
  width: 100%;
  max-width: 360px;
  max-width: clamp(220px, calc(100vh - 420px), 360px);
  border-radius: 12px;
}
/* max 95% of screen height; only the middle (.suPmScroll) scrolls */
#suPhotoModal .modal-content {
  display: flex;
  flex-direction: column;
  max-height: 95vh;
  max-height: 95dvh;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5);
}
#suPhotoModal .modal-header {
  position: relative;
  flex: 0 0 auto;
  padding: 18px 60px 18px 24px;
  background: linear-gradient(90deg, var(--themeColor), var(--themeColor3));
  border: 0;
  border-radius: 0;
}
#suPhotoModal .modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
}
#suPhotoModal .modal-header .close {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 30px;
  height: 30px;
  margin: -15px 0 0;
  padding: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  color: #ffffff;
  text-shadow: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  opacity: 1;
  transition: background-color 0.15s;
}
#suPhotoModal .modal-header .close:hover,
#suPhotoModal .modal-header .close:focus {
  background: rgba(255, 255, 255, 0.32);
  outline: 0;
}
#suPhotoModal .modal-body {
  padding: 20px 24px;
}
#suPhotoModal .modal-footer {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 16px 24px;
  border-top: 1px solid #e4e9ef;
}
#suPhotoModal .suPmPane {
  display: none;
}
#suPhotoModal .suPmPane.active {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
#suPhotoModal .suPmScroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#suPhotoModal svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#suPhotoModal svg .suFill {
  fill: currentColor;
}
#suPhotoModal .suPmFile {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
#suPhotoModal .suPmError {
  margin: 12px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--errColor);
}
#suPhotoModal .suPmError:empty {
  display: none;
}

/* Buttons */
#suPhotoModal .suPmActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
#suPhotoModal .suPmBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  margin: 0;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
#suPhotoModal .suPmBtn svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
#suPhotoModal .suPmBtnLg {
  height: 42px;
  padding: 0 20px;
}
#suPhotoModal .suPmBtnPrimary {
  color: #ffffff;
  background: var(--themeColor3);
  border-color: var(--themeColor3);
}
#suPhotoModal .suPmBtnPrimary:hover,
#suPhotoModal .suPmBtnPrimary:focus {
  background: var(--themeColor);
  border-color: var(--themeColor);
}
#suPhotoModal .suPmBtnOutline {
  color: var(--themeColor2);
  background: #ffffff;
  border-color: #ced4da;
}
#suPhotoModal .suPmBtnOutline:hover,
#suPhotoModal .suPmBtnOutline:focus {
  color: var(--themeColor3);
  border-color: var(--themeColor3);
}
#suPhotoModal .suPmBtn:focus,
#suPhotoModal .suEdTool:focus,
#suPhotoModal .suChip:focus,
#suPhotoModal .suCamTool:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.25);
}
#suPhotoModal .suPmBtn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}
#suPhotoModal .suPmBtnPrimary:disabled {
  background: var(--themeColor3);
  border-color: var(--themeColor3);
}

/* ----- Take your picture ----- */
#suPhotoModal .suCamView {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--themeColor2);
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
}
#suPhotoModal .suCamView:before {
  content: "";
  display: block;
  padding-top: 100%;
}
#suPhotoModal .suCamView video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s;
}
#suPhotoModal .suCamView.suLive video {
  opacity: 1;
}
#suPhotoModal .suCamView.suMirror video {
  transform: scaleX(-1);
}
/* placeholder face while the camera starts */
#suPhotoModal .suCamHolder {
  position: absolute;
  top: 26.5%;
  left: 26.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47%;
  height: 47%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}
#suPhotoModal .suCamHolder svg {
  width: 62%;
  height: 62%;
  fill: rgba(255, 255, 255, 0.22);
  stroke: none;
}
#suPhotoModal .suCamRing {
  position: absolute;
  top: 12%;
  left: 12%;
  width: 76%;
  height: 76%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  pointer-events: none;
}
#suPhotoModal .suCamView.suLive .suCamRing {
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.3);
}
/* switching front <-> back camera: loading spinner instead of the placeholder face */
#suPhotoModal .suCamLoading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#suPhotoModal .suCamLoading i {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--themeColor);
  border-radius: 50%;
  animation: suSpin 0.8s linear infinite;
}
#suPhotoModal .suCamView.suSwitching .suCamLoading {
  display: flex;
}
#suPhotoModal .suCamView.suSwitching .suCamHolder,
#suPhotoModal .suCamView.suSwitching .suCamCaption {
  display: none;
}
#suPhotoModal .suCamCaption {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  transform: translateX(-50%);
}
#suPhotoModal .suCamTools {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
#suPhotoModal .suCamTool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  border-radius: 50%;
  transition: background-color 0.15s;
}
#suPhotoModal .suCamTool:hover {
  background: rgba(0, 0, 0, 0.7);
}
#suPhotoModal .suCamTool:disabled {
  opacity: 0.5;
}
#suPhotoModal .suCamTool svg {
  width: 15px;
  height: 15px;
}
/* timer countdown / shutter flash */
#suPhotoModal .suCamCount {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
#suPhotoModal .suCamView.suCounting .suCamCount {
  display: flex;
}
#suPhotoModal .suCamCount.suTick {
  animation: suCamTick 1s ease-out both;
}
#suPhotoModal .suCamFlash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
}
#suPhotoModal .suCamView.suFlash .suCamFlash {
  animation: suCamFlash 0.35s ease-out;
}
/* camera blocked / missing */
#suPhotoModal .suCamMsg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  color: #ffffff;
}
#suPhotoModal .suCamView.suError .suCamMsg {
  display: flex;
}
#suPhotoModal .suCamView.suError .suCamHolder,
#suPhotoModal .suCamView.suError .suCamRing,
#suPhotoModal .suCamView.suError .suCamCaption,
#suPhotoModal .suCamView.suError .suCamTools,
#suPhotoModal .suCamView.suLive .suCamHolder {
  display: none;
}
#suPhotoModal .suCamMsg svg {
  width: 34px;
  height: 34px;
  opacity: 0.8;
}
#suPhotoModal .suCamMsg strong {
  font-size: 14px;
}
#suPhotoModal .suCamMsg p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}
#suPhotoModal .suCamMsg .suPmBtn {
  height: 30px;
  margin-top: 4px;
  padding: 0 14px;
  font-size: 12px;
}
#suPhotoModal .suCamTimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 18px;
}
#suPhotoModal .suCamTimer > span {
  margin-right: 2px;
  font-size: 12px;
  font-weight: 700;
  color: #7c8a9b;
}
#suPhotoModal .suChip {
  min-width: 40px;
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--themeColor2);
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 6px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
#suPhotoModal .suChip:hover {
  color: var(--themeColor3);
  border-color: var(--themeColor);
}
#suPhotoModal .suChip.active {
  color: var(--themeColor3);
  background: rgba(255, 140, 0, 0.16);
  border-color: var(--themeColor);
}
#suPhotoModal .suChip:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
#suPhotoModal .jsSuCamShoot {
  box-shadow: 0 8px 18px -8px rgba(253, 98, 23, 0.7);
}
#suPhotoModal .jsSuCamShoot.suCounting {
  color: var(--themeColor3);
  background: #ffffff;
}

/* ----- Position your photo ----- */
#suPhotoModal .suEdSize {
  margin: 0 0 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: #7c8a9b;
}
#suPhotoModal .suEdSize span + span:before {
  content: "\00b7";
  margin: 0 8px;
  color: #ced4da;
}
/* live: the part of the original inside the frame */
#suPhotoModal .suEdCrop {
  font-weight: 700;
  color: var(--themeColor2);
  cursor: help;
}
#suPhotoModal .suEdStage {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  cursor: grab;
  background: #808080;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
#suPhotoModal .suEdStage:before {
  content: "";
  display: block;
  padding-top: 100%;
}
#suPhotoModal .suEdStage.suDragging {
  cursor: grabbing;
}
#suPhotoModal .suEdStage:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.35);
}
#suPhotoModal .suEdStage canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* saved area = the frame; everything around it is dimmed */
#suPhotoModal .suEdRing {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
#suPhotoModal .suEdHint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: #7c8a9b;
}
#suPhotoModal .suEdControls {
  padding: 16px 24px 18px;
  border-top: 1px solid #e4e9ef;
}
#suPhotoModal .suEdTools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-top: 16px;
}
#suPhotoModal .suEdGroup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#suPhotoModal .suEdTool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--themeColor2);
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 8px;
  transition: border-color 0.15s, color 0.15s;
}
#suPhotoModal .suEdTool:hover {
  color: var(--themeColor3);
  border-color: var(--themeColor3);
}
#suPhotoModal .suEdTool:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  color: var(--themeColor2);
  border-color: #ced4da;
}
#suPhotoModal .suEdTool svg {
  width: 16px;
  height: 16px;
}
/* zoom slider: filled up to the thumb (--suZoomFill is set by register_photo.js) */
#suPhotoModal .suEdZoom {
  display: block;
  width: 104px;
  height: 6px;
  margin: 0 4px;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(to right, var(--themeColor3) var(--suZoomFill, 0%), #4d4d4d var(--suZoomFill, 0%));
  border: 0;
  border-radius: 3px;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}
#suPhotoModal .suEdZoom::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  cursor: pointer;
  background: var(--themeColor3);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  -webkit-appearance: none;
  appearance: none;
}
#suPhotoModal .suEdZoom::-moz-range-thumb {
  width: 16px;
  height: 16px;
  cursor: pointer;
  background: var(--themeColor3);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
#suPhotoModal .suEdZoom::-moz-range-track {
  height: 6px;
  background: transparent;
  border: 0;
}
#suPhotoModal .suEdZoom:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.3);
}
#suPhotoModal .suEdZoom:focus::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.3);
}

/* [data-su-tip] tooltip (register_photo.js) */
.suTip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2100;
  max-width: 240px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: #ffffff;
  background: var(--themeColor2);
  border-radius: 6px;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s, visibility 0.12s;
}
.suTip.in {
  opacity: 1;
  visibility: visible;
}
.suTip:after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--suTipArrow, 50%);
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--themeColor2);
}
.suTip.suTipBelow:after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--themeColor2);
}

@keyframes suCamTick {
  0% {
    opacity: 0;
    transform: scale(1.6);
  }
  25% {
    opacity: 1;
    transform: scale(1);
  }
  85% {
    opacity: 1;
  }
  100% {
    opacity: 0.25;
    transform: scale(0.9);
  }
}
@keyframes suSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes suCamFlash {
  0% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}

/* phones (same breakpoint as the login popup): "Text Verification is not available..." warning */
@media only screen and (max-width: 639px) {
  .suForm .suAlert {
    font-size: 12px;
  }
}

@media only screen and (max-width: 479px) {
  .suForm .fbox {
    padding: 18px 16px;
  }
  .suForm .fboxFooter {
    padding: 12px 16px;
  }
  .suForm .fboxFooter .btn-theme {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 14px;
  }
  /* back + Re-Send Code + Verify Code on one row */
  .suForm .fboxFooter .btn-default.suSmsSend {
    flex: 1 1 auto;
    padding: 0 12px;
  }
  .suForm .fboxFooter .suSmsSend,
  .suForm .fboxFooter .step3btn {
    font-size: 14px;
    white-space: nowrap;
  }
  /* step 5: school name and grad. year on two rows */
  .suForm .edu_additiondiv {
    align-items: center;
  }
  .suForm .edu_additiondiv .row {
    flex-direction: column;
  }
  .suForm .edu_additiondiv .col-sm-8,
  .suForm .edu_additiondiv .col-sm-4 {
    flex: 1 1 auto;
  }
  /* step 6: Add Picture / Or / Take Picture / info on one row */
  .suForm .suPhotoBtns {
    flex-wrap: nowrap;
    gap: 2px;
  }
  .suForm .orCambase .orBase {
    margin: 0 8px;
  }
  .suForm .form-fileField > label > .fileBtn,
  .suForm .jsSuTakePhoto {
    padding: 0 10px;
    font-size: 13px;
  }
  .suForm .orCambase .suInfoBtn {
    margin-left: 4px;
  }
  .suForm .nav-tabs.btnToggleInterface {
    gap: 4px;
  }
  .suForm .nav-tabs.btnToggleInterface > li > a {
    padding: 10px 6px;
    font-size: 12px;
  }
  .suForm .nav-tabs.btnToggleInterface > li > a i {
    font-size: 16px;
  }
  .suForm .nav-tabs.btnToggleInterface > li.orDiv,
  .suForm .nav-tabs.btnToggleInterface > li.orDiv:before {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
  }  #suPhotoModal .modal-dialog {
    margin: 10px auto;
  }
  #suPhotoModal .modal-header {
    padding: 15px 56px 15px 16px;
  }
  #suPhotoModal .modal-body,
  #suPhotoModal .suEdControls {
    padding-right: 16px;
    padding-left: 16px;
  }
  #suPhotoModal .modal-footer {
    padding: 12px 16px;
  }
  #suPhotoModal .suPmActions {
    gap: 10px;
  }
  #suPhotoModal .suPmBtn {
    padding: 0 14px;
  }
  /* phones: smaller picture / camera box (the two stay the same size) */
  #suPhotoModal .suCamView,
  #suPhotoModal .suEdStage {
    max-width: 260px;
  }
}

/* very small phones: step 6 buttons a bit smaller so the row still fits */
@media only screen and (max-width: 374px) {
  .suForm .form-fileField > label > .fileBtn,
  .suForm .jsSuTakePhoto {
    padding: 0 8px;
    font-size: 12px;
  }
  .suForm .suPhotoBtns .mr5 {
    margin-right: 4px;
  }
}
