/* Shared required photo picker for service enquiry forms. */
.photo-upload > label { margin-bottom: 9px; }
.photo-upload-help { color: var(--muted); font-size: .76rem; line-height: 1.75; margin: 0 0 14px; }
.photo-picker { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; border: 1px solid #6c8274; border-radius: 11px; background: var(--aqua); color: var(--ink); padding: 12px 16px; font-size: .82rem; font-weight: 800; overflow: hidden; }
.photo-picker:hover { background: #c8d9c9; }
.photo-picker:focus-within { outline: 3px solid #2f6f66; outline-offset: 3px; }
.photo-upload .photo-picker input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 50px; opacity: 0; padding: 0; margin: 0; cursor: pointer; border: 0; }
.photo-picker:has(input:disabled) { opacity: .65; cursor: progress; }
.photo-upload .photo-picker input:disabled { cursor: progress; }
.photo-count { color: var(--muted); font-size: .74rem; line-height: 1.7; margin: 10px 0 0; }
.photo-error { color: #a62925; font-size: .8rem; line-height: 1.7; margin: 12px 0 0; }
.carpet-form-submit .photo-error { color: #a62925; font-size: .8rem; text-align: left; }
.photo-previews { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.photo-preview { display: grid; grid-template-columns: 60px minmax(0, 1fr) 44px; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.photo-preview img { display: block; width: 60px; height: 60px; object-fit: cover; border-radius: 7px; }
.photo-preview-copy { min-width: 0; }
.photo-filename { display: block; color: var(--ink); font-size: .76rem; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.photo-size { display: block; color: var(--muted); font-size: .68rem; line-height: 1.6; margin-top: 4px; }
.photo-remove { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid #6c8274; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.photo-remove:hover { background: var(--aqua); }
.photo-remove:focus-visible { outline: 3px solid #2f6f66; outline-offset: 3px; }
.photo-remove:disabled { cursor: progress; opacity: .6; }
@media (max-width: 520px) {
  .photo-upload-help, .photo-count { font-size: .75rem; }
  .photo-preview { grid-template-columns: 50px minmax(0, 1fr) 44px; gap: 9px; padding: 8px; }
  .photo-preview img { width: 50px; height: 50px; }
}
