/* Perfect Power – self-hosted contact form (replaces Formsite, Nov 2026).
   Styled to match the old Formsite form on the site's dark (#262626) pages.
   The page is shown inside an <iframe>, so its background stays see-through. */

html, body { background: transparent; }
body {
  margin: 0;
  padding: 4px 2px 8px;
  font-family: 'Open Sans', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #dadada;
}

/* Opened directly (not inside the WordPress page) */
html.gm-standalone, html.gm-standalone body { background: #262626; }
html.gm-standalone body { max-width: 460px; margin: 0 auto; padding: 32px 20px; }

.gm-form, .gm-form *, .gm-form *::before, .gm-form *::after { box-sizing: border-box; }
.gm-form { width: 100%; margin: 0; }

.gm-form .gm-field { margin: 0 0 16px; }

/* Labels are read by screen readers; sighted visitors see the placeholders, like before */
.gm-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.gm-form input[type="text"],
.gm-form input[type="email"],
.gm-form textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: #ededed;
  color: #222;
  font: inherit;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}
.gm-form textarea { height: 140px; min-height: 90px; resize: vertical; }
.gm-form ::placeholder { color: #777; opacity: 1; }
.gm-form input:focus,
.gm-form textarea:focus { outline: 2px solid #c4161c; outline-offset: 0; background: #fff; }

.gm-form .gm-submit {
  display: block;
  width: 100%;
  margin: 22px 0 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 0;
  background: #ededed;
  color: #666;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.gm-form .gm-submit:hover,
.gm-form .gm-submit:focus { background: #fff; color: #222; }
.gm-form .gm-submit:focus-visible { outline: 2px solid #c4161c; }
.gm-form .gm-submit[disabled] { opacity: 0.6; cursor: wait; }

/* Errors (light red so they read on the dark background) */
.gm-form .gm-error-msg { display: none; margin: 4px 0 0; font-size: 13px; color: #ff8f85; }
.gm-form .gm-invalid .gm-error-msg { display: block; }
.gm-form .gm-invalid input,
.gm-form .gm-invalid textarea { outline: 2px solid #ff6b6b; outline-offset: 0; }

.gm-form .gm-form-message {
  display: none;
  margin: 0 0 14px;
  padding: 7px 10px;
  border-left: 3px solid #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
  color: #ffc2bc;
  font-size: 14px;
}
.gm-form .gm-form-message.gm-show { display: block; }
.gm-form .gm-form-message:focus { outline: none; }

/* Honeypot: hidden from people, visible to bots */
.gm-form .gm-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Thank-you message */
.gm-success {
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid #7bd88f;
  background: rgba(255, 255, 255, 0.06);
  color: #eee;
  font-size: 16px;
}
.gm-success:focus { outline: none; }

/* Phones: 16px text stops iPhones zooming in on the fields */
@media (max-width: 600px) {
  .gm-form input[type="text"],
  .gm-form input[type="email"],
  .gm-form textarea { font-size: 16px; }
}

/* Result page shown only if JavaScript is off */
.gm-form-page { background: #262626; color: #dadada; }
.gm-form-result { max-width: 460px; margin: 0 auto; padding: 24px 16px; }
.gm-form-result a { color: #fff; }
