/**
 * ZOT Contact front — scoped under .zot-contact*
 */

.zot-contact {
  --zot-contact-fg: #1d2327;
  --zot-contact-muted: #50575e;
  --zot-contact-border: #c3c4c7;
  --zot-contact-bg: #f6f7f7;
  --zot-contact-accent: #2271b1;
  --zot-contact-ok: #1e6b3a;
  --zot-contact-err: #8a1f1f;
  color: var(--zot-contact-fg);
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.55;
}

.zot-contact-intro {
  margin: 0 0 1.25rem;
  color: var(--zot-contact-muted);
}

.zot-contact-intro p:last-child {
  margin-bottom: 0;
}

.zot-contact-field {
  margin: 0 0 1rem;
}

.zot-contact-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.zot-contact-field input[type="text"],
.zot-contact-field input[type="email"],
.zot-contact-field input[type="tel"],
.zot-contact-field textarea,
.zot-contact-field select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--zot-contact-border);
  border-radius: 2px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.zot-contact-consent label,
.zot-contact-check label {
  font-weight: 400;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.zot-contact-consent input,
.zot-contact-check input {
  margin-top: 0.25rem;
}

.zot-contact-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.zot-contact-submit {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 2px;
  background: var(--zot-contact-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.zot-contact-submit:hover,
.zot-contact-submit:focus {
  filter: brightness(0.95);
}

.zot-contact-empty {
  color: var(--zot-contact-muted);
  margin: 0;
}

.zot-contact-flash {
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
  border: 1px solid var(--zot-contact-border);
  background: var(--zot-contact-bg);
}

.zot-contact-flash--ok {
  border-color: color-mix(in srgb, var(--zot-contact-ok) 40%, var(--zot-contact-border));
  color: var(--zot-contact-ok);
}

.zot-contact-flash--error {
  border-color: color-mix(in srgb, var(--zot-contact-err) 40%, var(--zot-contact-border));
  color: var(--zot-contact-err);
}

@media (max-width: 600px) {
  .zot-contact {
    max-width: 100%;
  }
}
