/**
 * Stylesheet for apply.html (the applicant-facing application form page).
 * Extracted verbatim from apply.html's former inline <style> block —
 * content/rules unchanged, only the location moved.
 */



/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body), sans-serif;
  background: var(--light);
  color: var(--text);
}

:root {
  --navy:   #09162D;
  --blue:   #123B7A;
  --accent: #F49E00;
  --orange: #F05A00;
  --white:  #FFFFFF;
  --light:  #F5F6FA;
  --gray:   #6B7280;
  --border: #E5E7EB;
  --error:  #DC2626;
  --success:#16A34A;
  --text:   #0A1530;
  --font-heading: 'Space Grotesk';
  --font-body:    'Inter';
  --header-pad-y: 10px;
  --header-max-width: 1200px;
  /* Logo responsive scale — see css/index.css for the full rationale;
     kept in sync here since this stylesheet defines its own .logo-icon/
     .logo-divider/.logo-placeholder rather than importing index.css. */
  --logo-responsive-scale: 1;
}
@media (max-width: 600px) { :root { --logo-responsive-scale: 0.8; } }
@media (max-width: 400px) { :root { --logo-responsive-scale: 0.62; } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   HEADER
============================================================ */
.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; overflow: hidden; }
/* Header-scoped max-width override — .header-inner doubles as this page's
   .container (see apply.html markup), so override it specifically here
   rather than touching the global .container rule above. */
.header .header-inner { max-width: var(--header-max-width, 1200px); }
.header-inner { padding: var(--header-pad-y, 10px) 0; display: flex; align-items: center; justify-content: space-between; }
.logo-group { display: flex; align-items: center; gap: 24px; }
.logo-placeholder { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading), sans-serif; font-weight: 700; font-size: calc(18px * var(--logo-responsive-scale, 1)); color: var(--navy); text-decoration: none; }
.logo-icon { width: calc(72px * var(--logo-responsive-scale, 1)); height: calc(72px * var(--logo-responsive-scale, 1)); background: linear-gradient(135deg, var(--blue), var(--navy)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: calc(30px * var(--logo-responsive-scale, 1)); flex-shrink: 0; }
.logo-divider { width: 1px; height: calc(58px * var(--logo-responsive-scale, 1)); background: var(--border); }
.back-home { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--blue); transition: gap 0.2s; }
.back-home:hover { gap: 12px; }

/* ============================================================
   PAGE HEADER
============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 56px 0 64px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(244,158,0,0.25), transparent 70%);
  border-radius: 50%;
}
.page-header .container { position: relative; z-index: 1; }
.page-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.page-title { font-family: var(--font-heading), sans-serif; font-size: 40px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.page-subtitle { font-size: 16px; color: rgba(255,255,255,0.75); font-weight: 500; }

/* ============================================================
   LAYOUT
============================================================ */
.form-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 48px 0 100px;
  align-items: start;
}
@media (max-width: 960px) {
  .form-layout { grid-template-columns: 1fr; padding: 32px 0 64px; }
}

/* ============================================================
   CARD
============================================================ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(9,22,45,0.04);
}
.form-card { padding: 36px; }
@media (max-width: 600px) { .form-card { padding: 22px; } }

.section-block + .section-block { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.section-num {
  font-family: var(--font-heading), sans-serif;
  font-size: 13px; font-weight: 700; color: var(--accent);
  background: rgba(244,158,0,0.12);
  padding: 4px 10px; border-radius: 6px;
}
.section-title-text { font-family: var(--font-heading), sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); }

/* ============================================================
   FIELDS
============================================================ */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 13.5px; font-weight: 600; color: var(--navy);
  margin-bottom: 7px;
}
label .req { color: var(--orange); margin-left: 2px; }
.helper-text { font-size: 12.5px; color: var(--gray); margin-top: 6px; }
.word-counter { font-size: 12.5px; color: var(--gray); margin-top: 6px; text-align: right; font-weight: 500; }
.word-counter.over { color: var(--error); }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"],
select, textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body), sans-serif;
  font-size: 14.5px;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18,59,122,0.1);
}
input.invalid, select.invalid, textarea.invalid { border-color: var(--error); }
input.invalid:focus, select.invalid:focus, textarea.invalid:focus { box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
input.valid-field { border-color: var(--success) !important; }

select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7280' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.error-msg { font-size: 12.5px; color: var(--error); margin-top: 6px; display: none; font-weight: 500; }
.error-msg.show { display: block; }
.success-msg { font-size: 12.5px; color: var(--success); margin-top: 6px; display: none; font-weight: 500; }
.success-msg.show { display: block; }

/* File upload */
.file-drop {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 18px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: var(--light);
}
.file-drop:hover { border-color: var(--blue); background: #EEF2F9; }
.file-drop.has-file { border-color: var(--success); background: rgba(22,163,74,0.05); }
.file-drop.invalid { border-color: var(--error); }
.file-drop input[type="file"] { display: none; }
.file-icon { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--navy)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.file-drop.has-file .file-icon { background: linear-gradient(135deg, var(--success), #15803d); }
.file-text { flex: 1; min-width: 0; }
.file-name { font-size: 13.5px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* Radio */
.radio-group { display: flex; gap: 12px; }
.radio-opt { flex: 1; border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: border-color 0.15s, background 0.15s; font-size: 14px; font-weight: 600; color: var(--navy); }
.radio-opt:hover { border-color: var(--blue); }
.radio-opt input { accent-color: var(--blue); width: 16px; height: 16px; }
.radio-opt.checked { border-color: var(--blue); background: rgba(18,59,122,0.05); }

/* Annexure button */
.btn-annexure { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--blue); border: 1.5px solid var(--blue); border-radius: 8px; padding: 9px 16px; background: #fff; cursor: pointer; margin-top: 14px; }
.btn-annexure:hover { background: var(--blue); color: #fff; }

/* Terms box */
.terms-box { height: 160px; overflow-y: auto; border: 1.5px solid var(--border); border-radius: 10px; padding: 16px; font-size: 13px; line-height: 1.7; color: var(--gray); background: var(--light); }
.terms-box p + p { margin-top: 10px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
.checkbox-row input { margin-top: 3px; accent-color: var(--blue); width: 17px; height: 17px; flex-shrink: 0; }
.checkbox-row label { font-size: 13.5px; font-weight: 500; color: var(--navy); margin: 0; }

/* Submit */
.submit-row { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--orange), var(--accent));
  color: #fff; font-weight: 700; font-size: 15.5px;
  border: none; border-radius: 12px; padding: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px rgba(240,90,0,0.25);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(240,90,0,0.32); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.submit-status { text-align: center; font-size: 13.5px; font-weight: 600; margin-top: 14px; display: none; }
.submit-status.show { display: block; }
.submit-status.error { color: var(--error); }
.submit-status.success { color: var(--success); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; display: none; }
.btn-submit.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SIDEBAR
============================================================ */
/* top offset tracks the header's actual height (72px logo icon + the
   CMS-editable vertical padding on both sides) so the sticky sidebar still
   sits flush under the header bar even if an admin changes the padding. */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(72px + var(--header-pad-y, 10px) * 2); }
.side-card { padding: 26px; }
.side-card-title { font-family: var(--font-heading), sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.side-item { display: flex; gap: 12px; margin-bottom: 16px; }
.side-item:last-child { margin-bottom: 0; }
.side-icon { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; background: rgba(18,59,122,0.08); color: var(--blue); }
.side-item-title { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.side-item-desc { font-size: 12.5px; color: var(--gray); margin-top: 2px; line-height: 1.5; }

.criteria-list { list-style: none; }
.criteria-list li { font-size: 13.5px; color: var(--navy); font-weight: 500; padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 9px; }
.criteria-list li:last-child { border-bottom: none; }
.criteria-list li::before { content: '✓'; color: var(--success); font-weight: 700; font-size: 13px; }

.date-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.date-row:last-child { border-bottom: none; }
.date-label { font-size: 12.5px; color: var(--gray); font-weight: 600; }
.date-value { font-size: 13px; color: var(--navy); font-weight: 700; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; color: var(--blue); background: rgba(18,59,122,0.08); padding: 6px 12px; border-radius: 20px; }

/* ============================================================
   CUSTOM PROBLEM STATEMENT DROPDOWN
   Replaces the native <select> visually so long PS text wraps
   instead of being cut off with "...".
   The native <select> stays hidden for FormData + validation.
============================================================ */
.ps-custom-select { position: relative; }
.ps-custom-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 10px 14px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 15px; color: var(--text); cursor: pointer; text-align: left;
  font-family: var(--font-body), sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ps-custom-trigger:hover { border-color: #9ca3af; }
.ps-custom-select.open .ps-custom-trigger { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,59,122,0.08); outline: none; }
.ps-custom-trigger:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,59,122,0.08); outline: none; }
#psSelectWrap:has(.error-msg.show) .ps-custom-trigger { border-color: var(--error); }
.ps-custom-select.open .ps-custom-trigger svg { transform: rotate(180deg); }
.ps-custom-dropdown {
  display: none; list-style: none; margin: 0; padding: 4px 0;
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1.5px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12); z-index: 200;
  max-height: 300px; overflow-y: auto;
}
.ps-custom-select.open .ps-custom-dropdown { display: block; }
.ps-option {
  padding: 10px 16px; cursor: pointer; font-size: 14px; line-height: 1.5;
  color: var(--text); border-bottom: 1px solid var(--border);
}
.ps-option:last-child { border-bottom: none; }
.ps-option.ps-placeholder { color: var(--gray); font-style: italic; cursor: default; }
.ps-option:not(.ps-placeholder):hover { background: rgba(18,59,122,0.05); }
.ps-option.ps-selected { background: rgba(18,59,122,0.08); color: var(--navy); font-weight: 600; }

@media (max-width: 600px) {
  .page-title { font-size: 28px; }
  .radio-group { flex-direction: column; }
  .header-inner { gap: 10px; }
  .logo-group {
    overflow-x: auto; flex: 1 1 auto; min-width: 0;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .logo-group::-webkit-scrollbar { display: none; }
  .back-home { flex-shrink: 0; white-space: nowrap; font-size: 13px; }
  .verify-modal { padding: 36px 18px; }
  .otp-boxes { gap: 6px; }
  .otp-box { width: 40px; height: 50px; font-size: 20px; }
  .preview-modal { padding: 28px 18px; }
  /* The "← Back, Edit Application" / "Submit Application →" pair: side by
     side, the nowrap back button ate most of the row's width on narrow
     phones, squeezing the flex:1 submit button until its label wrapped
     and visually overflowed. Stack them instead so both get the full
     width and their labels render on one line. */
  .preview-actions { flex-direction: column; }
  .preview-actions .btn-preview-back,
  .preview-actions .btn-submit { width: 100%; }
}

/* ============================================================
   OTP VERIFICATION OVERLAY
============================================================ */
#verifyOverlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(9,22,45,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
#verifyOverlay.hidden { display: none; }

.verify-modal {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 460px; width: 100%;
  box-shadow: 0 32px 80px rgba(9,22,45,0.25);
  text-align: center;
  animation: popIn 0.3s cubic-bezier(.22,1,.36,1);
}
@keyframes popIn { from { transform: scale(0.92) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.verify-icon { font-size: 48px; margin-bottom: 16px; }
.verify-title { font-family: var(--font-heading), sans-serif; font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.verify-sub { font-size: 14.5px; color: var(--gray); line-height: 1.6; margin-bottom: 28px; }
.verify-sub strong { color: var(--navy); }

.verify-step { display: none; }
.verify-step.active { display: block; }

.otp-field-group { display: flex; gap: 10px; margin-bottom: 8px; }
.otp-field-group input[type="email"],
.otp-field-group input[type="tel"] {
  flex: 1; padding: 12px 14px; font-size: 15px;
}
.btn-otp-send {
  background: var(--blue); color: #fff; border: none;
  border-radius: 10px; padding: 12px 18px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  white-space: nowrap; transition: background 0.2s;
  flex-shrink: 0;
}
.btn-otp-send:hover { background: #0d2d5e; }
.btn-otp-send:disabled { opacity: 0.5; cursor: not-allowed; }

.otp-boxes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 20px 0 8px; }
input.otp-box {
  width: 52px; height: 60px;
  padding: 0;
  border: 2px solid var(--border); border-radius: 12px;
  font-size: 24px; font-weight: 700; text-align: center;
  color: var(--navy); background: var(--light);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.otp-box:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,59,122,0.15); background: #fff; }
.otp-box.filled { border-color: var(--accent); background: rgba(244,158,0,0.05); }
.otp-box.error-box { border-color: var(--error); animation: shake 0.4s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

.verify-msg { font-size: 13px; font-weight: 600; margin-top: 6px; min-height: 20px; }
.verify-msg.error { color: var(--error); }
.verify-msg.success { color: var(--success); }
.verify-msg.info { color: var(--gray); }

.btn-verify-submit {
  width: 100%; background: linear-gradient(135deg, var(--orange), var(--accent));
  color: #fff; border: none; border-radius: 12px; padding: 15px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  margin-top: 16px; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 18px rgba(240,90,0,0.25);
}
.btn-verify-submit:hover { transform: translateY(-2px); }
.btn-verify-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.resend-row { margin-top: 14px; font-size: 13px; color: var(--gray); }
.resend-row a { color: var(--blue); font-weight: 600; cursor: pointer; }
.resend-row a.disabled { color: var(--gray); cursor: not-allowed; pointer-events: none; }

.verified-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(22,163,74,0.1); color: var(--success);
  border: 1px solid rgba(22,163,74,0.3);
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 700; margin-top: 10px;
}

/* Domain duplicate warning */
.domain-warning {
  background: rgba(220,38,38,0.07);
  border: 1.5px solid rgba(220,38,38,0.3);
  border-radius: 10px; padding: 12px 16px;
  font-size: 13px; color: var(--error); font-weight: 600;
  display: none; margin-top: 8px; line-height: 1.5;
}
.domain-warning.show { display: block; }

/* Inline problem-statement preview shown under the domain dropdown —
   see js/apply/cms-render.js. */
.domain-ps-preview {
  display: none;
  margin-top: 10px;
  background: var(--light, #F4F7FC);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
}
.domain-ps-preview.show { display: block; }
.domain-ps-preview-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.domain-ps-preview-heading { font-size: 14.5px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.domain-ps-preview-subject { font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.domain-ps-preview-points { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--text); line-height: 1.6; }
.domain-ps-preview-points li { margin-bottom: 4px; }

/* Success page */
#successScreen {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
#successScreen.show { display: block; }
.success-icon-big { font-size: 72px; margin-bottom: 24px; }
.success-h { font-family: var(--font-heading), sans-serif; font-size: 32px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.success-p { font-size: 16px; color: var(--gray); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }
.btn-back-home { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 14px 32px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; }

/* ============================================================
   PREVIEW & CONSENT MODAL
============================================================ */
#previewOverlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(9,22,45,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
#previewOverlay.show { opacity: 1; pointer-events: auto; }

.preview-modal {
  background: #fff; border-radius: 20px; padding: 36px 32px;
  max-width: 600px; width: 100%; max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px rgba(9,22,45,0.25);
  animation: popIn 0.3s cubic-bezier(.22,1,.36,1);
}
.preview-body { overflow-y: auto; margin: 4px 0 8px; padding-right: 6px; }
.preview-section-title { font-family: var(--font-heading), sans-serif; font-weight: 700; font-size: 14px; color: var(--blue); text-transform: uppercase; letter-spacing: 0.04em; margin: 20px 0 8px; }
.preview-section-title:first-child { margin-top: 0; }
.preview-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.preview-row:last-child { border-bottom: none; }
.preview-label { color: var(--gray); flex: 0 0 42%; }
.preview-value { color: var(--navy); font-weight: 600; text-align: right; flex: 1; word-break: break-word; }
.preview-empty { color: var(--border); font-weight: 400; }
.preview-actions { display: flex; gap: 12px; margin-top: 8px; }
.btn-preview-back {
  background: #fff; border: 1.5px solid var(--border); color: var(--navy);
  border-radius: 12px; padding: 15px 20px; font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap; transition: border-color 0.2s, background 0.2s;
}
.btn-preview-back:hover { border-color: var(--blue); background: var(--light); }
.preview-actions .btn-submit { flex: 1; margin: 0; }

/* ============================================================
   SUBMIT PROGRESS OVERLAY
   Blurs everything behind it (the preview + form) while the
   application is being uploaded, showing a live percentage.
============================================================ */
#submitOverlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(9,22,45,0.55); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
#submitOverlay.show { opacity: 1; pointer-events: auto; }
.submit-progress-card {
  background: #fff; border-radius: 20px; padding: 40px 36px; text-align: center;
  max-width: 360px; width: 100%; box-shadow: 0 32px 80px rgba(9,22,45,0.3);
  animation: popIn 0.3s cubic-bezier(.22,1,.36,1);
}
.upload-pct { font-family: var(--font-heading), sans-serif; font-size: 38px; font-weight: 700; color: var(--navy); margin: 4px 0 14px; }
.progress-track { width: 100%; height: 10px; border-radius: 6px; background: var(--light); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--accent)); transition: width 0.25s ease; }
.upload-progress-label { font-size: 13.5px; color: var(--gray); margin-top: 14px; font-weight: 600; }
