:root {
  --red: #d71920;
  --red-dark: #ad1016;
  --red-soft: #fff1f2;
  --ink: #151515;
  --muted: #6f737b;
  --line: #e4e5e8;
  --surface: #fff;
  --page: #f5f5f6;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.simple-header { min-height: 76px; padding: 0 clamp(22px, 5vw, 72px); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); box-shadow: 0 8px 24px rgba(20,20,20,.035); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-mark { width: 52px; height: 24px; color: var(--red); display: grid; place-items: center; font: 800 18px Manrope, sans-serif; }
.brand-copy { display: none !important; }
.simple-header .brand .nx-shared-logo { width: auto !important; height: 25px !important; max-width: 150px !important; flex: 0 0 auto !important; object-fit: contain !important; }
.header-links { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 12px; font-weight: 800; }
.header-links a { min-height: 38px; padding: 0 12px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; transition: color .18s ease, background .18s ease; }
.header-links a:hover, .header-links a:focus-visible { background: #f5f5f6; color: var(--red); }
.header-links a:focus-visible { outline: 2px solid rgba(215, 25, 32, .2); outline-offset: 2px; }
.header-links .back-link { margin-left: 0; padding: 0 12px; border-left: 0; border-radius: 9px; color: var(--red); }

.payment-page { padding: 44px clamp(18px, 4vw, 64px) 64px; }
.payment-shell { width: min(760px, 100%); margin: 0 auto; display: block; }
.payment-guide { position: sticky; top: 24px; overflow: hidden; padding: 30px 26px; border: 1px solid #eadfe0; border-radius: var(--radius); background: linear-gradient(150deg, #fff 0%, #fff8f8 100%); color: var(--ink); box-shadow: 0 16px 38px rgba(26, 18, 19, .07); }
.payment-guide::after { display: none; }
.guide-eyebrow, .form-title > span { color: #e3262d; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.payment-guide .guide-eyebrow { position: relative; z-index: 1; display: inline-flex; padding: 6px 9px; border-radius: 999px; background: var(--red-soft); color: var(--red); letter-spacing: .1em; }
.payment-guide h2 { position: relative; z-index: 1; max-width: 290px; margin: 13px 0 10px; color: var(--ink); font: 800 clamp(24px, 2.35vw, 31px)/1.13 Manrope, sans-serif; letter-spacing: -.04em; }
.guide-intro { margin: 0; color: #666a72; font-size: 11px; line-height: 1.65; }
.guide-steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.guide-steps li { padding: 13px; border: 1px solid #e4e5e8; border-radius: 13px; background: rgba(255,255,255,.92); display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; box-shadow: 0 5px 14px rgba(25, 20, 21, .035); }
.guide-number { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.guide-steps strong { display: block; margin: 1px 0 3px; color: #202126; font-size: 11px; }
.guide-steps small { display: block; color: #7e828a; font-size: 9px; line-height: 1.45; }
.guide-note { margin-top: 18px; padding: 13px 14px; border: 1px solid #f0d9db; border-radius: 12px; background: var(--red-soft); }
.guide-note strong { display: block; margin-bottom: 4px; color: var(--red); font-size: 10px; }
.guide-note span { display: block; color: #666a72; font-size: 9px; line-height: 1.5; }

.payment-card { min-width: 0; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 18px 50px rgba(20, 22, 28, .07); }
.form-title { padding-bottom: 26px; }
.form-title h1 { margin: 7px 0 8px; color: var(--ink); font: 800 clamp(27px, 3vw, 36px)/1.14 Manrope, sans-serif; letter-spacing: -.035em; }
.form-title p { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.form-section { padding: 24px 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 18px; display: flex; align-items: flex-start; gap: 11px; }
.section-heading > span { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.section-heading h2 { margin: 0 0 3px; font: 800 14px Manrope, sans-serif; }
.section-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }

/* Payment form sections use a simple straight gray divider without numbering or curves. */
.form-section { border-top: 1px solid var(--line); border-radius: 0 !important; }
.section-heading { display: block; }
.section-heading > span,
.section-heading::before,
.section-heading::after,
.form-section::before,
.form-section::after { display: none !important; content: none !important; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 14px; }
.field { display: block; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > span:first-child, .upload-label { display: block; margin-bottom: 7px; color: #22242a; font-size: 11px; font-weight: 700; line-height: 1.35; }
em { color: var(--red); font-style: normal; }
.field input, .field textarea { width: 100%; border: 1px solid #d9dce2; border-radius: 11px; background: #fff; color: #171717; outline: none; box-shadow: 0 2px 6px rgba(20, 22, 28, .025); transition: border-color .18s ease, box-shadow .18s ease; }
.field input { height: 44px; padding: 0 13px; font-size: 12px; }
.field textarea { min-height: 82px; padding: 12px 13px; resize: vertical; font-size: 12px; }
.field input::placeholder, .field textarea::placeholder { color: #979ca8; }
.field input:hover, .field textarea:hover { border-color: #b8bbc3; }
.field input:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215, 25, 32, .09); }
.field input.invalid { border-color: var(--red); background: #fff9f9; }
.money-input { position: relative; }
.money-input > span { position: absolute; z-index: 1; left: 13px; top: 50%; transform: translateY(-50%); color: #5d6067; font-size: 12px; font-weight: 800; }
.money-input input { padding-left: 28px; }
.error-message, .confirmation-error { display: block; min-height: 12px; margin-top: 4px; color: var(--red); font-size: 9px; }

.upload-section { margin-top: 0; }
.upload-card { padding: 10px; border: 1px dashed #c9ccd2; border-radius: 13px; background: #fafafa; transition: border-color .18s ease, background .18s ease; }
.upload-card:hover { border-color: var(--red); background: #fffafa; }
.upload-card.invalid-upload { border-color: var(--red); background: #fff5f5; }
.upload-card input { position: absolute; opacity: 0; pointer-events: none; }
.upload-card label { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.upload-icon { width: 30px; height: 30px; margin-bottom: 7px; border-radius: 9px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.upload-card label strong { color: var(--red); font-size: 11px; }
.upload-card label small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.file-preview { margin-top: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.file-preview[hidden] { display: none; }
.file-preview span { min-width: 0; overflow: hidden; color: #42454c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.file-preview button { border: 0; border-radius: 999px; padding: 6px 9px; background: var(--red-soft); color: var(--red); font-size: 8px; font-weight: 800; cursor: pointer; }
.notes { margin-top: 14px; }

.submission-panel { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fafafa; }
.confirm-row { min-height: 38px; padding: 9px 10px; border: 1px solid transparent; border-radius: 10px; display: flex; align-items: flex-start; gap: 9px; font-size: 10px; line-height: 1.45; }
.confirm-row input { width: 15px; height: 15px; margin: 0; flex: 0 0 15px; accent-color: var(--red); }
.confirm-row.invalid-confirmation { border-color: var(--red); background: #fff5f5; }
.submit-button { width: 100%; height: 46px; margin-top: 8px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(215, 25, 32, .18); transition: background .18s ease, transform .18s ease; }
.submit-button:hover { background: var(--red-dark); transform: translateY(-1px); }
.submit-button:focus-visible { outline: 3px solid rgba(215, 25, 32, .22); outline-offset: 3px; }
.submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.safety-note { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 9px; }
.verification-note { margin: 5px 0 0; color: var(--red); text-align: center; font-size: 9px; font-weight: 700; }
.payment-message { display: none; margin-top: 14px; padding: 13px; border-radius: 11px; font-size: 10px; line-height: 1.5; }
.payment-message.success { display: block; background: #edf8ef; color: #23672c; }
.payment-message.error { display: block; background: var(--red-soft); color: var(--red); }
footer { min-height: 64px; padding: 20px clamp(22px, 5vw, 72px); background: #111; color: #aaa; display: flex; align-items: center; font-size: 9px; }
footer p { margin: 0; }

@media (max-width: 820px) {
  .payment-shell { width: min(760px, 100%); }
  .payment-guide { position: relative; top: auto; padding: 25px; }
  .payment-guide h2 { max-width: 520px; font-size: 27px; }
  .guide-intro { max-width: 620px; }
  .guide-steps { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .guide-steps li { grid-template-columns: 1fr; }
  .guide-note { margin-top: 16px; }
}

@media (max-width: 650px) {
  .simple-header { min-height: 68px; padding: 10px 18px; align-items: center; }
  .simple-header .brand .nx-shared-logo { height: 22px !important; }
  .header-links { gap: 2px; font-size: 9px; }
  .header-links a { min-height: 34px; padding: 0 8px; }
  .header-links .back-link { margin-left: 0; padding: 0 8px; }
  .payment-page { padding: 22px 14px 44px; }
  .payment-shell { gap: 14px; }
  .payment-guide { padding: 22px 19px; border-radius: 16px; }
  .payment-guide h2 { margin-top: 8px; font-size: 24px; }
  .guide-steps { grid-template-columns: 1fr; margin-top: 20px; }
  .guide-steps li { grid-template-columns: 28px 1fr; }
  .payment-card { padding: 24px 18px; border-radius: 16px; }
  .form-title { padding-bottom: 21px; }
  .form-title h1 { font-size: 25px; }
  .field-grid { grid-template-columns: 1fr; gap: 12px; }
  .field.full { grid-column: auto; }
  .form-section { padding: 20px 0; }
  .field input { height: 43px; }
  .upload-card label { min-height: 78px; }
  .submission-panel { padding: 13px; }
}

@media (max-width: 470px) {
  .simple-header { align-items: flex-start; }
  .header-links { max-width: 245px; flex-wrap: wrap; row-gap: 2px; }
  .header-links .back-link { flex-basis: auto; justify-content: flex-end; border-left: 0; }
  .payment-guide { display: none; }
  .payment-page { padding-top: 16px; }
  .payment-card { padding: 22px 16px; }
  .section-heading p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
