/* OKC BATTERY — /authorize/ (client authorization signed at the job). Builds on styles.css (.wo form groups, .field,
   .pay__agree, .tmodal) and area.css (page hero). */
.az-page .callbar { display: none; }                 /* no "Book service" bar while someone is signing */
@media (max-width: 960px) { body.az-page:not(.ty-page) .footer { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); } }
.az { padding-top: 0; }
.pay__agree.is-bad { color: #ffb4ad; }
.pay__agree.is-bad input { outline: 2px solid var(--red); outline-offset: 2px; }
.az__wrap { max-width: 860px; }

/* the agreement */
.az-terms { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.az-terms__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1; }
.az-terms__title em { font-style: normal; color: var(--amber); }
.az-terms__sec { margin-top: 1.3rem; }

/* VIN: "See an example?" + the pop-up with the two places to look */
.az-vin { display: grid; gap: .4rem; align-content: start; }
.az-example { justify-self: start; padding: 0; color: var(--amber); font-size: .85rem; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.az-example:hover { color: var(--amber-2); }
.az-vinex { max-width: min(760px, calc(100vw - 32px)); }
.az-vinex__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding: .4rem 1.5rem 1rem; overflow-y: auto;
  overscroll-behavior: contain; }
.az-vinex__fig { margin: 0; }
.az-vinex__fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-2); }
.az-vinex__fig figcaption { margin-top: .6rem; color: var(--paper-2); font-size: .9rem; line-height: 1.5; }
.az-vinex__fig figcaption b { display: block; color: var(--paper); font-family: var(--font-cond); font-size: 1.05rem; letter-spacing: .02em; text-transform: uppercase; }
.az-vinex__note { color: var(--muted); font-size: .85rem; }
@media (max-width: 600px) {
  dialog.az-vinex, dialog.az-cust { max-width: 100vw; }                  /* phones: full-width sheet from the bottom, like the terms pop-up */
  .az-vinex__body { grid-template-columns: minmax(0, 1fr); padding: .4rem 1.2rem 1rem; }
  .az-vinex .tmodal__foot { flex-wrap: wrap; }
}
.az-terms__sec h3 { font-family: var(--font-cond); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; color: var(--paper); }
.az-terms__sec p, .az-terms__sec li { margin-top: .45rem; color: var(--paper-2); font-size: .97rem; line-height: 1.6; }
.az-terms__sec ol { margin: .2rem 0 0; padding-left: 1.3rem; }
.az-terms__sec li b { color: var(--paper); }

.az-form { margin-top: 1.6rem; }
.az-form .wo__group { position: relative; }

/* admin only: "Recent customers" (top-right corner of box A) opens a pick-a-name pop-up that fills section A */
.az-pick { position: absolute; top: 1.2rem; right: 1.6rem; z-index: 1; display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .85rem; border: 1px solid rgba(255,176,0,.55); border-radius: 999px; background: rgba(255,176,0,.06); color: var(--amber);
  font-family: var(--font-cond); font-weight: 700; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s; }
.az-pick:hover, .az-pick:focus-visible { background: var(--amber); color: var(--ink); }
.az-pick .ico { width: 16px; height: 16px; }
.az-pick[hidden] { display: none; }
.az-cust { max-width: min(480px, calc(100vw - 32px)); }
.az-cust__tabs { display: flex; gap: .4rem; padding: .3rem 1.5rem .7rem; }
.az-cust__tabs button { flex: 1; padding: .55rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted);
  font-family: var(--font-cond); font-weight: 700; font-size: .98rem; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s; }
.az-cust__tabs button:hover { color: var(--paper); border-color: var(--paper-2); }
.az-cust__tabs button.is-on { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.az-cust__search { padding: .2rem 1.5rem .6rem; }
.az-cust__day { padding: .9rem .6rem .3rem; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.az-cust__search input { width: 100%; padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: 8px; background: var(--ink-2); color: var(--paper); }
.az-cust__search input:focus { outline: none; border-color: var(--amber); }
.az-cust__list { list-style: none; margin: 0; padding: 0 1rem 1.2rem; overflow-y: auto; overscroll-behavior: contain; }
.az-cust__list button { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; width: 100%; padding: .8rem .6rem;
  border-bottom: 1px solid var(--line); text-align: left; color: var(--paper); font-size: 1.02rem; font-weight: 600; cursor: pointer; border-radius: 8px; }
.az-cust__list li:last-child button { border-bottom: 0; }
.az-cust__list button:hover, .az-cust__list button:focus-visible { background: var(--surface-2); color: var(--amber); outline: none; }
.az-cust__list small { font-family: var(--font-mono); font-size: .72rem; font-weight: 400; color: var(--muted); white-space: nowrap; }
.az-cust__empty { padding: 1rem .6rem; color: var(--muted); }
.az-cust__list small.is-sameday { color: var(--amber); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 760px) {
  .az-pick { position: static; clear: both; margin-bottom: .3rem; }
}
.az-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.az-row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.az-row--addr { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.az-row--city { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, .9fr); }
.az-row--veh { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
.az-plate { display: grid; gap: 1rem; }
.az-caps { text-transform: uppercase; }
.az-caps::placeholder { text-transform: none; }
.az-mono { font-family: var(--font-mono); letter-spacing: .06em; }
.az-hint { display: block; color: var(--muted-2); font-size: .82rem; line-height: 1.45; }
.az-hint.is-bad { color: #ffb4ad; }
.az-hint.is-ok { color: var(--volt); }
.az-hint.is-busy { color: var(--amber); }
.az-hint.is-busy::before { content: ""; display: inline-block; width: .8em; height: .8em; margin-right: .45em; vertical-align: -.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: az-spin .8s linear infinite; }
@keyframes az-spin { to { transform: rotate(360deg); } }
.az-hint:empty { display: none; }
.az-lead { clear: both; display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; border: 1px dashed rgba(255,176,0,.45);
  border-radius: var(--radius); background: rgba(255,176,0,.05); color: var(--paper-2); font-size: .93rem; line-height: 1.45; }
.az-lead .ico { flex: none; width: 20px; height: 20px; color: var(--amber); margin-top: .05rem; }
.field input.is-filled { border-color: rgba(61,220,132,.6); box-shadow: 0 0 0 3px rgba(61,220,132,.12); }
.az-sub { clear: both; margin-top: 1.4rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* photo boxes */
.az-ups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: .6rem; }
.az-up { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 132px;
  padding: 1rem .7rem; border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: var(--ink-2); text-align: center; cursor: pointer;
  overflow: hidden; transition: border-color .25s, background .25s; }
.az-up:hover, .az-up:focus-within { border-color: var(--amber); background: rgba(255,176,0,.05); }
.az-up > .ico { width: 30px; height: 30px; color: var(--amber); }
.az-up__text { position: relative; z-index: 1; font-family: var(--font-cond); font-weight: 600; font-size: .98rem; letter-spacing: .03em; text-transform: uppercase; color: var(--paper-2); }
.az-up__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.az-up__x { display: none; position: absolute; top: .4rem; right: .4rem; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  place-items: center; background: rgba(11,13,16,.85); border: 1px solid var(--line-2); color: var(--paper); cursor: pointer; }
.az-up__x .ico { width: 16px; height: 16px; }
.az-up.has-file { border-style: solid; border-color: var(--volt); }
.az-up.has-file > .ico { display: none; }
.az-up.has-file .az-up__x { display: grid; }
.az-up.has-file .az-up__text { margin-top: auto; padding: .2rem .55rem; border-radius: 6px; background: rgba(11,13,16,.82); color: var(--volt); font-size: .85rem; }
.az-up.is-busy { opacity: .6; pointer-events: none; }

/* sign */
.az-agree { margin-top: 0; clear: both; }
.az-sig { margin-top: 1.3rem; }
.az-sig__pad { position: relative; margin-top: .45rem; height: 180px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #FBF9F4; overflow: hidden;
  touch-action: none; }
.az-sig__pad.is-bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,90,78,.2); }
.az-sig__pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.az-sig__line { position: absolute; left: 6%; right: 6%; bottom: 42px; border-bottom: 1.5px solid #CFC8BA; pointer-events: none; }
.az-sig__hint { position: absolute; left: 6%; bottom: 18px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: #A39C8E; pointer-events: none; }
.az-sig__pad.has-ink .az-sig__hint { opacity: 0; }
.az-sig__clear { position: absolute; top: .5rem; right: .5rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid #CFC8BA; background: #fff;
  color: #4A515C; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.az-sig__clear:hover { border-color: var(--ink); color: var(--ink); }
.az-sig .az-hint { margin-top: .4rem; }
.az-submit { margin-top: 1.3rem; }
.az-submit:disabled { opacity: .65; cursor: progress; transform: none; }
.field input.is-bad, .field select.is-bad { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,90,78,.15); }

/* done */
.az-done { margin-top: 1.6rem; padding: clamp(1.6rem, 4vw, 2.6rem); border: 1px solid rgba(61,220,132,.45); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(61,220,132,.08), var(--surface) 60%); text-align: center; }
.az-done:focus { outline: none; }
.az-done .eyebrow { justify-content: center; }
.az-done__tick { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--volt); color: var(--ink); }
.az-done__tick .ico { width: 32px; height: 32px; stroke-width: 3; }
.az-done__title { margin-top: .5rem; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; }
.az-done__title em { font-style: normal; color: var(--volt); }
.az-done__text { margin: .8rem auto 1.4rem; max-width: 46ch; color: var(--paper-2); }

@media (max-width: 720px) {
  .az-row--city { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .az-row--city > :first-child { grid-column: 1 / -1; }
  .az-ups { grid-template-columns: minmax(0, 1fr); }
  .az-up { min-height: 104px; flex-direction: row; }
  .az-up.has-file { min-height: 170px; }
}
@media (max-width: 600px) {
  .az-row--2, .az-row--addr, .az-row--veh { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) {
  .az-row--city { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {                     /* fingers: bigger targets for the small buttons */
  .az-sig__clear { padding: .6rem 1rem; min-height: 40px; }
  .az-up__x { width: 40px; height: 40px; }
  .az-agree input { width: 22px; height: 22px; }
}
