:root {
  --colorText: #000;
  --colorBody: #222;
  --colorMuted: #505050;
  --colorBorder: #e4e7ea;
  --colorBorderStrong: #c7ced3;
  --colorBrand: #00a339;
  --colorBrandDark: #008a30;
  --fontSans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: var(--colorBody);
  font-family: var(--fontSans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

.docHeader {
  border-bottom: 1px solid var(--colorBorder);
  padding: 20px clamp(20px, 5vw, 40px);
}

.docHeaderLogo {
  display: inline-block;
}

.docHeaderLogo img {
  display: block;
  height: 45px;
  width: auto;
}

.support {
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 40px) 120px;
}

/* Embed mode (in-app webview): drop the branded header and respect device
   safe areas so content doesn't slip under the notch / home indicator. */
.is-embed .docHeader {
  display: none;
}

.is-embed .support {
  padding-top: calc(clamp(24px, 5vw, 40px) + env(safe-area-inset-top));
  padding-left: calc(clamp(20px, 5vw, 40px) + env(safe-area-inset-left));
  padding-right: calc(clamp(20px, 5vw, 40px) + env(safe-area-inset-right));
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

.supportTitle {
  margin: 0 0 12px;
  font-size: clamp(24px, 1vw + 18px, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--colorText);
  line-height: 1.2;
}

.supportLead {
  margin: 0 0 36px;
  color: var(--colorMuted);
}

.supportLead a {
  color: var(--colorBrandDark);
  font-weight: 500;
}

.supportForm {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--colorText);
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--colorText);
  background: #fff;
  border: 1px solid var(--colorBorderStrong);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--colorBrand);
  box-shadow: 0 0 0 3px rgba(0, 163, 57, 0.15);
}

/* Only flag a field as invalid once the user has interacted with it —
   never on first load. */
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: #d23b3b;
}

.fieldHint {
  margin: 0;
  font-size: 13px;
  color: var(--colorMuted);
}

/* Honeypot field — visually hidden but still in the DOM for bots to fill. */
.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.supportSubmit {
  align-self: flex-start;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--colorBrand);
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 150ms ease, opacity 150ms ease;
}

.supportSubmit:hover {
  background: var(--colorBrandDark);
}

.supportSubmit:disabled {
  opacity: 0.6;
  cursor: default;
}

.supportStatus {
  margin: 0;
  font-size: 15px;
}

.supportStatus.is-success {
  color: var(--colorBrandDark);
  font-weight: 500;
}

.supportStatus.is-error {
  color: #c0392b;
  font-weight: 500;
}
