.contact-form__field.contact-form__checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}

.contact-form__field.contact-form__checkbox input[type="checkbox"] {
  margin-top: 0.25em;
}

.contact-form__field label {
  padding-bottom: 0.5em;
  display: inline-block;
}

.contact-form__field .contact-form__field_required {
  color: var(--wp--preset--color--guardsman-red);
}

.contact-form__field .contact-form__field_optional {
  font-size: var(--wp--preset--font-size--sm);
}

.contact-form__field .contact-form__file-input {
  width: 100%;
  padding: 0.5em;
  box-sizing: border-box;
}

.contact-form__field .contact-form__input-field,
.contact-form__field .contact-form__select-field,
.contact-form__field .contact-form__textarea-field {
  width: 100%;
  box-sizing: border-box;
  padding: 1.3em 1em;
  border: 1px solid var(--wp--preset--color--elephant);
  border-radius: 1.3em;
  background-color: inherit;
  color: var(--default-text-color);
  font-size: var(--wp--preset--font-size--md-plus);
}

.contact-form__field .contact-form__select-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%231F2A37' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6em center;
  background-size: 0.7em;
  padding-right: 1.8em;
}

.contact-form__field .contact-form__field_help {
  font-size: var(--wp--preset--font-size--sm);
  margin-top: 0.25rem;
}

.contact-form__message {
  display: none;
  padding: 1em;
  border-radius: 1em;
  margin-top: 1em;
}

.contact-form__message--success {
  background: #d4edda;
  color: #155724;
}

.contact-form__message--error {
  background: #f8d7da;
  color: #721c24;
}

.contact-form__message {
  position: relative;
  padding-right: 3rem;
}

.contact-form__message-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.contact-form__message-close:hover {
  opacity: 1;
}

.contact-form__message--success .contact-form__message-close {
  color: #155724;
}

.contact-form__message--error .contact-form__message-close {
  color: #721c24;
}
