/* ChartVPS theme for the Crisp Contact Form plugin (loaded inside the
 * plugins.crisp.chat iframe via the plugin's "custom stylesheet" setting).
 * Point that setting at: https://chartvps-marketing.pages.dev/crisp-form.css
 * (stable before and after the chartvps.com domain cutover).
 *
 * Replicates the site's contact-form design: label above a separate
 * #fafafa input box with #e0e0e0 border, square corners, Consolas
 * uppercase red send button. Class names come from the plugin markup,
 * which Crisp keeps stable. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

body {
  background: #ffffff;
  margin: 0;
}

.form-wrapper {
  padding: 2px;
  max-width: none;
}

.form {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Field rows: label (DOM-after) rendered ABOVE its input ───────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
}

.form-field label {
  order: -1;
  position: static !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #04151e !important;
  letter-spacing: -0.16px;
  line-height: 20px;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* ── Inputs ────────────────────────────────────────────────────────── */
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  box-sizing: border-box;
  background: #fafafa !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #04151e !important;
  font-family: "Inter", sans-serif !important;
  font-size: 14px !important;
  letter-spacing: -0.16px;
  line-height: 20px !important;
  padding: 12.8px 16.8px !important;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: #04151e !important;
  outline: none !important;
  box-shadow: none !important;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

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

.field-select {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* ── Character counter ─────────────────────────────────────────────── */
.form-field legend {
  order: 1;
  font-family: "Inter", sans-serif !important;
  font-size: 12px !important;
  color: #737373 !important;
  margin: 4px 0 0 0;
  padding: 0;
}

/* ── Send button: Consolas uppercase, brick red, left-aligned ──────── */
.send-message.button--red {
  display: inline-block;
  width: auto !important;
  background: #9d2525 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fafafa !important;
  font-family: Consolas, monospace !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  line-height: 20px !important;
  padding: 13.5px 56px !important;
  margin-top: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.send-message.button--red:hover:not(:disabled) {
  background: #d91515 !important;
}

.send-message.button--red:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── hCaptcha privacy line: hidden — its links can't escape the
   sandboxed iframe and land on a blocked blank tab ─────────────────── */
.privacy {
  display: none !important;
}
