/* Contact form. Brand tokens with fallbacks, so it looks right under the PTA
   Foundry theme and degrades sensibly under any other theme. */

.pta-contact {
  max-width: 720px;
  margin: 0 auto;
}

.pta-contact-heading {
  text-align: center;
  margin: 0 0 8px;
}

.pta-contact-intro {
  text-align: center;
  margin: 0 auto 24px;
  color: var(--pta-ink, #1f1f1f);
}

/* Result banner. Same visual language as the other plugin messages, but its
   own class names so this form does not depend on another module's stylesheet
   being loaded. */
.pta-contact-message {
  border-radius: var(--pta-radius, 10px);
  padding: 14px 18px;
  margin: 0 0 20px;
  font-weight: 600;
  border: 1px solid transparent;
}
.pta-contact-message--success {
  background: #eaf7ee;
  border-color: #b6e0c2;
  color: #1a7f37;
}
.pta-contact-message--error {
  background: #fdecec;
  border-color: #f3c2c2;
  color: #b32d2e;
}

.pta-contact-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
@media (max-width: 560px) {
  .pta-contact-row--split { grid-template-columns: 1fr; }
}

.pta-contact-field {
  margin: 0 0 16px;
}
.pta-contact-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--pta-ink, #1f1f1f);
}

/* Inputs style themselves rather than inheriting, because a foreign theme may
   give form controls no styling at all (this replaced a page-builder form that
   brought its own). */
.pta-contact-field input,
.pta-contact-field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  color: var(--pta-ink, #1f1f1f);
  background: var(--pta-white, #ffffff);
  border: 1px solid var(--pta-line, #e7e2d6);
  border-radius: var(--pta-radius, 10px);
  box-sizing: border-box;
}
.pta-contact-field textarea { resize: vertical; }
.pta-contact-field input:focus,
.pta-contact-field textarea:focus {
  outline: 3px solid var(--pta-primary, #f4b41c);
  outline-offset: 1px;
  border-color: var(--pta-primary, #f4b41c);
}

.pta-contact-actions {
  margin: 4px 0 0;
  text-align: right;
}

/* Honeypot: off-screen rather than display:none, since some bots skip fields
   that are hidden outright. Never focusable, never announced. */
.pta-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Under a foreign theme the plugin supplies the button look too, since there
   may be no .pta-btn in the host stylesheet. */
.pta-contact--standalone .pta-btn {
  display: inline-block;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--pta-primary, #f4b41c);
  color: var(--pta-on-primary, #141414);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}
.pta-contact--standalone .pta-btn:hover {
  /* Darken, never brighten: a brighter fill under on-primary text fails
     contrast for a dark-brand palette. */
  background: var(--pta-secondary, #d99a00);
}
