/**
 * Eco Forms — scoped styling for [eco_contact_form] / [eco_dmca_form].
 * Loads only on pages that render a form. Vanilla CSS, no framework.
 */

.eco-form {
  --eco-form-accent: #17a673;
  --eco-form-border: #d7dde7;
  --eco-form-text: #1f2937;
  --eco-form-muted: #6b7280;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15px;
  color: var(--eco-form-text);
}

.eco-form__title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.eco-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.eco-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.eco-form__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--eco-form-muted);
}
.eco-form__label i {
  color: #dc2626;
  font-style: normal;
}

.eco-form input[type="text"],
.eco-form input[type="email"],
.eco-form input[type="url"],
.eco-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--eco-form-border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
  box-sizing: border-box;
}

.eco-form input:focus,
.eco-form textarea:focus {
  outline: none;
  border-color: var(--eco-form-accent);
  box-shadow: 0 0 0 3px rgba(23, 166, 115, .15);
}

.eco-form textarea {
  resize: vertical;
  min-height: 110px;
}

.eco-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--eco-form-muted);
}
.eco-form__check input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.eco-form__check i {
  color: #dc2626;
  font-style: normal;
}

/* Honeypot — visually + a11y hidden, but still in the DOM for bots. */
.eco-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.eco-form__actions {
  margin-top: 2px;
}

.eco-form__submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--eco-form-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease;
}
.eco-form__submit:hover {
  background: #128a60;
  box-shadow: 0 10px 24px rgba(23, 166, 115, .3);
}
.eco-form__submit:disabled {
  opacity: .65;
  cursor: default;
  box-shadow: none;
}

.eco-form__status {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  min-height: 1.2em;
}
.eco-form__status.is-ok { color: #059669; }
.eco-form__status.is-error { color: #dc2626; }

@media (max-width: 600px) {
  .eco-form__row { grid-template-columns: 1fr; gap: 18px; }
  .eco-form__title { font-size: 21px; }
}
