@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible+Next:wght@400;500;700;800&display=swap");

:root {
  --bg-main: #f2f6f9;
  --bg-wash: #d8e6ef;
  --card: #ffffff;
  --card-soft: #f8fbfd;
  --line: #b8cad6;
  --line-strong: #7f9fb2;
  --text: #0f2333;
  --muted: #385364;
  --heading: #072338;
  --brand: #0d6e6e;
  --brand-dark: #094f4f;
  --brand-soft: #d8f1f1;
  --accent: #f2b441;
  --danger: #b62323;
  --focus: #0a66c2;
  --shadow: 0 10px 34px rgba(7, 28, 43, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", Tahoma, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.85) 0 15%, transparent 38%),
    radial-gradient(circle at 96% 24%, rgba(13, 110, 110, 0.16) 0 12%, transparent 36%),
    linear-gradient(175deg, var(--bg-main) 0%, var(--bg-wash) 100%);
}

.page-frame {
  --page-pad: clamp(18px, 3vw, 34px);
  width: min(100%, 1024px);
  margin: clamp(20px, 3vw, 44px) auto;
  padding: var(--page-pad);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: clamp(18px, 2vw, 30px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
  overflow: visible;
}

.form-header {
  margin: 0 auto clamp(18px, 3vw, 28px);
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  overflow: visible;
  background: transparent;
}

.page-header-top {
  text-align: center;
  margin-bottom: 14px;
}

.gov-prefix {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gov-title {
  margin: 6px auto 0;
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  color: #19477b;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.form-wrapper {
  width: min(100%, 1024px);
  margin: clamp(16px, 3vw, 32px) auto clamp(24px, 4vw, 40px);
  padding: clamp(8px, 2vw, 16px);
  background: var(--card);
  border: 1px solid rgba(127, 159, 178, 0.38);
  border-radius: clamp(0px, 2vw, 24px);
  box-shadow: var(--shadow);
}

.application-info {
  margin-top: 18px;
}

.application-info h2 {
  margin: 0 0 10px;
  color: #c41f1f;
  font-size: clamp(1.07rem, 2.2vw, 1.45rem);
  text-align: center;
}

.application-info p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(0.95rem, 1.9vw, 1rem);
  line-height: 1.6;
  text-align: center;
}

.required-note {
  margin: 0;
  color: #c41f1f;
  font-weight: 700;
}

.header-text {
  text-align: center;
  padding: 0;
  background: transparent;
  border-bottom: none;
}

.header-text p {
  margin: 0;
  text-transform: uppercase;
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--heading);
  font-weight: 800;
  font-size: clamp(1.06rem, 1.65vw, 1.5rem);
}

.header-bottom {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 3px 24px 3px 150px;
  border-radius: 0;
  background: linear-gradient(120deg, #0d6e6e 0%, #0b8e7f 100%);
  overflow: visible;
  box-sizing: border-box;
  width: calc(100% + 2 * var(--page-pad));
  margin: 20px calc(-1 * var(--page-pad)) 0;
}

.header-bottom::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 96px;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  z-index: 1;
}

.logo-box {
  position: absolute;
  left: calc(var(--page-pad) + clamp(8px, 2vw, 16px));
  top: 50%;
  transform: translateY(-50%);
  width: clamp(48px, 8vw, 86px);
  height: clamp(48px, 8vw, 86px);
  padding: clamp(6px, 1vw, 8px);
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: visible;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 3;
}

.logo-box img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.title-bar {
  position: relative;
  z-index: 2;
  color: #f6fbff;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-size: clamp(1rem, 2.2vw, 1.62rem);
}

.section-block {
  margin-top: clamp(12px, 2.2vw, 20px);
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid rgba(127, 159, 178, 0.4);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card) 0%, var(--card-soft) 100%);
}

.section-block h2 {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, #d8f1f1 0%, #cfe5f3 100%);
  color: var(--heading);
  font-size: clamp(1.15rem, 2.1vw, 1.56rem);
  font-weight: 800;
  border: 1px solid rgba(99, 148, 173, 0.45);
}

.row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .page-frame {
    margin: clamp(16px, 4vw, 20px) auto;
    padding: clamp(16px, 4vw, 20px);
  }

  .page-header-card {
    padding: 0;
  }

  .form-header {
    max-width: 100%;
    margin-top: 12px;
  }

  .header-bottom {
    min-height: 52px;
    padding: 6px 16px 6px 104px;
    box-sizing: border-box;
    width: calc(100% + 2 * var(--page-pad));
    margin: clamp(24px, 4vw, 32px) calc(-1 * var(--page-pad)) 0;
    justify-content: center;
  }

  .header-bottom::before {
    width: 86px;
  }

  .logo-box {
    left: calc(var(--page-pad) + 8px);
    width: clamp(58px, 14vw, 68px);
    height: clamp(58px, 14vw, 68px);
    padding: 6px;
  }

  .title-bar {
    font-size: clamp(1rem, 4.3vw, 1.1rem);
    padding-left: clamp(14px, 3vw, 24px);
    line-height: 1.35;
  }

  .header-text p {
    font-size: clamp(1rem, 3vw, 1.35rem);
  }
}

.row.one,
.row.two,
.row.three,
.row.four,
.row.five,
.row.two-thirds {
  grid-template-columns: 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

label,
.group-label,
.problem-title,
.consent-title,
.checkbox-row {
  color: var(--heading);
}

label {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: clamp(1rem, 1.45vw, 1.15rem);
}

.ghost-label {
  color: transparent;
  user-select: none;
}

small {
  margin-top: 4px;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.2vw, 1rem);
  line-height: 1.35;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: #ffffff;
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.3;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #6f8798;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}
input.field-invalid,
select.field-invalid,
textarea.field-invalid {
  border-color: var(--danger);
  background: #fff6f6;
  box-shadow: 0 0 0 3px rgba(182, 35, 35, 0.14);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.upload-box:focus-visible,
.upload-input:focus + .upload-box {
  outline: 3px solid color-mix(in srgb, var(--focus), white 64%);
  outline-offset: 1px;
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.22);
}

input:disabled {
  color: #5f7381;
  background: #f1f4f6;
}

input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  max-width: 24px;
  min-height: 24px;
  max-height: 24px;
  flex: 0 0 24px;
  accent-color: var(--brand);
  margin-top: 0.12rem;
}

input[type="number"] {
  appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select[multiple] {
  min-height: 150px;
}

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #cedbe4;
  padding: 10px;
  font-size: clamp(0.95rem, 1.2vw, 1.03rem);
  vertical-align: top;
}

th {
  background: #e6f0f7;
  color: #153246;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

td input,
td select {
  min-height: 42px;
  padding: 8px 10px;
}

.family-action-cell {
  text-align: center;
  vertical-align: middle;
  width: 86px;
}

.family-delete-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border: 2px solid #8e2222;
  border-radius: 10px;
  background: #fff5f5;
  color: #8e2222;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.family-delete-btn:hover {
  background: #ffe8e8;
}

.family-delete-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, #8e2222, white 62%);
  outline-offset: 2px;
}

.table-controls {
  margin-top: 12px;
}

.table-btn,
.btn {
  border: 2px solid var(--brand-dark);
  border-radius: 10px;
  background: var(--brand-soft);
  color: #062b2b;
  font-weight: 700;
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  min-height: 50px;
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.13s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

/* Disabled state styling for buttons */
.btn:disabled,
.btn[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.04) brightness(0.94);
}

.btn:disabled:hover,
.btn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.table-btn:hover,
.btn:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(7, 53, 53, 0.15);
}

.btn.submit {
  background: linear-gradient(115deg, #0b8e7f 0%, #0d6e6e 100%);
  color: #ffffff;
  border-color: #075858;
}

.btn.cancel {
  background: #ffffff;
  color: #113042;
  border-color: #7b9aad;
}

.problem-title,
.consent-title {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.group-label {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: clamp(0.98rem, 1.45vw, 1.1rem);
}

.checkbox-group {
  border: 1px solid #c4d4df;
  border-radius: var(--radius-md);
  background: #f8fbfd;
  padding: 12px;
}

.checkbox-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 16px;
}

.check-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  line-height: 1.45;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
}

.specify-input {
  margin-top: 8px;
}

.upload-list {
  display: grid;
  gap: 14px;
}

.upload-item {
  display: grid;
  gap: 12px;
  align-items: start;
  border: 1px solid #c8d9e5;
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 12px;
}

.upload-control {
  width: 100%;
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.upload-box {
  min-height: 112px;
  border: 2px dashed #84a9be;
  border-radius: var(--radius-sm);
  background: #f6fbff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px;
  text-align: center;
  color: #325266;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.upload-box:hover {
  background: #eef6fc;
  border-color: #618ca4;
}

.upload-label {
  font-weight: 700;
}

.upload-file-name {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.1vw, 0.95rem);
  word-break: break-word;
}

/* When a file is selected, hide the 'Upload ...' label and show filename prominently */
.upload-box.has-file {
  align-items: center;
}

.upload-box.has-file .upload-label {
  display: none;
}

.upload-box.has-file .upload-file-name {
  display: block;
  font-weight: 800;
  color: var(--heading);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

.scan-face-btn {
  width: 100%;
  font-family: inherit;
}

/* =====================================================
   FACE VERIFICATION CAMERA
   ===================================================== */

html.camera-open,
body.camera-open {
  overflow: hidden;
  height: 100%;
}

/* Hide the chatbot while face verification is open. */
body.camera-open #osca-chatbot,
body.camera-open .chatbot,
body.camera-open .chatbot-container,
body.camera-open .chatbot-toggle,
body.camera-open .chatbot-button {
  display: none !important;
}

.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  background: rgba(8, 24, 34, 0.88);
  backdrop-filter: blur(6px);
}

.camera-modal[hidden] {
  display: none !important;
}

.camera-dialog {
  position: relative;
  width: min(460px, 92vw);
  height: min(700px, 82vh);
  max-height: 90dvh;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

#face-camera-video,
#face-camera-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  object-fit: cover;
  background: #000000;
}

#face-camera-video[hidden],
#face-camera-canvas[hidden] {
  display: none !important;
}

.camera-dialog-head {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 17px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.camera-dialog-head h3 {
  margin: 0 0 4px;
  color: #102a3a;
  font-size: 19px;
  font-weight: 700;
}

.camera-status {
  display: block;
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
}

.camera-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2f3;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.camera-close:hover {
  background: #dde5e7;
  transform: translateY(-1px);
}

.face-camera-actions {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 0;
  background: transparent;
}

.face-camera-actions button {
  flex: 1;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

#capture-face-button,
#retake-face-button {
  border: 1px solid #0b8f87;
  background: #0b8f87;
  color: #ffffff;
}

#capture-face-button:hover,
#retake-face-button:hover {
  background: #087970;
}

#capture-face-button[hidden],
#retake-face-button[hidden] {
  display: none !important;
}

.face-verification-result {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 84px;
  z-index: 20;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #087970;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.face-verification-result[hidden] {
  display: none !important;
}

.face-verification-result.verification-success {
  border: 1px solid #a7f3d0;
  background: rgba(236, 253, 245, 0.96);
  color: #047857;
}

.face-verification-result.verification-error {
  border: 1px solid #fecaca;
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
}

.face-verification-result.verification-loading {
  border: 1px solid #bfdbfe;
  background: rgba(239, 246, 255, 0.96);
  color: #1d4ed8;
}

@media (max-width: 600px) {
  .camera-modal {
    padding: 0;
    background: #000000;
  }

  .camera-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .camera-dialog-head {
    top: max(16px, env(safe-area-inset-top));
    left: 14px;
    right: 14px;
    padding: 14px 16px;
  }

  .camera-dialog-head h3 {
    font-size: 18px;
  }

  .camera-status {
    font-size: 12px;
  }

  .camera-close {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .face-camera-actions {
    left: 14px;
    right: 14px;
    bottom: max(18px, env(safe-area-inset-bottom));
  }

  .face-camera-actions button {
    min-height: 54px;
    border-radius: 13px;
  }

  .face-verification-result {
    left: 14px;
    right: 14px;
    bottom: 88px;
  }
}

/* File preview modal */
.file-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 16, 20, 0.7);
  backdrop-filter: blur(4px);
}

.file-preview-modal[hidden] {
  display: none;
}

.file-preview-dialog {
  width: min(920px, 96vw);
  max-height: 92vh;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.file-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(90deg, #2f4b52, #1f3338);
  color: #fff;
}

.file-preview-body {
  padding: 12px;
  display: grid;
  place-items: center;
}

.file-preview-body img,
.file-preview-body iframe {
  width: 100%;
  height: calc(92vh - 180px);
  border: none;
  border-radius: 8px;
  background: #000;
}

.file-preview-actions {
  padding: 12px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.upload-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.change-btn {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f6f9fb;
  color: #062b2b;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.upload-item h3 {
  margin: 0 0 6px;
  color: #123347;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.upload-item p {
  margin: 0;
  color: #2f4d5f;
  line-height: 1.45;
  font-size: clamp(0.94rem, 1.2vw, 1.02rem);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  line-height: 1.5;
.form-error {
  margin: 8px 0 4px;
  color: var(--danger);
  font-weight: 700;
  font-size: clamp(0.94rem, 1.15vw, 1.02rem);
}
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
}

.checkbox-assist {
  margin-top: 14px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #c2d4df;
  background: #f7fbfd;
}

.button-row {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  width: 100%;
}

@media (max-width: 699px) {
  .page-frame {
    margin: 0;
    padding: 12px;
    border-radius: 0;
  }

  .form-wrapper {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 14px;
  }

  .header-bottom {
    min-height: 44px;
    padding: 6px 14px 6px 86px;
    box-sizing: border-box;
    width: calc(100% + 2 * var(--page-pad));
    margin: clamp(18px, 5vw, 30px) calc(-1 * var(--page-pad)) 0;
    justify-content: center;
  }

  .logo-box {
    left: clamp(14px, calc(var(--page-pad) + 10px), 28px);
    width: clamp(46px, 16vw, 66px);
    height: clamp(46px, 16vw, 66px);
    padding: clamp(5px, 1.5vw, 6px);
  }

  .title-bar {
    font-size: clamp(1rem, 4.5vw, 1.05rem);
    line-height: 1.35;
  }

  .header-text p {
    font-size: 1rem;
  }

  .section-block {
    padding: 10px;
  }

  .camera-dialog {
    padding: 12px;
  }

  .camera-dialog-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  table {
    min-width: 100%;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .table-wrap table {
    min-width: 900px;
    width: auto;
    table-layout: fixed;
  }

  .table-wrap thead {
    display: table-header-group;
  }

  .table-wrap tr {
    display: table-row;
    margin-bottom: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .table-wrap th,
  .table-wrap td {
    min-width: 120px;
    border: 1px solid #cedbe4;
    padding: 10px;
    background: #ffffff;
    white-space: normal;
  }

  .table-wrap td input,
  .table-wrap td select,
  .table-wrap td button {
    width: 100%;
    min-width: 120px;
    box-sizing: border-box;
  }

  .family-action-cell {
    width: auto;
  }

  .family-delete-btn {
    width: 100%;
  }
}

@media (min-width: 700px) {
  .row.two,
  .upload-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .row.two-thirds {
    grid-template-columns: 2fr 1fr;
  }

  .button-row {
    flex-direction: row;
    justify-content: center;
  }

  .btn {
    width: auto;
    min-width: 200px;
  }

  .checkbox-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .header-bottom {
    min-height: 44px;
    padding-left: 118px;
  }

  .logo-box {
    width: 90px;
    height: 90px;
  }

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

  .row.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .row.five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Custom Confirmation Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: modal-fade-in 0.2s ease-out;
}

.modal-backdrop[hidden] {
  display: none;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.custom-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: 100%;
  animation: modal-slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-slide-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content {
  padding: 32px 24px;
  text-align: center;
}

.modal-title {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #0f2333;
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
}

.modal-message {
  margin: 0 0 28px;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: #385364;
  line-height: 1.6;
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.modal-btn {
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  font-weight: 700;
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-btn-danger {
  background: linear-gradient(115deg, #b62323 0%, #8e1a1a 100%);
  color: white;
  border-color: #6b1515;
}

.modal-btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(182, 35, 35, 0.3);
}

.modal-btn-danger:active {
  transform: translateY(0);
}

.modal-btn-secondary {
  background: #f8fbfd;
  color: #0f2333;
  border-color: #b8cad6;
}

.modal-btn-secondary:hover {
  background: #eef5fa;
  border-color: #7f9fb2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 35, 51, 0.1);
}

.modal-btn-secondary:active {
  transform: translateY(0);
}

.modal-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, #0a66c2, white 64%);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .custom-modal {
    max-width: 100%;
  }

  .modal-content {
    padding: 24px 16px;
  }

  .modal-buttons {
    gap: 10px;
  }
}

/* Success Notification Overlay */
.notification-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 28, 37, 0.48);
  z-index: 1200;
  padding: 20px;
}

.notification-overlay[hidden] {
  display: none;
}

.notification-card {
  width: min(520px, 96%);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fffa 100%);
  border: 1px solid rgba(39, 174, 96, 0.12);
  box-shadow: 0 24px 66px rgba(3, 41, 25, 0.26);
  padding: 18px 18px;
}

.notification-body {
  display: flex;
  gap: 14px;
  align-items: center;
}

.notification-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.28);
}
.notification-icon-success {
  background: #22c55e;
  color: #ffffff;
}

.notification-icon-error {
  background: #dc2626;
  color: #ffffff;
}

.notification-title {
  display: block;
  font-size: 1.08rem;
  color: #063226;
  margin-bottom: 6px;
}

.notification-message {
  margin: 0;
  color: #134a3b;
  line-height: 1.4;
}

.notification-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.notification-actions .table-btn {
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(115deg, #0d6e6e 0%, #0b8e7f 100%);
  color: #fff;
  border-color: #075858;
}

.notification-actions .table-btn:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body.homepage-page {
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  padding-top: 74px;
}

body.homepage-page * {
  box-sizing: border-box;
  max-width: 100%;
}

body.homepage-page.menu-open {
  overflow: hidden;
}

body.homepage-page img {
  max-width: 100%;
  height: auto;
}

body.homepage-page section[id],
body.homepage-page div[id] {
  scroll-margin-top: 100px;
}

body.homepage-page {
  scroll-padding-top: 100px;
}

body.homepage-page .fixed-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
  transition: none !important;
}

body.homepage-page .hero-image-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

body.homepage-page .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

body.homepage-page .mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(100vw, 420px);
  background-color: #ffffff !important;
  box-shadow: -8px 0 30px rgba(15, 42, 92, 0.18);
  z-index: 10000;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), visibility 0s linear 0.3s;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(1rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #0f2a5c;
  font-family: inherit;
}

body.homepage-page .mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1), visibility 0s;
}

body.homepage-page.menu-open {
  overflow: hidden;
}

body.homepage-page.menu-open .osca-chatbot {
  visibility: hidden;
  pointer-events: none;
}

body.homepage-page .menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background-color: rgba(15, 42, 92, 0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
}

body.homepage-page .menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.homepage-page .mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #0f2a5c;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

body.homepage-page .mobile-menu-header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
}

body.homepage-page .mobile-menu-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #17356f;
  font-size: 24px;
  font-weight: 800;
}

body.homepage-page .mobile-menu-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  object-fit: cover;
}

body.homepage-page .mobile-menu-close {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f2a5c;
  cursor: pointer;
}

body.homepage-page .mobile-menu-close .material-symbols-outlined {
  font-size: 28px;
}

body.homepage-page .mobile-menu-greeting {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f7fc;
  color: #0f2a5c;
}

body.homepage-page .mobile-menu-greeting p {
  margin: 0 0 2px;
  font-size: 20px;
  font-weight: 700;
}

body.homepage-page .mobile-menu-greeting span {
  color: #475569;
  font-size: 16px;
}

body.homepage-page .mobile-menu-actions {
  display: grid;
  gap: 10px;
}

body.homepage-page .mobile-menu-action {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 2px solid #17356f;
  border-radius: 16px;
  text-decoration: none;
}

body.homepage-page .mobile-menu-action-primary {
  background-color: #17356f;
  color: #ffffff;
}

body.homepage-page .mobile-menu-action-secondary {
  background-color: #ffffff;
  color: #0f2a5c;
}

body.homepage-page .mobile-menu-action-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border-radius: 13px;
}

body.homepage-page .mobile-menu-action-icon .material-symbols-outlined {
  font-size: 28px;
}

body.homepage-page .mobile-menu-action-icon-primary {
  background: #c4203a;
  color: #ffffff;
}

body.homepage-page .mobile-menu-action-icon-secondary {
  background: #f4f7fc;
  color: #17356f;
}

body.homepage-page .mobile-menu-action-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

body.homepage-page .mobile-menu-action-copy strong {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

body.homepage-page .mobile-menu-action-copy > span {
  color: inherit;
  font-size: 15px;
  line-height: 1.25;
}

body.homepage-page .mobile-menu-action-primary .mobile-menu-action-copy > span {
  color: #ffffff;
}

body.homepage-page .mobile-menu-action-secondary .mobile-menu-action-copy > span {
  color: #475569;
}

body.homepage-page .mobile-menu-chevron {
  flex: 0 0 auto;
  font-size: 24px;
}

body.homepage-page .mobile-menu-nav {
  display: grid;
  gap: 2px;
}

body.homepage-page .mobile-nav-link > .material-symbols-outlined {
  width: 24px;
  flex: 0 0 24px;
  font-size: 24px;
}

body.homepage-page .mobile-nav-link[aria-current="page"] {
  background: #f4f7fc;
  color: #17356f;
  font-weight: 800;
}

body.homepage-page .mobile-nav-current-dot {
  display: none;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: #c4203a;
}

body.homepage-page .mobile-nav-link[aria-current="page"] .mobile-nav-current-dot {
  display: block;
}

body.homepage-page .mobile-menu-help {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

body.homepage-page .mobile-menu-help h2 {
  margin: 0;
  color: #475569;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body.homepage-page .mobile-menu-help-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.homepage-page .mobile-menu-help-button {
  display: flex;
  min-width: 0;
  min-height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 2px;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  color: #0f2a5c;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

body.homepage-page .mobile-menu-help-button .material-symbols-outlined {
  font-size: 24px;
}

body.homepage-page .mobile-menu-help-directions {
  border-color: #c4203a;
  color: #c4203a;
}

body.homepage-page .mobile-menu-text-size {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: #0f2a5c;
  font-size: 16px;
  font-weight: 700;
}

body.homepage-page .mobile-menu-text-size-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

body.homepage-page .mobile-menu-text-size-button {
  min-width: 48px;
  height: 44px;
  border: 2px solid #17356f;
  border-radius: 12px;
  background: #ffffff;
  color: #0f2a5c;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body.homepage-page .mobile-menu-text-size-button:disabled {
  border-color: #cbd5e1;
  color: #475569;
  opacity: 1;
  cursor: default;
}

body.homepage-page .mobile-menu-text-size-value {
  min-width: 42px;
  color: #475569;
  font-size: 14px;
  text-align: right;
}

body.homepage-page .mobile-nav-link:focus-visible,
body.homepage-page .mobile-menu-action:focus-visible,
body.homepage-page .mobile-menu-help-button:focus-visible,
body.homepage-page .mobile-menu-text-size-button:focus-visible,
body.homepage-page #closeMenuBtn:focus-visible,
body.homepage-page #menuOverlay:focus-visible,
body.homepage-page #hamburgerBtn:focus-visible {
  outline: 3px solid #c4203a;
  outline-offset: 3px;
}

body.homepage-page .nav-link {
  transition: all 0.2s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

body.homepage-page .nav-link-active {
  color: #001f78 !important;
  border-bottom-color: #bc000d !important;
}

body.homepage-page .ticker-content {
  display: inline-flex;
  animation: homepage-ticker 30s linear infinite;
  white-space: nowrap;
  gap: 2rem;
}

body.homepage-page .ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}

body.homepage-page .editorial-shadow {
  box-shadow: 0 18px 48px rgba(9, 31, 56, 0.12);
}

body.homepage-page .about-panel {
  background: linear-gradient(135deg, #f8fcff 0%, #dbe9f7 100%);
  border: 1px solid rgba(0, 31, 120, 0.12);
}

body.homepage-page .about-logo-wrap {
  position: absolute;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1rem;
  background: #ffffff;
  padding: 0.5rem;
  box-shadow: 0 10px 24px rgba(9, 31, 56, 0.15);
  display: grid;
  place-items: center;
}

body.homepage-page .about-logo-shell {
  max-width: 18rem;
  padding: 1rem;
}

body.homepage-page .about-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

body.homepage-page .about-logo-main {
  width: min(92%, 100%);
  height: auto;
  object-fit: contain;
  object-position: center;
}

body.verify-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Plus Jakarta Sans", "Public Sans", sans-serif;
  color: #10273b;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.9) 0 16%, transparent 38%),
    radial-gradient(circle at 90% 18%, rgba(0, 31, 120, 0.14) 0 14%, transparent 36%),
    linear-gradient(175deg, #f6f9fd 0%, #dde8f4 100%);
}

body.verify-page .verify-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.verify-page .verify-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #001f78;
  font-weight: 800;
  letter-spacing: 0.01em;
}

body.verify-page .verify-brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(9, 31, 56, 0.14);
}

body.verify-page .verify-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 31, 120, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: #0f2333;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(9, 31, 56, 0.08);
}

body.verify-page .verify-layout {
  width: min(1180px, calc(100% - 2rem));
  margin: 24px auto 64px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

body.verify-page .verify-panel {
  border-radius: 28px;
  border: 1px solid rgba(0, 31, 120, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 60px rgba(9, 31, 56, 0.12);
  backdrop-filter: blur(14px);
}

body.verify-page .verify-hero-panel {
  min-height: 560px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(234, 241, 250, 0.9) 100%);
}

body.verify-page .verify-eyebrow {
  margin: 0 0 14px;
  color: #bc000d;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 800;
}

body.verify-page .verify-hero-panel h1 {
  margin: 0;
  color: #001f78;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

body.verify-page .verify-hero-panel p,
body.verify-page .verify-copy,
body.verify-page .verify-help,
body.verify-page .verify-result-note {
  color: #3f5467;
  line-height: 1.7;
}

body.verify-page .verify-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

body.verify-page .verify-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 31, 120, 0.08);
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.verify-page .verify-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 12px;
}

body.verify-page .verify-status-dot[data-status="pending"] {
  background: #f59e0b;
}

body.verify-page .verify-status-dot[data-status="under review"] {
  background: #0ea5e9;
}

body.verify-page .verify-status-dot[data-status="in process"] {
  background: #14b8a6;
}

body.verify-page .verify-status-dot[data-status="ready for release"] {
  background: #8b5cf6;
}

body.verify-page .verify-status-dot[data-status="completed"] {
  background: #16a34a;
}

body.verify-page .verify-status-dot[data-status="rejected"] {
  background: #dc2626;
}

body.verify-page .verify-action-panel {
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

body.verify-page .verify-action-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.verify-page .verify-card-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #ffffff;
  padding: 8px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(9, 31, 56, 0.14);
  flex: 0 0 auto;
}

body.verify-page .verify-action-panel h2 {
  margin: 0;
  color: #001f78;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
}

body.verify-page .verify-primary-button {
  border: none;
  border-radius: 16px;
  padding: 16px 22px;
  background: linear-gradient(115deg, #bc000d 0%, #8e1a1a 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(188, 0, 13, 0.24);
}

body.verify-page .verify-primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(188, 0, 13, 0.28);
}

body.verify-page .verify-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

body.verify-page .verify-field-label {
  color: #072338;
  font-weight: 800;
}

body.verify-page .verify-error {
  min-height: 1.2em;
  margin: 0;
  color: #b62323;
  font-weight: 700;
}

body.verify-page .verify-modal {
  position: relative;
}

body.verify-page .verify-modal .modal-content {
  text-align: left;
  padding-top: 46px;
}

body.verify-page .verify-modal .modal-message {
  text-align: left;
}

body.verify-page .verify-modal .modal-buttons {
  flex-direction: row;
}

body.verify-page .verify-close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #eef5fa;
  color: #001f78;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.verify-page .verify-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.verify-page .verify-status-pill[data-status="pending"] {
  background: #fef3c7;
  color: #92400e;
}

body.verify-page .verify-status-pill[data-status="under review"] {
  background: #dbeafe;
  color: #1d4ed8;
}

body.verify-page .verify-status-pill[data-status="in process"] {
  background: #ccfbf1;
  color: #0f766e;
}

body.verify-page .verify-status-pill[data-status="ready for release"] {
  background: #ede9fe;
  color: #5b21b6;
}

body.verify-page .verify-status-pill[data-status="completed"] {
  background: #dcfce7;
  color: #166534;
}

body.verify-page .verify-result-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0 16px;
}

body.verify-page .verify-result-grid div {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #d9e6ef;
  background: #f8fbfd;
}

body.verify-page .verify-result-grid span {
  color: #5a6b7c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.verify-page .verify-result-grid strong {
  color: #001f78;
  font-size: 1.05rem;
}

body.verify-page .verify-result-modal .modal-buttons {
  justify-content: flex-start;
}

body.registration-page {
  min-height: 100dvh;
  margin: 0;
}

.disclaimer-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 24px;
}

.disclaimer-card {
  width: min(100%, 860px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(127, 159, 178, 0.38);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.disclaimer-hero {
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, #0d6e6e 0%, #0b8e7f 100%);
  color: #f6fbff;
}

.disclaimer-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.disclaimer-hero p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.6;
  color: rgba(246, 251, 255, 0.92);
}

.disclaimer-body {
  padding: 28px;
}

.notice-box {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(13, 110, 110, 0.18);
  background: linear-gradient(180deg, #f8fbfd 0%, #eef7fa 100%);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.03rem;
}

.consent-row {
  margin: 22px 0 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(127, 159, 178, 0.4);
}

.consent-row input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.consent-row label {
  margin: 0;
  color: var(--heading);
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 700;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.action-row .primary-btn,
.action-row .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.action-row .primary-btn {
  background: var(--brand);
  color: #ffffff;
}

.action-row .primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.action-row .secondary-btn {
  background: #eef4f8;
  color: var(--heading);
  border: 1px solid rgba(127, 159, 178, 0.45);
}

.action-row .primary-btn:not(:disabled):hover,
.action-row .secondary-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .disclaimer-page {
    padding: 14px;
  }

  .disclaimer-hero,
  .disclaimer-body {
    padding: 20px;
  }

  .action-row {
    flex-direction: column;
    align-items: stretch;
  }
}

body.verify-page .verify-flow {
  width: min(720px, calc(100% - 1.5rem));
  margin: 20px auto 56px;
}

body.verify-page .verify-step {
  position: relative;
  padding: clamp(24px, 4vw, 34px);
}

body.verify-page .verify-step[hidden] {
  display: none;
}

body.verify-page .verify-step-title {
  margin: 0 0 10px;
  color: #122537;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  line-height: 1.05;
}

body.verify-page .verify-actions {
  display: grid;
  gap: 12px;
}

body.verify-page .verify-close-inline {
  top: 14px;
  right: 14px;
}

body.verify-page #application-id-input {
  min-height: 58px;
  border-radius: 14px;
  border: 2px solid #a9bfd3;
  padding: 12px 14px;
  font-size: 1.08rem;
}

body.verify-page #application-id-input:focus-visible {
  outline: 3px solid rgba(10, 102, 194, 0.35);
  outline-offset: 1px;
  border-color: #0a66c2;
}

body.verify-page .verify-select {
  min-height: 58px;
  border-radius: 14px;
  border: 2px solid #a9bfd3;
  padding: 12px 14px;
  font-size: 1.08rem;
  font-family: inherit;
  color: #0f2333;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.2s ease, outline 0.2s ease;
}

body.verify-page .verify-select:focus-visible {
  outline: 3px solid rgba(10, 102, 194, 0.35);
  outline-offset: 1px;
  border-color: #0a66c2;
}

body.verify-page .verify-field-wrapper {
  display: grid;
  gap: 8px;
}

body.verify-page .verify-field-wrapper input {
  min-height: 58px;
  border-radius: 14px;
  border: 2px solid #a9bfd3;
  padding: 12px 14px;
  font-size: 1.08rem;
  font-family: inherit;
  color: #0f2333;
}

body.verify-page .verify-field-wrapper input:focus-visible {
  outline: 3px solid rgba(10, 102, 194, 0.35);
  outline-offset: 1px;
  border-color: #0a66c2;
}

/* Notification Popup Styles */
.notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  animation: fadeIn 0.3s ease;
}



.success-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ffffff 0%, #f8fbfd 100%);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(7, 28, 43, 0.2);
  max-width: 420px;
  width: 90%;
  text-align: center;
  z-index: 1000;
  animation: slideUp 0.4s ease;
}

.success-notification[hidden] {
  display: none;
}

.notification-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.notification-icon .material-symbols-outlined {
  font-size: 56px;
  color: #0d6e6e;
  font-weight: 700;
  font-variation-settings: 'FILL' 1;
}

.notification-title {
  margin: 0 0 12px 0;
  color: #072338;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
}

.notification-message {
  margin: 0 0 24px 0;
  color: #385364;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.notification-button {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #0d6e6e 0%, #094f4f 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(13, 110, 110, 0.25);
}

.notification-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 110, 110, 0.35);
}

.notification-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(13, 110, 110, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

body.verify-page #verify-status-list {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

body.verify-page .verify-status-item.active {
  border-color: rgba(0, 31, 120, 0.24);
  background: linear-gradient(135deg, #ffffff 0%, #edf4fb 100%);
  box-shadow: 0 12px 24px rgba(9, 31, 56, 0.12);
  transform: translateY(-1px);
}

body.verify-page .verify-status-item.active span:last-child {
  color: #001f78;
  font-weight: 800;
}

body.verify-page .verify-status-item.active .verify-status-dot {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

@media (max-width: 960px) {
  body.verify-page .verify-layout {
    grid-template-columns: 1fr;
  }

  body.verify-page .verify-hero-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  body.verify-page .verify-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body.verify-page .verify-flow {
    width: min(720px, calc(100% - 1rem));
  }

  body.verify-page .verify-status-list {
    grid-template-columns: 1fr;
  }

  body.verify-page .verify-modal .modal-buttons {
    flex-direction: column;
  }
}

@keyframes homepage-ticker {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
  body.homepage-page {
    padding-top: 68px;
  }
}

@media (min-width: 1280px) {
  body.homepage-page .hero-image {
    object-position: center 40%;
  }
}

@media (min-width: 1920px) {
  body.homepage-page .hero-image {
    object-fit: cover;
    object-position: center 50%;
  }
}

body.homepage-page .bg-background {
  background-color: #fbf9fb;
}

body.homepage-page .text-on-surface {
  color: #1b1c1d;
}

body.homepage-page .text-primary {
  color: #001f78;
}

body.homepage-page .bg-primary {
  background-color: #001f78;
}

body.homepage-page .border-primary {
  border-color: #001f78;
}

body.homepage-page .text-secondary {
  color: #bc000d;
}

body.homepage-page .bg-secondary {
  background-color: #bc000d;
}

body.homepage-page .text-on-secondary {
  color: #ffffff;
}

body.homepage-page .text-on-primary {
  color: #ffffff;
}

body.homepage-page .text-on-primary-container {
  color: #94a7ff;
}

body.homepage-page .text-on-surface-variant {
  color: #444652;
}

body.homepage-page .bg-primary-container {
  background-color: #1d3795;
}

body.homepage-page .bg-surface {
  background-color: #fbf9fb;
}

body.homepage-page .bg-surface-container-low {
  background-color: #f5f3f5;
}

body.homepage-page .bg-surface-container-high {
  background-color: #e9e7e9;
}

body.homepage-page .bg-surface-container-lowest {
  background-color: #ffffff;
}

body.homepage-page .text-secondary-fixed-dim {
  color: #ffb4aa;
}

body.homepage-page .bg-primary\/10 {
  background-color: rgba(0, 31, 120, 0.1);
}

body.homepage-page .bg-secondary\/10 {
  background-color: rgba(188, 0, 13, 0.1);
}

body.homepage-page .bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}

body.homepage-page .bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}

body.homepage-page .border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2);
}

body.homepage-page .text-on-primary\/90 {
  color: rgba(255, 255, 255, 0.9);
}

body.homepage-page .text-on-primary\/80 {
  color: rgba(255, 255, 255, 0.8);
}

body.homepage-page .text-on-primary\/70 {
  color: rgba(255, 255, 255, 0.7);
}

body.homepage-page .border-primary\/40 {
  border-color: rgba(0, 31, 120, 0.4);
}

body.homepage-page .focus\:ring-primary\/40:focus {
  --tw-ring-color: rgba(0, 31, 120, 0.4);
}

body.homepage-page .hover\:bg-white\/20:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

body.homepage-page .hover\:bg-white\/30:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

body.homepage-page .from-primary\/85 {
  --tw-gradient-from: rgba(0, 31, 120, 0.85);
  --tw-gradient-to: rgba(0, 31, 120, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

body.homepage-page .via-primary\/40 {
  --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 31, 120, 0.4), var(--tw-gradient-to);
}

body.homepage-page .bg-gradient-to-r.from-primary\/85.via-primary\/40.to-transparent {
  background-image: linear-gradient(to right, rgba(0, 31, 120, 0.85), rgba(0, 31, 120, 0.4), rgba(0, 31, 120, 0));
}

/* Submission result notification */
.notification-card {
  width: min(92vw, 560px);
  max-width: 560px;
  padding: 24px;
}

.notification-body {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.notification-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.notification-body > div:last-child {
  flex: 1;
  min-width: 0;
}

.notification-title {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

#notification-message {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-size: 1rem;
}

.notification-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

#notification-close-button {
  min-width: 110px;
}

#duplicate-record-modal {
  max-width: 680px;
  width: calc(100% - 32px);
  padding: 30px 32px;
  border-radius: 18px;
}

#duplicate-record-modal .notification-body {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

#duplicate-record-modal .notification-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

#duplicate-record-title {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 10px;
}

#duplicate-record-modal p {
  margin: 0;
  line-height: 1.55;
  font-size: 1rem;
}

.duplicate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}

#duplicate-update-button,
#duplicate-recover-button,
#duplicate-cancel-button {
  min-height: 54px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 16px;
}

#duplicate-update-button {
  grid-column: 1 / 3;
}

#duplicate-recover-button {
  background: #ffffff;
  color: #0f766e;
  border: 2px solid #0f766e;
}

#duplicate-recover-button:hover {
  background: #f0fdfa;
}

#duplicate-cancel-button {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #94a3b8;
}

#duplicate-cancel-button:hover {
  background: #f8fafc;
}

@media (max-width: 600px) {
  #duplicate-record-modal {
    padding: 24px 20px;
  }

  .duplicate-actions {
    grid-template-columns: 1fr;
  }

  #duplicate-update-button {
    grid-column: auto;
  }
}

.duplicate-helper {
  margin-top: 10px !important;
  font-size: 0.9rem !important;
  color: #64748b;
}

/* =====================================================
   OSCA VIRTUAL ASSISTANT
   ===================================================== */

.osca-chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
}

.chatbot-toggle {
  position: relative;
  width: 64px;
  height: 64px;
  margin-left: auto;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(9, 79, 79, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(9, 79, 79, 0.38);
}

.chatbot-toggle .material-symbols-outlined {
  position: absolute;
  font-size: 30px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chatbot-toggle-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.osca-chatbot.chat-open .chatbot-toggle-chat {
  opacity: 0;
  transform: rotate(90deg);
}

.osca-chatbot.chat-open .chatbot-toggle-close {
  opacity: 1;
  transform: rotate(0);
}

.chatbot-window {
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 120px));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(13, 110, 110, 0.18);
  border-radius: 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(7, 35, 56, 0.24);
}

.chatbot-window[hidden] {
  display: none;
}

.chatbot-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #ffffff;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
}

.chatbot-avatar .material-symbols-outlined {
  font-size: 25px;
}

.chatbot-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.chatbot-header p {
  margin: 3px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
}

.chatbot-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7df0a5;
  box-shadow: 0 0 0 3px rgba(125, 240, 165, 0.14);
}

.chatbot-icon-button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
}

.chatbot-icon-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.chatbot-messages {
  min-height: 0;
  padding: 18px 14px;
  overflow-y: auto;
  background: linear-gradient(180deg, #f7fbfc, #ffffff);
  scroll-behavior: smooth;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

.chat-message-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.chat-message-avatar .material-symbols-outlined {
  font-size: 18px;
}

.chat-message-content {
  max-width: 80%;
}

.osca-chatbot .bot-message {
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.osca-chatbot .bot-message .chat-message-content {
  max-width: 82%;
  width: 82%;
  align-self: flex-start;
  margin-left: 0;
  margin-right: auto;
  text-align: left !important;
}

.osca-chatbot .bot-message .chat-bubble {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: left !important;
}

.osca-chatbot .bot-message .chat-message-content .chat-bubble {
  text-align: left !important;
}

.chat-bubble {
  padding: 11px 13px;
  border: 1px solid #d8e4e9;
  border-radius: 16px 16px 16px 5px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.user-message {
  justify-content: flex-end;
}

.user-message .chat-message-avatar {
  display: none;
}

.user-message .chat-message-content {
  max-width: 82%;
}

.user-message .chat-bubble {
  border: none;
  border-radius: 16px 16px 5px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
}

.chatbot-typing {
  padding: 8px 16px 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  background: #ffffff;
}

.chatbot-typing[hidden] {
  display: none;
}

.chatbot-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: chatbotTyping 1.2s infinite ease-in-out;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.chatbot-typing small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.75rem;
}

@keyframes chatbotTyping {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chatbot-input-area {
  padding: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-top: 1px solid #e1e9ed;
  background: #ffffff;
}

#chatbot-input {
  min-height: 46px;
  max-height: 120px;
  padding: 11px 13px;
  resize: none;
  border: 1.5px solid #bfd0d9;
  border-radius: 14px;
  background: #f9fbfc;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.35;
}

#chatbot-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.12);
}

.chatbot-send-button {
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  border: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  cursor: pointer;
}

.chatbot-send-button:hover {
  filter: brightness(1.05);
}

.chatbot-send-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chatbot-disclaimer {
  padding: 0 12px 10px;
  background: #ffffff;
  color: #71828c;
  text-align: center;
  font-size: 0.7rem;
}

.chat-message-actions {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-speak-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.chat-speak-button:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.chat-speak-button .material-symbols-outlined {
  font-size: 19px;
}

.chatbot-suggestions {
  margin: 4px 0 18px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.chatbot-suggestions-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.chatbot-suggestion {
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid rgba(13, 110, 110, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: var(--brand-dark);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.chatbot-suggestion:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateX(2px);
}

.chatbot-suggestion .material-symbols-outlined {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 18px;
}

.chatbot-suggestion:focus-visible {
  outline: 3px solid rgba(13, 110, 110, 0.18);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .osca-chatbot {
    right: 14px;
    bottom: 14px;
  }

  .chatbot-window {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 88px;
    width: auto;
    height: min(620px, calc(100dvh - 110px));
    margin: 0;
    border-radius: 18px;
  }

  .chatbot-toggle {
    width: 58px;
    height: 58px;
  }

  .chatbot-suggestions {
    margin-left: 38px;
    margin-right: 4px;
  }
}

/* Unified OSCA visual system across the existing pages. */
:root {
  --bg-main: #f4f7fa;
  --bg-wash: #f4f7fa;
  --card: #ffffff;
  --card-soft: #f8fafc;
  --line: #d8dee8;
  --line-strong: #aab5c5;
  --text: #26364b;
  --muted: #718096;
  --heading: #0f2547;
  --brand: #0f2547;
  --brand-dark: #0b1c37;
  --brand-soft: #e8edf4;
  --danger: #e63946;
  --focus: #31588a;
  --shadow: 0 18px 50px rgba(15, 37, 71, 0.1);
}

body:not(.homepage-page) {
  background: #f4f7fa;
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
}

/* Homepage */
body.homepage-page {
  --home-navy: #0f2547;
  --home-red: #e63946;
  background: #f4f7fa;
  color: #26364b;
  font-family: "Plus Jakarta Sans", "Public Sans", sans-serif;
}

body.homepage-page .fixed-header {
  border-bottom: 1px solid #e8ecf2;
  box-shadow: 0 5px 22px rgba(15, 37, 71, 0.07) !important;
}

body.homepage-page .fixed-header nav {
  min-height: 78px;
}

body.homepage-page .fixed-header a,
body.homepage-page .fixed-header span,
body.homepage-page .footer-brand,
body.homepage-page footer h5 {
  color: #0f2547 !important;
}

body.homepage-page .nav-link:hover,
body.homepage-page .nav-link-active {
  color: #e63946 !important;
  border-bottom-color: #e63946 !important;
}

body.homepage-page .hero-image-container::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 27, 57, 0.9) 0%, rgba(8, 27, 57, 0.72) 42%, rgba(8, 27, 57, 0.12) 100%);
  content: "";
}

body.homepage-page .hero-image-container > .absolute {
  display: none;
}

body.homepage-page .hero-image {
  object-position: center 40%;
}

body.homepage-page .about-panel {
  border: 1px solid #e3e8ef;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f4f7fb);
  box-shadow: 0 18px 50px rgba(15, 37, 71, 0.1);
}

body.homepage-page #benefits > div {
  border: 1px solid #e3e8ef;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 37, 71, 0.08);
}

body.homepage-page #benefits article {
  border-color: #e1e7ef;
  border-radius: 16px;
  background: #f8fafc;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.homepage-page #benefits article:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 37, 71, 0.09);
}

body.homepage-page #contact {
  background: #eef2f7;
}

body.homepage-page .bg-secondary,
body.homepage-page .text-secondary,
body.homepage-page .border-secondary {
  color: #e63946;
  border-color: #e63946;
}

body.homepage-page .bg-secondary {
  background-color: #e63946;
  color: #fff;
}

body.homepage-page .text-primary,
body.homepage-page .text-\[\#001f78\],
body.homepage-page .bg-primary,
body.homepage-page .border-\[\#001f78\] {
  color: #0f2547;
  border-color: #0f2547;
}

body.homepage-page .bg-primary {
  background-color: #0f2547;
  color: #fff;
}

body.homepage-page footer {
  background: #f4f7fa;
  border-top-color: #0f2547;
}

body.homepage-page .osca-chatbot .chatbot-toggle,
body.homepage-page .osca-chatbot .chatbot-send-button,
body.homepage-page .osca-chatbot .chatbot-header {
  background: linear-gradient(135deg, #0f2547, #183963);
}

body.homepage-page .osca-chatbot .chatbot-suggestion {
  border-color: rgba(15, 37, 71, 0.2);
  color: #0f2547;
}

/* Registration consent and instructions */
body.registration-page {
  background: #f4f7fa;
}

body.registration-page .disclaimer-card {
  max-width: 980px;
  border: 1px solid #e1e7ef;
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(15, 37, 71, 0.1);
}

body.registration-page .disclaimer-hero {
  padding: clamp(26px, 4vw, 42px);
  background: #0f2547;
}

body.registration-page .disclaimer-hero h1 {
  letter-spacing: -0.045em;
}

body.registration-page .notice-box {
  border-color: #e1e7ef;
  border-radius: 14px;
  background: #f8fafc;
}

body.registration-page .consent-row,
body.registration-page .registration-guide {
  border-color: #e1e7ef;
  border-radius: 14px;
}

body.registration-page .registration-guide {
  margin-top: 28px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  background: #f8fafc !important;
}

body.registration-page .registration-guide > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.registration-page .registration-guide h2,
body.registration-page .registration-guide h3 {
  color: #0f2547;
}

body.registration-page .registration-guide article {
  padding: 18px;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #fff;
}

body.registration-page .registration-guide article p {
  margin: 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.6;
}

body.registration-page .action-row .primary-btn {
  background: #e63946;
}

body.registration-page .action-row .secondary-btn {
  border-color: #d8dee8;
  background: #fff;
}

/* Application form section rail and form card */
body.application-form-page {
  --form-navy: #102754;
  --form-red: #e43b50;
  --form-muted: #71839d;
  background: #edf2f8;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

body.application-form-page .page-frame {
  --page-pad: clamp(18px, 3vw, 34px);
  width: min(100% - 48px, 1800px);
  max-width: 1800px;
  margin: clamp(18px, 3vw, 42px) auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
}

body.application-form-page .form-header {
  width: 100%;
  margin: 0 0 36px;
  padding: 0;
}

body.application-form-page .header-text p {
  color: #b9c8df;
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  letter-spacing: 0.16em;
  line-height: 1.55;
  text-align: left;
}

body.application-form-page .header-bottom {
  min-height: 0;
  justify-content: flex-start;
  margin: 26px 0 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

body.application-form-page .header-bottom::before {
  display: none;
}

body.application-form-page .logo-box {
  display: none;
}

body.application-form-page .title-bar {
  max-width: 390px;
  padding: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.1vw, 2.75rem);
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-align: left;
  text-transform: none;
}

body.application-form-page .form-wrapper {
  display: grid;
  grid-template-columns: minmax(340px, 0.68fr) minmax(0, 1.32fr);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  gap: 0;
  margin: 0 auto 32px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1e6ed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 37, 71, 0.12);
}

body.application-form-page .application-steps {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4vw, 54px) clamp(24px, 3.5vw, 48px);
  color: #fff;
  background: var(--form-navy);
}

body.application-form-page .application-steps::after {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  left: -180px;
  bottom: -190px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 35px rgba(255,255,255,.10);
  pointer-events: none;
}

body.application-form-page .steps-kicker {
  color: #b8c7df;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

body.application-form-page .steps-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 30px 0 18px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  color: #ff7b84;
}

body.application-form-page .steps-mark .material-symbols-outlined {
  font-size: 27px;
}

body.application-form-page .application-steps h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

body.application-form-page .steps-nav {
  display: grid;
  gap: 10px;
  margin-top: 34px;
  position: relative;
  z-index: 1;
}

body.application-form-page .steps-nav a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #d8e1ef;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

body.application-form-page .steps-nav a span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

body.application-form-page .steps-nav a:hover,
body.application-form-page .steps-nav a:focus-visible {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

body.application-form-page .application-form-card {
  min-width: 0;
  padding: clamp(28px, 4vw, 64px);
  background: #fff;
}

body.application-form-page .section-block {
  margin: 0 0 28px;
  padding: 0 0 30px;
  border: 0;
  border-bottom: 1px solid #e7ebf0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 20px;
}

body.application-form-page .section-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

body.application-form-page .section-block h2 {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #0f2547;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

body.application-form-page label,
body.application-form-page .group-label,
body.application-form-page .consent-title {
  color: #243751;
  font-size: 0.91rem;
  font-weight: 700;
}

body.application-form-page input:not([type="checkbox"]),
body.application-form-page select,
body.application-form-page textarea {
  min-height: 54px;
  border: 1px solid #d5deeb;
  border-radius: 10px;
  background: #fbfcfe;
  color: #26364b;
  font-size: 0.98rem;
}

body.application-form-page input:focus-visible,
body.application-form-page select:focus-visible,
body.application-form-page textarea:focus-visible {
  border-color: #31588a;
  outline-color: rgba(49, 88, 138, 0.3);
  box-shadow: 0 0 0 3px rgba(49, 88, 138, 0.11);
}

body.application-form-page input[type="checkbox"] {
  accent-color: #e63946;
}

body.application-form-page .btn.submit {
  border-color: #e63946;
  background: #e63946;
}

body.application-form-page .btn.cancel {
  border-color: #d8dee8;
  background: #fff;
  color: #526176;
}

/* Status lookup */
body.verify-page {
  background: #f4f7fa;
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
}

body.verify-page .verify-header {
  border-bottom: 1px solid #e1e7ef;
  background: rgba(255, 255, 255, 0.96);
}

body.verify-page .verify-panel {
  border: 1px solid #e1e7ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 37, 71, 0.1);
}

body.verify-page .verify-primary-button {
  border-radius: 9px;
  background: #e63946;
}

body.verify-page .verify-primary-button:hover {
  background: #cf2f3b;
}

body.verify-page .verify-close-button {
  border-radius: 10px;
}

/* Responsive layout */
@media (max-width: 760px) {
  body.registration-page .registration-guide > div {
    grid-template-columns: 1fr;
  }

  body.application-form-page .page-frame {
    width: min(100% - 28px, 620px);
    margin: 18px auto;
    padding: 0;
  }

  body.application-form-page .form-header { margin-bottom: 24px; }

  body.application-form-page .form-wrapper {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  body.application-form-page .application-steps {
    padding: 24px 22px;
  }

  body.application-form-page .header-bottom { margin-top: 18px; }
  body.application-form-page .title-bar { font-size: clamp(1.55rem, 6vw, 2.2rem); }

  body.application-form-page .steps-mark {
    display: none;
  }

  body.application-form-page .application-steps h1 {
    margin-top: 12px;
  }

  body.application-form-page .steps-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 16px;
  }

  body.application-form-page .steps-nav a {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    padding: 7px 4px;
    font-size: 0.68rem;
  }

  body.application-form-page .steps-nav a span {
    width: 26px;
    height: 26px;
  }

  body.application-form-page .application-form-card {
    padding: 28px 22px;
  }
}

@media (max-width: 540px) {
  body.application-form-page .page-frame { width: 100%; margin: 0; }
  body.application-form-page .form-header { margin: 0 0 24px; }
  body.application-form-page .header-text { padding: 0; }
  body.application-form-page .header-bottom { margin-top: 17px; border-radius: 0; }
  body.application-form-page .form-wrapper { border-radius: 0; }
  body.application-form-page .application-form-card { padding: 26px 20px; }
  body.application-form-page .steps-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Three concise application steps with clear forward and back controls. */
body.application-form-page .form-step-panel[hidden] { display: none !important; }
body.application-form-page .form-step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: #7789a2;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
}
body.application-form-page .form-step-heading > span:first-child::after {
  display: inline-block;
  width: 30px;
  height: 1px;
  margin: 0 0 3px 10px;
  background: var(--form-red);
  content: "";
}
body.application-form-page .form-required-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: #8492a6;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: 0;
}
body.application-form-page .form-required-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--form-red);
}
body.application-form-page .form-step-panel > .section-block h2::before { display: none !important; }
body.application-form-page .form-step-panel > .section-block h2::after {
  height: 4px;
  margin-top: 17px;
  background: linear-gradient(90deg, var(--form-red) 0 34%, #e4e9f0 34%);
}
body.application-form-page .form-step-panel[data-step="1"] > .section-block h2::after {
  background: linear-gradient(90deg, var(--form-red) 0 67%, #e4e9f0 67%);
}
body.application-form-page .form-step-panel[data-step="2"] > .section-block h2::after {
  background: var(--form-red);
}
body.application-form-page .form-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 24px;
  border-top: 1px solid #e4e9f0;
}
body.application-form-page .form-step-required {
  color: #8492a6;
  font-size: .88rem;
}
body.application-form-page .form-step-back,
body.application-form-page .form-step-next {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}
body.application-form-page .form-step-next {
  margin-left: auto;
  background: #183d7d;
  color: #fff;
  box-shadow: 0 12px 24px rgba(16, 39, 84, .16);
}
body.application-form-page .form-step-next:hover { background: #102d62; }
body.application-form-page .form-step-back {
  border-color: #d8e0ea;
  background: #fff;
  color: #465a75;
}
body.application-form-page .steps-nav a.is-current {
  background: rgba(255,255,255,.08);
  color: #fff;
}
body.application-form-page .steps-nav a.is-current span {
  border-color: var(--form-red);
  background: var(--form-red);
  box-shadow: 0 0 0 5px rgba(230,57,70,.2);
}
@media (max-width: 540px) {
  body.application-form-page .form-step-heading { margin-bottom: 14px; }
  body.application-form-page .form-step-actions { margin-top: 16px; padding-top: 18px; }
  body.application-form-page .form-step-next,
  body.application-form-page .form-step-back { min-height: 48px; padding: 0 17px; }
}

/* Form type and controls tuned to the supplied application reference. */
body.application-form-page :not(.material-symbols-outlined) {
  font-family: "Plus Jakarta Sans", Arial, sans-serif !important;
}
body.application-form-page .section-block h2 {
  color: #102754;
  font-size: clamp(1.65rem, 2.25vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.055em;
}
body.application-form-page label,
body.application-form-page .group-label,
body.application-form-page .consent-title {
  color: #203653;
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
body.application-form-page .field {
  gap: 9px;
}
body.application-form-page input:not([type="checkbox"]),
body.application-form-page select,
body.application-form-page textarea {
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: #fbfcfe;
  color: #213550;
  font-size: 1rem;
  font-weight: 400;
  box-shadow: inset 0 1px 2px rgba(20, 43, 77, .025);
}
body.application-form-page textarea { min-height: 110px; padding: 14px 16px; }
body.application-form-page input:not([type="checkbox"])::placeholder,
body.application-form-page textarea::placeholder {
  color: #94a2b6;
  opacity: 1;
}
body.application-form-page input:not([type="checkbox"]):focus,
body.application-form-page select:focus,
body.application-form-page textarea:focus {
  border-color: #8298b7;
  outline: 3px solid rgba(49, 88, 138, .12);
  box-shadow: none;
}
body.application-form-page .field small {
  color: #8190a5;
  font-size: .86rem;
  line-height: 1.45;
}
body.application-form-page .row { gap: 18px; margin-bottom: 18px; }
@media (max-width: 760px) {
  body.application-form-page input:not([type="checkbox"]),
  body.application-form-page select,
  body.application-form-page textarea { min-height: 54px; font-size: .98rem; }
}

/* Six-section application layout from the latest reference. */
body.application-form-page .page-frame > .form-header {
  margin: 0 auto 22px;
  text-align: center;
}
body.application-form-page .page-frame > .form-header .header-text p {
  color: #667993;
  text-align: center;
  font-size: .82rem;
  letter-spacing: .1em;
}
body.application-form-page .page-frame > .form-header .header-text p + p {
  color: #102754;
  font-size: 1rem;
  font-weight: 800;
}
body.application-form-page .page-frame > .form-header .header-bottom {
  width: 100%;
  min-height: 64px;
  justify-content: center;
  margin: 12px 0 0;
  padding: 10px 100px;
  border-radius: 15px;
  background: linear-gradient(105deg, #142e61, #315b9b);
  box-shadow: 0 12px 28px rgba(16, 39, 84, .16);
}
body.application-form-page .page-frame > .form-header .logo-box {
  display: grid;
  left: 18px;
  width: 64px;
  height: 64px;
  padding: 4px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
}
body.application-form-page .page-frame > .form-header .title-bar {
  max-width: none;
  color: #fff;
  font-size: clamp(.95rem, 1.35vw, 1.25rem);
  font-weight: 800;
  letter-spacing: .015em;
  text-align: center;
  text-transform: uppercase;
}
body.application-form-page .form-wrapper {
  grid-template-columns: minmax(280px, .32fr) minmax(0, 1fr);
}
body.application-form-page .application-form-card { padding: clamp(24px, 3vw, 44px); }
body.application-form-page .application-steps {
  padding: 32px clamp(18px, 2vw, 30px);
}
body.application-form-page .steps-mark { margin: 8px 0 22px; }
body.application-form-page .steps-nav {
  gap: 8px;
  margin-top: 0;
}
body.application-form-page .steps-nav a {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 62px;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #d4deed;
  font-size: .9rem;
  font-weight: 750;
}
body.application-form-page .steps-nav a span {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.08);
  font-size: .78rem;
}
body.application-form-page .steps-nav a small {
  color: #9cacc3;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
}
body.application-form-page .steps-nav a.is-current {
  background: #fff;
  color: #142e61;
}
body.application-form-page .steps-nav a.is-current small { color: #e43b50; }
body.application-form-page .steps-nav a.is-current span {
  border-color: #e43b50;
  background: #e43b50;
  color: white;
  box-shadow: none;
}
body.application-form-page .form-side-progress {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #d5dfef;
  font-size: .82rem;
}
body.application-form-page .form-side-progress[hidden] { display: none; }
body.application-form-page .form-side-progress-track {
  height: 5px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.17);
}
body.application-form-page .form-side-progress-track span {
  display: block;
  width: 17%;
  height: 100%;
  border-radius: inherit;
  background: #e43b50;
  transition: width .2s ease;
}
body.application-form-page .form-privacy-note {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding: 14px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #d4deed;
  font-size: .8rem;
  line-height: 1.5;
}
body.application-form-page .form-privacy-note .material-symbols-outlined { color: #ff7b84; }
body.application-form-page .form-privacy-note strong { color: #fff; }
body.application-form-page .form-privacy-note p { margin: 4px 0 0; }
body.application-form-page .form-step-panel { min-width: 0; }
body.application-form-page .form-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 24px;
}
body.application-form-page .form-progress span {
  height: 5px;
  border-radius: 99px;
  background: #e4e9f0;
  transition: background .2s ease;
}
body.application-form-page .form-progress span.is-complete { background: #e43b50; }
body.application-form-page .form-step-heading { margin: 0 0 16px; color: #102754; }
body.application-form-page .form-step-heading > span:first-child::after { display: none; }
body.application-form-page .form-step-total::before { content: "/ "; }
body.application-form-page .form-required-legend { margin-left: auto; }
body.application-form-page .form-step-panel > .section-block {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid #dfe7f2;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,39,84,.045);
}
body.application-form-page .form-step-panel > .section-block h2 {
  margin: 0 0 20px;
  padding: 15px 18px;
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #eef2fb;
  color: #142e61;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.025em;
}
body.application-form-page .form-step-panel > .section-block h2::after { display: none; }
body.application-form-page .form-step-panel[data-step="0"] .row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.application-form-page .form-step-panel[data-step="0"] .row.two-thirds { grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); }
body.application-form-page .form-step-panel[data-step="0"] .row.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
body.application-form-page .form-step-panel[data-step="1"] .table-wrap { border: 1px solid #dfe7f2; border-radius: 12px; }
body.application-form-page .form-step-actions { margin-top: 18px; padding-top: 20px; }
body.application-form-page .checkbox-group {
  padding: 16px;
  border-color: #e2eaf4;
  border-radius: 13px;
  background: #f8faff;
}
body.application-form-page .checkbox-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.application-form-page .check-option {
  min-height: 48px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  background: #fff;
  color: #334762;
  font-size: .9rem;
}
body.application-form-page .check-option input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex-basis: 22px;
  accent-color: #183d7d;
}
@media (max-width: 760px) {
  body.application-form-page .page-frame > .form-header .header-bottom { padding: 10px 74px; }
  body.application-form-page .page-frame > .form-header .logo-box { left: 8px; width: 54px; height: 54px; }
  body.application-form-page .form-wrapper { grid-template-columns: 1fr; }
  body.application-form-page .application-steps { padding: 22px; }
  body.application-form-page .steps-mark { display: none; }
  body.application-form-page .steps-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.application-form-page .steps-nav a { grid-template-columns: 34px minmax(0,1fr); min-height: 54px; font-size: .76rem; }
  body.application-form-page .steps-nav a small { grid-column: 2; margin-top: -9px; }
  body.application-form-page .steps-nav a span { width: 32px; height: 32px; }
  body.application-form-page .form-privacy-note { margin-top: 18px; }
  body.application-form-page .form-step-panel[data-step="0"] .row.three,
  body.application-form-page .form-step-panel[data-step="0"] .row.five { grid-template-columns: 1fr; }
  body.application-form-page .form-step-panel > .section-block { padding: 14px; }
  body.application-form-page .checkbox-options { grid-template-columns: 1fr; }
}

body.homepage-page {
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  font-feature-settings: "zero" 0;
  font-variant-numeric: lining-nums;
  padding-top: 78px;
}

body.homepage-page .home-brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

body.homepage-page #home h1,
body.homepage-page #about h2,
body.homepage-page #benefits h2,
body.homepage-page #contact h2 {
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
}

/* Homepage composition matched to the supplied reference. */
body.homepage-page .fixed-header nav {
  min-height: 72px;
  max-width: 1280px;
}

body.homepage-page .home-brand-logo {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 11px;
}

body.homepage-page .fixed-header .nav-link {
  padding: 7px 0;
  color: #5e6c82 !important;
  font-size: 0.9rem;
  font-weight: 700;
}

body.homepage-page .fixed-header .nav-link:hover,
body.homepage-page .fixed-header .nav-link-active {
  color: #0f2547 !important;
  border-bottom-color: #e63946 !important;
}

body.homepage-page .fixed-header .home-header-cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid #0f2557;
  border-radius: 6px;
  background: #0f2557;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body.homepage-page .fixed-header .home-header-cta:hover {
  border-color: #0b1d43;
  background: #0b1d43;
}

body.homepage-page .fixed-header .home-header-cta span {
  color: #fff !important;
  font-size: 16px;
}

body.homepage-page #home {
  min-height: max(500px, min(760px, calc(100svh - 100px)));
  height: auto;
}

body.homepage-page .hero-image {
  object-position: center 42%;
}

body.homepage-page .hero-image-container::after {
  background: linear-gradient(90deg, rgba(7, 25, 57, 0.94) 0%, rgba(7, 25, 57, 0.78) 38%, rgba(7, 25, 57, 0.36) 70%, rgba(7, 25, 57, 0.12) 100%), linear-gradient(0deg, rgba(7, 25, 57, 0.4), transparent 45%);
}

body.homepage-page #home > .relative.z-10 {
  max-width: 1280px;
  padding-top: 62px;
  padding-bottom: 62px;
}

body.homepage-page #home h1 {
  max-width: 760px;
  font-size: clamp(3.6rem, 7.4vw, 6.7rem);
  line-height: 0.97;
  letter-spacing: -0.065em;
}

body.homepage-page #home h1 span {
  color: #ffd5d8;
}

body.homepage-page #home > .relative.z-10 > div > span:first-child {
  color: #ff8991;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.72rem;
}

body.homepage-page #home p {
  max-width: 560px;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

body.homepage-page #home a {
  min-height: 48px;
  border-radius: 7px;
  padding: 12px 18px;
  font-size: 0.9rem;
}

body.homepage-page #about {
  max-width: 1280px;
  padding-top: clamp(66px, 9vw, 120px);
  padding-bottom: clamp(66px, 9vw, 120px);
}

body.homepage-page .about-panel {
  gap: clamp(36px, 7vw, 100px);
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.homepage-page .about-panel > div:first-child h2 {
  max-width: 620px;
  margin-bottom: 0.8em;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

body.homepage-page .about-panel > div:first-child p {
  color: #6b778b;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.8;
}

body.homepage-page .about-logo-shell {
  border: 1px solid #e4e9f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(15, 37, 71, 0.1);
}

body.homepage-page #benefits {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(64px, 8vw, 110px) max(24px, calc((100vw - 1280px) / 2));
  background: #f1f4f8;
}

body.homepage-page #benefits > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.homepage-page #benefits h2 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

body.homepage-page #benefits > div > p {
  max-width: 700px;
  margin-bottom: 42px;
  color: #6b778b;
  font-size: 1.05rem;
  line-height: 1.75;
}

body.homepage-page #benefits .grid {
  display: block;
}

body.homepage-page #benefits article {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: 30px;
  padding: 25px 8px;
  border: 0;
  border-top: 1px solid #d6deea;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.homepage-page #benefits article:hover {
  transform: none;
  box-shadow: none;
}

body.homepage-page #benefits article h3 {
  margin: 0;
  font-size: 1.2rem;
}

body.homepage-page #benefits article p {
  margin: 0;
  color: #68778e;
  font-size: 0.98rem;
  line-height: 1.65;
}

body.homepage-page #contact {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(66px, 9vw, 120px) max(24px, calc((100vw - 1280px) / 2));
  background: #fff;
}

body.homepage-page #contact > div {
  max-width: 1280px;
  margin: 0 auto;
}

body.homepage-page #contact h2 {
  max-width: 560px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

body.homepage-page #contact > div > div:last-child {
  border-radius: 16px;
}

body.homepage-page .homepage-footer {
  position: relative;
  overflow: hidden;
  padding: 0 clamp(22px, 8vw, 150px);
  background: #0f2a5c;
  color: #fff;
  min-height: 78px;
  display: flex;
  align-items: center;
}

body.homepage-page .homepage-footer-inner {
  width: 100%;
  max-width: 1660px;
  margin: 0 auto;
  padding: 8px 80px 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

body.homepage-page .homepage-footer-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

body.homepage-page .homepage-footer-nav a {
  min-height: 44px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
}

body.homepage-page .homepage-footer-nav a:hover,
body.homepage-page .homepage-footer-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.homepage-page .homepage-footer-nav .material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  color: #ffb3c0;
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  font-variation-settings: "FILL" 0;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

body.homepage-page .homepage-footer-copy {
  flex: 0 1 360px;
  margin: 0;
  color: #d6e0f3 !important;
  font-family: "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

body.homepage-page .homepage-footer a:focus-visible,
body.homepage-page .homepage-footer button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 799px) {
  body.homepage-page .homepage-footer-inner {
    padding: 8px 76px 12px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  body.homepage-page .homepage-footer-nav {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: clamp(8px, 3vw, 18px);
  }

  body.homepage-page .homepage-footer-nav a {
    min-width: 0;
    gap: 4px;
    font-size: 13px;
    white-space: nowrap;
  }

  body.homepage-page .homepage-footer-nav .material-symbols-outlined {
    flex-basis: 16px;
    font-size: 16px;
  }

  body.homepage-page .homepage-footer-copy {
    flex-basis: auto;
    max-width: 100%;
    font-size: 12px;
    text-align: left;
  }
}

@media (max-width: 360px) {
  body.homepage-page .homepage-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  body.homepage-page .homepage-footer-inner {
    padding-right: 0;
  }

  body.homepage-page .homepage-footer-nav {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  body.homepage-page {
    padding-top: 72px;
  }

  body.homepage-page #home {
    min-height: min(740px, calc(100svh - 72px));
    height: auto;
  }

  body.homepage-page #home > .relative.z-10 {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  body.homepage-page #home h1 {
    font-size: clamp(3.2rem, 12vw, 5.4rem);
  }

  body.homepage-page #about .about-panel > div,
  body.homepage-page #benefits article {
    grid-template-columns: 1fr;
  }

  body.homepage-page #benefits article {
    gap: 8px;
  }
}

body.homepage-page #stories {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(68px, 8vw, 112px) 24px 38px;
  background: #0f2547;
  color: #fff;
}

body.homepage-page .stories-inner {
  width: min(100%, 1280px);
  margin: 0 auto;
}

body.homepage-page .stories-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 35px;
}

body.homepage-page .stories-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #f1747d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

body.homepage-page .stories-kicker::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

body.homepage-page .stories-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

body.homepage-page .stories-aside {
  width: min(100%, 400px);
  padding-bottom: 5px;
}

body.homepage-page .stories-aside p {
  margin: 0 0 18px;
  color: rgba(233, 239, 252, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

body.homepage-page .stories-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(225, 233, 249, 0.57);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.homepage-page .stories-note::before {
  width: 17px;
  height: 1px;
  background: #e63946;
  content: "";
}

body.homepage-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 230px 230px 245px;
  gap: 12px;
}

body.homepage-page .gallery-tile {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #243a62;
  isolation: isolate;
}

body.homepage-page .gallery-tile-1 {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
}

body.homepage-page .gallery-tile-2 {
  grid-column: 8 / -1;
  grid-row: 1 / 2;
}

body.homepage-page .gallery-tile-3 {
  grid-column: 8 / -1;
  grid-row: 2 / 3;
}

body.homepage-page .gallery-tile-4 {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
}

body.homepage-page .gallery-tile img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 300ms ease;
}

body.homepage-page .gallery-tile:hover img {
  filter: saturate(1.08);
  transform: scale(1.045);
}

body.homepage-page .gallery-tile::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 15, 38, 0.88), rgba(4, 15, 38, 0.08) 72%);
  content: "";
}

body.homepage-page .gallery-tile figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 23px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

body.homepage-page .gallery-tile figcaption span {
  color: #ff98a0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

body.homepage-page .gallery-tile figcaption strong {
  max-width: 80%;
  color: #fff;
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

body.homepage-page .gallery-tile-1 figcaption strong {
  font-size: clamp(1.6rem, 2.7vw, 2.45rem);
}

body.homepage-page .gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  color: rgba(226, 234, 250, 0.66);
  font-size: 0.76rem;
}

body.homepage-page .gallery-footer > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

body.homepage-page .gallery-footer i {
  width: 28px;
  height: 1px;
  background: #e63946;
}

body.homepage-page .osm-map-frame {
  display: flex;
  min-width: 0;
  min-height: 450px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 37, 71, 0.1);
}

body.homepage-page .osm-map-frame iframe {
  display: block;
  width: 100%;
  min-height: 405px;
  flex: 1 1 auto;
  border: 0;
}

body.homepage-page .osm-map-frame > a {
  display: block;
  padding: 13px 16px;
  color: #0f2547;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

body.homepage-page .osm-map-frame > a:hover {
  color: #e63946;
}

@media (max-width: 760px) {
  body.homepage-page #stories {
    padding: 62px 20px 30px;
  }

  body.homepage-page .stories-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  body.homepage-page .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 190px 190px;
    gap: 9px;
  }

  body.homepage-page .gallery-tile-1 {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
  }

  body.homepage-page .gallery-tile-2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  body.homepage-page .gallery-tile-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  body.homepage-page .gallery-tile-4 {
    grid-column: 1 / -1;
    grid-row: 3 / 4;
  }

  body.homepage-page .gallery-tile figcaption {
    right: 13px;
    bottom: 14px;
    left: 13px;
  }

  body.homepage-page .gallery-tile figcaption strong,
  body.homepage-page .gallery-tile-1 figcaption strong {
    max-width: 100%;
    font-size: 1.05rem;
  }

  body.homepage-page .osm-map-frame {
    min-height: 360px;
  }

  body.homepage-page .osm-map-frame iframe {
    min-height: 315px;
  }
}

body.homepage-page {
  padding-top: 60px;
}

body.homepage-page .fixed-header nav {
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-right: clamp(20px, 5.6vw, 90px);
  padding-left: clamp(20px, 5.6vw, 90px);
}

body.homepage-page .home-brand-emblem {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  object-fit: contain;
}

body.homepage-page .home-brand-name {
  color: #0f2547 !important;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

body.homepage-page .home-brand-name span {
  color: #e63946 !important;
}

body.homepage-page .fixed-header .nav-link {
  font-size: 0.9rem;
}

body.homepage-page .fixed-header .home-header-cta {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.86rem;
}

body.homepage-page #home {
  min-height: max(500px, min(760px, calc(100svh - 100px)));
}

body.homepage-page #home > .relative.z-10 {
  padding-right: clamp(28px, 5.6vw, 86px);
  padding-left: clamp(28px, 5.6vw, 86px);
}

body.homepage-page #home > .relative.z-10 > div > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.14em;
}

body.homepage-page #home > .relative.z-10 > div > span:first-child::before {
  display: inline-block;
  width: 21px;
  height: 2px;
  background: #e63946;
  content: "";
}

body.homepage-page #home p {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

body.homepage-page #home a {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.84rem;
}

body.homepage-page #home a .material-symbols-outlined {
  font-size: 20px;
}

body.homepage-page #home a.hero-track-button {
  border: 2px solid #fff !important;
  background: rgba(15, 37, 71, 0.78) !important;
  color: #fff !important;
  text-decoration: none;
}

body.homepage-page #home a.hero-track-button:hover {
  background: #fff !important;
  color: #0f2547 !important;
}

@media (max-width: 768px) {
  body.homepage-page {
    padding-top: 60px;
  }

  body.homepage-page .fixed-header nav {
    min-height: 60px;
  }

  body.homepage-page #home {
    min-height: min(740px, calc(100svh - 60px));
  }
}

body.homepage-page #questions {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #fff;
}

body.homepage-page .faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(40px, 7vw, 100px);
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) 24px;
}

body.homepage-page .faq-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #718096;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

body.homepage-page .faq-kicker::before {
  width: 22px;
  height: 2px;
  background: #718096;
  content: "";
}

body.homepage-page .faq-heading h2 {
  margin: 0;
  color: #0f2547;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

body.homepage-page .faq-heading > p:not(.faq-kicker) {
  max-width: 420px;
  margin: 24px 0 0;
  color: #637188;
  font-size: 0.97rem;
  line-height: 1.7;
  text-align: justify;
}

body.homepage-page .faq-chat-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f2547;
  font: inherit;
  font-size: 0.91rem;
  font-weight: 800;
  cursor: pointer;
}

body.homepage-page .faq-chat-link:hover {
  color: #e63946;
}

body.homepage-page .faq-chat-link .material-symbols-outlined {
  font-size: 18px;
}

body.homepage-page .faq-list {
  border-top: 1px solid #d9e0e9;
}

body.homepage-page .faq-item {
  border-bottom: 1px solid #d9e0e9;
}

body.homepage-page .faq-item summary {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #0f2547;
  font-size: 1.04rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

body.homepage-page .faq-item summary::-webkit-details-marker {
  display: none;
}

body.homepage-page .faq-chevron-wrap {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #dce5f0;
  border-radius: 50%;
  background: #f4f7fb;
  color: #52709a;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

body.homepage-page .faq-chevron {
  display: block;
  transition: transform 200ms ease;
}

body.homepage-page .faq-item[open] summary {
  color: #173a7c;
  font-weight: 800;
}

body.homepage-page .faq-item[open] .faq-chevron-wrap {
  border-color: #dce7f8;
  background: #eaf1fb;
  color: #173a7c;
}

body.homepage-page .faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

body.homepage-page .faq-item summary:hover .faq-chevron-wrap {
  border-color: #bacbe2;
  background: #edf3fa;
}

@media (prefers-reduced-motion: reduce) {
  body.homepage-page .faq-chevron-wrap,
  body.homepage-page .faq-chevron {
    transition: none;
  }
}

body.homepage-page .faq-item > p {
  max-width: 630px;
  margin: -2px 48px 24px 0;
  color: #66748a;
  font-size: 0.93rem;
  line-height: 1.7;
  text-align: justify;
}

@media (max-width: 760px) {
  body.homepage-page .faq-layout {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 66px 20px;
  }

  body.homepage-page .faq-heading h2 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  body.homepage-page .faq-item summary {
    min-height: 68px;
    font-size: 0.95rem;
  }

  body.homepage-page .faq-item > p {
    margin-right: 32px;
  }
}

/* Track status lookup: centered application card from the supplied reference. */
body.verify-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 8px;
  color: #152d59;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.96) 0%, rgba(245, 247, 251, 0.92) 52%, transparent 100%),
    linear-gradient(180deg, #f5f7fb 0%, #e9eef5 100%);
  font-family: "Plus Jakarta Sans", "Public Sans", sans-serif;
}

body.verify-page .verify-header {
  display: none;
}

body.verify-page .verify-flow {
  width: min(500px, 100%);
  margin: 0;
}

body.verify-page #verify-step-entry {
  position: relative;
  box-sizing: border-box;
  min-height: 0;
  padding: 34px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(3, 13, 34, 0.24);
}

body.verify-page .verify-entry-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 17px;
  background: #eaf0f9;
  color: #1b3e7d;
  font-size: 27px;
}

body.verify-page #verify-step-entry .verify-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  color: #6b7a92;
  font-size: 1rem;
  letter-spacing: 0.16em;
}

body.verify-page #verify-step-entry .verify-eyebrow::before {
  width: 42px;
  height: 3px;
  background: #6b7a92;
  content: "";
}

body.verify-page #verify-step-entry .verify-step-title {
  max-width: 580px;
  margin: 0 0 18px;
  color: #142b58;
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

body.verify-page #verify-step-entry .verify-copy {
  margin: 0 0 18px;
  color: #718099;
  font-size: 1.05rem;
  line-height: 1.75;
}

body.verify-page #verify-step-entry .verify-form {
  display: grid;
  gap: 14px;
}

body.verify-page #verify-step-entry .verify-field-label {
  margin: 0 0 2px;
  color: #394e6c;
  font-size: 1rem;
  font-weight: 800;
}

body.verify-page #application-id-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #1e4c9b;
  border-radius: 12px;
  outline: 5px solid #e9eef6;
  background: #fff;
  color: #253c63;
  font: inherit;
  font-size: 1rem;
}

body.verify-page #application-id-input::placeholder {
  color: #9ba8ba;
}

body.verify-page #application-id-input:focus-visible {
  outline: 5px solid #e9eef6;
  border-color: #1e4c9b;
}

body.verify-page #verify-step-entry .verify-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

body.verify-page #verify-step-entry .verify-primary-button {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 11px;
  background: #1b3e7d;
  box-shadow: 0 14px 30px rgba(27, 62, 125, 0.15);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 800;
}

body.verify-page #verify-step-entry .verify-primary-button:hover {
  background: #142f64;
}

body.verify-page #verify-step-entry .modal-btn-secondary {
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #718099;
  font-weight: 700;
}

body.verify-page #verify-step-entry .verify-close-inline {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dce4ef;
  border-radius: 50%;
  background: #fff;
  color: #1b3e7d;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.verify-page .verify-close-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5px;
  stroke-linecap: square;
}

@media (max-width: 620px) {
  body.verify-page {
    padding: 10px;
  }

  body.verify-page #verify-step-entry {
    min-height: 0;
    padding: 62px 20px 24px;
    border-radius: 20px;
  }

  body.verify-page .verify-entry-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    font-size: 25px;
  }

  body.verify-page #verify-step-entry .verify-eyebrow {
    margin-bottom: 28px;
    font-size: 0.88rem;
  }

  body.verify-page #verify-step-entry .verify-copy {
    font-size: 1rem;
  }

  body.verify-page #verify-step-entry .verify-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.verify-page #verify-step-entry .verify-primary-button {
    width: 100%;
  }
}

/* Tracking result: carry the OSCA homepage identity through after lookup. */
body.verify-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 20px 48px;
  color: #1d2b43;
  background: #fff;
  font-family: "Plus Jakarta Sans", "Public Sans", sans-serif;
}

body.verify-page .verify-header {
  display: flex;
  width: min(1180px, 100%);
  min-height: 86px;
  margin: 0 auto;
  padding: 0;
  border-bottom: 1px solid #e4e9f1;
  background: transparent;
}

body.verify-page .verify-brand {
  gap: 12px;
  color: #001f78;
  font-size: 1.12rem;
}

body.verify-page .verify-brand-logo {
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: 50%;
  box-shadow: none;
}

body.verify-page .verify-flow {
  width: min(650px, 100%);
  margin: auto;
}

body.verify-page .verify-step {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #e5eaf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(20, 43, 88, 0.08);
}

body.verify-page #verify-step-entry {
  width: min(500px, 100%);
  margin: 8vh auto 0;
}

body.verify-page #verify-step-status .verify-step-title {
  margin: 0 0 18px;
  color: #001f78;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

body.verify-page #verify-step-status .verify-eyebrow {
  margin: 0 0 10px;
  color: #bc000d;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

body.verify-page .verify-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

body.verify-page .verify-result-grid div {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: #f8f9fc;
}

body.verify-page .verify-result-grid span {
  display: block;
  margin-bottom: 7px;
  color: #6d7890;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.verify-page .verify-result-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #172f65;
  font-size: 1rem;
  font-weight: 800;
}

body.verify-page #verify-status-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

body.verify-page #verify-status-list .verify-status-item {
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  background: #fff;
  color: #788397;
  font-size: 0.82rem;
  font-weight: 700;
}

body.verify-page #verify-status-list .verify-status-item.active {
  border-color: rgba(0, 31, 120, 0.24);
  background: #edf3fc;
  box-shadow: inset 3px 0 #bc000d;
  transform: none;
}

body.verify-page #verify-status-list .verify-status-item.active span:last-child {
  color: #001f78;
}

body.verify-page .verify-result-note {
  margin: 0 0 16px;
  padding: 12px 15px;
  border-left: 3px solid #bc000d;
  border-radius: 0 12px 12px 0;
  background: #fff7f7;
  color: #394b68;
  font-size: 0.92rem;
  line-height: 1.55;
}

body.verify-page #verify-step-status .verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

body.verify-page #verify-step-status .verify-primary-button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: #001f78;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body.verify-page #verify-step-status .verify-primary-button:hover {
  background: #bc000d;
}

body.verify-page #verify-step-status .modal-btn-secondary {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  background: #fff;
  color: #44536c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 620px) {
  body.verify-page { padding: 14px; }
  body.verify-page .verify-header { min-height: 72px; }
  body.verify-page .verify-flow { margin: auto; }
  body.verify-page #verify-step-entry { margin-top: 7vh; }
  body.verify-page #verify-status-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.verify-page #verify-step-status .verify-actions { flex-direction: column; }
  body.verify-page #verify-step-status .verify-actions > button { width: 100%; }
}

/* Application progress timeline inspired by the OSCA tracking reference. */
body.verify-page #verify-step-status {
  width: 100%;
  padding: 0 0 18px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #e5eaf2;
  box-shadow: 0 14px 36px rgba(20, 43, 88, 0.08);
}

body.verify-page .tracking-summary {
  position: relative;
  display: flex;
  min-height: 106px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
  padding: 16px 24px;
  overflow: hidden;
  border-bottom: 1px solid #e8edf4;
  background: #fff;
  color: #172f65;
}

body.verify-page .tracking-summary::after {
  display: none;
}

body.verify-page .tracking-summary-copy { position: relative; z-index: 1; min-width: 0; }
body.verify-page #verify-step-status .tracking-summary .verify-eyebrow {
  margin: 0 0 3px;
  color: #1b3e7d;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
}
body.verify-page .tracking-id-line { display: flex; align-items: center; gap: 9px; }
body.verify-page .tracking-id-line strong { color: #142b58; font-size: clamp(1rem, 2.2vw, 1.18rem); font-weight: 800; overflow-wrap: anywhere; }
body.verify-page .tracking-id-line > span { padding: 6px; border: 1px solid #e1e9f4; border-radius: 8px; background: #f3f6fb; color: #1b3e7d; font-size: 17px; }
body.verify-page .tracking-applicant { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 0; color: #718099; font-size: .88rem; }
body.verify-page .tracking-applicant strong { color: #253c63; font-weight: 700; }
body.verify-page .tracking-current-badge {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-right: 28px;
  padding: 7px 12px;
  border: 1px solid #dce9e1;
  border-radius: 999px;
  background: #e5f9ed;
  color: #087443;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-align: center;
}
body.verify-page .tracking-current-badge[data-status="pending"] { background: #fff4d6; color: #956000; }
body.verify-page .tracking-current-badge[data-status="rejected"] { background: #ffe5e7; color: #b42332; }
body.verify-page .tracking-timeline-heading {
  margin: 14px 24px 8px;
  color: #172f65;
  font-size: 1rem;
  font-weight: 800;
}
body.verify-page .tracking-progress-summary {
  margin: 0 24px 10px;
}
body.verify-page .tracking-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #566985;
  font-size: .82rem;
  font-weight: 700;
}
body.verify-page .tracking-progress-label strong {
  color: #1b3e7d;
  font-weight: 800;
}
body.verify-page .tracking-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf5;
}
body.verify-page .tracking-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #1b3e7d;
  transition: width .25s ease;
}
body.verify-page .tracking-progress-summary[hidden] { display: none; }
body.verify-page #verify-status-list {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 22px;
}
body.verify-page #verify-status-list::before {
  position: absolute;
  top: 21px;
  bottom: 37px;
  left: 19px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    #1b3e7d 0 var(--tracking-progress, 0%),
    #d9e1ee var(--tracking-progress, 0%) 100%
  );
  content: "";
}
body.verify-page #verify-status-list.is-rejected::before { display: none; }
body.verify-page #verify-status-list .verify-status-item,
body.verify-page #verify-status-list .verify-status-item.active {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: start;
  gap: 10px;
  min-height: 60px;
  padding: 3px 8px 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #65758e;
  transform: none;
}
body.verify-page #verify-status-list .verify-status-item[hidden] { display: none; }
body.verify-page .tracking-step-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #122d66;
  color: #fff;
  font-size: 18px;
}
body.verify-page #verify-status-list .complete .tracking-step-icon {
  background: #e6f5eb;
  color: #159447;
  font-size: 0;
}
body.verify-page #verify-status-list .complete .tracking-step-icon::after {
  content: "check";
  font-family: "Material Symbols Outlined";
  font-size: 18px;
  font-weight: 600;
}
body.verify-page .tracking-step-copy { display: flex; flex-direction: column; gap: 3px; padding-top: 4px; }
body.verify-page .tracking-step-copy strong { color: #172f65; font-size: 1rem; font-weight: 800; }
body.verify-page .tracking-step-copy small { color: #65758e; font-size: .9rem; line-height: 1.4; }
body.verify-page .tracking-step-copy em { margin-top: 3px; color: #159447; font-size: .78rem; font-style: normal; font-weight: 800; }
body.verify-page .tracking-next-label {
  width: fit-content;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eaf0f9;
  color: #1b3e7d;
  font-size: .7rem;
  font-weight: 800;
}
body.verify-page .tracking-next-label[hidden] { display: none; }
body.verify-page .tracking-step-check { padding-top: 9px; color: #159447; font-size: 16px; }
body.verify-page #verify-status-list .complete .tracking-step-copy em { display: none; }
body.verify-page #verify-status-list .complete .tracking-step-check,
body.verify-page #verify-status-list .active[data-status="completed"] .tracking-step-check { display: none; }
body.verify-page #verify-status-list .upcoming .tracking-step-icon { background: #cbd5e4; }
body.verify-page #verify-status-list .upcoming .tracking-step-copy strong { color: #718099; }
body.verify-page #verify-status-list .upcoming .tracking-step-copy em,
body.verify-page #verify-status-list .upcoming .tracking-step-check { display: none; }
body.verify-page #verify-status-list .active .tracking-step-icon {
  border-color: #dce8fb;
  background: #1b3e7d;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #dce8fb;
}
body.verify-page #verify-status-list .active {
  border-radius: 12px;
  background: #f4f7fc;
}
body.verify-page #verify-status-list .next-step {
  border-radius: 12px;
  background: #fbfcfe;
}
body.verify-page #verify-status-list .active .tracking-step-copy em { color: #1b3e7d; }
body.verify-page #verify-status-list .verify-status-item.active .tracking-step-check { display: none; }
body.verify-page #verify-status-list [data-status="rejected"].active .tracking-step-icon { background: #dc4050; }
body.verify-page #verify-step-status .verify-result-note {
  margin: 4px 30px 14px;
  padding: 11px 14px;
  border-left-color: #1b3e7d;
  background: #fff;
  font-size: .9rem;
}
body.verify-page .tracking-help {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 30px 14px;
  padding: 14px;
  border: 1px solid #dce6f4;
  border-radius: 12px;
  background: #f7f9fd;
  color: #263e68;
}
body.verify-page .tracking-help[hidden] { display: none; }
body.verify-page .tracking-help-icon {
  flex: 0 0 auto;
  color: #1b3e7d;
  font-size: 22px;
}
body.verify-page .tracking-help-copy { min-width: 0; }
body.verify-page .tracking-help-copy > strong { color: #172f65; font-size: .94rem; }
body.verify-page .tracking-help-copy > p {
  margin: 3px 0 8px;
  color: #566985;
  font-size: .86rem;
  line-height: 1.45;
}
body.verify-page .tracking-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
body.verify-page .tracking-help-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #1b3e7d;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.verify-page .tracking-help a:focus-visible {
  outline: 3px solid #9bb7e6;
  outline-offset: 3px;
  border-radius: 2px;
}
body.verify-page #verify-step-status .verify-actions { margin: 0 30px; }
body.verify-page #verify-step-status .verify-primary-button {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 10px;
  background: #1b3e7d;
  font-size: .9rem;
}
body.verify-page #verify-step-status .verify-primary-button:hover { background: #142f64; }
body.verify-page #verify-step-status .modal-btn-secondary {
  min-height: 52px;
  padding: 0 18px;
  border-color: #dce4ef;
  border-radius: 10px;
  background: #fff;
  color: #44536c;
  font-size: .9rem;
  font-weight: 700;
}
body.verify-page #verify-step-status .modal-btn-secondary:hover {
  border-color: #aebed4;
  background: #f8fafd;
}
body.verify-page #verify-step-status .verify-actions > button:focus-visible {
  outline: 3px solid #9bb7e6;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  body.verify-page .tracking-progress-track > span { transition: none; }
}
body.verify-page #verify-step-status > .verify-close-inline {
  z-index: 6;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #dce4ef;
  border-radius: 50%;
  background: #fff;
  color: #1b3e7d;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 620px) {
  body.verify-page #verify-step-status { padding-bottom: 16px; border-radius: 20px; }
  body.verify-page .tracking-summary { min-height: 100px; padding: 16px 18px; align-items: center; gap: 10px; }
  body.verify-page .tracking-current-badge { margin: 3px 28px 0 0; padding: 6px 9px; font-size: .6rem; }
  body.verify-page .tracking-applicant { flex-direction: column; gap: 2px; }
  body.verify-page .tracking-timeline-heading { margin: 16px 18px 7px; }
  body.verify-page .tracking-progress-summary { margin-right: 18px; margin-left: 18px; }
  body.verify-page #verify-status-list { margin: 0 14px; }
  body.verify-page #verify-step-status .verify-result-note,
  body.verify-page #verify-step-status .verify-actions,
  body.verify-page .tracking-help { margin-right: 18px; margin-left: 18px; }
  body.verify-page #verify-status-list .verify-status-item,
  body.verify-page #verify-status-list .verify-status-item.active { min-height: 56px; }
}

body.track-status-open {
  overflow: hidden;
  padding-right: var(--track-status-scrollbar-width, 0px);
}

body.homepage-page.track-status-open .fixed-header {
  right: auto !important;
  width: calc(100% - var(--track-status-scrollbar-width, 0px)) !important;
}

.track-status-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(9, 20, 43, 0.12);
  backdrop-filter: blur(2px);
}

.track-status-modal[hidden] {
  display: none;
}

.track-status-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

body.homepage-page #about.about-section {
  max-width: none;
  margin: 0;
  padding: 40px 8.4vw 0;
  background: #fff;
}

body.homepage-page .about-layout {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(48px, 6vw, 116px);
  align-items: center;
  max-width: 1680px;
  min-height: 470px;
  margin: 0 auto;
  padding-bottom: 100px;
}

body.homepage-page .about-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
  color: #e63946;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.homepage-page .about-kicker::before {
  width: 40px;
  height: 3px;
  background: #e63946;
  content: "";
}

body.homepage-page .about-heading h2 {
  max-width: 800px;
  margin: 0;
  color: #102755;
  font-size: clamp(3.3rem, 6vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

body.homepage-page .about-copy h3 {
  margin: 0 0 22px;
  color: #162a48;
  font-size: clamp(1.25rem, 1.6vw, 1.8rem);
  font-weight: 700;
  line-height: 1.55;
  text-align: justify;
}

body.homepage-page .about-copy > p {
  margin: 0 0 14px;
  color: #687990;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.8;
  text-align: justify;
}

body.homepage-page .about-learn-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #173b79;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

body.homepage-page .about-learn-link:hover {
  color: #e63946;
}

body.homepage-page .about-logo-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: #687990;
  font-size: 0.8rem;
  font-weight: 700;
}

body.homepage-page .about-logo-inline img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

body.homepage-page .about-values {
  position: relative;
  left: 50%;
  display: grid;
  box-sizing: border-box;
  width: 100vw;
  min-height: 102px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 30px clamp(22px, 8.4vw, 172px);
  transform: translateX(-50%);
  border-top: 1px solid #e4e9f0;
  border-bottom: 1px solid #e4e9f0;
  background: #fbfcfe;
}

body.homepage-page .about-values span {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #485b73;
  font-size: 1rem;
  font-weight: 750;
}

body.homepage-page .about-values span:nth-child(2) {
  justify-self: center;
}

body.homepage-page .about-values span:nth-child(3) {
  justify-self: end;
}

body.homepage-page .about-values i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e63946;
}

body.homepage-page .about-values span:nth-child(2) i {
  background: #173b79;
}

@media (max-width: 760px) {
  body.homepage-page #about.about-section {
    padding: 76px 22px 0;
  }

  body.homepage-page .about-layout {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
    padding-bottom: 64px;
  }

  body.homepage-page .about-heading h2 {
    font-size: clamp(3.1rem, 13vw, 5rem);
  }

  body.homepage-page .about-values {
    grid-template-columns: 1fr;
    gap: 18px 32px;
    padding: 24px 22px;
  }

  body.homepage-page .about-values span:nth-child(2),
  body.homepage-page .about-values span:nth-child(3) {
    justify-self: start;
  }
}

body.homepage-page #benefits.benefits-section {
  max-width: none;
  margin: 0;
  padding: 72px 8.4vw 68px;
  background: #f2f5f8;
}

body.homepage-page .benefits-inner {
  display: block;
  max-width: 1680px;
  margin: 0 auto;
}

body.homepage-page .benefits-heading {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(48px, 7vw, 140px);
  margin: 0 0 54px;
}

body.homepage-page .benefits-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 34px;
  color: #e63946;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

body.homepage-page .benefits-kicker::before {
  width: 40px;
  height: 3px;
  background: #e63946;
  content: "";
}

body.homepage-page .benefits-heading h2 {
  max-width: 660px;
  margin: 0;
  color: #102755;
  font-size: clamp(3.3rem, 6vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

body.homepage-page .benefits-intro {
  margin: 24px 0 0;
  color: #687990;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.8;
  text-align: justify;
}

body.homepage-page .benefit-list {
  border-top: 1px solid #d6dee8;
}

body.homepage-page .benefit-row {
  display: grid;
  grid-template-columns: 76px 96px minmax(0, 1fr) 60px;
  align-items: center;
  gap: 24px;
  min-height: 138px;
  padding: 18px 0;
  border-bottom: 1px solid #d6dee8;
}

body.homepage-page .benefit-number {
  align-self: start;
  padding-top: 10px;
  color: #91a0b4;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

body.homepage-page .benefit-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid #dbe3ed;
  border-radius: 50%;
  background: #fff;
  color: #21477f;
  font-size: 29px;
}

body.homepage-page .benefit-content h3 {
  margin: 0 0 12px;
  color: #152c52;
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

body.homepage-page .benefit-content p {
  max-width: 1100px;
  margin: 0;
  color: #718096;
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  line-height: 1.65;
  text-align: justify;
}

body.homepage-page .benefit-check {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dce6f1;
  border-radius: 50%;
  background: #f3f7fb;
  color: #6683a8;
  font-size: 21px;
}

@media (max-width: 760px) {
  body.homepage-page #benefits.benefits-section {
    padding: 76px 22px 64px;
  }

  body.homepage-page .benefits-inner {
    display: block;
  }

  body.homepage-page .benefits-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 42px;
  }

  body.homepage-page .benefits-heading h2 {
    font-size: clamp(3rem, 12vw, 4.8rem);
  }

  body.homepage-page .benefit-row {
    grid-template-columns: 34px 48px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 22px 0;
  }

  body.homepage-page .benefit-number {
    font-size: 0.72rem;
  }

  body.homepage-page .benefit-icon {
    width: 44px;
    height: 44px;
    font-size: 23px;
  }

  body.homepage-page .benefit-content h3 {
    font-size: 1.1rem;
  }

  body.homepage-page .benefit-content p {
    font-size: 0.88rem;
  }

  body.homepage-page .benefit-check {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }
}

/* Keep the benefit number, icon, copy, and completion indicator balanced. */
body.homepage-page #benefits .benefit-row {
  grid-template-columns: 52px 78px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 20px;
}

body.homepage-page #benefits .benefit-number {
  align-self: center;
  padding: 0;
}

@media (max-width: 768px) {
  body.homepage-page #benefits .benefit-row {
    grid-template-columns: 30px 44px minmax(0, 1fr) 28px;
    gap: 10px;
    padding: 18px 0;
  }

  body.homepage-page #benefits .benefit-check {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }
}

body.homepage-page #contact.contact-section {
  max-width: none;
  margin: 0;
  padding: 70px 8.4vw 78px;
  background: #fff;
}

body.homepage-page #contact .contact-inner {
  max-width: 1680px;
  margin: 0 auto;
}

body.homepage-page .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(48px, 7vw, 140px);
}

body.homepage-page .contact-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 38px;
  color: #687990;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

body.homepage-page .contact-kicker::before {
  width: 40px;
  height: 3px;
  background: #687990;
  content: "";
}

body.homepage-page #contact .contact-intro h2 {
  max-width: 620px;
  margin: 0 0 28px;
  color: #102755;
  font-size: clamp(3.5rem, 6.5vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

body.homepage-page .contact-description {
  max-width: 600px;
  margin: 0 0 28px;
  color: #687990;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.8;
}

body.homepage-page .contact-email-button {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  gap: 22px;
  padding: 0 24px;
  border-radius: 9px;
  background: #df3648;
  box-shadow: 0 14px 30px rgba(185, 35, 54, 0.18);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

body.homepage-page .contact-email-button:hover {
  background: #c92e3f;
}

body.homepage-page .contact-email-button .material-symbols-outlined {
  font-size: 20px;
}

body.homepage-page .contact-list {
  border-top: 1px solid #dbe2eb;
}

body.homepage-page .contact-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 24px;
  min-height: 138px;
  padding: 18px 0;
  border-bottom: 1px solid #dbe2eb;
  color: inherit;
  text-decoration: none;
}

body.homepage-page .contact-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 15px;
  background: #eaf0f9;
  color: #21477f;
  font-size: 27px;
}

body.homepage-page .contact-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.homepage-page .contact-detail small {
  color: #8190a5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

body.homepage-page .contact-detail strong {
  color: #182e53;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 750;
  line-height: 1.5;
}

body.homepage-page .contact-arrow {
  color: #9aa8ba;
  font-size: 23px;
}

body.homepage-page .contact-row:hover .contact-arrow {
  color: #e63946;
}

body.homepage-page #contact .osm-map-frame {
  min-height: 300px;
  margin-top: 64px;
  border-radius: 12px;
  box-shadow: none;
}

body.homepage-page #contact .osm-map-frame iframe {
  min-height: 260px;
}

@media (max-width: 760px) {
  body.homepage-page #contact.contact-section {
    padding: 62px 22px;
  }

  body.homepage-page .contact-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  body.homepage-page .contact-kicker {
    margin-bottom: 26px;
    font-size: 0.82rem;
  }

  body.homepage-page #contact .contact-intro h2 {
    font-size: clamp(3.5rem, 14vw, 5rem);
  }

  body.homepage-page .contact-row {
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    gap: 14px;
    min-height: 112px;
  }

  body.homepage-page .contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  body.homepage-page #contact .osm-map-frame {
    min-height: 260px;
    margin-top: 42px;
  }

  body.homepage-page #contact .osm-map-frame iframe {
    min-height: 220px;
  }
}
/* Registration disclaimer layout */
body.registration-page {
  min-height: 100dvh;
  padding: 18px;
  background: linear-gradient(145deg, #8492a9 0%, #dce3ec 50%, #73829b 100%);
  color: #102754;
  font-family: "Plus Jakarta Sans", "Atkinson Hyperlegible Next", sans-serif;
}

body.registration-page .disclaimer-page {
  display: grid;
  min-height: calc(100dvh - 36px);
  padding: 0;
  place-items: center;
}

body.registration-page .disclaimer-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: calc(100dvh - 36px);
  overflow: hidden;
  border: 1px solid #cbd6e5;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(13, 30, 60, .22);
  backdrop-filter: none;
}

body.registration-page .disclaimer-hero {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 20px;
  padding: 22px 30px;
  background: linear-gradient(112deg, #102754 0%, #1e4382 100%);
  color: #fff;
}

body.registration-page .disclaimer-hero-icon {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 15px;
  background: rgba(255,255,255,.1);
  color: #ffd2d5;
  font-size: 29px;
}

body.registration-page .disclaimer-hero-copy { min-width: 0; }
body.registration-page .disclaimer-kicker {
  margin: 0 0 4px;
  color: #d4e0f3;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .11em;
}
body.registration-page .disclaimer-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}
body.registration-page .disclaimer-hero-copy > p:last-child {
  margin: 7px 0 0;
  color: #d8e2f1;
  font-size: .95rem;
  line-height: 1.45;
}
body.registration-page .disclaimer-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  align-self: flex-start;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
}
body.registration-page .disclaimer-close:hover { background: rgba(255,255,255,.14); }

body.registration-page .disclaimer-body {
  min-height: 0;
  padding: 22px 30px 26px;
  overflow: visible;
}
body.registration-page .notice-box {
  padding: 17px 20px;
  border: 1px solid #d7e0ed;
  border-radius: 15px;
  background: #f7f9fc;
  color: #102754;
  font-size: .97rem;
  line-height: 1.55;
}
body.registration-page .notice-box p { margin: 0; }
body.registration-page .notice-box p + p { margin-top: 4px; }
body.registration-page .notice-box p:last-child { margin-top: 10px; color: #71839d; font-size: .9rem; }

body.registration-page .registration-guide {
  margin: 16px 0 0;
  padding: 17px 20px 20px;
  border: 1px solid #d7e0ed;
  border-radius: 15px;
  background: #fff !important;
}
body.registration-page .registration-guide h2 {
  margin: 0 0 14px;
  color: #102754;
  font-size: 1.13rem;
  font-weight: 800;
}
body.registration-page .registration-guide h2 span { font-weight: 700; }
body.registration-page .registration-guide > .registration-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.registration-page .registration-guide article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid #e8edf4;
  border-radius: 13px;
  background: #f7f9fc;
}
body.registration-page .registration-guide .step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #102754;
  color: #fff;
  font-size: .82rem;
  font-weight: 900;
}
body.registration-page .registration-guide h3 {
  margin: 1px 0 5px;
  color: #102754;
  font-size: .95rem;
  font-weight: 800;
}
body.registration-page .registration-guide article p {
  margin: 0;
  color: #657792;
  font-size: .86rem;
  line-height: 1.48;
}

body.registration-page .consent-row {
  align-items: center;
  margin: 14px 0 12px;
  padding: 12px 15px;
  border: 1px solid #d7e0ed;
  border-radius: 13px;
  background: #f7f9fc;
}
body.registration-page .consent-row input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #1d4382;
}
body.registration-page .consent-row label {
  color: #102754;
  font-size: .91rem;
  font-weight: 500;
  line-height: 1.45;
}
body.registration-page .captcha-panel {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid #d7e0ed;
  border-radius: 13px;
  background: #fff;
}
body.registration-page .captcha-help { color: #71839d; font-size: .83rem; text-align: right; }
body.registration-page .disclaimer-error { margin: 8px 0 0; color: #b42332; font-size: .9rem; font-weight: 700; }

body.registration-page .action-row {
  position: static;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #e8edf4;
  background: #fff;
}
body.registration-page .action-row .primary-btn,
body.registration-page .action-row .secondary-btn {
  min-height: 46px;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 11px;
  font-size: .93rem;
}
body.registration-page .action-row .primary-btn { background: #e63946; }
body.registration-page .action-row .primary-btn:disabled { opacity: .48; }
body.registration-page .action-row .secondary-btn { background: #fff; }

@media (max-width: 680px) {
  body.registration-page { padding: 10px; }
  body.registration-page .disclaimer-page { min-height: calc(100dvh - 20px); }
  body.registration-page .disclaimer-card { min-height: calc(100dvh - 20px); border-radius: 17px; }
  body.registration-page .disclaimer-hero { gap: 12px; padding: 17px; }
  body.registration-page .disclaimer-hero-icon { width: 44px; height: 44px; flex-basis: 44px; font-size: 24px; }
  body.registration-page .disclaimer-hero-copy > p:last-child { font-size: .86rem; }
  body.registration-page .disclaimer-close { width: 36px; height: 36px; flex-basis: 36px; }
  body.registration-page .disclaimer-body { padding: 15px 15px 0; }
  body.registration-page .notice-box { padding: 14px; font-size: .9rem; }
  body.registration-page .registration-guide { padding: 14px; }
  body.registration-page .registration-guide > .registration-steps { grid-template-columns: 1fr; gap: 9px; }
  body.registration-page .registration-guide article { min-height: 0; padding: 11px; }
  body.registration-page .registration-guide article p { font-size: .88rem; }
  body.registration-page .consent-row label { font-size: .88rem; }
  body.registration-page .captcha-panel { align-items: flex-start; flex-direction: column; }
  body.registration-page .captcha-help { font-size: .82rem; text-align: left; }
  body.registration-page .action-row { margin: 14px 0 0; padding: 12px 0 0; }
  body.registration-page .action-row .primary-btn,
  body.registration-page .action-row .secondary-btn { width: 100%; }
}

/* Contact section: office details paired with an interactive street map. */
body.homepage-page #contact.contact-section {
  padding: clamp(58px, 7vw, 96px) clamp(22px, 8vw, 150px);
  background: linear-gradient(115deg, #f1f5fb 0%, #f8fafd 100%);
}
body.homepage-page #contact .contact-inner { max-width: 1660px; margin: 0 auto; }
body.homepage-page #contact .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: clamp(24px, 2.4vw, 44px);
}
body.homepage-page #contact .contact-information { min-width: 0; }
body.homepage-page #contact .contact-intro { margin-bottom: 22px; }
body.homepage-page #contact .contact-kicker {
  gap: 11px;
  margin: 0 0 12px;
  color: #e43b50;
  font-size: .78rem;
  letter-spacing: .13em;
}
body.homepage-page #contact .contact-kicker::before { width: 30px; height: 3px; background: #e43b50; }
body.homepage-page #contact .contact-intro h2 {
  max-width: none;
  margin: 0 0 11px;
  color: #102754;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  letter-spacing: -.06em;
  line-height: 1.02;
}
body.homepage-page #contact .contact-description { margin: 0; font-size: .95rem; line-height: 1.55; }
body.homepage-page #contact .contact-list { display: grid; gap: 12px; border: 0; }
body.homepage-page #contact .contact-row {
  position: relative;
  grid-template-columns: 48px minmax(0, 1fr) 104px;
  gap: 16px;
  min-height: 82px;
  padding: 13px 15px;
  overflow: hidden;
  border: 1px solid #e1e8f1;
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 22px rgba(20,43,88,.045);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
body.homepage-page #contact .contact-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  content: "";
}
body.homepage-page #contact .contact-row:hover {
  transform: translateY(-2px);
  border-color: #9aafd0;
  box-shadow: 0 12px 26px rgba(20,43,88,.09);
}
body.homepage-page #contact .contact-row-location { border-color: #9aafd0; }
body.homepage-page #contact .contact-row-location::before,
body.homepage-page #contact .contact-row:hover::before { background: #e43b50; }
body.homepage-page #contact .contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #173c7a;
  color: #fff;
  font-size: 22px;
}
body.homepage-page #contact .contact-row-location .contact-icon { background: #df3d4e; }
body.homepage-page #contact .contact-detail { gap: 3px; min-width: 0; }
body.homepage-page #contact .contact-detail small { font-size: .66rem; letter-spacing: .11em; }
body.homepage-page #contact .contact-detail strong { font-size: .91rem; line-height: 1.3; overflow-wrap: anywhere; }
body.homepage-page #contact .contact-detail > span { color: #7a8aa1; font-size: .75rem; line-height: 1.35; }
body.homepage-page #contact .contact-card-action { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; color: #93a4bd; }
body.homepage-page #contact .contact-card-action .material-symbols-outlined { font-size: 18px; }
body.homepage-page #contact .contact-card-action small { color: #93a4bd; font-size: .59rem; font-weight: 800; text-align: right; white-space: nowrap; }
body.homepage-page #contact .contact-row:hover .contact-card-action,
body.homepage-page #contact .contact-row-location .contact-card-action { color: #e43b50; }
body.homepage-page #contact .contact-row:hover .contact-card-action small,
body.homepage-page #contact .contact-row-location .contact-card-action small { color: #df3d4e; }
body.homepage-page #contact .contact-visit-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #e1e8f1;
  border-radius: 14px;
  background: #fff;
  color: #17345f;
}
body.homepage-page #contact .contact-visit-note > .material-symbols-outlined { color: #1c4788; font-size: 20px; }
body.homepage-page #contact .contact-visit-note strong { font-size: .83rem; }
body.homepage-page #contact .contact-visit-note p { margin: 3px 0 0; color: #71839d; font-size: .75rem; line-height: 1.4; }

body.homepage-page #contact .contact-map-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 500px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(16,39,84,.14);
  border-radius: 18px;
  background: #f0eee9;
  box-shadow: 0 22px 50px rgba(16,39,84,.12);
}
body.homepage-page #contact .contact-map-toolbar {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #102754;
}
body.homepage-page #contact .contact-map-modes { display: flex; flex-wrap: wrap; gap: 8px; }
body.homepage-page #contact .contact-map-modes button,
body.homepage-page #contact .map-center-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #d7e1f1;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
body.homepage-page #contact .contact-map-modes button .material-symbols-outlined,
body.homepage-page #contact .map-center-button .material-symbols-outlined { font-size: 17px; }
body.homepage-page #contact .contact-map-modes button.is-active { background: #fff; color: #17345f; }
body.homepage-page #contact .map-live-label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; color: #e1e9f6; font-size: .64rem; font-weight: 800; white-space: nowrap; }
body.homepage-page #contact .map-live-label i { width: 8px; height: 8px; border-radius: 50%; background: #38d887; box-shadow: 0 0 0 4px rgba(56,216,135,.14); }
body.homepage-page #contact .contact-map-canvas { position: relative; display: flex; flex: 1; min-height: 360px; overflow: hidden; background: #eeece6; }
body.homepage-page #contact .contact-map-canvas iframe { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; border: 0; }
body.homepage-page #contact .map-location-chip,
body.homepage-page #contact .map-center-button { position: absolute; z-index: 2; top: 16px; }
body.homepage-page #contact .map-location-chip { left: 16px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 130px); padding: 10px 13px; border: 1px solid #e4eaf2; border-radius: 99px; background: #fff; box-shadow: 0 8px 22px rgba(16,39,84,.12); color: #17345f; font-size: .69rem; font-weight: 800; }
body.homepage-page #contact .map-location-chip .material-symbols-outlined { font-size: 17px; }
body.homepage-page #contact .map-center-button { right: 16px; border: 1px solid #e4eaf2; background: #fff; color: #17345f; box-shadow: 0 8px 22px rgba(16,39,84,.12); }
body.homepage-page #contact .map-place-card { position: absolute; z-index: 2; top: 35%; left: 50%; display: flex; width: min(300px, calc(100% - 40px)); gap: 10px; padding: 13px 15px; transform: translateX(-50%); border: 1px solid #e1e7ef; border-radius: 13px; background: #fff; box-shadow: 0 14px 35px rgba(16,39,84,.17); color: #17345f; pointer-events: none; }
body.homepage-page #contact .map-place-card > .material-symbols-outlined { color: #df3d4e; }
body.homepage-page #contact .map-place-card strong { font-size: .83rem; }
body.homepage-page #contact .map-place-card p { margin: 3px 0 0; color: #71839d; font-size: .73rem; }
body.homepage-page #contact .map-visit-card { position: absolute; z-index: 2; right: 15px; bottom: 14px; left: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid #e1e7ef; border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 12px 28px rgba(16,39,84,.13); }
body.homepage-page #contact .map-visit-card strong { color: #17345f; font-size: .82rem; }
body.homepage-page #contact .map-visit-card p { margin: 3px 0 0; color: #71839d; font-size: .71rem; }
body.homepage-page #contact .map-visit-card a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 9px; background: #1c4384; color: #fff; font-size: .72rem; font-weight: 800; text-decoration: none; }
body.homepage-page #contact .map-visit-card a:hover { background: #e43b50; }

body.homepage-page #contact .contact-map-skeleton {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background: #eeece6;
  opacity: 1;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s ease;
}
body.homepage-page #contact .contact-map-skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.5) 48%, transparent 66%);
  content: "";
  transform: translateX(-100%);
  animation: contact-map-shimmer 1.5s ease-in-out infinite;
}
body.homepage-page #contact .contact-map-canvas.map-loaded .contact-map-skeleton { visibility: hidden; opacity: 0; }
body.homepage-page #contact .skeleton-road { position: absolute; display: block; height: 16px; border: 5px solid #fff; border-radius: 99px; background: #dedbd5; }
body.homepage-page #contact .skeleton-road-one { top: 42%; left: 13%; width: 70%; transform: rotate(-17deg); }
body.homepage-page #contact .skeleton-road-two { top: 20%; left: 48%; width: 63%; transform: rotate(68deg); }
body.homepage-page #contact .skeleton-block { position: absolute; display: block; width: 62px; height: 42px; border: 1px solid #e3ded8; border-radius: 6px; background: #e5e1db; }
body.homepage-page #contact .skeleton-block-one { top: 35%; left: 31%; }
body.homepage-page #contact .skeleton-block-two { top: 60%; left: 58%; width: 42px; height: 32px; }
body.homepage-page #contact .skeleton-map-pin { position: absolute; top: 45%; left: 53%; width: 22px; height: 22px; border: 5px solid #fff; border-radius: 50% 50% 50% 0; background: #df3d4e; box-shadow: 0 3px 12px rgba(16,39,84,.24); transform: rotate(-45deg); }
@keyframes contact-map-shimmer { to { transform: translateX(100%); } }

@media (max-width: 920px) {
  body.homepage-page #contact .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  body.homepage-page #contact .contact-map-card { min-height: 440px; }
}
@media (max-width: 600px) {
  body.homepage-page #contact.contact-section { padding: 54px 18px; }
  body.homepage-page #contact .contact-row { grid-template-columns: 42px minmax(0,1fr); gap: 12px; min-height: 76px; padding: 11px; }
  body.homepage-page #contact .contact-icon { width: 40px; height: 40px; font-size: 20px; }
  body.homepage-page #contact .contact-card-action { display: none; }
  body.homepage-page #contact .contact-map-card { min-height: 400px; }
  body.homepage-page #contact .contact-map-toolbar { align-items: flex-start; padding: 11px; }
  body.homepage-page #contact .contact-map-modes { gap: 5px; }
  body.homepage-page #contact .contact-map-modes button { min-height: 34px; padding: 0 9px; font-size: .65rem; }
  body.homepage-page #contact .map-live-label { padding: 7px; font-size: .56rem; }
  body.homepage-page #contact .map-location-chip { left: 10px; max-width: calc(100% - 105px); padding: 8px 10px; font-size: .6rem; }
  body.homepage-page #contact .map-center-button { right: 10px; min-height: 34px; padding: 0 9px; font-size: .65rem; }
  body.homepage-page #contact .map-visit-card { right: 9px; bottom: 9px; left: 9px; align-items: flex-start; padding: 11px; }
  body.homepage-page #contact .map-visit-card a { padding: 9px; font-size: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.homepage-page #contact .contact-map-skeleton::after { animation: none; }
}

body.verify-page #verify-request-id-modal {
  width: min(500px, 100%);
  margin: 0 auto;
  padding: 34px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(3, 13, 34, .24);
  box-sizing: border-box;
}

body.verify-page #verify-request-id-modal[hidden] {
  display: none;
}

body.verify-page #verify-request-id-modal .verify-close-inline {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 1px solid #dce4ef;
  border-radius: 50%;
  background: #fff;
  color: #1b3e7d;
}

body.verify-page #verify-request-id-modal .verify-close-inline:hover {
  border-color: #b8c8dd;
  background: #f7f9fc;
}

body.verify-page #verify-request-id-modal .verify-close-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 3.5px;
  stroke-linecap: square;
}

body.verify-page #verify-request-id-modal .verify-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  color: #6b7a92;
  font-size: 1rem;
  letter-spacing: .16em;
}

body.verify-page #verify-request-id-modal .verify-eyebrow::before {
  width: 42px;
  height: 3px;
  flex: 0 0 42px;
  background: #6b7a92;
  content: "";
}

body.verify-page #verify-request-id-modal .verify-step-title {
  margin: 0 0 18px;
  color: #142b58;
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  letter-spacing: -.065em;
  line-height: 1.04;
}

body.verify-page #verify-request-id-modal .verify-copy {
  margin: 0 0 18px;
  color: #718099;
  font-size: 1.05rem;
  line-height: 1.75;
}

body.verify-page #verify-request-id-modal .verify-form {
  gap: 14px;
}

body.verify-page #verify-request-id-modal .verify-field-label {
  margin: 0 0 2px;
  color: #394e6c;
  font-size: 1rem;
  font-weight: 800;
}

body.verify-page #verify-request-id-modal .verify-select,
body.verify-page #verify-request-id-modal .verify-field-wrapper input {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #1e4c9b;
  border-radius: 12px;
  outline: 5px solid #e9eef6;
  background-color: #fff;
  color: #253c63;
  font: inherit;
  font-size: 1rem;
}

body.verify-page #verify-request-id-modal .verify-select:hover,
body.verify-page #verify-request-id-modal .verify-field-wrapper input:hover {
  border-color: #1e4c9b;
}

body.verify-page #verify-request-id-modal .verify-select:focus-visible,
body.verify-page #verify-request-id-modal .verify-field-wrapper input:focus-visible {
  border-color: #1e4c9b;
  outline: 5px solid #e9eef6;
  outline-offset: 0;
}

body.verify-page #verify-request-id-modal .verify-error:empty {
  display: none;
}

body.verify-page #verify-request-id-modal .verify-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 8px;
}

body.verify-page #verify-request-id-modal .verify-actions > button[hidden] {
  display: none;
}

body.verify-page #verify-request-id-modal #edit-application-step3 {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #cbd6e5;
  border-radius: 11px;
  background: #f5f7fb;
  color: #1b3e7d;
  font: inherit;
  font-size: .98rem;
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
}

body.verify-page #verify-request-id-modal #edit-application-step3:hover {
  border-color: #9eb1cd;
  background: #eaf0f8;
}

body.verify-page #verify-request-id-modal .verify-actions > button[type="submit"] {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 11px;
  background: #1b3e7d;
  box-shadow: 0 14px 30px rgba(27, 62, 125, .15);
  color: #fff;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
}

body.verify-page #verify-request-id-modal .verify-actions > button[type="submit"]:hover {
  background: #142f64;
}

body.verify-page #verify-request-id-modal .verify-actions > #cancel-request-id {
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #718099;
  font: inherit;
  font-size: .98rem;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
}

body.verify-page #verify-request-id-modal .verify-actions > #cancel-request-id:hover {
  background: #f4f6fa;
  color: #40536f;
}

body.verify-page #verify-request-id-modal .verify-actions > button:focus-visible,
body.verify-page #verify-request-id-modal .verify-close-inline:focus-visible {
  outline: 3px solid #1e4c9b;
  outline-offset: 3px;
}

@media (max-width: 620px) {
  body.verify-page #verify-request-id-modal {
    min-height: 0;
    padding: 62px 20px 24px;
    border-radius: 20px;
  }

  body.verify-page #verify-request-id-modal .verify-close-inline {
    top: 12px;
    right: 12px;
  }

  body.verify-page #verify-request-id-modal .verify-eyebrow {
    margin-bottom: 28px;
    font-size: .88rem;
  }

  body.verify-page #verify-request-id-modal .verify-copy {
    font-size: 1rem;
  }

  body.verify-page #verify-request-id-modal .verify-actions {
    align-items: stretch;
    flex-direction: column;
  }

  body.verify-page #verify-request-id-modal .verify-actions > button {
    width: 100%;
  }

  body.verify-page #verify-request-id-modal .verify-step-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.verify-page #verify-request-id-modal .verify-actions > button { transition: none; }
}


/* Mobile: prevent fixed navigation from covering section headings */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 76px;
    scroll-behavior: smooth;
  }

  body.homepage-page {
    padding-top: 60px;
  }

  body.homepage-page #mainHeader {
    height: 60px;
    z-index: 1000;
  }

  body.homepage-page #mainHeader nav {
    min-height: 60px;
    height: 60px;
  }

  body.homepage-page #home,
  body.homepage-page #about,
  body.homepage-page #stories,
  body.homepage-page #contact,
  body.homepage-page #benefits,
  body.homepage-page #questions {
    scroll-margin-top: 76px;
  }

  body.homepage-page #about,
  body.homepage-page #stories,
  body.homepage-page #contact,
  body.homepage-page #benefits,
  body.homepage-page #questions {
    position: relative;
  }
}

.file-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.68);
}

.file-preview-modal[hidden] {
  display: none !important;
}

.file-preview-dialog {
  display: flex;
  flex-direction: column;
  width: min(100%, 1000px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.file-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 16px;
  padding: 18px 22px;
}

.file-preview-head h3 {
  margin: 0;
}

#file-preview-close {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  cursor: pointer;
}

#file-preview-close .material-symbols-outlined {
  font-size: 26px;
  line-height: 1;
}

#file-preview-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

#file-preview-close:focus-visible {
  outline: 3px solid #e24b4a;
  outline-offset: 3px;
}

.file-preview-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: auto;
  background: #f8fafc;
}

.file-preview-body img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}

.file-preview-body iframe {
  display: block;
  width: 100%;
  height: min(75dvh, 760px);
  min-height: 300px;
  border: 0;
  background: #fff;
}

.file-preview-body img[hidden],
.file-preview-body iframe[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .file-preview-modal {
    padding: 10px;
  }

  .file-preview-dialog {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }

  .file-preview-head {
    padding: 14px 16px;
  }

  .file-preview-body {
    padding: 8px;
  }

  .file-preview-body img {
    max-height: calc(100dvh - 115px);
  }

  .file-preview-body iframe {
    height: 75dvh;
    min-height: 250px;
  }
}


/* Face verification modal: prevent overlap and improve close button */
.camera-modal {
  z-index: 20000;
  padding: 16px;
  overflow-y: auto;
  background: rgba(8, 24, 34, 0.96);
  backdrop-filter: blur(8px);
}

.camera-dialog {
  isolation: isolate;
  flex: 0 0 auto;
  width: min(460px, 100%);
  height: min(700px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: hidden;
}

#face-camera-video,
#face-camera-canvas {
  z-index: 0;
}

.camera-dialog-head {
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  right: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  backdrop-filter: none;
}

.camera-dialog-head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.camera-dialog-head h3 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.camera-status {
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.camera-close {
  position: relative;
  z-index: 2;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #dbe3ed;
  border-radius: 50%;
  background: #f1f5f9;
  color: #173a7c;
}

.camera-close .material-symbols-outlined {
  font-size: 24px;
  line-height: 1;
}

.camera-close:focus-visible {
  outline: 3px solid #e24b4a;
  outline-offset: 3px;
}

.face-verification-result {
  bottom: 86px;
  z-index: 3;
}

.face-camera-actions {
  z-index: 3;
}

@media (max-width: 600px) {
  .camera-modal {
    padding: 0;
  }

  .camera-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .camera-dialog-head {
    top: max(14px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    padding: 13px;
  }

  .camera-dialog-head h3 {
    font-size: 17px;
  }

  .camera-status {
    font-size: 12px;
  }

  .camera-close {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .face-verification-result {
    bottom: 86px;
  }
}


/* =====================================================
   MOBILE FORM POLISH: CHECKBOXES, CAPTCHA AND UPLOADS
   ===================================================== */
/* Native checkbox rendering restores the standard visible checkmark on mobile. */
body.application-form-page input[type="checkbox"],
body.registration-page input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  flex: 0 0 24px !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
  accent-color: #0b827a;
  vertical-align: middle;
  outline: none !important;
  box-shadow: none !important;
}
body.application-form-page input[type="checkbox"]:focus,
body.application-form-page input[type="checkbox"]:focus-visible,
body.registration-page input[type="checkbox"]:focus,
body.registration-page input[type="checkbox"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
body.application-form-page .check-option {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dce7ed;
  border-radius: 12px;
  background: #fbfdfe;
  transition: border-color .16s ease, background .16s ease;
}
body.application-form-page .check-option:has(input:checked) {
  border-color: #dce7ed;
  background: #fbfdfe;
  box-shadow: none;
}
body.application-form-page .checkbox-options { gap: 9px 12px; }

/* Do not clip Google's fixed-width reCAPTCHA iframe or its branding. */
body.registration-page .captcha-panel {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  overflow: visible;
}
body.registration-page .captcha-panel .g-recaptcha {
  width: 304px;
  height: 78px;
  max-width: none;
  min-width: 304px;
  flex: 0 0 78px;
  overflow: visible;
  transform: scale(.94);
  transform-origin: top left;
  margin-bottom: -4px;
}
body.registration-page .captcha-panel .g-recaptcha iframe { max-width: none; }
body.registration-page .captcha-help {
  flex: 0 0 auto;
  width: 100%;
  text-align: left;
}

/* Document upload previews */
.upload-box.has-file { min-height: 150px; padding: 12px; gap: 8px; }
.upload-box .upload-thumbnail {
  display: block;
  width: min(100%, 220px);
  height: 112px;
  object-fit: contain;
  border-radius: 9px;
  border: 1px solid #d7e3ea;
  background: #eef3f6;
  cursor: zoom-in;
}
.upload-box .upload-file-name { max-width: 100%; overflow-wrap: anywhere; }
.upload-box.has-file .upload-file-name { font-size: .88rem; font-weight: 700; color: #31556a; }
.notification-icon .material-symbols-outlined {
  font-size: 30px;
  line-height: 1;
  font-variation-settings: "FILL" 1, "wght" 600;
}

/* Make the completed face check read as a clear success status. */
.face-verification-form-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #9bd8bd;
  border-radius: 13px;
  background: #effaf4;
  color: #145c3d;
  box-sizing: border-box;
}
.face-verification-form-status[hidden] { display: none !important; }
.face-verification-form-icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #16834f;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}
.face-verification-form-status > div { display: grid; gap: 5px; min-width: 0; }
.face-verification-form-status strong { color: #145c3d; font-size: .98rem; line-height: 1.35; }
.face-verification-form-status small { display: block; color: #386b55; font-size: .9rem; line-height: 1.5; }

/* Notifications must be above the duplicate-choice modal when reporting a failed attempt. */
#success-notification-overlay { z-index: 1500; }
#duplicate-record-overlay { z-index: 1400; }

@media (max-width: 380px) {
  body.registration-page .captcha-panel .g-recaptcha {
    transform: scale(.88);
    margin-bottom: -8px;
  }
}


/* =====================================================
   RESTORED IMAGE CROPPER UI FROM PR #17
   Keep this block alongside the PR #18 mobile refinements.
   ===================================================== */
.image-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(5, 18, 30, .78);
  backdrop-filter: blur(5px);
}
.image-crop-modal[hidden] { display: none !important; }
.image-crop-dialog {
  width: min(760px, 100%);
  max-height: min(92dvh, 900px);
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.image-crop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e5edf2;
}
.image-crop-head h3 { margin: 0 0 5px; color: #102d46; }
.image-crop-head p { margin: 0; color: #607587; font-size: .9rem; line-height: 1.45; }
.image-crop-stage {
  min-height: 220px;
  max-height: 62dvh;
  padding: 12px;
  background: #101820;
  overflow: hidden;
}
.image-crop-stage img {
  display: block;
  max-width: 100%;
  max-height: 58dvh;
}
.image-crop-stage .cropper-container { max-width: 100%; }
.image-crop-stage .cropper-view-box,
.image-crop-stage .cropper-face { border-radius: 0; }
.image-crop-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid #e5edf2;
}
.image-crop-actions button { min-height: 46px; }
@media (max-width: 560px) {
  .image-crop-modal { padding: 8px; }
  .image-crop-dialog { max-height: 94dvh; border-radius: 14px; }
  .image-crop-head { padding: 13px; }
  .image-crop-stage { min-height: 200px; padding: 8px; }
  .image-crop-actions { padding: 12px; }
  .image-crop-actions button { flex: 1 1 100%; }
}

/* Page 6 uses the fixed action bar for Back, Review and submit, and Cancel Application.
   Keep these legacy controls in the DOM for existing JavaScript handlers, but never display them. */
.application-form-card .btn.submit[hidden],
.application-form-card #cancel-application[hidden] {
  display: none !important;
}


/* Visible feedback while the page-six fixed action bar is submitting. */
.mobile-action-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid #b9d9d2;
  border-radius: 12px;
  background: #effaf6;
  color: #075f50;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}
.mobile-action-progress::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: submission-progress-spin 0.8s linear infinite;
}
.mobile-action-progress[hidden] {
  display: none !important;
}
@keyframes submission-progress-spin {
  to { transform: rotate(360deg); }
}


/* QA FIX: respect the hidden attribute on generated file thumbnails.
   The generic thumbnail display rule must not reveal an empty/broken image. */
body.application-form-page .upload-box .upload-thumbnail[hidden] {
  display: none !important;
}

/* QA FIX: keep native date controls inside their mobile form field.
   iOS Safari gives date inputs an intrinsic width unless it is constrained. */
body.application-form-page input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  padding-inline: 12px;
  text-align: left;
}

body.application-form-page input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  width: 100%;
  text-align: left;
}

body.application-form-page .birth-row,
body.application-form-page .birth-row > .field {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}


/* QA FIX: keep the application form and its upload section fully scrollable.
   Long upload steps must grow with their contents instead of being clipped
   by a constrained grid/viewport on mobile browsers. */
html:has(body.application-form-page),
body.application-form-page {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body.application-form-page .page-frame,
body.application-form-page .form-wrapper,
body.application-form-page .application-form-card,
body.application-form-page .form-step-panel,
body.application-form-page #upload-files {
  min-height: 0;
  height: auto;
}

body.application-form-page .form-wrapper {
  overflow: visible;
}

body.application-form-page .application-steps {
  border-radius: 20px 0 0 20px;
}

body.application-form-page .upload-item,
body.application-form-page .upload-control,
body.application-form-page .upload-box {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.application-form-page .upload-item {
  align-items: start;
}

body.application-form-page .file-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: none;
  overflow-y: auto;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

body.application-form-page .file-preview-dialog {
  width: min(920px, 100%);
  max-height: calc(100dvh - 24px);
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

body.application-form-page .file-preview-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

body.application-form-page .file-preview-body img,
body.application-form-page .file-preview-body iframe {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
}

body.application-form-page .file-preview-body iframe {
  height: min(72dvh, 760px);
  min-height: 240px;
}

body.application-form-page .file-preview-body img[hidden],
body.application-form-page .file-preview-body iframe[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  body.application-form-page .form-wrapper {
    overflow: visible;
  }

  body.application-form-page .application-steps {
    border-radius: 16px 16px 0 0;
  }

  body.application-form-page .upload-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body.application-form-page .file-preview-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }
}


/* QA FIX: the document-upload step must expand to its full content height.
   Keep the page itself as the scroll container on narrow screens, rather than
   letting a nested form card/section clip the remaining upload controls. */
html:has(body.application-form-page) {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: auto;
}

body.application-form-page {
  min-height: 100dvh;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.application-form-page .page-frame,
body.application-form-page .form-wrapper,
body.application-form-page .application-form-card,
body.application-form-page #upload-files,
body.application-form-page #upload-files .upload-list,
body.application-form-page #upload-files .upload-item,
body.application-form-page #upload-files .upload-control {
  height: auto !important;
  max-height: none !important;
  min-height: 0;
  overflow: visible !important;
}

body.application-form-page .application-form-card {
  align-self: stretch;
}

body.application-form-page #upload-files .upload-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

body.application-form-page #upload-files .upload-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 760px) {
  body.application-form-page #upload-files .upload-item {
    grid-template-columns: minmax(0, 1fr);
  }

  body.application-form-page .application-form-card {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
}


/* QA FIX: keep the desktop application section navigation in view while
   the applicant scrolls through long form sections. The sidebar itself does
   not become a second scroll area; only the main page scrolls. */
@media (min-width: 761px) {
  body.application-form-page .form-wrapper {
    overflow: visible;
    align-items: stretch;
  }

  body.application-form-page .application-steps {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.application-form-page .application-steps .form-privacy-note {
    margin-top: auto;
    flex-shrink: 0;
  }
}

/* On phones/tablets the navigation remains in normal document flow so it
   does not cover the form or take over the limited viewport. */
@media (max-width: 760px) {
  body.application-form-page .application-steps {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
}


/* Responsive QA pass: fluid controls, no horizontal page overflow, and
   predictable sidebar/form behavior from small phones through wide desktops. */
html:has(body.application-form-page),
body.application-form-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body.application-form-page *,
body.application-form-page *::before,
body.application-form-page *::after {
  box-sizing: border-box;
}

body.application-form-page .page-frame,
body.application-form-page .form-wrapper,
body.application-form-page .application-steps,
body.application-form-page .application-form-card,
body.application-form-page .form-step-panel,
body.application-form-page .section-block,
body.application-form-page .row,
body.application-form-page .field,
body.application-form-page .upload-list,
body.application-form-page .upload-item {
  min-width: 0;
  max-width: 100%;
}

body.application-form-page input:not([type="checkbox"]):not([type="radio"]),
body.application-form-page input[type="date"],
body.application-form-page input[type="file"],
body.application-form-page select,
body.application-form-page textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.application-form-page input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 54px;
  padding-inline: 12px;
}

body.application-form-page .row.two,
body.application-form-page .row.two-thirds,
body.application-form-page .row.three,
body.application-form-page .row.four,
body.application-form-page .row.five {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.application-form-page .form-step-actions { flex-wrap: wrap; }
body.application-form-page .form-step-actions > * { min-width: 0; }
body.application-form-page .upload-item {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

@media (min-width: 901px) {
  body.application-form-page .form-wrapper {
    grid-template-columns: minmax(270px, 0.32fr) minmax(0, 1fr);
  }
  body.application-form-page .application-steps {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }
}

@media (max-width: 900px) {
  body.application-form-page .form-wrapper {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }
  body.application-form-page .application-steps {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: clamp(18px, 3vw, 26px);
  }
  body.application-form-page .steps-mark { display: none; }
  body.application-form-page .application-steps h1 { margin-top: 0; }
  body.application-form-page .steps-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 16px;
  }
  body.application-form-page .steps-nav a {
    grid-template-columns: 32px minmax(0, 1fr);
    min-width: 0;
    gap: 7px;
    padding: 8px 6px;
    font-size: clamp(.68rem, 1.3vw, .82rem);
  }
  body.application-form-page .steps-nav a span {
    width: 28px;
    height: 28px;
  }
  body.application-form-page .steps-nav a small { display: none; }
  body.application-form-page .form-side-progress { margin-top: 12px; }
  body.application-form-page .application-form-card {
    padding: clamp(18px, 3vw, 32px);
  }
}

@media (max-width: 600px) {
  body.application-form-page .page-frame {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
  body.application-form-page .form-header { margin-bottom: 16px; }
  body.application-form-page .page-frame > .form-header .header-bottom {
    min-height: 54px;
    padding: 8px 12px 8px 68px;
    border-radius: 0;
  }
  body.application-form-page .page-frame > .form-header .logo-box {
    left: 10px;
    width: 46px;
    height: 46px;
  }
  body.application-form-page .page-frame > .form-header .title-bar {
    font-size: clamp(.78rem, 3.5vw, 1rem);
    line-height: 1.25;
  }
  body.application-form-page .application-steps { padding: 16px 12px; }
  body.application-form-page .steps-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.application-form-page .steps-nav a {
    grid-template-columns: 28px minmax(0, 1fr);
    font-size: .72rem;
  }
  body.application-form-page .application-form-card {
    padding: 18px 14px max(24px, env(safe-area-inset-bottom));
  }
  body.application-form-page .row.two,
  body.application-form-page .row.two-thirds,
  body.application-form-page .row.three,
  body.application-form-page .row.four,
  body.application-form-page .row.five,
  body.application-form-page .upload-item {
    grid-template-columns: minmax(0, 1fr);
  }
  body.application-form-page .form-step-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  body.application-form-page .form-required-legend { margin-left: 0; }
  body.application-form-page .form-step-actions {
    align-items: stretch;
    flex-direction: column;
  }
  body.application-form-page .form-step-actions button,
  body.application-form-page .form-step-actions a {
    width: 100%;
    max-width: 100%;
  }
  body.application-form-page .checkbox-options {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  body.application-form-page .application-form-card { padding-inline: 10px; }
  body.application-form-page .steps-nav { gap: 4px; }
  body.application-form-page .steps-nav a {
    padding: 6px 4px;
    font-size: .66rem;
  }
  body.application-form-page .steps-nav a span {
    width: 24px;
    height: 24px;
  }
  body.application-form-page .section-block h2 { font-size: 1.35rem; }
}


/* Form-only scrolling: keep the browser viewport and page chrome stationary.
   The main form panel is the sole vertical scroll container. */
html:has(body.application-form-page) {
  width: 100%; height: 100%; min-height: 0;
  overflow: hidden !important;
}
body.application-form-page {
  width: 100%; height: 100dvh !important; min-height: 0 !important;
  max-height: 100dvh !important; margin: 0; overflow: hidden !important;
}
body.application-form-page .page-frame {
  display: flex; flex-direction: column; width: 100%; height: 100dvh;
  min-height: 0; max-height: 100dvh; margin: 0;
  padding: 12px 14px 14px; overflow: hidden;
}
body.application-form-page .page-frame > .form-header {
  flex: 0 0 auto; min-height: 0; margin: 0 0 12px;
}
body.application-form-page .form-wrapper {
  display: grid; flex: 1 1 auto; min-height: 0; height: auto;
  max-height: none; overflow: hidden; align-items: stretch;
}
body.application-form-page .application-steps {
  min-height: 0; max-height: 100%; overflow: hidden;
}
body.application-form-page .application-form-card {
  min-height: 0; height: 100%; max-height: 100%;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
@media (min-width: 901px) {
  body.application-form-page .form-wrapper {
    grid-template-columns: minmax(270px, .32fr) minmax(0, 1fr);
  }
  body.application-form-page .application-steps {
    position: relative; top: auto; align-self: stretch;
    height: 100%; min-height: 0; max-height: 100%; overflow: hidden;
  }
}
@media (max-width: 900px) {
  body.application-form-page .page-frame { padding: 8px; }
  body.application-form-page .page-frame > .form-header { margin-bottom: 8px; }
  body.application-form-page .form-wrapper {
    display: flex; flex-direction: column; flex: 1 1 auto;
    min-height: 0; overflow: hidden;
  }
  body.application-form-page .application-steps {
    flex: 0 0 auto; height: auto; min-height: 0;
    max-height: min(34dvh, 250px); overflow: hidden;
    padding: 12px 14px;
  }
  body.application-form-page .steps-nav { margin-top: 8px; }
  body.application-form-page .form-side-progress { display: none; }
  body.application-form-page .application-form-card {
    flex: 1 1 auto; width: 100%; min-height: 0; height: auto;
    max-height: none; padding: 18px 14px max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden; overflow-y: auto;
  }
}
@media (max-width: 600px) {
  body.application-form-page .page-frame { padding: 0; }
  body.application-form-page .page-frame > .form-header { margin: 0; }
  body.application-form-page .application-steps {
    max-height: 30dvh; padding: 10px 12px; border-radius: 0;
  }
  body.application-form-page .application-form-card {
    padding: 14px 12px max(24px, env(safe-area-inset-bottom));
  }
}


/* Correct form-only scroll behavior: keep the outer viewport/page fixed,
   while scrolling the form content and keeping the left navigation in place. */
html:has(body.application-form-page) {
  height: 100%;
  min-height: 0;
  overflow: hidden !important;
}
body.application-form-page {
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}
body.application-form-page .page-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  margin: 0;
  overflow: hidden;
}
body.application-form-page .page-frame > .form-header,
body.application-form-page .page-frame > .mobile-sticky-area,
body.application-form-page .page-frame > .mobile-draft-status {
  flex: 0 0 auto;
}
body.application-form-page .form-wrapper {
  display: grid;
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: hidden;
  align-items: stretch;
}
body.application-form-page .application-steps {
  position: relative !important;
  top: auto !important;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
body.application-form-page .application-form-card {
  flex: 1 1 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
@media (min-width: 901px) {
  body.application-form-page .form-wrapper {
    grid-template-columns: minmax(270px, .32fr) minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  body.application-form-page .page-frame { padding: 8px; }
  body.application-form-page .form-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  body.application-form-page .application-steps {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    max-height: min(30dvh, 230px);
    padding: 10px 14px;
  }
  body.application-form-page .steps-nav { margin-top: 8px; }
  body.application-form-page .form-side-progress { display: none; }
  body.application-form-page .application-form-card {
    flex: 1 1 0;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 16px 14px max(24px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 600px) {
  body.application-form-page .page-frame { padding: 0; }
  body.application-form-page .application-steps {
    max-height: 28dvh;
    padding: 8px 12px;
  }
  body.application-form-page .application-form-card {
    padding: 12px 12px max(24px, env(safe-area-inset-bottom));
  }
}


/* Global English / Filipino language switcher */
.osca-language-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100000;
  min-width: 108px;
  padding: 12px 18px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #001f78;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.osca-language-toggle:hover {
  background: #0033a0;
  transform: translateY(-2px);
}
.osca-language-toggle:focus-visible {
  outline: 3px solid #f5c542;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .osca-language-toggle {
    right: 14px;
    bottom: 14px;
    min-width: 94px;
    padding: 11px 15px;
    font-size: 13px;
  }
}


/* Header-mounted language switcher: never cover the chatbot or page content. */
.osca-language-toggle {
  position: static;
  z-index: 30;
  flex: 0 0 auto;
  min-width: 92px;
  margin: 0 0 0 14px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 999px;
  background: #001f78;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
  transition: background-color .2s ease, transform .2s ease;
}
.osca-language-toggle:hover { background: #0033a0; transform: translateY(-1px); }
.osca-language-toggle:focus-visible { outline: 3px solid #f5c542; outline-offset: 3px; }
#mainHeader nav .osca-language-toggle { margin-left: 14px; }
.form-header .header-bottom { padding-right: 122px; }
.form-header .osca-language-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  margin: 0;
  transform: translateY(-50%);
}
.disclaimer-hero { position: relative; }
.disclaimer-hero .osca-language-toggle {
  position: absolute;
  top: 12px;
  right: 58px;
  margin: 0;
}
.verify-flow { position: relative; }
.verify-flow > .osca-language-toggle {
  position: fixed;
  top: 14px;
  right: 16px;
  margin: 0;
}
@media (max-width: 900px) {
  #mainHeader nav .osca-language-toggle { margin-left: 8px; min-width: 82px; padding: 8px 11px; }
  .form-header .header-bottom { padding-right: 112px; }
}
@media (max-width: 480px) {
  #mainHeader nav .osca-language-toggle { min-width: 76px; padding: 8px 9px; font-size: 12px; }
  .form-header .header-bottom { padding-right: 104px; }
  .form-header .osca-language-toggle { right: 8px; min-width: 82px; padding: 8px 9px; }
}


/* Consistent compact language switcher across every public page.
   Use an ID selector so page-specific button rules cannot stretch it. */
#oscaLanguageToggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 92px !important;
  max-width: 112px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.85) !important;
  border-radius: 999px !important;
  background: #001f78 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: normal !important;
  text-align: center !important;
  text-transform: none !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  transform: none !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.16) !important;
  z-index: 35 !important;
}

#oscaLanguageToggle:hover {
  background: #0033a0 !important;
  transform: translateY(-1px) !important;
}

/* Main site: stay in the navigation row beside the hamburger control. */
#mainHeader nav #oscaLanguageToggle {
  position: static !important;
  flex: 0 0 auto !important;
  margin-left: 10px !important;
}

/* Application form: give the switcher its own row below the title bar. */
body.application-form-page .form-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
body.application-form-page .form-header #oscaLanguageToggle {
  position: static !important;
  align-self: flex-end !important;
  margin: 8px 0 0 auto !important;
}

/* Disclaimer: place it alongside the close control, without covering text. */
body.registration-page .disclaimer-hero {
  position: relative !important;
  padding-right: 180px !important;
}
body.registration-page .disclaimer-hero #oscaLanguageToggle {
  position: absolute !important;
  top: 14px !important;
  right: 66px !important;
}

/* Tracking page: a small horizontal control in the top-right corner. */
body.verify-page #oscaLanguageToggle {
  position: fixed !important;
  top: 14px !important;
  right: 16px !important;
}

@media (max-width: 600px) {
  #oscaLanguageToggle {
    min-width: 88px !important;
    max-width: 104px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 11px !important;
    font-size: 12px !important;
  }

  #mainHeader nav #oscaLanguageToggle {
    margin-left: 7px !important;
  }

  body.application-form-page .form-header #oscaLanguageToggle {
    margin-top: 7px !important;
  }

  body.registration-page .disclaimer-hero {
    padding: 66px 17px 18px !important;
    align-items: flex-start !important;
  }
  body.registration-page .disclaimer-hero #oscaLanguageToggle {
    top: 13px !important;
    right: 62px !important;
  }

  body.verify-page #oscaLanguageToggle {
    top: 10px !important;
    right: 10px !important;
  }
}


/* Floating language control: stacked directly below the chatbot button. */
#osca-chatbot {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 12px !important;
}

#osca-chatbot #oscaLanguageToggle {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1px !important;
  box-sizing: border-box !important;
  flex: 0 0 64px !important;
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
  color: #ffffff !important;
  font-size: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 12px 30px rgba(9, 79, 79, 0.32) !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

#osca-chatbot #oscaLanguageToggle:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px rgba(9, 79, 79, 0.38) !important;
}

#osca-chatbot #oscaLanguageToggle .material-symbols-outlined {
  font-size: 29px !important;
  line-height: 1 !important;
}

#osca-chatbot #oscaLanguageToggle .osca-language-code {
  display: block !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
}

#osca-chatbot #oscaLanguageToggle:focus-visible {
  outline: 3px solid #f5c542 !important;
  outline-offset: 4px !important;
}

@media (max-width: 600px) {
  #osca-chatbot {
    gap: 10px !important;
  }

  #osca-chatbot #oscaLanguageToggle {
    flex-basis: 58px !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
  }

  #osca-chatbot #oscaLanguageToggle .material-symbols-outlined {
    font-size: 27px !important;
  }

  #osca-chatbot #oscaLanguageToggle .osca-language-code {
    font-size: 9px !important;
  }
}


/* Keep the Registration Disclaimer close control at the far-right edge. */
body.registration-page .disclaimer-hero {
  position: relative;
}

body.registration-page .disclaimer-hero-copy {
  flex: 1 1 auto;
  padding-right: 58px;
}

body.registration-page .disclaimer-close {
  position: absolute;
  top: 22px;
  right: 30px;
  margin: 0;
  z-index: 3;
}

@media (max-width: 680px) {
  body.registration-page .disclaimer-hero-copy {
    padding-right: 44px;
  }

  body.registration-page .disclaimer-close {
    top: 17px;
    right: 17px;
  }
}
