:root {
  --midnight: #0b1020;
  --midnight-2: #111a2b;
  --gold: #b08d57;
  --gold-light: #d3b177;
  --ivory: #f7f2e8;
  --paper: #fcfaf6;
  --white: #ffffff;
  --slate: #56606b;
  --ink: #151b27;
  --muted: #6c7280;
  --line: #dcd6ca;
  --line-dark: rgba(255,255,255,.14);
  --success: #245b48;
  --danger: #9b3d31;
  --shadow: 0 24px 60px rgba(11,16,32,.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--white); color: var(--midnight); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 92px; padding: 1rem clamp(1.25rem, 4vw, 4.5rem); background: var(--midnight); color: var(--white); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(176,141,87,.55); }
.brand { display: flex; align-items: center; gap: 1.1rem; color: var(--white); text-decoration: none; }
.brand img { width: 128px; height: auto; display: block; }
.brand span { padding-left: 1.1rem; border-left: 1px solid var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; }
.header-meta { text-align: right; display: flex; align-items: center; gap: 1.4rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.intro-page { width: min(1420px, calc(100% - 3rem)); margin: clamp(2rem, 4vw, 4.5rem) auto; box-shadow: var(--shadow); border: 1px solid rgba(176,141,87,.25); background: var(--paper); }
.intro-page[hidden], .application-shell[hidden] { display: none; }
.intro-hero { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); grid-template-areas: "welcome banner"; }
.intro-copy { grid-area: welcome; padding: clamp(3rem, 7vw, 7rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.intro-copy h1 { max-width: 760px; margin: 0; color: var(--midnight); font-family: var(--serif); font-size: clamp(3.4rem, 7vw, 6.4rem); font-weight: 600; letter-spacing: -.035em; line-height: .88; }
.intro-lead { max-width: 720px; margin: 1.5rem 0 .7rem; color: #303846; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; }
.intro-body { max-width: 720px; margin: 0; color: var(--slate); font-size: .95rem; line-height: 1.75; }
.button--gold { background: var(--gold); color: var(--midnight); border-color: var(--gold); }
.button--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.button--large { min-width: min(100%, 390px); min-height: 64px; padding: 1rem 2rem; font-size: .9rem; letter-spacing: .06em; box-shadow: 0 12px 26px rgba(176,141,87,.22); }
.intro-meta { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; color: var(--muted); font-size: .72rem; }
.intro-meta span { display: flex; align-items: baseline; gap: .35rem; }
.intro-meta strong { color: var(--midnight); font-family: var(--serif); font-size: 1.15rem; }
.intro-promise { grid-area: banner; position: relative; overflow: hidden; padding: 3.5rem; background: radial-gradient(circle at 100% 0, #26344a 0, transparent 35%), var(--midnight); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; }
.intro-promise::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent 12px, rgba(176,141,87,.06) 13px, transparent 14px); }
.intro-promise > * { position: relative; }
.intro-promise img { width: 82px; height: auto; margin-bottom: auto; }
.intro-promise p { max-width: 340px; margin: 4rem 0 1.2rem; font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.02; }
.intro-promise span { max-width: 320px; color: #c8cbd2; font-size: .84rem; line-height: 1.65; }
.relationship-section { padding: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.relationship-heading { max-width: 680px; margin-bottom: 2rem; }
.relationship-heading h2 { margin: 0; color: var(--midnight); font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 3.8rem); font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.relationship-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.relationship-card { min-height: 210px; padding: 1.6rem; border: 1px solid var(--line); background: var(--white); }
.relationship-icon { width: 38px; height: 38px; margin-bottom: 1.8rem; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; }
.relationship-card h3 { margin: 0 0 .55rem; color: var(--midnight); font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; }
.relationship-card p { margin: 0; color: var(--slate); font-size: .82rem; line-height: 1.65; }
.relationship-note { margin-top: 1rem; padding: 1.2rem 1.4rem; background: #f1eadc; border-left: 2px solid var(--gold); display: grid; grid-template-columns: auto 1fr; gap: 1rem; color: var(--slate); font-size: .8rem; }
.relationship-note strong { color: var(--midnight); }
.intro-cta { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }

.application-shell { width: min(1420px, calc(100% - 3rem)); margin: clamp(2rem, 4vw, 4.5rem) auto; background: var(--paper); display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); min-height: 760px; box-shadow: var(--shadow); border: 1px solid rgba(176,141,87,.25); }
.journey-panel { position: relative; overflow: hidden; background: radial-gradient(circle at 120% -10%, #26344a 0, transparent 35%), var(--midnight); color: var(--white); padding: 3.25rem 2.5rem; display: flex; flex-direction: column; }
.journey-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0, transparent 10px, rgba(176,141,87,.05) 11px, transparent 12px); opacity: .4; }
.journey-panel > * { position: relative; z-index: 1; }
.journey-intro h1 { margin: 0; max-width: 290px; font-family: var(--serif); font-size: clamp(2.15rem, 3.3vw, 3rem); font-weight: 600; line-height: .98; letter-spacing: -.02em; }
.journey-intro > p:last-child { color: #c8cbd2; line-height: 1.65; margin-top: 1.25rem; font-size: .9rem; }
.progress-summary { margin: 2.2rem 0 1.4rem; }
.progress-summary > div:first-child { display: flex; justify-content: space-between; color: #d8dbe2; font-size: .75rem; }
.progress-track { height: 2px; margin-top: .65rem; background: rgba(255,255,255,.16); }
.progress-track span { display: block; width: 12.5%; height: 100%; background: var(--gold-light); transition: width .35s ease; }
.step-nav { display: grid; gap: .1rem; }
.step-link { width: 100%; border: 0; background: transparent; color: #858b98; padding: .52rem 0; display: flex; align-items: center; gap: .9rem; cursor: pointer; text-align: left; font-size: .84rem; transition: color .2s ease, transform .2s ease; }
.step-link span { width: 1.7rem; color: #656c78; font-size: .65rem; letter-spacing: .1em; }
.step-link:hover:not(:disabled), .step-link:focus-visible { color: var(--white); transform: translateX(3px); }
.step-link.is-active { color: var(--white); }
.step-link.is-active span, .step-link.is-complete span { color: var(--gold-light); }
.step-link.is-complete { color: #b8bdc7; }
.control-principle { margin-top: auto; padding-top: 2.5rem; color: #d9dce2; font-family: var(--serif); font-size: 1.05rem; line-height: 1.45; letter-spacing: .02em; }
.gold-rule { display: block; width: 42px; height: 1px; background: var(--gold); margin-bottom: 1rem; }

.form-panel { padding: clamp(2rem, 5vw, 5.25rem) clamp(1.5rem, 6vw, 6.5rem) 2.25rem; display: flex; flex-direction: column; }
#vendorForm { display: flex; flex-direction: column; flex: 1; }
.form-step { animation: step-in .35s ease both; }
.form-step[hidden], .conditional[hidden] { display: none !important; }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.section-heading { max-width: 750px; margin-bottom: 2.25rem; }
.section-heading h2, .success-panel h2 { margin: 0; color: var(--midnight); font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 5vw, 4rem); line-height: .95; letter-spacing: -.025em; }
.section-heading > p:last-child { color: var(--slate); max-width: 720px; margin: 1rem 0 0; line-height: 1.75; }
.subsection { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.subsection h3, .conditional h3 { margin: 0 0 1.25rem; color: var(--midnight); font-family: var(--serif); font-size: 1.65rem; }
.subsection-intro { max-width: 760px; margin: -.55rem 0 1.35rem; color: var(--slate); font-size: .86rem; line-height: 1.7; }

.notice-card { display: grid; grid-template-columns: auto 1fr; gap: 1.15rem; padding: 1.25rem; margin: 0 0 2rem; border: 1px solid var(--line); }
.notice-card--gold { background: #f3ecdf; border-color: #d5bf98; }
.notice-card--slate { background: #f0f2f3; border-color: #cdd1d4; }
.notice-icon { width: 44px; height: 44px; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; }
.notice-card h3 { margin: 0 0 .3rem; font-size: .95rem; }
.notice-card p { margin: 0; color: var(--slate); font-size: .86rem; line-height: 1.6; }
.preflight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 2rem; }
.preflight-card { min-height: 175px; padding: 1.3rem; border: 1px solid var(--line); background: var(--white); }
.card-number { display: block; color: var(--gold); font-size: .7rem; letter-spacing: .12em; margin-bottom: 1.6rem; }
.preflight-card h3 { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.preflight-card p { margin: 0; color: var(--slate); font-size: .82rem; line-height: 1.55; }

.field-grid { display: grid; gap: 1.25rem; }
.field-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field--wide { grid-column: 1 / -1; }
.field { display: grid; gap: .45rem; align-content: start; color: var(--ink); font-size: .85rem; font-weight: 500; }
.field > span, legend { line-height: 1.4; }
.field b, legend b, .action-note b { color: var(--gold); }
.field small, legend small { color: var(--muted); font-size: .75rem; font-weight: 400; }
legend small { display: block; margin-top: .2rem; }
input, select, textarea { width: 100%; border: 1px solid #c8c6c1; border-radius: 0; background: var(--white); color: var(--ink); padding: .82rem .9rem; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.15); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--danger); }
.choice-group { border: 0; padding: 0; margin: 0 0 1.75rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: .85rem; }
.choice-grid label { position: relative; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-grid span { min-height: 54px; border: 1px solid var(--line); background: var(--white); display: flex; align-items: center; padding: .8rem 1rem .8rem 2.55rem; font-size: .82rem; transition: all .2s ease; }
.choice-grid span::before { content: ""; position: absolute; left: 1rem; width: .85rem; height: .85rem; border: 1px solid #a8a8a5; }
.choice-grid input:checked + span { border-color: var(--gold); background: #f5efe3; }
.choice-grid input:checked + span::before { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px #f5efe3; }
.choice-grid input:focus-visible + span { box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
.field-error { color: var(--danger); font-size: .78rem; margin: .45rem 0 0; }
.conditional { margin-top: 1.4rem; padding: 1.35rem; border-left: 2px solid var(--gold); background: #f7f3eb; }

.check-row { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; padding: 1rem; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: #2d3440; font-size: .86rem; }
.check-row input { width: 1.1rem; height: 1.1rem; margin-top: .18rem; accent-color: var(--gold); }
.check-row span { display: grid; }
.check-row small { color: var(--muted); font-size: .76rem; margin-top: .2rem; }
.check-row--consent { border-color: #cbb78f; background: #fffdfa; }
.declaration-list { display: grid; gap: .65rem; }
.signature-card { margin-top: 1.5rem; padding: 1.5rem; background: var(--midnight); color: var(--white); }
.signature-card .field { color: var(--white); }
.signature-card p { color: #c7cbd2; font-size: .78rem; margin: .9rem 0 0; }

.upload-list { display: grid; gap: .75rem; }
.upload-card { position: relative; min-height: 78px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1px dashed #b8b6af; background: var(--white); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.upload-card:hover { border-color: var(--gold); background: #f9f5ed; }
.upload-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font-size: 1.3rem; }
.upload-card > span:nth-of-type(2) { display: grid; }
.upload-card strong { font-size: .86rem; }
.upload-card small, .upload-card em { color: var(--muted); font-size: .72rem; font-style: normal; }
.upload-card.has-file { border-style: solid; border-color: var(--success); background: #f1f7f4; }
.upload-card.has-file .upload-icon { border-color: var(--success); color: var(--success); }
.privacy-note { margin-top: 1.25rem; padding: 1rem 1.1rem; border-left: 2px solid var(--gold); color: var(--slate); background: #f2eee5; font-size: .78rem; }

.form-actions { margin-top: auto; padding-top: 3rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.action-note { color: var(--muted); font-size: .72rem; text-align: right; }
.submission-error { margin: 2rem 0 0; padding: .9rem 1rem; border-left: 3px solid var(--danger); background: #f8ece9; color: #6f2d25; font-size: .85rem; line-height: 1.55; }
.button:disabled { cursor: wait; opacity: .68; }
.button { min-height: 48px; border: 1px solid transparent; padding: .78rem 1.25rem; display: inline-flex; align-items: center; justify-content: center; gap: .8rem; text-decoration: none; cursor: pointer; font-size: .8rem; font-weight: 600; letter-spacing: .04em; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--midnight); color: var(--white); }
.button--primary:hover { background: #17233a; }
.button--secondary { background: transparent; color: var(--midnight); border-color: #aeb0b3; }
.button--secondary:hover { border-color: var(--midnight); }

.success-panel { margin: auto; max-width: 680px; text-align: center; animation: step-in .45s ease both; }
.success-panel img { width: 94px; height: auto; margin-bottom: 1.5rem; }
.success-panel > p:not(.eyebrow):not(.success-detail) { color: var(--slate); font-size: 1.05rem; }
.reference-card { margin: 2rem auto; padding: 1.15rem; border: 1px solid #d4c5a7; background: #f4eee3; display: grid; gap: .2rem; }
.reference-card span { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; }
.reference-card strong { font-family: var(--serif); color: var(--midnight); font-size: 1.7rem; letter-spacing: .05em; }
.success-detail { color: var(--muted); font-size: .82rem; line-height: 1.7; margin-bottom: 2rem; }
.success-panel .button { display: inline-flex; }

footer { padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem); background: var(--midnight); color: #949aa5; display: flex; justify-content: space-between; gap: 1rem; font-size: .7rem; letter-spacing: .04em; }

@media (max-width: 980px) {
  .intro-page { width: min(100% - 2rem, 880px); }
  .intro-hero { grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); }
  .intro-copy { padding: 4rem 2.5rem; }
  .intro-copy h1 { font-size: clamp(3.2rem, 6vw, 4.5rem); }
  .intro-promise { padding: 2.5rem; }
  .application-shell { width: min(100% - 2rem, 880px); grid-template-columns: 1fr; }
  .journey-panel { padding: 2rem; }
  .journey-intro h1 { max-width: 620px; }
  .journey-intro > p:last-child, .control-principle { display: none; }
  .step-nav { display: none; }
  .progress-summary { margin: 1.5rem 0 0; }
  .form-panel { min-height: 680px; }
}

@media (max-width: 680px) {
  .site-header { min-height: 74px; padding: .85rem 1rem; }
  .brand img { width: 92px; }
  .brand span, .header-meta .eyebrow { display: none; }
  .intro-page { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .intro-hero { grid-template-columns: 1fr; grid-template-areas: "welcome" "banner"; }
  .intro-copy { padding: 3rem 1.25rem; }
  .intro-copy h1 { font-size: 3.25rem; }
  .intro-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .intro-meta span:last-child { grid-column: 1 / -1; }
  .intro-promise { min-height: 290px; padding: 2.25rem 1.25rem; }
  .intro-promise img { margin-bottom: 2rem; }
  .intro-promise p { margin: 0 0 1rem; }
  .relationship-section { padding: 2.75rem 1.25rem; }
  .relationship-cards { grid-template-columns: 1fr; }
  .relationship-card { min-height: auto; }
  .relationship-note { grid-template-columns: 1fr; gap: .25rem; }
  .button--large { width: 100%; min-width: 0; }
  .application-shell { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .journey-panel { padding: 1.55rem 1.25rem; }
  .journey-intro h1 { font-size: 2rem; max-width: 330px; }
  .form-panel { padding: 2.5rem 1.25rem 1.5rem; }
  .section-heading { margin-bottom: 1.75rem; }
  .section-heading h2 { font-size: 2.55rem; }
  .field-grid--2, .field-grid--3, .choice-grid, .preflight-grid { grid-template-columns: 1fr; }
  .preflight-card { min-height: auto; }
  .card-number { margin-bottom: .75rem; }
  .form-actions { grid-template-columns: auto 1fr; padding-top: 2rem; }
  .action-note { display: none; }
  .form-actions .button--primary { grid-column: 2; }
  .upload-card { grid-template-columns: auto minmax(0, 1fr); }
  .upload-card em { grid-column: 2; }
  footer { flex-direction: column; }
}

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