/* Contact forms that replace the old WordPress form placeholders.
   .yaa-form--dark sits on the footer's dark band; .yaa-form--light on white pages. */

.yaa-form {
  --yaa-text: #1f2328;
  --yaa-muted: #4a5361;
  --yaa-field-border: #6b7280;
  --yaa-error: #b42318;
  --yaa-focus: #1d4ed8;
  max-width: 920px;
  margin: 0 auto;
  color: var(--yaa-text);
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.yaa-form--dark {
  --yaa-text: #ffffff;
  --yaa-muted: #e6ecf5;
  --yaa-field-border: #ffffff;
  --yaa-error: #ffd2cc;
  --yaa-focus: #ffd166;
}

.yaa-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
}

.yaa-form--light .yaa-form__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.yaa-field--wide {
  grid-column: 1 / -1;
}

.yaa-form label,
.yaa-form legend {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: var(--yaa-text);
  font-size: 16px;
  font-weight: 500;
}

.yaa-form .yaa-hint {
  color: var(--yaa-muted);
  font-weight: 400;
}

.yaa-form input[type=text],
.yaa-form input[type=tel],
.yaa-form input[type=email],
.yaa-form input[type=date],
.yaa-form select,
.yaa-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--yaa-field-border);
  border-radius: 4px;
  background: #ffffff;
  color: #1f2328;
  font: inherit;
  font-size: 16px;
}

.yaa-form textarea {
  min-height: 96px;
  resize: vertical;
}

.yaa-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.yaa-form .yaa-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 48px;
  align-items: center;
}

.yaa-form .yaa-choices label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
}

.yaa-form input[type=radio] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #346bc2;
}

.yaa-form input:focus-visible,
.yaa-form select:focus-visible,
.yaa-form textarea:focus-visible,
.yaa-form button:focus-visible,
.yaa-form a:focus-visible,
.yaa-form__status:focus-visible {
  outline: 3px solid var(--yaa-focus) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

.yaa-field.is-invalid input,
.yaa-field.is-invalid textarea {
  border: 2px solid var(--yaa-error);
}

.yaa-field__error {
  display: block;
  margin-top: 4px;
  color: var(--yaa-error);
  font-size: 15px;
}

.yaa-field__error:empty {
  display: none;
}

.yaa-form__notice {
  margin: 16px 0 0;
  padding: 0;
  color: var(--yaa-muted);
  font-size: 14px;
}

.yaa-form a {
  color: inherit;
  text-decoration: underline;
}

.yaa-turnstile:not(:empty) {
  margin-top: 16px;
}

.yaa-form__actions {
  margin-top: 16px;
}

.yaa-form .yaa-button {
  min-height: 48px;
  padding: 12px 36px;
  border: 2px solid #346bc2;
  border-radius: 3px;
  background: #346bc2;
  color: #ffffff;
  font-family: 'Cinzel', Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.yaa-form--dark .yaa-button {
  border-color: #ffffff;
}

.yaa-form .yaa-button:hover {
  background: #163059;
  border-color: #163059;
}

.yaa-form--dark .yaa-button:hover {
  border-color: #ffffff;
}

.yaa-form .yaa-button:disabled {
  cursor: progress;
  opacity: 0.75;
}

.yaa-form__status {
  margin: 12px 0 0;
  padding: 0;
  color: var(--yaa-text);
}

.yaa-form__status:empty {
  display: none;
}

/* Focus moves here after sending so screen readers announce the result;
   only keyboard users need to see the ring. */
.yaa-form__status:focus:not(:focus-visible) {
  outline: none !important;
}

.yaa-form__status.is-error {
  color: var(--yaa-error);
  font-weight: 500;
}

.yaa-form__done {
  display: block;
  font-size: 19px;
}

.yaa-form__noscript {
  margin-top: 12px;
}

/* Hidden from people and assistive tech; bots that fill it are ignored. */
.yaa-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .yaa-form__grid,
  .yaa-form--light .yaa-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yaa-form .yaa-button {
    transition: none;
  }
}

/* The attorney page's "Email me" button now links to the contact form;
   these match the button's original styles. */
.fl-email-attorney a.yaa-email-link {
  display: inline-block;
  height: auto !important;
  padding: 15px 40px !important;
  color: #ffffff !important;
  background: #346bc2 !important;
  border: 2px solid #346bc2 !important;
  border-radius: 3px !important;
  font-family: 'Cinzel', Georgia, "Times New Roman", serif !important;
  font-size: 21px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  transition: all 0.2s ease-out;
}

.fl-email-attorney a.yaa-email-link:hover {
  background: #163059 !important;
  border-color: #163059 !important;
}
