:root {
  --neural-blue: #3d6ef5;
  --electric-violet: #7a55ef;
  --deep-violet: #6b4de8;
  --brand-gradient: linear-gradient(135deg, #3d6ef5 0%, #7a55ef 55%, #6b4de8 100%);
  --ink: #211c50;
  --text: #44445f;
  --muted: #717187;
  --line: #e7e8f1;
  --danger: #af304a;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-body);
  font-family: var(--font-body);
  color: var(--ink);
  background: #f7f8fc;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
html::-webkit-scrollbar { width: 11px; }
html::-webkit-scrollbar-track { background: #f2f3fa; }
html::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #8aa0f6, #a184ed);
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--neural-blue), var(--deep-violet)) padding-box; }
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: #9a8ae6 #f2f3fa; }
}
body { margin: 0; font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; background: radial-gradient(ellipse 600px 640px at 0 280px, #ecebff85, transparent 85%); }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
::selection { color: var(--ink); background: #e4deff; }

.page-header { position: relative; border-bottom: 1px solid var(--line); background: #ffffffed; }
.page-header::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand-gradient); }
.header-inner { max-width: 1280px; margin: auto; padding: 25px 40px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 32px; height: 42px; object-fit: contain; }
.brand > div { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 24px; }
.brand p { margin: 0; }
.brand-name { font-family: var(--font-heading); font-size: 16px; font-weight: 700; letter-spacing: -.45px; }
.brand-sub { padding-left: 22px; border-left: 1px solid #d9d9e8; color: #626079; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.8px; }

.form-sheet { width: 100%; max-width: 936px; margin: auto; padding: 52px 28px 80px; }
.intro { margin-bottom: 37px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: #6550b7; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.65px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--brand-gradient); }
h1 { margin: 0 0 16px; font-family: var(--font-heading); font-size: clamp(33px, 4vw, 44px); line-height: 1.18; font-weight: 700; letter-spacing: -1.9px; }
h1 > span { color: var(--deep-violet); background: var(--brand-gradient); background-clip: text; -webkit-text-fill-color: transparent; }
.intro > p { max-width: 72ch; margin: 0; color: #6a697e; font-size: 14px; line-height: 1.85; }

.form-card { min-width: 0; }
.form-guidance { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.form-guidance > p { margin: 0; color: var(--muted); font-size: 11px; }
.required-note > .req { margin-right: 4px; }
.req { color: var(--deep-violet); font-weight: 600; }
.form-section, .success { position: relative; padding: 36px 40px; background: #fff; border: 1px solid #e2e6f2; border-radius: 18px; box-shadow: 0 3px 8px #28305406, 0 18px 48px -24px #25245130; }
.form-section:first-of-type { overflow: hidden; }
.form-section:first-of-type::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--brand-gradient); }
.form-section + .form-section { margin-top: 24px; }
h2 { display: flex; align-items: center; gap: 13px; margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-family: var(--font-heading); font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: -.5px; }
.section-number { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #dce3ff; border-radius: 11px; background: linear-gradient(135deg, #ecf1ff, #f6f0ff); color: #604bc1; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .2px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; min-width: 0; }
.form-section > .field + .field { margin-top: 28px; }
label, .label { margin-bottom: 9px; color: #302e50; font-size: 13px; font-weight: 600; }
.field:focus-within > label, .field:focus-within > .label { color: #5945bf; }
.optional { margin-left: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
input[type='text'], input[type='email'], input[type='url'], textarea { width: 100%; min-height: 54px; padding: 13px 16px; border: 1px solid #d6dced; border-radius: 11px; background: #fff; color: var(--ink); font-size: 14px; box-shadow: 0 1px 3px #28305408, inset 0 1px 1px #28305403; transition: border-color .18s, box-shadow .18s, background .18s; }
textarea { min-height: 148px; resize: vertical; line-height: 1.8; }
input::placeholder, textarea::placeholder { color: #838398; opacity: 1; }
input:hover, textarea:hover { border-color: #aebce0; background: #fcfdff; }
input:focus, textarea:focus { outline: none; border-color: #7458ea; background: #fff; box-shadow: 0 0 0 4px #7a55ef1a, 0 4px 14px #3d6ef512; }
input:disabled, textarea:disabled { cursor: wait; opacity: .65; }
input[type='checkbox'] { display: grid; place-items: center; appearance: none; width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; border: 1.5px solid #aab3ce; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px #2524510a; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
input[type='checkbox']::after { content: ''; width: 9px; height: 5px; border-bottom: 2px solid #fff; border-left: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
input[type='checkbox']:checked { border-color: transparent; background: var(--brand-gradient); box-shadow: 0 2px 6px #6b4de84d; }
input[type='checkbox']:checked::after { opacity: 1; }
input[type='checkbox']:focus-visible { outline: 2px solid var(--neural-blue); outline-offset: 4px; }
.hint { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.field-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.character-count { flex-shrink: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.expertise-hint { margin: -2px 0 16px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { display: flex; align-items: center; gap: 13px; min-width: 0; min-height: 60px; margin: 0; padding: 14px 16px; border: 1px solid #dfe3f0; border-radius: 11px; background: #fff; color: #4d4a68; font-size: 12px; font-weight: 500; line-height: 1.6; cursor: pointer; box-shadow: 0 1px 3px #25245105; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.choice input { margin-top: 0; }
.choice:hover { background: #fafbff; border-color: #a9b9ed; transform: translateY(-1px); box-shadow: 0 5px 12px #3d6ef512; }
.choice:focus-within { border-color: #7458ea; box-shadow: 0 0 0 3px #7a55ef14; }
.choice:has(input:checked) { border-color: #967cf1; background: linear-gradient(115deg, #f4f7ff, #f8f4ff); color: #493598; box-shadow: 0 0 0 1px #7a55ef14, 0 4px 10px #6b4de80d; }
.other-wrap { display: flex; flex-direction: column; margin-top: 16px; }
.dropzone { position: relative; border: 1.5px dashed #b9c4ed; border-radius: 13px; background: linear-gradient(115deg, #f7faff, #faf7ff); transition: background .18s, border-color .18s, box-shadow .18s; }
.dropzone:hover, .dropzone.dragover { border-color: var(--electric-violet); background: #f5f1ff; box-shadow: 0 0 0 4px #7a55ef0b; }
.dropzone:focus-within { outline: 2px solid var(--neural-blue); outline-offset: 4px; }
.dropzone-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone.has-file .dropzone-input { display: none; }
.dropzone-empty, .dropzone-preview { display: flex; align-items: center; gap: 17px; min-height: 122px; padding: 26px; }
.dropzone-empty { pointer-events: none; }
.dropzone-empty > div { flex: 1; min-width: 0; }
.upload-icon { width: 46px; height: 46px; flex: 0 0 46px; padding: 11px; border: 1px solid #e3dfff; border-radius: 12px; background: #fff; color: #7257c3; box-shadow: 0 4px 10px #3320610c; }
.upload-title { margin: 0; color: #3c355d; font-size: 13px; font-weight: 600; }
.dropzone .hint { margin-top: 4px; font-size: 11px; }
.choose-file { padding: 10px 14px; border: 1px solid #d0c9eb; border-radius: 8px; background: #fff; color: #6145b6; font-size: 11px; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 5px #2421430b; }
.dropzone-preview img { width: 56px; height: 56px; border: 3px solid #fff; border-radius: 10px; object-fit: cover; box-shadow: 0 2px 8px #2421430e; }
.preview-info { flex: 1; min-width: 0; }
.preview-info > p:first-child { overflow: hidden; margin: 0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.consent { display: flex; align-items: flex-start; gap: 15px; margin: 0; padding: 21px; border: 1px solid #dde5f7; border-radius: 11px; background: linear-gradient(115deg, #f7faff, #faf8ff); color: #57536e; font-size: 12px; font-weight: 400; line-height: 1.9; cursor: pointer; transition: border-color .18s, box-shadow .18s, background .18s; }
.consent:hover, .consent:focus-within { border-color: #b8a8ec; box-shadow: 0 0 0 3px #7a55ef0c; }
.consent:has(input:checked) { border-color: #a58ff0; background: #f7f3ff; }
.consent.invalid { border-color: var(--danger); background: #fff7f8; }
.consent.invalid input { border-color: var(--danger); }
.consent input { margin-top: 4px; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 4px 0; }
.submission-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; white-space: nowrap; }
button { border-radius: 8px; cursor: pointer; transition: filter .18s, box-shadow .18s, background .18s, transform .18s; }
button:focus-visible { outline: 2px solid var(--neural-blue); outline-offset: 4px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 54px; padding: 15px 27px; border: 0; border-radius: 11px; background: var(--brand-gradient); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 5px 11px #6b4de82b, 0 12px 22px -9px #6b4de87a; }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 18px -6px #6b4de86b; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-arrow { width: 17px; height: 17px; }
.btn-secondary { min-height: 40px; padding: 9px 14px; border: 1px solid #dcd9e9; background: #fff; color: #5a4a89; font-size: 11px; font-weight: 500; }
.btn-secondary:hover { border-color: #b7a5e6; background: #f8f5ff; }
.error { margin: 7px 0 0; color: var(--danger); font-size: 11px; }
.error:empty { display: none; }
.field.invalid > input, .field.invalid textarea, .other-wrap.invalid input, .field.invalid .dropzone { border-color: var(--danger); }
.field.invalid > input:focus { box-shadow: 0 0 0 4px #af304a0c; }
.form-alert { margin-bottom: 20px; padding: 14px 18px; border: 1px solid #edc5cf; border-radius: 10px; background: #fff4f6; color: var(--danger); font-size: 12px; }
#submissionStatus { text-align: right; }
#submissionStatus:empty { display: none; }
.spinner { display: none; width: 15px; height: 15px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.loading .spinner { display: inline-block; }
.loading .button-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.success { overflow: hidden; margin-top: 33px; padding: 40px; outline: none; }
.success::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand-gradient); }
.success h2 { display: block; margin-bottom: 16px; font-size: 26px; line-height: 1.4; }
.success > p { color: var(--muted); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.success strong { color: var(--ink); font-weight: 500; }
#notificationStatus { padding: 14px 16px; border: 1px solid #e6def7; border-radius: 8px; background: #faf7ff; color: #655380; }
#submissionReference { font-variant-numeric: tabular-nums; }
.summary { margin: 28px 0; border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; overflow-wrap: anywhere; }
.success > button { margin: 0 8px 8px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) {
  .header-inner { max-width: 824px; padding: 22px 32px; }
  .form-sheet { max-width: 824px; padding: 44px 32px 60px; }
  .intro { margin-bottom: 30px; }
  h1 { margin-bottom: 16px; font-size: 40px; }
  .form-guidance { justify-content: flex-start; }
  .success { margin-top: 0; }
}
@media (max-width: 600px) {
  .header-inner { padding: 19px 22px; }
  .brand { gap: 12px; }
  .brand img { width: 28px; height: 36px; }
  .brand > div { display: block; }
  .brand-name { font-size: 13px; letter-spacing: -.3px; }
  .brand-sub { margin-top: 2px; padding-left: 0; border: 0; font-size: 8px; letter-spacing: 1.5px; }
  .form-sheet { padding: 34px 20px 40px; }
  .eyebrow { gap: 9px; font-size: 9px; letter-spacing: 1.4px; }
  h1 { font-size: 34px; line-height: 1.22; letter-spacing: -1.35px; }
  h1 > span { display: block; }
  .intro > p { font-size: 13px; line-height: 1.9; }
  .form-guidance > p { font-size: 10px; }
  .form-section, .success { padding: 24px 20px; border-radius: 12px; }
  .form-section + .form-section { margin-top: 18px; }
  h2 { align-items: flex-start; gap: 11px; margin-bottom: 24px; padding-bottom: 17px; font-size: 16px; }
  .section-number { width: 30px; height: 30px; flex-basis: 30px; margin-top: -2px; border-radius: 8px; font-size: 10px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .span-2 { grid-column: auto; }
  input[type='text'], input[type='email'], input[type='url'], textarea { min-height: 52px; font-size: 16px; }
  .choices { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .choice { min-height: 54px; padding: 12px; font-size: 12px; }
  .hint { font-size: 12px; }
  .optional { font-size: 10px; }
  .field-meta { flex-wrap: wrap; gap: 0; }
  .character-count { margin-left: auto; font-size: 11px; }
  .dropzone-empty { flex-wrap: wrap; gap: 13px; padding: 20px 16px; }
  .dropzone-empty > div { flex-basis: calc(100% - 63px); }
  .choose-file { margin-left: 59px; }
  .dropzone-preview { gap: 10px; padding: 16px 12px; }
  .dropzone-preview img { width: 44px; height: 44px; }
  .dropzone-preview .btn-secondary { padding: 8px 10px; }
  .consent { padding: 15px; font-size: 11px; }
  .actions { flex-direction: column-reverse; align-items: stretch; gap: 14px; margin-top: 22px; }
  .btn-primary { min-height: 50px; }
  .submission-note { max-width: none; text-align: center; font-size: 10px; }
  #submissionStatus { text-align: center; }
  .success { padding-top: 30px; }
  .success h2 { font-size: 23px; }
  .summary div { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 359px) {
  .header-inner { padding-right: 18px; padding-left: 18px; }
  .form-sheet { padding-right: 14px; padding-left: 14px; }
  .form-section, .success { padding-right: 16px; padding-left: 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 15px; }
  .brand-name { font-size: 12px; }
  .summary div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  h1 > span { -webkit-text-fill-color: currentColor; background: none; }
  .btn-primary { border: 1px solid ButtonText; }
  input[type='checkbox'] { appearance: auto; }
  input[type='checkbox']::after { display: none; }
  .choice:has(input:checked), .consent:has(input:checked) { border-width: 2px; }
}
