:root {
  /* Customer form and confirmation page share the existing theme. */
  --ink: #623518;
  --ink-deep: #382413;
  --muted: #806b5a;
  --line: #efddcb;
  --teal: #b85300;
  --teal-deep: #8f3d00;
  --mist: #fff8f0;
  --paper: #fff;
  --danger: #b74343;
  font-family: Inter, "Noto Sans Thai", "Sarabun", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-deep);
  background: var(--mist);
  font-synthesis: none;
}
.receipt-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.receipt-card { width: 100%; max-width: 660px; padding: 36px 28px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.receipt-card .enquiry-logos { justify-content: center; }
.receipt-check { margin: 28px auto 20px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #edf9f3; color: #135f4d; font-size: 34px; }
.receipt-card h1 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 40px); }
.receipt-card p { line-height: 1.7; }
.receipt-reference { margin: 24px 0; padding: 20px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.receipt-reference p { margin: 0 0 8px; color: var(--muted); }
.receipt-reference strong { font-size: clamp(19px, 5vw, 28px); letter-spacing: .04em; overflow-wrap: anywhere; }
.receipt-contact { color: var(--muted); font-size: 14px; }
@media (max-width: 480px) { .receipt-card { padding: 28px 16px; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
[hidden] { display: none !important; }
a { color: var(--teal-deep); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid #e49337; outline-offset: 3px; }

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.header-inner { max-width: 1280px; padding: 16px 32px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 800; font-size: 23px; letter-spacing: -.08em; }
.brand-name { font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-size: 18px; }
.brand-name small { display: block; font-size: 9px; color: var(--muted); letter-spacing: .14em; margin-top: 4px; }
.brand-logos { display: flex; align-items: center; gap: 18px; }
.gbpos-logo { display: block; width: 70px; height: 70px; object-fit: contain; }
.shift4-logo { display: block; width: 125px; height: 52px; object-fit: contain; }
.brand-separator { color: var(--muted); font-size: 21px; }
.language-switch { display: flex; background: #edf4f3; padding: 4px; border-radius: 10px; }
.language-switch button { border: 0; background: transparent; border-radius: 8px; padding: 8px 13px; color: var(--muted); font-weight: 700; }
.language-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #123a4822; }

.layout { max-width: 1280px; margin: 0 auto; padding: 0 32px 80px; }
.intro {
  margin: 28px 0;
  padding: 42px 48px;
  color: #fff;
  border-radius: 22px;
  background: linear-gradient(115deg, #8e3c00 0%, #c05a03 55%, #ed8c18 100%);
  overflow: hidden;
}
.eyebrow { color: #fff0d5; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.intro h1 { max-width: 780px; margin: 12px 0 12px; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.2; letter-spacing: -.04em; }
.intro p { color: #fff5e8; max-width: 780px; line-height: 1.7; margin: 0; font-size: 15px; }
.intro .notice { margin-top: 24px; background: #fff9ef; color: var(--ink-deep); border-color: #ffd08b; }
.intro .notice p { color: var(--ink-deep); max-width: none; font-size: 14px; margin: 8px 0; }
.intro-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.intro-chips span { border: 1px solid #ffffff4a; border-radius: 100px; padding: 7px 13px; font-size: 12px; color: #ecfffb; }
.form-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 24px; align-items: start; }
.sidebar {
  position: sticky;
  top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 20px 13px 16px;
}
.side-title { font-size: 12px; color: var(--muted); font-weight: 800; padding: 0 12px 12px; }
.sidebar a { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 13px; border-radius: 9px; padding: 10px 12px; font-size: 13px; font-weight: 650; }
.sidebar a:hover, .sidebar a:focus-visible { background: #fff0dd; color: var(--teal); }
.sidebar a > span:first-child { font-size: 11px; color: var(--teal); font-weight: 800; }
.side-note { border-top: 1px solid var(--line); margin: 14px 8px 0; padding: 16px 4px 0; color: var(--muted); font-size: 12px; }
.application-form { min-width: 0; }
.honeypot { position: absolute; height: 1px; width: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.captcha-gate { background: #fff1dc; border: 1px solid #eec692; border-radius: 14px; padding: 18px 24px; margin: 18px 0; }
.captcha-gate strong { color: var(--ink); }
.captcha-gate p { color: var(--muted); font-size: 12px; margin: 4px 0 10px; }
.captcha-gate .captcha-row { margin: 5px 0 0; }
.captcha-status { color: var(--teal-deep); font-size: 12px; font-weight: 750; margin-top: 8px; }
.form-section { scroll-margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; padding: 30px 34px; margin-bottom: 18px; box-shadow: 0 3px 20px #173a5508; }
.section-head { margin-bottom: 26px; }
.section-number { font-size: 11px; color: var(--teal); letter-spacing: .08em; font-weight: 800; }
h2 { color: var(--ink-deep); margin: 7px 0 8px; font-size: 24px; line-height: 1.3; letter-spacing: -.025em; }
h3 { margin: 27px 0 15px; font-size: 16px; color: var(--ink); }
h4 { font-size: 14px; margin: 19px 0 6px; color: var(--ink); }
p { line-height: 1.65; }
.section-head p { color: var(--muted); margin: 0; font-size: 13px; }
.field-help { color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.field-grid, .upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 12px; font-weight: 700; color: var(--ink); }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { border: 1px solid #e5ceba; background: #fff; border-radius: 9px; padding: 11px 13px; color: var(--ink-deep); font-size: 14px; outline: none; width: 100%; min-height: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px #b8530029; }
.field input::placeholder { color: #9baeb4; }
.field textarea { resize: vertical; }
.subsection { border-radius: 13px; background: #fff8f0; border: 1px solid #f1dcc9; padding: 6px 20px 20px; margin: 26px 0; }
.subsection h3 { margin: 17px 0 3px; }
.subsection p { color: var(--muted); font-size: 12px; margin: 0 0 15px; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 16px; margin-top: 20px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; color: var(--ink); font-weight: 500; font-size: 13px; line-height: 1.55; }
.check-row input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--teal); flex: 0 0 auto; }
.moto-fields { padding-top: 15px; }
.person-card { padding: 21px; border: 1px solid #edd7c0; border-radius: 13px; background: #fffcf8; margin-bottom: 17px; }
.person-header { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }
.person-header h3 { margin: 0; font-size: 16px; }
.person-badge { background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; border-radius: 7px; padding: 6px 9px; }
.director-check { align-self: end; }
.person-id { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 4px; }
.person-id p { font-size: 12px; color: var(--muted); margin: 3px 0 15px; }
.id-select { max-width: 340px; margin-bottom: 17px; }
.people-actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.upload-slot { border: 1px dashed #d8b28c; border-radius: 12px; padding: 16px; background: #fffdf9; min-width: 0; }
.upload-slot[data-state="ready"] { border-color: #b66015; background: #fff5e7; }
.upload-slot[data-state="error"] { border-color: #e6a3a3; background: #fffafa; }
.upload-slot-head { min-height: 40px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.required-mark { color: var(--danger); margin-left: 3px; }
.upload-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 11px 0; }
.upload-button { display: inline-flex; border: 1px solid #dbb48d; border-radius: 8px; padding: 8px 12px; color: var(--teal-deep); font-size: 12px; font-weight: 700; cursor: pointer; background: #fff; }
.upload-button:hover { background: #fff0dd; }
.upload-button:focus-within { outline: 3px solid #e49337; outline-offset: 2px; }
.upload-status { min-height: 19px; font-size: 11px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.upload-slot[data-state="error"] .upload-status { color: var(--danger); }
.upload-slot[data-state="ready"] .upload-status { color: var(--teal-deep); }
.conditional-docs { margin-top: 25px; }
.conditional-docs h3 { margin-top: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 9px; padding: 11px 16px; border: 0; text-decoration: none; font-weight: 750; font-size: 13px; }
.button.primary { background: var(--teal); color: #fff; }
.button.primary:hover { background: var(--teal-deep); }
.button.secondary { background: #ffefdc; color: var(--teal-deep); }
.button.secondary:hover { background: #f9dfbe; }
.button.text-button { color: var(--teal-deep); background: transparent; padding: 8px 2px; font-size: 12px; }
.button.text-button:hover { text-decoration: underline; }
.notice { background: #fff3e5; border-left: 3px solid var(--teal); padding: 17px 19px; border-radius: 0 10px 10px 0; font-size: 13px; }
.notice p { color: #5a3c28; margin: 7px 0; }
.declaration-list { padding: 15px 0 10px; }
.captcha-row { display: flex; gap: 18px; align-items: end; flex-wrap: wrap; margin: 10px 0 22px; }
.captcha-row .field { min-width: 180px; }
.form-message { border: 1px solid #e7a7a7; color: #9b3030; background: #fff4f4; padding: 14px 16px; margin: 15px 0; border-radius: 9px; font-size: 13px; }
.form-message.success { border-color: #74c4aa; background: #edf9f3; color: #135f4d; }
.submit-button { min-width: 225px; min-height: 49px; justify-content: space-between; font-size: 14px; }
.submit-footnote { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.site-footer { max-width: 1280px; padding: 0 32px 32px; margin: auto; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

/* Customer intake: calm, single-language presentation; back-office styling stays unchanged. */
.intake-page {
  --ink: #24524c;
  --ink-deep: #193d39;
  --muted: #607672;
  --line: #dceae6;
  --teal: #287a6d;
  --teal-deep: #195e54;
  --mist: #f6faf9;
  background: var(--mist);
}
.intake-page .intro {
  padding: 28px 36px;
  background: #eaf5f1;
  border: 1px solid #d6e9e2;
  color: var(--ink-deep);
}
.intake-page .intro h1 { margin: 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.025em; }
.intake-page .intro { text-align: center; }
.intake-page .enquiry-logos { justify-content: center; gap: 36px; margin-bottom: 22px; }
.intake-page .enquiry-logos .gbpos-logo { width: 160px; height: 160px; }
.intake-page .enquiry-logos .shift4-logo { width: 250px; height: 120px; }
.intake-page .intro .enquiry-offer { color: var(--ink-deep); margin: 12px auto 0; max-width: 820px; font-size: 17px; }
.intake-page .intro .fee-notice { max-width: 820px; margin: 22px auto 0; text-align: left; }
.intake-page .header-inner { justify-content: flex-end; padding-top: 12px; padding-bottom: 12px; }
.language-control { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; }
.language-control select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.language-dialog { border: 1px solid #cde4da; border-radius: 18px; padding: 30px; max-width: 440px; width: calc(100% - 32px); color: var(--ink-deep); box-shadow: 0 15px 60px #193d3929; }
.language-dialog::backdrop { background: #193d3970; }
.language-dialog h2 { font-size: 22px; margin: 0 0 24px; text-align: center; }
.language-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.language-options .button { min-height: 50px; font-size: 16px; }
.intake-page .sidebar a:hover,
.intake-page .sidebar a:focus-visible { background: #edf7f3; }
.intake-page .field input,
.intake-page .field select,
.intake-page .field textarea { border-color: #ccdfd9; }
.intake-page .field input:focus,
.intake-page .field select:focus,
.intake-page .field textarea:focus { box-shadow: 0 0 0 3px #287a6d24; }
.intake-page .person-card { border-color: #d8e8e2; background: #fbfefd; }
.intake-page .upload-slot { border-color: #b7d5cb; background: #fff; }
.intake-page .upload-slot[data-state="ready"] { border-color: #65ac91; background: #f1faf5; }
.intake-page .upload-button { border-color: #b8d5cb; }
.intake-page .upload-button:hover,
.intake-page .button.secondary:hover { background: #dff0e9; }
.intake-page .button.secondary { background: #e9f5ef; }
.intake-page .notice,
.intake-page .captcha-gate { background: #f1f8f5; border-color: #cde4da; }
.intake-page .notice p { color: var(--ink-deep); }
.intake-page .upload-slot[data-state="ready"] .upload-status { color: var(--teal-deep); }
.intake-page :focus-visible { outline-color: #287a6d; }

/* Back-office pages */
.admin-shell { max-width: 1150px; margin: 35px auto 80px; padding: 0 24px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.admin-head h1 { margin: 0; font-size: 28px; }
.admin-card { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 15px; margin-bottom: 18px; }
.admin-card h2 { margin-top: 0; font-size: 18px; }
.admin-card h3 { font-size: 15px; margin: 20px 0 8px; }
.admin-login { max-width: 440px; margin: 70px auto; padding: 0 20px; }
.admin-login .field { margin: 17px 0; }
.admin-login .button { width: 100%; }
.admin-login h1 { font-size: 28px; }
.admin-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-actions form { display: inline; }
.admin-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.admin-filters .field { flex: 1; min-width: 180px; }
.admin-tracking-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 17px 0; }
.admin-tracking-grid .field.full { grid-column: 1 / -1; }
.admin-tracking-grid textarea { min-height: 80px; }
.admin-notice { padding: 12px 15px; border-radius: 8px; font-size: 13px; }
.admin-notice.success { color: #135f4d; background: #edf9f3; }
.admin-notice.error { color: #9b3030; background: #fff4f4; }
.missing-summary { max-width: 230px; white-space: pre-wrap; overflow-wrap: anywhere; }
.case-history-item { border-top: 1px solid var(--line); padding: 15px 0; font-size: 13px; }
.case-history-item:first-of-type { border-top: 0; }
.case-history-item small { display: block; color: var(--muted); margin-top: 4px; }
.case-history-item p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
.pill { background: #eaf3f2; border-radius: 100px; padding: 5px 9px; font-size: 11px; font-weight: 800; color: var(--teal-deep); white-space: nowrap; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 20px; }
.data-pair { overflow-wrap: anywhere; font-size: 13px; }
.data-pair dt { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.data-pair dd { margin: 0; }
.doc-group { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 15px; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.doc-list li:last-child { border-bottom: 0; }
.doc-list small { color: var(--muted); display: block; margin-top: 4px; }
.setup-note { max-width: 600px; margin: 70px auto; padding: 25px; }

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 640px) {
  .admin-tracking-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 12px 18px; }
  .layout { padding: 0 14px 55px; }
  .intro { margin: 14px 0; padding: 31px 24px; border-radius: 16px; }
  .intake-page .intro { padding: 24px; }
  .intake-page .enquiry-logos { gap: 16px; }
  .intake-page .enquiry-logos .gbpos-logo { width: 100px; height: 110px; }
  .intake-page .enquiry-logos .shift4-logo { width: 150px; height: 85px; }
  .intake-page .intro .enquiry-offer { font-size: 15px; }
  .intro p { font-size: 13px; }
  .form-section { padding: 24px 18px; border-radius: 14px; }
  .field-grid, .upload-grid, .option-grid, .data-grid { grid-template-columns: 1fr; }
  .person-card { padding: 16px; }
  .brand-name { font-size: 16px; }
  .brand-name small { font-size: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .site-footer { padding: 0 18px 25px; }
  .doc-list li { align-items: flex-start; flex-direction: column; }
}