/* Unified Vietnamese-friendly typography for the public application flow. */


/* Applicant portal UX refresh - scoped to avoid affecting HRM/admin modules. */
:root {
  --candidate-primary: #e2231a;
  --candidate-primary-dark: #b81610;
  --candidate-primary-soft: #fff1f0;
  --candidate-ink: #172033;
  --candidate-muted: #667085;
  --candidate-border: #e3e8ef;
  --candidate-surface: #ffffff;
  --candidate-canvas: #f5f7fb;
  --candidate-success: #16855b;
  --candidate-warning: #b26a00;
  --candidate-danger: #c9362b;
  --candidate-shadow: 0 16px 45px rgba(23, 32, 51, 0.09);
}

body.candidate-portal {
  background: url(../img/bgoishi.png) no-repeat center center fixed !important;
  background-size: cover !important;
  color: var(--candidate-ink);
  font-family: "Applicant Roboto", "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}

body.apply-route-active,
body.apply-route-active button,
body.apply-route-active input,
body.apply-route-active select,
body.apply-route-active textarea,
body.apply-route-active .form-control,
body.apply-route-active .modal,
body.apply-route-active footer {
  font-family: "Applicant Roboto", "Segoe UI", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keep Bootstrap modals above the route backdrop and the sticky site header. */
body.apply-route-active .modal {
  z-index: 1080;
}

body.apply-route-active .modal-backdrop {
  z-index: 1070;
}

body.apply-route-active .modal.show .modal-dialog {
  transform: none;
}

body.candidate-portal .bg-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(14px);
}

body.candidate-portal header {
  border-bottom: 1px solid rgba(227, 232, 239, 0.9);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
  z-index: 1040;
}

body.candidate-portal .navbar {
  min-height: 72px;
}

body.candidate-portal .font-menu {
  color: #344054 !important;
  font-size: 15px;
  letter-spacing: .02em;
}

body.candidate-portal .font-menu:hover,
body.candidate-portal .font-menu.cls_active {
  color: var(--candidate-primary) !important;
}

/* Preserve the original Oishi typography in the global header. */
body.apply-route-active header .font-logo,
body.apply-route-active header .font-menu {
  font-family: Mali-Bold, cursive !important;
}

body.candidate-portal .filter-job-container {
  background: rgba(255, 255, 255, .86) !important;
  border-bottom: 1px solid var(--candidate-border);
}

body.candidate-portal .filter-job-container .form-control {
  min-height: 46px;
  border-radius: 12px;
  border-color: var(--candidate-border);
  box-shadow: none;
}

body.candidate-portal .filter-job-container .btn-oishi {
  min-height: 46px;
  border-radius: 12px;
  padding-inline: 20px;
}

body.apply-route-active .filter-job-container {
  display: none;
}

body.candidate-portal footer {
  background: rgba(255, 255, 255, .9);
  border-top: 1px solid var(--candidate-border);
  margin-bottom: 0 !important;
  padding: 32px 0 12px;
}

.apply-page-modern {
  min-height: calc(100vh - 72px);
  padding: 34px 16px 64px;
  background: rgba(247, 249, 252, .58);
  backdrop-filter: blur(1px);
}

.apply-page-modern * {
  box-sizing: border-box;
}

.apply-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.apply-job-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 150px;
  padding: 28px 32px;
  border: 1px solid rgba(226, 35, 26, .16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(226, 35, 26, .15), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #fff8f7 100%);
  box-shadow: var(--candidate-shadow);
}

.apply-job-hero::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -105px;
  width: 250px;
  height: 250px;
  border: 42px solid rgba(226, 35, 26, .06);
  border-radius: 50%;
}

.apply-job-copy,
.apply-job-progress {
  position: relative;
  z-index: 1;
}

.apply-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--candidate-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.apply-job-title {
  margin: 0;
  color: #111827;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.18;
}

.apply-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 12px;
  color: var(--candidate-muted);
  font-size: 14px;
}

.apply-job-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.apply-job-progress {
  flex: 0 0 235px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 28px rgba(23, 32, 51, .08);
}

.apply-progress-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.apply-progress-label {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.apply-progress-value {
  color: var(--candidate-primary);
  font-size: 22px;
  font-weight: 800;
}

.apply-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}

.apply-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--candidate-primary), #ff6b62);
  transition: width .25s ease;
}

.apply-progress-help {
  display: block;
  margin-top: 9px;
  color: var(--candidate-muted);
  font-size: 13px;
  line-height: 1.5;
}

.apply-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.apply-sidebar {
  position: sticky;
  top: 92px;
  padding: 16px;
  border: 1px solid var(--candidate-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 30px rgba(23, 32, 51, .06);
}

.apply-sidebar-title {
  margin: 4px 8px 12px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.45;
  text-transform: uppercase;
}

.apply-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin: 4px 0;
  padding: 11px 12px;
  position: relative;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #475467;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.apply-nav-item:hover,
.apply-nav-item:focus {
  background: var(--candidate-primary-soft);
  color: var(--candidate-primary);
  outline: none;
  transform: translateX(2px);
}

.apply-nav-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 9px;
  background: #f2f4f7;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.apply-nav-item:hover .apply-nav-index {
  background: #fff;
  color: var(--candidate-primary);
}

.apply-nav-item.is-active {
  border-color: rgba(226, 35, 26, .16);
  background: linear-gradient(135deg, #fff5f4, #fffafa);
  color: var(--candidate-primary-dark);
  box-shadow: inset 3px 0 0 var(--candidate-primary), 0 5px 14px rgba(226, 35, 26, .08);
  font-weight: 700;
}

.apply-nav-item.is-active .apply-nav-index {
  background: var(--candidate-primary);
  color: #fff;
  box-shadow: 0 5px 12px rgba(226, 35, 26, .2);
}

.apply-nav-item.is-active:hover,
.apply-nav-item.is-active:focus {
  background: linear-gradient(135deg, #fff1f0, #fff8f7);
  color: var(--candidate-primary-dark);
  transform: none;
}

.apply-help-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed, #fffaf5);
  color: #7c4b18;
  font-size: 13px;
  line-height: 1.6;
}

.apply-main {
  min-width: 0;
}

.apply-intro-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px 17px;
  border: 1px solid #cfe6dc;
  border-radius: 15px;
  background: #f0faf6;
  color: #265f4b;
  font-size: 15px;
  line-height: 1.6;
}

.apply-section {
  scroll-margin-top: 96px;
  margin-bottom: 18px;
  border: 1px solid var(--candidate-border);
  border-radius: 20px;
  background: var(--candidate-surface);
  box-shadow: 0 10px 30px rgba(23, 32, 51, .055);
}

.apply-section-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 22px;
  border-bottom: 1px solid #edf0f4;
}

.apply-section-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: var(--candidate-primary-soft);
  color: var(--candidate-primary);
  font-size: 18px;
}

.apply-section-title {
  margin: 0;
  color: #172033;
  font-size: 20px;
  font-weight: 800;
}

.apply-section-subtitle {
  margin: 3px 0 0;
  color: var(--candidate-muted);
  font-size: 14px;
  line-height: 1.5;
}

.apply-section-body {
  padding: 22px;
}

.apply-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.apply-col-12 { grid-column: span 12; }
.apply-col-8 { grid-column: span 8; }
.apply-col-6 { grid-column: span 6; }
.apply-col-4 { grid-column: span 4; }
.apply-col-3 { grid-column: span 3; }

.apply-field {
  min-width: 0;
}

.apply-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.apply-label .label-en {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 500;
}

.apply-required {
  color: var(--candidate-primary);
}

.apply-control,
.apply-page-modern .form-control.apply-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background-color: #fff;
  color: #172033;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .02);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

textarea.apply-control {
  min-height: 100px;
  resize: vertical;
}

.apply-control:hover {
  border-color: #b8c1ce;
}

.apply-control:focus {
  border-color: var(--candidate-primary);
  box-shadow: 0 0 0 4px rgba(226, 35, 26, .1);
  outline: none;
}

.apply-control::placeholder {
  color: #98a2b3;
}

.field-invalid .apply-control,
.apply-control.ng-invalid.ng-touched {
  border-color: #e26c64;
  background: #fffafa;
}

.apply-error-message {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  color: var(--candidate-danger);
  font-size: 13px;
  line-height: 1.5;
}

.apply-hint {
  margin-top: 6px;
  color: var(--candidate-muted);
  font-size: 13px;
  line-height: 1.5;
}

.apply-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.apply-choice {
  position: relative;
  margin: 0;
}

.apply-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.apply-choice label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  margin: 0;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #fff;
  color: #475467;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.apply-choice input:checked + label {
  border-color: var(--candidate-primary);
  background: var(--candidate-primary-soft);
  color: var(--candidate-primary-dark);
  box-shadow: 0 0 0 3px rgba(226, 35, 26, .08);
}

.apply-date-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
}

.apply-address-panel {
  padding: 18px;
  border: 1px solid #e5e9f0;
  border-radius: 16px;
  background: #fbfcfe;
}

.apply-address-panel + .apply-address-panel {
  margin-top: 16px;
}

.apply-address-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.apply-address-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #344054;
  font-size: 15px;
  font-weight: 800;
}

.apply-copy-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #475467;
  font-size: 13px;
  cursor: pointer;
}

.apply-copy-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--candidate-primary);
}

.apply-source-highlight {
  padding: 15px;
  border: 1px solid #f1d7d4;
  border-radius: 15px;
  background: linear-gradient(135deg, #fffafa, #fff5f4);
}

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

.apply-upload-card {
  position: relative;
  min-height: 175px;
  padding: 22px;
  border: 1.5px dashed #c9d0dc;
  border-radius: 17px;
  background: #fbfcfe;
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.apply-upload-card:hover {
  border-color: var(--candidate-primary);
  background: #fffafa;
  transform: translateY(-1px);
}

.apply-upload-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 14px;
  background: var(--candidate-primary-soft);
  color: var(--candidate-primary);
  font-size: 20px;
}

.apply-upload-title {
  margin: 0 0 5px;
  color: #344054;
  font-size: 17px;
  font-weight: 800;
}

.apply-upload-description {
  margin: 0 0 14px;
  color: var(--candidate-muted);
  font-size: 13px;
  line-height: 1.55;
}

.apply-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.apply-file-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.apply-btn:hover {
  transform: translateY(-1px);
}

.apply-btn-primary {
  background: linear-gradient(135deg, var(--candidate-primary), #f1483f);
  color: #fff;
  box-shadow: 0 8px 18px rgba(226, 35, 26, .2);
}

.apply-btn-primary:hover,
.apply-btn-primary:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--candidate-primary-dark), var(--candidate-primary));
}

.apply-btn-secondary {
  border-color: #d8dee8;
  background: #fff;
  color: #475467;
}

.apply-btn-secondary:hover {
  color: #172033;
  background: #f8fafc;
}

.apply-btn:disabled {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.apply-files-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 17px;
}

.apply-file-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 11px 42px 11px 11px;
  border: 1px solid var(--candidate-border);
  border-radius: 13px;
  background: #fff;
}

.apply-file-thumb {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border-radius: 10px;
  background: #f2f4f7;
}

.apply-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.apply-file-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 10px;
  background: #eef4ff;
  color: #3159c7;
  font-size: 18px;
}

.apply-file-copy {
  min-width: 0;
}

.apply-file-name {
  display: block;
  overflow: hidden;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apply-file-size {
  color: #98a2b3;
  font-size: 12px;
}

.apply-file-remove {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #fff1f0;
  color: var(--candidate-primary);
  transform: translateY(-50%);
  cursor: pointer;
}

.apply-submit-bar {
  position: sticky;
  bottom: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 222, 232, .88);
  border-radius: 17px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 35px rgba(23, 32, 51, .14);
  backdrop-filter: blur(16px);
}

.apply-submit-copy {
  color: var(--candidate-muted);
  font-size: 13px;
  line-height: 1.55;
}

.apply-submit-copy strong {
  display: block;
  color: #344054;
  font-size: 15px;
}

.apply-submit-button {
  min-width: 220px;
  min-height: 48px;
  font-size: 15px;
}

.apply-validation-summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #f0c5c1;
  border-radius: 13px;
  background: #fff5f4;
  color: #9f2d25;
  font-size: 14px;
  line-height: 1.5;
}

.apply-toast {
  position: fixed;
  top: 92px;
  right: 22px;
  z-index: 2000;
  width: min(390px, calc(100vw - 32px));
  padding: 14px 42px 14px 15px;
  border: 1px solid var(--candidate-border);
  border-left: 4px solid #3159c7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 32, 51, .18);
  animation: applyToastIn .22s ease-out;
}

.apply-toast.success { border-left-color: var(--candidate-success); }
.apply-toast.warning { border-left-color: var(--candidate-warning); }
.apply-toast.error { border-left-color: var(--candidate-danger); }

.apply-toast-title {
  margin: 0 0 3px;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.apply-toast-message {
  margin: 0;
  color: var(--candidate-muted);
  font-size: 13px;
  line-height: 1.5;
}

.apply-toast-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 8px;
  background: #f2f4f7;
  color: #667085;
  cursor: pointer;
}

@keyframes applyToastIn {
  from { opacity: 0; transform: translateY(-8px) translateX(10px); }
  to { opacity: 1; transform: translateY(0) translateX(0); }
}

.apply-job-skeleton {
  display: grid;
  gap: 10px;
  width: 70%;
}

.apply-skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eceff4 25%, #f7f8fa 37%, #eceff4 63%);
  background-size: 400% 100%;
  animation: applyShimmer 1.2s ease infinite;
}

.apply-skeleton-line.title { width: 70%; height: 28px; }
.apply-skeleton-line.short { width: 45%; }

@keyframes applyShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

body.apply-route-active .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(23, 32, 51, .25);
}

body.apply-route-active .modal-header {
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--candidate-border);
  background: linear-gradient(135deg, #fff, #fff7f6) !important;
  color: #172033 !important;
}

body.apply-route-active .modal-title {
  font-size: 20px;
  font-weight: 800;
}

body.apply-route-active .modal-body {
  padding: 20px;
}

body.apply-route-active .modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--candidate-border);
  background: #fbfcfe;
}

body.apply-route-active .privacy-policy-content {
  max-height: min(58vh, 560px);
  padding: 18px;
  border: 1px solid var(--candidate-border);
  border-radius: 14px;
  background: #fbfcfe;
  color: #344054;
  font-size: 16px;
  line-height: 1.75;
  overflow-y: auto;
}

body.apply-route-active .policy-header {
  color: #172033;
  text-align: center;
}

.apply-consent-check {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #cbdff8;
  border-radius: 13px;
  background: #f4f8ff;
}

/* V8: stable Bootstrap loading modal; prevent the circular spinner from being squeezed by flex. */
body.apply-route-active #modalLoadingSubmit .apply-loading-dialog {
  width: calc(100% - 32px);
  max-width: 460px;
  margin-right: auto;
  margin-left: auto;
}

body.apply-route-active #modalLoadingSubmit .apply-loading-modal {
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 32, 51, .28);
}

.apply-loading-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 24px;
  background: #fff;
}

.apply-loading-spinner {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border: 4px solid #f4d0cd;
  border-top-color: var(--candidate-primary);
  border-radius: 50%;
  animation: applySpin .75s linear infinite;
}

.apply-loading-copy {
  flex: 1 1 auto;
  min-width: 0;
}

@keyframes applySpin { to { transform: rotate(360deg); } }

.apply-loading-title {
  margin: 0 0 5px;
  color: #172033;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.apply-loading-text {
  margin: 0;
  color: var(--candidate-muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 575.98px) {
  body.apply-route-active #modalLoadingSubmit .apply-loading-dialog {
    width: calc(100% - 24px);
  }

  .apply-loading-card {
    gap: 13px;
    padding: 19px 17px;
  }

  .apply-loading-spinner {
    flex-basis: 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .apply-loading-title {
    font-size: 16px;
  }

  .apply-loading-text {
    font-size: 13.5px;
  }
}


/* V6: more readable typography across the application form. */
.apply-page-modern {
  font-size: 15px;
  line-height: 1.55;
}

.apply-job-meta,
.apply-progress-label {
  font-size: 15px;
}

.apply-progress-help {
  font-size: 13px;
}

body.candidate-portal #confirm_submit_apply,
body.candidate-portal #confirm_submit_apply * {
  font-family: "Applicant Roboto", "Segoe UI", Arial, sans-serif !important;
}

body.apply-route-active #confirm_submit_apply .modal-dialog {
  max-width: 920px;
}

body.apply-route-active .privacy-policy-content p,
body.apply-route-active .privacy-policy-content li {
  margin-bottom: 14px;
}

body.apply-route-active .privacy-policy-content strong {
  color: #172033;
  font-weight: 700;
}

body.apply-route-active .privacy-policy-content .policy-header h6 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

body.apply-route-active .privacy-policy-content .small {
  font-size: 14px;
  line-height: 1.65;
}

body.apply-route-active .apply-consent-check,
body.apply-route-active .apply-consent-check .form-check-label {
  font-size: 15px;
  line-height: 1.55;
}

.apply-attachment-guide {
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid #d9e4f2;
  border-left: 4px solid #3159c7;
  border-radius: 16px;
  background: linear-gradient(135deg, #f7faff, #ffffff);
}

.apply-attachment-guide-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 13px;
}

.apply-attachment-guide-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: #eaf2ff;
  color: #3159c7;
  font-size: 17px;
}

.apply-attachment-guide-title {
  margin: 0;
  color: #172033;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.apply-attachment-guide-subtitle {
  margin: 3px 0 0;
  color: var(--candidate-muted);
  font-size: 14px;
  line-height: 1.5;
}

.apply-attachment-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: attachment-item;
}

.apply-attachment-checklist li {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 64px;
  height: 100%;
  padding: 12px 14px 12px 50px;
  border: 1px solid #e3eaf4;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: #344054;
  font-size: 14px;
  line-height: 1.55;
  counter-increment: attachment-item;
}

.apply-attachment-checklist li::before {
  content: counter(attachment-item);
  position: absolute;
  top: 12px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: #eef4ff;
  color: #3159c7;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(49, 89, 199, .06);
}

.apply-attachment-checklist li:nth-child(7) {
  grid-column: 1 / -1;
  min-height: 52px;
}

.apply-attachment-guide-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #fff7ed;
  color: #7c4b18;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .apply-layout {
    grid-template-columns: 1fr;
  }

  .apply-sidebar {
    position: static;
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
  }

  .apply-sidebar-title,
  .apply-help-card {
    display: none;
  }

  .apply-nav-item {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .apply-nav-item.is-active {
    box-shadow: inset 0 -3px 0 var(--candidate-primary), 0 4px 12px rgba(226, 35, 26, .08);
  }

  .apply-job-progress {
    flex-basis: 210px;
  }
}

@media (max-width: 767.98px) {
  body.candidate-portal {
    background: url(../img/bg-main-2-mobile.jpg) no-repeat center center fixed !important;
    background-size: 100% 100% !important;
  }
  .apply-page-modern {
    padding: 18px 10px 48px;
  }

  .apply-job-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 22px 20px;
    border-radius: 18px;
  }

  .apply-job-progress {
    flex: auto;
  }

  .apply-section {
    border-radius: 16px;
  }

  .apply-section-header,
  .apply-section-body {
    padding: 17px;
  }

  .apply-col-8,
  .apply-col-6,
  .apply-col-4,
  .apply-col-3 {
    grid-column: span 12;
  }

  .apply-date-grid,
  .apply-upload-grid,
  .apply-files-list {
    grid-template-columns: 1fr;
  }

  .apply-attachment-checklist {
    grid-template-columns: 1fr;
  }

  .apply-attachment-checklist li:nth-child(7) {
    grid-column: auto;
    min-height: 0;
  }

  .apply-address-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .apply-submit-bar {
    align-items: stretch;
    flex-direction: column;
    bottom: 8px;
  }

  .apply-submit-button {
    width: 100%;
    min-width: 0;
  }

  .apply-toast {
    top: 78px;
    right: 16px;
  }
}

@media (max-width: 575.98px) {
  body.candidate-portal .navbar {
    min-height: 62px;
  }

  .apply-job-title {
    font-size: 25px;
  }

  .apply-section-title {
    font-size: 18px;
  }

  .apply-choice-group {
    grid-template-columns: 1fr;
  }
}

/* Files are added to the pending application immediately after selection. */
.apply-file-actions-auto {
  align-items: center;
  flex-wrap: wrap;
}

.apply-auto-upload-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  color: var(--candidate-muted);
  font-size: 14px;
  line-height: 1.45;
}

.apply-auto-upload-note.is-processing {
  color: #1d4ed8;
  font-weight: 500;
}

.apply-auto-upload-result {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px solid #b7ead4;
  border-radius: 10px;
  background: #effcf6;
  color: #11704d;
  font-size: 14px;
  font-weight: 500;
}

.apply-upload-card.is-processing {
  border-color: #9abcf9;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.apply-upload-card.is-processing .apply-btn {
  pointer-events: none;
  opacity: .72;
}

.apply-btn.is-disabled {
  pointer-events: none;
  cursor: wait;
  opacity: .72;
}

/* V9: keep the frosted Apply background continuous until the footer starts. */
body.apply-route-active > footer {
  margin-top: 0 !important;
}

body.apply-route-active .apply-page-modern {
  /* The old footer mt-5 created a transparent 48px gap outside the Apply page.
     Move that spacing inside the Apply surface so the blur covers it, while the
     footer itself remains a separate, unaffected section. */
  padding-bottom: 112px;
}

@media (max-width: 575.98px) {
  body.apply-route-active .apply-page-modern {
    padding-bottom: 96px;
  }
}
