/* ByteBenders contact form: a paper card over whatever page opened it. */

.contact {
  width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0;
  border: 0; border-radius: 20px; background: #f4f4f0; color: #1d1e22;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  font: 500 16px/1.45 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.contact::backdrop { background: rgba(20, 21, 24, 0.62); backdrop-filter: blur(3px); }
.contact :focus-visible { outline: 2px solid #1d1e22; outline-offset: 2px; }
.contact [hidden] { display: none !important; }

.contact__inner { position: relative; padding: 30px clamp(20px, 5vw, 34px) 28px; }
.contact h2 { margin: 0 44px 6px 0; font-size: 30px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.contact__lead { margin: 0 0 22px; color: #5b5e68; }

.contact__close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 999px;
  background: none; color: inherit; cursor: pointer;
}
.contact__close:hover { background: #e4e4de; }

.contact label { display: block; margin: 0 0 6px; font-size: 14.5px; font-weight: 600; }
.contact input, .contact textarea {
  display: block; width: 100%; margin: 0 0 16px; padding: 12px 14px;
  border: 1.5px solid #c9cad1; border-radius: 12px; background: #fff; color: inherit; font: inherit;
}
.contact input:focus, .contact textarea:focus { border-color: #1d1e22; }
.contact textarea { min-height: 128px; resize: vertical; }
.contact .contact__trap { display: none; }

.contact .cta { width: 100%; min-height: 52px; font-size: 16px; }
.contact .cta:disabled { opacity: 0.6; cursor: progress; }
.contact__status { margin: 12px 0 0; min-height: 1.45em; font-size: 14.5px; color: #5b5e68; }
.contact__status.is-error { color: #b3261e; }
.contact__direct { margin: 6px 0 0; font-size: 14.5px; color: #5b5e68; }
.contact__direct a { color: #1d1e22; font-weight: 600; }

.contact__done p { margin: 0 0 22px; color: #5b5e68; }
.contact__done strong { color: #1d1e22; overflow-wrap: anywhere; }
