.request-page { padding-bottom: 12px; }
.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, .42fr);
  gap: clamp(32px, 7vw, 104px);
  align-items: start;
}
.request-grid form > h2, .request-aside h2 { font-size: 34px; line-height: 1; }
.request-grid form > h2 { margin-bottom: 14px; }
.request-grid h2 span, .drawer-header h2 span { font: 700 15px/1 var(--control); vertical-align: top; }
.request-grid .button[type="submit"] { margin-top: 16px; }
.request-fields, .request-items { display: grid; gap: 14px; }
.request-fields { margin: 18px 0; gap: 22px; }
.request-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: block; min-width: 0; font-weight: 700; font-size: 15px; }
.field > .helper, .field > .error { display: block; }
.field input, .field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #827a73;
  border-radius: 6px;
  background: #f9f8f6;
  color: var(--black);
  font-weight: 400;
}
.field [aria-invalid="true"] { border-color: #9c2920; }
.field textarea { min-height: 46px; resize: vertical; }
.helper { font-size: 14px; font-weight: 400; }
.error { margin-top: 4px; color: #982c22; font-size: 14px; font-weight: 700; }
.error:empty, .request-undo:empty { display: none; }
.request-references .helper, .request-references .button { margin-top: 8px; }
.reference-row { display: flex; align-items: center; gap: 10px; }
.reference-row input { flex: 1; min-width: 0; }
.reference-row button, .request-item .bare, .drawer-undo button, .request-undo button {
  color: #44352d;
  background: transparent;
  border: 0;
  padding: 3px 0;
  text-decoration: underline;
}
.request-item {
  display: grid;
  grid-template-columns: clamp(52px, 7vw, 92px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  background: #f7f6f3;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 12px;
}
.request-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.request-item strong { overflow-wrap: anywhere; }
.request-item .row-top { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.request-item .bare { font-size: 13px; }
.request-undo, .drawer-undo { margin-top: 7px; }
.no-payment { margin: 12px 0 5px; font-weight: 700; }
.preview-request-note { margin-top: 12px; }
[data-action="remove-attachment"] { width: fit-content; text-decoration: underline; padding-left: 0; }
.request-aside {
  position: sticky;
  top: calc(var(--masthead-space) + 22px);
  display: grid;
  gap: 12px;
}
.request-aside section { padding: clamp(18px, 2.4vw, 35px); background: #f8f7f4; border-radius: var(--panel-radius); }
.request-aside p { margin: 6px 0; }
.request-next-steps, .receipt-steps { padding: 0; margin: 16px 0 0; list-style: none; }
.request-next-steps li, .receipt-steps li { display: flex; gap: 12px; align-items: baseline; padding-block: 8px; }
.step-number {
  width: 29px;
  height: 29px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex: none;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font: 700 15px/1 var(--control);
}
.request-faq h2 { max-width: 14ch; }
.request-faq details { border-top: 1px solid #bdb8b2; padding: 14px 0; }
.request-faq details:last-child { border-bottom: 1px solid #bdb8b2; }
.request-faq summary { cursor: pointer; font-weight: 700; }
.request-faq details p { margin-top: 9px; }

#request-drawer {
  --drawer-top: calc(var(--masthead-space) + 3px);
  position: fixed;
  inset: var(--drawer-top) max(var(--gutter), calc((100% - 1200px) / 2)) auto auto;
  width: min(380px, 100vw - 24px);
  max-width: none;
  max-height: calc(100dvh - var(--drawer-top) - 16px);
  margin: 0;
  padding: 0;
  color: var(--black);
  background: var(--paper);
  border: 1px solid #bab5b0;
  border-radius: 16px;
  color-scheme: light;
  box-shadow: 0 18px 55px #0005;
}
#request-drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: request-fade 200ms ease-out; }
@keyframes request-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes request-slide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.drawer-header, .drawer-content, .drawer-footer { padding: 14px 16px; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; gap: 13px; }
.drawer-header h2 { font: 700 22px/1.2 var(--body); text-transform: none; }
.drawer-header .icon-button { width: 38px; height: 38px; }
.drawer-content { overflow-y: auto; overscroll-behavior: contain; padding-block: 0 8px; }
.drawer-kicker { color: #58514d; margin-bottom: 8px; }
.drawer-short-form { display: grid; gap: 10px; margin-top: 15px; }
.drawer-contact-fields { display: grid; gap: 10px; }
.drawer-actions { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: 8px; }
.drawer-actions .button { width: 100%; }
.drawer-actions .ghost { border-color: #5b5652; justify-content: center; padding-inline: 8px; }
.drawer-actions .ghost::after { display: none; }
.drawer-actions .ghost:hover { background: #d7d2ca; }
.drawer-footer .helper { margin-top: 10px; }
.drawer-undo button { font-weight: 700; }

.receipt-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: min(780px, 93svh); }
.receipt-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.receipt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #151618 9%, #151618c9 46%, #15161815 94%);
}
.receipt-hero h1 { max-width: 11ch; }
.receipt-hero .eyebrow { color: var(--yellow); margin-bottom: 8px; }
.receipt-hero strong { overflow-wrap: anywhere; }
.receipt-reference { font-size: 14px; color: var(--muted); }
.receipt-guidance { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 20px 6vw; }
.receipt-motion-toggle { margin-top: 15px; }
.receipt-steps { margin: 0; }
.receipt-steps p { color: var(--muted); margin-top: 5px; }
.receipt-steps.is-animated { min-height: 125px; }
.receipt-steps.is-animated li:not(.is-active) { display: none; }
.receipt-steps li.is-active { animation: request-fade 260ms ease-out; }
.receipt-steps .step-number { width: 42px; height: 42px; position: relative; }
.receipt-steps .step-number::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none; }
@property --receipt-progress { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.receipt-steps li.is-active .step-number::after {
  background: conic-gradient(var(--yellow) var(--receipt-progress), transparent 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: receipt-progress 3300ms linear forwards;
}
@keyframes receipt-progress { to { --receipt-progress: 360deg; } }

@media (max-width: 1099px) {
  #request-drawer {
    inset: auto 0 0;
    width: 100%;
    max-height: min(83dvh, 760px);
    border-radius: 22px 22px 0 0;
  }
  #request-drawer[open] { animation: request-slide 280ms ease-out; }
  .drawer-header { border-bottom: 1px solid var(--line); }
  .drawer-content { padding-top: 14px; }
  .drawer-footer { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

@media (min-width: 1100px) {
  .drawer-contact-fields { display: none; }
  #request-drawer .request-item { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #request-drawer .request-item > img, #request-drawer .request-item > span { display: none; }
}

@media (max-width: 759px) {
  .request-grid, .request-contact-fields, .receipt-guidance { grid-template-columns: 1fr; }
  .request-aside { position: static; }
  .receipt-hero { min-height: 78svh; align-items: end; }
  .receipt-hero::before { background: linear-gradient(0deg, #151618 8%, #151618d8 42%, #15161825 96%); }
}

@media (max-width: 359px) {
  .drawer-actions { grid-template-columns: 1fr; }
}
