/* zForm — contact form. Mobile first, no horizontal overflow. */

.zform {
  max-width: 720px;
  margin: 0 auto;
}

/* Inside a Creative Elements column the column sets the width, not the form. */
.elementor-widget-shortcode .zform {
  max-width: none;
  margin: 0;
}

.zform__form {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

.zform__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .zform__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.zform__field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zform__label {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.375rem;
}

/* 16px minimum: anything smaller makes iOS zoom on focus. */
.zform__input {
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.75rem;
  border: 1px solid #cfc9c2;
  border-radius: 2px;
  background: #fff;
  width: 100%;
  max-width: 100%;
}

.zform__input:focus {
  outline: 2px solid #6b5b4b;
  outline-offset: 1px;
}

.zform__input--invalid {
  border-color: #a3352b;
}

.zform__textarea {
  resize: vertical;
  min-height: 9rem;
}

.zform__file {
  font-size: 0.9375rem;
  max-width: 100%;
}

.zform__hint {
  font-size: 0.8125rem;
  color: #6f6a64;
  margin: 0.375rem 0 0;
}

.zform__error {
  font-size: 0.8125rem;
  color: #a3352b;
  margin: 0.375rem 0 0;
  min-height: 0;
}

.zform__error:empty {
  display: none;
}

.zform__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}

.zform__consent input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
}

.zform__actions {
  display: flex;
}

.zform__submit {
  min-height: 48px;
  padding-inline: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .zform__submit {
    width: auto;
  }
}

.zform__feedback {
  margin: 0;
  padding: 0.875rem 1rem;
  border-radius: 2px;
  font-size: 0.9375rem;
}

.zform__feedback--success {
  background: #eef3ec;
  color: #2f5233;
}

.zform__feedback--error {
  background: #fbeeec;
  color: #a3352b;
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.zform__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
