.quote-form .quote-consent, .quote-form .quote-status {
  grid-column: 1 / -1;
}

.quote-form .quote-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.quote-form .quote-consent input {
  flex: 0 0 17px;
  width: 17px;
  min-height: 17px;
  height: 17px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: #1b2532;
}

.quote-form .quote-consent label {
  display: block;
  line-height: 1.55;
  font-weight: 400;
  font-size: .875rem;
}

.quote-consent a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.quote-form button:disabled {
  opacity: .65;
  cursor: default;
}

.quote-status {
  margin: 0;
  color: #1b2532;
  line-height: 1.5;
}

.quote-status:empty {
  margin-block-start: -16px;
}

.quote-status[data-state="error"] {
  color: #8d2924;
}

.quote-status[data-state="success"] {
  font-weight: 700;
}

@media (max-width: 740px) {
  #color-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px clamp(7px, 2.5vw, 14px);
    max-width: 34rem;
    margin-inline: auto;
    scroll-margin-top: 85px;
  }

  #color-grid .swatch-card {
    grid-template-rows: auto auto;
  }

  #color-grid .swatch-card > span {
    margin-top: 6px;
    line-height: 1.35;
    letter-spacing: .04em;
    overflow-wrap: anywhere;
  }
}

.quote-form .quote-photos {
  grid-column: 1 / -1;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid #d4d5d2;
  min-width: 0;
}

.quote-photos p {
  margin: 4px 0 0;
  color: #4c535b;
  font-size: .875rem;
  line-height: 1.5;
}

.quote-photos .quote-photo-heading {
  color: #1b2532;
  font-size: .94rem;
  font-weight: 700;
}

.quote-photo-dropzone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin: 14px 0 7px;
}

.quote-photo-dropzone .quote-photo-drop-hint {
  display: none;
  margin: 0;
}

@media (hover: hover) and (pointer: fine) {
  .quote-photo-dropzone {
    padding: 12px;
    border: 1px dashed #9299a1;
    background: #fffefa;
    transition: background-color .15s, border-color .15s;
  }

  .quote-photo-dropzone .quote-photo-drop-hint { display: block }

  .quote-photo-dropzone[data-dragging] {
    border-color: #1b2532;
    background: #ecebe3;
  }
}

.quote-form .quote-photo-picker {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #1b2532;
  color: #fff;
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
}

.quote-form .quote-photo-picker:hover { background: #344253 }
.quote-form .quote-photo-picker:has(input:disabled) { opacity: .6; cursor: default }
.quote-photo-icon { color: #efd39c; font-size: 1.24rem; line-height: 1 }

.quote-photo-picker:focus-within {
  outline: 2px solid #1b2532;
  outline-offset: 3px;
}

.quote-form #quote-photos {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

#quote-photo-list {
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

#quote-photo-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #d4d5d2;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

#quote-photo-list button {
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #1b2532;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

#quote-photo-error:empty {
  margin: 0;
}

.quote-photos #quote-photo-error {
  color: #8d2924;
}

.quote-form label > input:not([type="file"]),
.quote-form textarea {
  font: 400 1rem/1.45 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: normal;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #64707a;
  font: inherit;
  opacity: 1;
}

.quote-finish {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 3px 0 0;
  padding: 10px clamp(12px, 2vw, 18px) 14px;
  border: 1px solid #d4d5d2;
}

.quote-finish legend {
  padding: 0 5px;
  color: #1b2532;
  font-size: .94rem;
  font-weight: 700;
}

.quote-materials,
.quote-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.quote-materials button {
  min-height: 44px;
  padding: 6px 15px;
  border: 1px solid #828892;
  background: transparent;
  color: #1b2532;
  font-weight: 600;
}

.quote-materials button[aria-pressed="true"] {
  border-color: #1b2532;
  background: #1b2532;
  color: #fff;
}

.quote-finish-current {
  margin: 10px 0 6px;
  color: #1b2532;
  font-size: .875rem;
  font-weight: 600;
}

.quote-color {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 4px;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
}

.quote-color[aria-pressed="true"] {
  border-color: #1b2532;
}

.quote-color span {
  display: grid;
  width: 34px;
  height: 34px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #aeb1b5;
}

.quote-color img {
  width: 170%;
  height: 170%;
  max-width: none;
  object-fit: cover;
}

.quote-seams {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  min-width: 0;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
}

.quote-seams legend {
  padding: 0;
  font-size: .875rem;
}

.quote-form .quote-seams label {
  flex-direction: row;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 400;
  cursor: pointer;
}

.quote-form .quote-seams input[type="radio"] {
  flex: 0 0 16px;
  width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  accent-color: #1b2532;
}
