/* Shared request forms. Brand tokens and navigation belong to regional-site.css. */
.request-page { background: var(--regional-canvas); }
.request-main { padding-block: 24px 72px; }
.request-back { font-size: 12px; margin-bottom: 28px; gap: 10px; }
.request-layout { display: grid; grid-template-columns: minmax(220px, .74fr) minmax(0, 1.65fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.request-sidebar { position: sticky; top: calc(var(--regional-header) + 36px); padding-top: 12px; }
.request-sidebar h1 { margin-top: 20px; font-size: clamp(32px, 3vw, 46px); line-height: 1.13; font-weight: 550; letter-spacing: -.045em; text-wrap: balance; }
.request-intro-text { color: var(--regional-muted); margin-top: 20px; font-size: 15px; line-height: 1.85; }
.request-sidebar-note { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--regional-line); color: var(--regional-muted); font-size: 12px; line-height: 1.85; }
.request-help { margin-top: 28px; font-size: 12px; line-height: 1.9; }
.request-help > p { color: var(--regional-muted); }
.request-help > a { display: inline-flex; align-items: center; min-height: 36px; color: var(--regional-link); overflow-wrap: anywhere; }
.request-help > a:hover { text-decoration: underline; }
.selected-plan { margin-top: 20px; color: var(--regional-link); font-size: 12px; font-weight: 600; }
.request-card { min-width: 0; padding: clamp(24px, 2.4vw, 34px); border: 1px solid var(--regional-line); border-radius: 18px; background: #fff; }
.required-note { color: var(--regional-muted); font-size: 11px; margin-bottom: 16px; }
.form-section-heading { margin-bottom: 18px; }
.request-section + .request-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--regional-line); }
.request-extras { margin-top: 24px; border-block: 1px solid var(--regional-line); }
.request-extras > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 18px 0; list-style: none; cursor: pointer; color: var(--regional-ink); font-size: 14px; font-weight: 600; }
.request-extras > summary::-webkit-details-marker { display: none; }
.request-extras > summary::after { content: '+'; color: var(--regional-link); font-size: 22px; font-weight: 400; }
.request-extras[open] > summary::after { content: '−'; }
.request-extras > summary:hover { color: var(--regional-link); }
.request-extras-content { padding-block: 8px 24px; }
.request-notice[data-connection] { padding: 0; border: 0; background: transparent; margin-top: 18px; color: var(--regional-muted); font-size: 11px; }
.form-section-heading:not(:first-child) { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--regional-line); }
.form-section-heading h2 { font-size: 23px; font-weight: 550; letter-spacing: -.035em; }
.form-section-heading p { margin-top: 8px; color: var(--regional-muted); font-size: 13px; line-height: 1.75; }
.request-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.request-field { min-width: 0; margin-bottom: 16px; }
.request-field > label { display: block; margin-bottom: 6px; font-size: 13px; line-height: 1.55; font-weight: 600; }
.request-field > input, .request-field > select, .request-field > textarea { display: block; width: 100%; min-height: var(--control-height); padding: 11px 13px; border: 1px solid var(--control-border); border-radius: var(--control-radius); background: #fff; color: var(--regional-ink); font: inherit; font-size: 15px; line-height: 1.55; transition: border-color 180ms ease, box-shadow 180ms ease; }
.request-field > select { cursor: pointer; padding-right: 22px; }
.request-field > textarea { min-height: 110px; resize: none; }
.request-field input::placeholder, .request-field textarea::placeholder { color: #697d8a; font-size: 13px; }
.request-field :is(input,select,textarea):hover { border-color: var(--control-hover-border); }
.request-field :is(input,select,textarea):focus { outline: none; border-color: var(--regional-blue); box-shadow: 0 0 0 3px var(--control-focus-ring); }
.request-field [aria-invalid="true"] { border-color: #ac3027; }
.request-field [aria-invalid="true"]:focus { border-color: #ac3027; box-shadow: 0 0 0 3px #ac30271a; }
.field-hint { color: var(--regional-muted); font-size: 11px; line-height: 1.75; margin-top: 8px; }
.field-error { display: block; color: #a92a21; font-size: 12px; line-height: 1.7; margin-top: 7px; }
.field-error:empty { display: none; }
.plan-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border: 0; padding: 0; margin: 0 0 22px; }
.plan-choice { display: flex; align-items: flex-start; gap: 10px; padding: 15px 12px; min-width: 0; border: 1px solid var(--control-border); border-radius: var(--control-radius); cursor: pointer; transition: border-color 180ms ease, background 180ms ease; }
.plan-choice:has(input:checked) { background: var(--control-selected); border-color: #6d9be3; }
.plan-choice:hover { border-color: var(--control-hover-border); }
.plan-choice:has(input:focus-visible), .request-types label:has(input:focus-visible) { outline: 2px solid var(--regional-blue); outline-offset: 3px; }
.plan-choice input:focus-visible, .request-types input:focus-visible { outline: none; }
.plan-choice input { accent-color: var(--regional-blue); margin: 3px 0 0; }
.plan-choice strong, .plan-choice small { display: block; }
.plan-choice strong { font-size: 14px; font-weight: 600; }
.plan-choice small { margin-top: 6px; color: var(--regional-muted); font-size: 11px; line-height: 1.5; }
.plan-undecided { grid-column: 1 / -1; align-items: center; padding-block: 12px; }
.plan-undecided > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.plan-undecided small { margin: 0; }
.purpose-field { margin-top: 6px; }
.device-preferences { margin-block: 24px; border-block: 1px solid var(--regional-line); }
.device-preferences > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-block: 18px; list-style: none; cursor: pointer; }
.device-preferences > summary::-webkit-details-marker { display: none; }
.device-preferences > summary > span:first-child { min-width: 0; }
.agent-editor > summary > span:first-child { min-width: 0; }
.device-preferences summary strong { display: block; font-size: 15px; font-weight: 600; }
.device-preferences summary small { display: block; margin-top: 6px; color: var(--regional-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.device-preferences > summary:hover strong { color: var(--regional-link); }
.device-preferences[open] .agent-expand { transform: rotate(45deg); }
.device-fields { padding-block: 8px 4px; }
.agent-count-note { color: var(--regional-muted); font-size: 12px; line-height: 1.8; margin: -6px 0 16px; }
.agent-list { display: grid; gap: 10px; }
.agent-editor { border: 1px solid #c6d3dd; border-radius: 10px; }
.agent-editor > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 13px 18px; }
.agent-editor > summary::-webkit-details-marker { display: none; }
.agent-editor > summary:hover { background: #f5f8fb; border-radius: 10px; }
.agent-editor summary strong, .agent-editor summary small { display: block; }
.agent-editor summary strong { font-size: 15px; font-weight: 600; }
.agent-editor summary small { color: var(--regional-muted); font-size: 12px; margin-top: 6px; overflow-wrap: anywhere; }
.agent-editor[open] .agent-expand { transform: rotate(45deg); }
.agent-expand { color: var(--regional-link); font-size: 24px; line-height: 1; }
.agent-fields { padding: 8px 18px 2px; }
.request-footnote { color: var(--regional-muted); font-size: 11px; line-height: 1.8; margin-top: 16px; }
.attachment-section { margin-top: 24px; border-top: 1px solid var(--regional-line); padding-top: 22px; }
.attachment-section h3 { font-size: 17px; font-weight: 600; }
.file-dropzone { border: 1px dashed #a6bfce; border-radius: 10px; background: #f8fafc; padding: 24px; text-align: center; margin-top: 16px; }
.file-dropzone[data-dragging="true"] { border-color: var(--regional-blue); background: #edf4ff; }
.file-dropzone > span { display: inline-block; margin-left: 10px; color: var(--regional-muted); font-size: 12px; }
.file-dropzone > p { font-size: 11px; color: var(--regional-muted); margin-top: 12px; line-height: 1.8; }
.file-dropzone .button { min-height: 44px; font-size: 12px; padding: 10px 16px; }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; }
.file-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--regional-line); }
.file-info { min-width: 0; }
.file-info strong { display: block; font-weight: 500; font-size: 13px; overflow-wrap: anywhere; }
.file-info > span { font-size: 11px; color: var(--regional-muted); }
.file-remove { flex-shrink: 0; width: 44px; height: 44px; color: var(--regional-muted); border: 0; border-radius: 8px; background: transparent; font-size: 22px; }
.file-remove:hover { color: #a92a21; background: #fff2f0; }
[data-file-status][data-state="error"] { color: #a92a21; }
.request-notice { margin-top: 24px; padding: 14px 16px; border-left: 3px solid #9dbbd6; background: #f0f5f9; color: #3c596f; font-size: 12px; line-height: 1.8; }
.request-notice:empty { display: none; }
.request-notice[data-state="error"] { border-color: #ba3d32; background: #fff4f2; color: #97352d; }
.request-notice[data-state="success"] { border-color: #277a58; background: #edf7f2; color: #216648; }
.request-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--regional-line); }
.request-actions [data-submit-request] { width: 144px; min-width: 0; min-height: 44px; padding: 10px 16px; }
.request-receipt { margin-top: 18px; padding: 20px; border: 1px solid var(--regional-line); border-radius: var(--regional-radius); background: var(--regional-canvas); }
.request-receipt h3 { font-family: var(--regional-body); font-size: 15px; font-weight: 600; }
.receipt-reference { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; }
.receipt-reference code { font: 600 15px/1.6 Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.receipt-copy { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--regional-link); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.receipt-copy:hover { color: var(--regional-ink); }
.receipt-copy-status { min-height: 20px; color: var(--regional-muted); font-size: 12px; line-height: 1.6; }
.request-receipt [data-receipt-next] { margin-top: 8px; color: var(--regional-muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.request-receipt .text-link { margin-top: 8px; font-size: 12px; }
:lang(zh) .request-actions [data-submit-request] { width: 112px; }
.request-card button:disabled { cursor: default; opacity: .6; }
.request-page .button > span[data-request-text], .payment-option .button > span[data-payment-label] { font-size: inherit; font-weight: inherit; line-height: inherit; }
.form-error-summary { font-weight: 600; }
.request-leave-dialog { width: min(400px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--regional-line); border-radius: 12px; padding: 22px; color: var(--regional-ink); background: #fff; box-shadow: 0 12px 40px #0617241a; }
.request-leave-dialog::backdrop { background: #06172447; }
.request-leave-dialog h2 { font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.request-leave-dialog p { margin: 10px 0 22px; font-size: 13px; line-height: 1.75; color: var(--regional-muted); }
.request-leave-dialog > div { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.request-leave-dialog .button { min-height: 44px; padding: 10px 12px; font-size: 13px; }
.request-leave-dialog [data-leave] { border-color: transparent; color: var(--regional-muted); }
.request-leave-dialog [data-leave]:hover { background: var(--regional-canvas); color: var(--regional-ink); }
.request-page :is(select,textarea) { scrollbar-width: thin; scrollbar-color: #9db3c3 #edf2f7; }
.request-page :is(select,textarea)::-webkit-scrollbar { width: 9px; height: 9px; }
.request-page :is(select,textarea)::-webkit-scrollbar-thumb { background: #9db3c3; border: 2px solid #edf2f7; border-radius: 8px; }
.request-page .support-resources { display: grid; gap: 10px; font-size: 12px; margin-top: 22px; }
.request-type-fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.request-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.request-types label { display: flex; align-items: center; gap: 10px; min-height: var(--control-height); border: 1px solid var(--control-border); border-radius: var(--control-radius); padding: 14px; font-size: 13px; cursor: pointer; transition: border-color 180ms ease, background 180ms ease; }
.request-types label:has(input:checked) { border-color: #6d9be3; background: var(--control-selected); }
.request-types label:hover { border-color: var(--control-hover-border); }
.request-types input { accent-color: var(--regional-blue); }
.request-page .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; }
.payment-contact { padding-left: 32px; border-left: 1px solid var(--regional-line); }
.payment-contact > p { color: var(--regional-muted); font-size: 14px; line-height: 1.85; }
.payment-contact .text-link { margin-top: 12px; font-size: 13px; }
.payment-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.payment-options:has([data-payment-option][hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.payment-option { min-width: 0; padding: 28px 0; border-top: 1px solid #bdceda; }
.payment-number { font-size: 11px; color: var(--regional-muted); }
.payment-option h3 { font-size: 23px; margin-top: 20px; font-weight: 550; }
.payment-option > p { min-height: 48px; font-size: 13px; color: var(--regional-muted); line-height: 1.8; margin-top: 14px; }
.payment-option .button, .payment-option .text-link { margin-top: 22px; }
.payment-option [aria-disabled="true"] { opacity: .55; cursor: default; }
.payment-footnote { font-size: 12px; color: var(--regional-muted); line-height: 1.8; margin-top: 12px; }
@media (max-width: 1000px) { .request-layout { grid-template-columns: 240px minmax(0,1fr); gap: 30px; } .request-card { padding: 26px; } .plan-picker { gap: 8px; } .plan-choice { padding: 14px 10px; gap: 7px; } }
@media (max-width: 800px) {
  .payment-contact { border-left: 0; border-top: 1px solid var(--regional-line); padding: 20px 0 0; }
}
@media (max-width: 760px) {
  .request-main { padding-block: 20px 48px; }
  .request-back { margin-bottom: 20px; }
  .request-layout { grid-template-columns: 1fr; gap: 22px; }
  .request-sidebar { position: static; padding: 0; }
  .request-sidebar h1 { max-width: 560px; font-size: 38px; }
  .request-sidebar-note, .request-help { display: none; }
  .selected-plan { margin-top: 14px; }
}
@media (max-width: 480px) {
  .request-main.page-width { width: calc(100% - 32px); }
  .request-card { padding: 24px 18px; border-radius: 12px; }
  .request-field-grid { grid-template-columns: 1fr; }
  .request-field > input, .request-field > textarea, .request-field > select { font-size: 16px; }
  .plan-choice { padding: 14px 9px; flex-direction: column; }
  .plan-undecided { flex-direction: row; padding-inline: 12px; }
  .plan-choice small { font-size: 10px; }
  .agent-fields { padding-inline: 16px; }
  .agent-editor > summary { padding-inline: 16px; }
  .file-dropzone { padding: 20px 12px; }
  .file-dropzone > span { display: block; margin: 8px 0 0; }
  .request-types { grid-template-columns: 1fr; gap: 8px; }
  .request-types label { min-height: 50px; }
  .payment-options, .payment-options:has([data-payment-option][hidden]) { grid-template-columns: 1fr; gap: 0; }
  .payment-option > p { min-height: 0; }
}
@media (forced-colors: active) {
  .plan-choice:has(input:checked), .request-types label:has(input:checked) { outline: 2px solid Highlight; }
  .request-field :is(input,select,textarea):focus { outline: 2px solid Highlight; outline-offset: 2px; }
}
