#quote-fields {
  display: grid;
  gap: 18px;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
#quote-submit { justify-self: start; margin-top: 5px; }
#quote-fields:disabled #quote-submit { opacity: .7; cursor: progress; }
.quote-attachments { gap: 7px; }
.quote-photo-picker { position: relative; width: fit-content; margin-block: 4px; }
.quote-photo-picker .quote-picker-label {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  padding: 8px 14px; border: 1px solid var(--ink); border-radius: 3px; cursor: pointer;
}
.quote-picker-label span { font-size: 1.15rem; line-height: 1; }
.quote-photo-picker input[type=file] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; padding: 0; cursor: pointer;
}
.quote-photo-picker:focus-within { outline: 3px solid #185eac; outline-offset: 3px; }
.quote-photo-list { list-style: none; margin: 0; padding: 0; }
.quote-photo-list li {
  display: flex; align-items: center; gap: 12px;
  padding-block: 7px; border-bottom: 1px solid var(--stone);
}
.quote-photo-list img { width: 52px; height: 52px; object-fit: cover; border-radius: 2px; }
.quote-photo-list span { min-width: 0; overflow-wrap: anywhere; font-size: .85rem; }
.quote-photo-list .textlink { flex: 0 0 auto; margin-left: auto; font-size: .8rem; }
.quote-warning, .quote-status.quote-failure {
  background: #f9e3da; color: #692519; border-left: 3px solid #933e2c;
  padding: 12px 15px; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere;
}
.quote-warning p { margin: 0 0 8px; }
.quote-warning .textlink { font-size: .84rem; text-align: left; }
.quote-panel .quote-status { margin: 0; }
.quote-status:empty { display: none; }
.quote-complete .quote-copy, .quote-complete .quote-panel { display: none; }
#quote-success {
  grid-column: 1 / -1;
  max-width: 27ch;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1.08;
}

.quote-panel .photo-progress:empty { display: none; }
.quote-photo-picker:has(input:disabled), #quote-submit:disabled { opacity: .7; }
.quote-contact-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px 16px;
}
.quote-contact-fields > small { grid-column: 1 / -1; line-height: 1.5; }
.quote-verification { min-width: 0; }
#quote-captcha {
  min-height: 52px;
  --altcha-border-color: #9a998f;
  --altcha-border-radius: 3px;
  --altcha-color-base: #fffcf5;
  --altcha-color-base-content: var(--ink);
}
#quote-captcha .altcha-checkbox-native input { padding: 0; accent-color: var(--ink); }
#quote-captcha input:focus-visible { outline: 3px solid #185eac; outline-offset: 3px; }
#quote-captcha .altcha-main label { display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.quote-panel #captcha-status, .quote-panel #quote-fallback {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.55;
}
.quote-panel #captcha-status:empty { display: none; }
#captcha-retry { min-height: 44px; }
#quote-fallback a { text-decoration: underline; text-underline-offset: .15em; white-space: normal; }
#quote-submit:disabled { cursor: default; }
