/*
  ACN/GCTC website forms: bold labels, red asterisks, two-column rows, theme-colored Submit button. Colors come from each
  site's --ps-* variables (assets/css/site-variables.css). The error summary is a white card with a red edge in the site's
  own type and colors (it no longer imitates the Gravity Forms validation box).
*/
.af { text-align: left; max-width: 860px; margin: 0 auto; padding: 1rem 0 2.5rem; }
.af-form { margin: 0; }
.af-sr, .af-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.af-note { font-size: .9rem; color: var(--ps-no); margin: 0 0 1rem; }
.af-req { color: #b3261e; font-weight: 700; }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.af-row--3 { grid-template-columns: repeat(3, 1fr); }
.af-row--pair { grid-template-columns: 220px 1fr; align-items: start; }
.af-field { margin: 0 0 1.1rem; min-width: 0; }
.af-narrow { max-width: 320px; }
.af-third { max-width: 33%; min-width: 220px; }
.af-indent { margin-left: 1.25rem; }
.af label, .af legend { display: block; font-weight: 700; font-size: 1rem; margin: 0 0 .35rem; color: inherit; padding: 0; border: 0; width: auto; }
.af label.af-sub { font-weight: 400; font-size: .9rem; }
.af fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.af fieldset.af-group > legend { margin-bottom: .2rem; }
.af input[type=text], .af input[type=email], .af input[type=tel], .af input[type=date], .af select, .af textarea {
  display: block; width: 100%; padding: .5rem .6rem; font: inherit; font-size: 1rem; color: #222; background: #fff;
  border: 1px solid #767676; border-radius: 3px; box-sizing: border-box; }
.af textarea { resize: vertical; }
.af input:focus, .af select:focus, .af textarea:focus { outline: 3px solid var(--ps-accent); outline-offset: 1px; }
.af-choices label { font-weight: 400; display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .3rem; line-height: 1.4; }
.af-choices input { margin-top: .25rem; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; }
.af-inline label { display: inline-flex; margin-right: 1.5rem; }
.af-section { font-size: 1.35rem; margin: 1.75rem 0 1rem; padding-bottom: .4rem; border-bottom: 1px solid #ccc; text-align: left; }
.af-rule { margin: 1.5rem 0; border: 0; border-top: 1px solid #ccc; }
.af-quiz legend { line-height: 1.4; }
.af-feedback { margin: .5rem 0 0; padding: .75rem 1rem; border-left: 4px solid; background: #f6f7f8; line-height: 1.5; }
.af-feedback--wrong { border-color: #b3261e; }
.af-feedback--right { border-color: #257347; }
.af-feedback .error { color: #b3261e; font-weight: 700; }
.af-feedback .success { color: #1e6a3e; font-weight: 700; }
.af-field--error input, .af-field--error select, .af-field--error textarea { border-color: #b3261e; box-shadow: inset 0 0 0 1px #b3261e; }
.af-error-text { color: #b3261e; font-weight: 600; font-size: .9rem; margin: .3rem 0 0; }
.af-errors { background: #fff; border: 1px solid #d5dbe1; border-left: 6px solid #b3261e; border-radius: 4px;
  box-shadow: 0 2px 6px rgba(13, 36, 68, .08); padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.af-errors:focus { outline: 3px solid var(--ps-accent); outline-offset: 2px; }
.af-errors__title { font-weight: 700; font-size: 1.05rem; margin: 0 0 .5rem; color: var(--ps-accent-dark); }
.af .af-errors ul { margin: 0; padding-left: 1.25rem; }
.af .af-errors li { margin: 0 0 .2rem; }
/* Beats the theme's content-link style (.content .section a:not(.btn)...), which adds its own color and underline bar */
.content .section .af .af-errors a:not(.btn):not(.wp-block-button__link),
.af .af-errors a { color: #b3261e; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; border: 0; box-shadow: none; }
.content .section .af .af-errors a:not(.btn):not(.wp-block-button__link):hover,
.af .af-errors a:hover { color: #7f1b15; }
.content .section .af .af-errors a:not(.btn):not(.wp-block-button__link)::after { display: none; }
.af-submit { display: inline-block; margin-top: .5rem; padding: .85rem 2.25rem; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--ps-accent-dark); color: #fff; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.af-submit:hover, .af-submit:focus { background: var(--ps-accent); }
.af-submit:focus { outline: 3px solid var(--ps-highlight); outline-offset: 2px; }
.af-submit[disabled] { opacity: .7; cursor: wait; }
.af-confirmation { font-size: 1.15rem; font-weight: 700; padding: 1.5rem; border: 2px solid var(--ps-yes); border-radius: 4px; background: #f2f8f4; }
.af-confirmation:focus { outline: 3px solid var(--ps-accent); outline-offset: 2px; }
@media (max-width: 767.98px) {
  .af-row, .af-row--3, .af-row--pair { grid-template-columns: 1fr; }
  .af-third { max-width: none; }
  .af-indent { margin-left: 0; }
}
