/**
 * Concierge form (sections/concierge-form.liquid): the fit-finder form
 * inline on a page, extracted from the old perfect-match dialog. Field
 * styling matches sections/contact-form.liquid's shapes on the shared
 * tokens; the two-column lead/form split mirrors the contact page above
 * 990px so the store's two message forms read as siblings.
 */
.section-concierge {
  padding-block: var(--space-8);
}

/* Full page width. At 960px this card sat 440px short of the header's right
   edge while staying flush left, so it read as a misalignment rather than as
   a measure - the same thing that was wrong on the contact page. The lead
   column is what needs a reading measure, and the grid below gives it one;
   the form itself only benefits from the room. */
.concierge {
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  background-color: var(--color-bg);
}

.concierge__lead {
  margin-bottom: var(--space-5);
}

.concierge__heading {
  margin: 0 0 var(--space-2);
}

.concierge__intro {
  margin: 0;
  color: var(--color-muted);
}

.concierge__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.concierge__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.concierge__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.concierge__field label {
  font-size: 14px;
  color: var(--color-muted);
}

.concierge__required-mark {
  color: var(--color-brand);
}

.concierge__required-hint {
  margin: 0;
  color: var(--color-muted);
}

.concierge__field input,
.concierge__field select,
.concierge__field textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-m);
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
}

.concierge__field input:focus,
.concierge__field select:focus,
.concierge__field textarea:focus {
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
}

.concierge__field textarea {
  resize: vertical;
}

.concierge__submit {
  align-self: flex-start;
  margin-top: var(--space-2);
}

.concierge__error {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-m);
  background-color: color-mix(in srgb, var(--color-danger) 8%, transparent);
  color: var(--color-danger);
}

.concierge__error-heading {
  margin: 0 0 var(--space-1);
  font-weight: 600;
}

.concierge__error ul {
  margin: 0;
  padding-left: var(--space-5);
  list-style: disc;
}

.concierge__success {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.concierge__success-icon {
  display: inline-flex;
  color: var(--color-success);
}

.concierge__success-heading {
  margin: 0 0 var(--space-1);
}

.concierge__success p {
  margin: 0;
}

@media screen and (min-width: 750px) {
  .concierge {
    padding: var(--space-7) var(--space-6);
  }

  .concierge__row {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 990px) {
  .section-concierge {
    padding-block: var(--space-9);
  }

  .concierge {
    display: grid;
    /* The lead is capped rather than proportional: as a share of a 1400px
       card it would run to a 560px line, well past a comfortable measure,
       while the form has real use for the extra width. */
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: var(--space-9);
  }

  .concierge__lead {
    margin-bottom: 0;
  }
}
