.request-appointment {
  max-width: 980px;
}

.request-appointment__intro {
  margin: 0 0 28px;
  font-size: calc(22px * var(--font-scale, 1));
  color: var(--color-blue-dark);
}

.request-appointment__form {
  max-width: 740px;
  padding: 28px;
  border-color: var(--color-blue);
}

.request-appointment__field {
  display: block;
  margin-bottom: 20px;
}

.request-appointment__label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-blue);
  font-size: calc(24px * var(--font-scale, 1));
}

.request-appointment__received {
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-blue);
  border-radius: 10px;
  background: #f2f7fb;
  color: var(--color-blue-dark);
  font-size: calc(19px * var(--font-scale, 1));
}

.request-appointment__received p {
  margin: 0 0 10px;
}

.request-appointment__received p:last-child {
  margin-bottom: 0;
}

.request-appointment__received:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

.request-appointment__hint {
  display: block;
  margin-top: 6px;
  color: #5a6470;
  font-size: calc(15px * var(--font-scale, 1));
}

.request-appointment__field input,
.request-appointment__field select,
.request-appointment__field textarea {
  width: 100%;
  border: 2px solid var(--color-blue);
  border-radius: 10px;
  min-height: 52px;
  padding: 0 16px;
  font: inherit;
  font-size: calc(20px * var(--font-scale, 1));
  color: var(--color-ink);
  background: #fff;
}

.request-appointment__field--options {
  border: 0;
  padding: 0;
}

.request-appointment__option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: calc(20px * var(--font-scale, 1));
}

.request-appointment__option input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.request-appointment__field textarea {
  min-height: 138px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}


/* The file input is the one control here that should not wear the 52px-tall
   text-field styling: its button sits on the baseline, so a fixed height and
   side padding leave it floating in the middle of an empty box. */
.request-appointment__card-upload input[type="file"] {
  min-height: 0;
  padding: 14px 16px;
  font-size: calc(17px * var(--font-scale, 1));
  cursor: pointer;
}

.request-appointment__card-upload input[type="file"]::file-selector-button {
  margin-right: 14px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--color-blue);
  color: #fff;
  font: inherit;
  font-size: calc(16px * var(--font-scale, 1));
  font-weight: 700;
  cursor: pointer;
}

.request-appointment__card-upload .request-appointment__hint {
  margin: 0 0 10px;
}

.request-appointment__card-preview {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.request-appointment__card-preview img {
  width: 190px;
  max-width: 100%;
  /* A card photographed on a desk can be any aspect ratio, so bound the box and
     let the image letterbox inside it rather than setting the row's height. */
  height: auto;
  max-height: 130px;
  object-fit: contain;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #f4f7fa;
}

.request-appointment__card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  font-size: calc(16px * var(--font-scale, 1));
  color: var(--color-muted);
}

.request-appointment__card-meta span {
  overflow-wrap: anywhere;
}

.request-appointment__card-error:empty {
  display: none;
}

.request-appointment__card-error {
  margin: 10px 0 0;
  color: var(--color-red);
  font-size: calc(16px * var(--font-scale, 1));
  font-weight: 700;
}

.request-appointment__helper {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: calc(16px * var(--font-scale, 1));
}

.request-appointment__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.request-appointment__turnstile {
  min-height: 65px;
}

.request-appointment__status {
  margin: 16px 0 0;
  color: var(--color-blue-dark);
  font-weight: 700;
}

@media (max-width: 760px) {
  .request-appointment__form {
    padding: 20px;
  }

  .request-appointment__label {
    font-size: calc(20px * var(--font-scale, 1));
  }

  .request-appointment__field input,
  .request-appointment__field select,
  .request-appointment__field textarea,
  .request-appointment__option {
    font-size: calc(18px * var(--font-scale, 1));
  }
}
