/* Contact form. Brand tokens with fallbacks, so it looks right under the PTA
   RallyTrain theme and degrades sensibly under any other theme. */

.rt-contact {
  max-width: 720px;
  margin: 0 auto;
}

.rt-contact-heading {
  text-align: center;
  margin: 0 0 8px;
}

.rt-contact-intro {
  text-align: center;
  margin: 0 auto 24px;
  color: var(--rt-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. */
.rt-contact-message {
  border-radius: var(--rt-radius, 10px);
  padding: 14px 18px;
  margin: 0 0 20px;
  font-weight: 600;
  border: 1px solid transparent;
}
.rt-contact-message--success {
  background: #eaf7ee;
  border-color: #b6e0c2;
  color: #1a7f37;
}
.rt-contact-message--error {
  background: #fdecec;
  border-color: #f3c2c2;
  color: #b32d2e;
}

.rt-contact-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
@media (max-width: 560px) {
  .rt-contact-row--split { grid-template-columns: 1fr; }
}

.rt-contact-field {
  margin: 0 0 16px;
}
.rt-contact-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--rt-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). */
.rt-contact-field input,
.rt-contact-field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  color: var(--rt-ink, #1f1f1f);
  background: var(--rt-white, #ffffff);
  border: 1px solid var(--rt-line, #e7e2d6);
  border-radius: var(--rt-radius, 10px);
  box-sizing: border-box;
}
.rt-contact-field textarea { resize: vertical; }
.rt-contact-field input:focus,
.rt-contact-field textarea:focus {
  outline: 3px solid var(--rt-primary, #f4b41c);
  outline-offset: 1px;
  border-color: var(--rt-primary, #f4b41c);
}

.rt-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. */
.rt-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 .rt-btn in the host stylesheet. */
.rt-contact--standalone .rt-btn {
  display: inline-block;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--rt-primary, #f4b41c);
  color: var(--rt-on-primary, #141414);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}
.rt-contact--standalone .rt-btn:hover {
  /* Darken, never brighten: a brighter fill under on-primary text fails
     contrast for a dark-brand palette. */
  background: var(--rt-secondary, #d99a00);
}

/* The OK-to-text consent sits beside the phone field, checkbox and words
   on one line, bottom-aligned with the input next to it. */
.rt-contact-field--check {
  display: flex;
  align-items: flex-end;
  padding-bottom: 10px;
}
.rt-contact-field--check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}
.rt-contact-field--check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rt-primary, #b3141c);
}
.rt-contact-optional {
  font-weight: 400;
  color: var(--rt-gray, #6b6b6b);
  font-size: 0.9em;
}
