
.mc-custom-intro,
.mc-custom-request {
  max-width: 760px;
}

.mc-custom-intro p {
  line-height: 1.55;
}

.mc-custom-request {
  box-sizing: border-box;
  margin: 24px 0 36px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid #d0dacb;
  border-radius: 16px;
  background: #fffefa;
  color: #213f33;
}

.mc-custom-request h2 {
  margin: 0 0 18px;
}

.mc-custom-request form,
.mc-custom-request label {
  display: grid;
  gap: 8px;
}

.mc-custom-request form {
  gap: 16px;
}

.mc-custom-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mc-custom-optional,
.mc-custom-hint {
  color: #4e6658;
}

.mc-custom-fields .mc-custom-optional {
  display: contents;
}

.mc-custom-request :is(input:not([type="checkbox"]):not([type="hidden"]), textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #bbcbbd;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.mc-custom-request textarea {
  resize: vertical;
}

.mc-custom-request .mc-custom-hint {
  margin: -8px 0 0;
  font-size: .9em;
}

.mc-custom-request .mc-custom-consent {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.mc-custom-request a {
  text-decoration: underline;
}

.mc-custom-request button {
  justify-self: start;
}

.mc-custom-gallery {
  margin-top: 48px;
}

@media (max-width: 600px) {
  .mc-custom-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .mc-custom-request button {
    width: 100%;
  }
}


.mc-custom-request form[hidden] { display: none; }
.mc-custom-request [data-mc-custom-result]:empty { display: none; }
.mc-custom-error { color: #a22327; }
