/* SAC: fotos, sugestões de estabelecimento e dicas dos campos */
.biz-card-form__hint { margin: 0 0 var(--space-3); color: var(--color-muted); font-size: var(--text-sm); }
.biz-hint { display: block; margin-top: var(--space-2); color: var(--color-muted); font-size: var(--text-xs); }
.form-field { position: relative; }
.form-field[hidden], .biz-card-form[hidden] { display: none; }
.form-field option[hidden] { display: none; }

.sac-photos { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sac-photo { position: relative; display: grid; gap: var(--space-2); justify-items: center; padding: var(--space-3); border: 2px dashed var(--gray-400); border-radius: var(--radius); background: var(--white); cursor: pointer; text-align: center; }
.sac-photo:focus-within { border-color: var(--green-700); outline: 3px solid var(--color-focus); outline-offset: 2px; }
.sac-photo:hover { border-color: var(--green-700); }
.sac-photo__preview { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--gray-100); color: var(--green-700); }
.sac-photo__preview .icon { width: 2rem; height: 2rem; }
.sac-photo__preview img { width: 100%; height: 100%; object-fit: cover; }
.sac-photo__label { font-weight: 600; font-size: var(--text-sm); }
/* O input real fica invisível, mas acessível por teclado; o cartão inteiro é o alvo de toque */
.form-field .sac-photo input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }

.place-suggest { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: var(--space-1); list-style: none; background: var(--white); border: 1px solid var(--gray-400); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.place-suggest[hidden] { display: none; }

/* Ajuda de campo em pop-up (ex.: onde encontrar o lote) */
.field-help-btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; margin-top: var(--space-1); padding: 0; border: 0; background: none; color: var(--green-700); font: inherit; font-size: var(--text-sm); font-weight: 700; text-decoration: underline; cursor: pointer; }
.field-help-btn::before { content: "?"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-100); font-weight: 700; text-decoration: none; }
.help-dialog { width: min(92vw, 560px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: auto; }
.help-dialog::backdrop { background: rgb(0 30 20 / 0.55); }
.help-dialog[open] { animation: help-in 0.25s var(--ease); }
@keyframes help-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.help-dialog__box { display: grid; gap: var(--space-4); padding: var(--space-5); background: var(--white); }
.help-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.help-dialog__head h2 { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: var(--text-lg); }
.help-dialog__close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--gray-100); color: var(--gray-800); cursor: pointer; }
.help-dialog__close:hover { background: var(--gray-200); }
.help-dialog__box p { margin: 0; }
.help-dialog__box img { width: 100%; height: auto; border-radius: var(--radius); }
.place-suggest button { display: block; width: 100%; min-height: 44px; padding: var(--space-2) var(--space-3); border: 0; background: none; text-align: left; font: inherit; cursor: pointer; border-radius: var(--radius-sm); }
.place-suggest button:hover, .place-suggest button:focus-visible { background: var(--green-100); }

/* Acompanhamento do atendimento pelo consumidor */
.track-head { padding-block: var(--space-4) var(--space-5); }
.track-summary { display: grid; gap: var(--space-4); margin: 0; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.track-summary dt { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-600); }
.track-summary dd { margin: var(--space-1) 0 0; font-weight: 600; }
.track { padding-block: var(--space-6); }
.track h2 { margin: 0 0 var(--space-4); }
.thread { display: grid; gap: var(--space-3); margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.thread__item { padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: var(--white); max-width: 900px; }
.thread__item--agent { justify-self: end; background: var(--green-100); border-color: var(--green-100); }
.thread__item--consumer { justify-self: start; }
.thread__meta { margin: 0 0 var(--space-2); font-size: var(--text-sm); color: var(--gray-600); }
.thread__body { line-height: 1.6; overflow-wrap: anywhere; }
.track-form { max-width: 900px; }
.track-gate { padding-block: var(--space-4) var(--section-y); display: grid; gap: var(--space-4); }
.track-gate h1 { margin: 0; }
.track-code { max-width: 14rem; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: var(--text-lg); letter-spacing: 0.3em; text-transform: uppercase; text-align: center; }
.track-resend { margin: 0; font-size: var(--text-sm); }
.track-resend p { margin: 0; }
.track-resend__btn { display: inline; min-height: 44px; padding: 0 var(--space-1); border: 0; background: none; color: var(--green-700); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }