/* Adventure World theme for the contact form (sa-static-contact). Our own file: edit here, not in dist/.
   Every value is taken from dist/themes/adventureworld/css/main.css (selector in the comment). */
.sa-contact{
  --sa-font:"Roboto",sans-serif;               /* body, .form-control (font-family:inherit) */
  --sa-panel:#e6f8fe;                          /* body background-color: AW's pale sky page tint; white inputs stand out on it */
  --sa-ink:#333333;                            /* body color / a (AW's dark text); dark text colour */
  --sa-text:#333333;                           /* body color */
  --sa-btn-bg:#dc1c29;                         /* .btn-primary background-color (AW red; Buy Now / Tickets buttons) */
  --sa-btn-fg:#ffffff;                         /* .btn-primary color */
  --sa-btn-hover:#af1621;                      /* .btn-primary:hover background-color (AW's own darker red) */
  --sa-accent:#1fc4f9;                         /* .btn-info / .contact-container / .page-header background (AW sky blue): the rule under "Thank you" */
  --sa-link:#af1621;                           /* .btn-primary:hover red: AW red darkened so small text on the pale panel passes 4.5:1 */
  --sa-check-bg:#D31D26;                       /* red disc of the floating Subscribe badge (.mailing-list-button svg) */
  --sa-danger:#a94442;                         /* .has-error .form-control border-color / .text-danger */
  --sa-danger-bg:#f2dede;                      /* .bg-danger */
  --sa-warn-bg:#fcf8e3;                        /* .bg-warning */
  --sa-border:#cccccc;                         /* .form-control border */
  --sa-rem:16px;                               /* .form-control font-size */
}
/* Success check matches AW's floating Subscribe badge (.mailing-list-button svg in dist/index.html):
   red disc #D31D26 (--sa-check-bg above), yellow rim #FAD232, white lettering, and the badge's envelope blue #08BDF9 for the pulse. */
.sa-contact .sa-check .ring{stroke:#FAD232;stroke-width:6.5}   /* .mailing-list-button yellow outer ring, thicker so it reads as the rim */
.sa-contact .sa-check .tick{stroke:#ffffff}                     /* .mailing-list-button white lettering */
.sa-contact .sa-check::after{border-color:#08BDF9}              /* .mailing-list-button envelope blue */
/* AW headings use Roboto Condensed (h1-h6 in main.css); the title and the success heading follow suit */
.sa-contact :is(h2,h3).sa-title,.sa-contact .sa-success :is(h2,h3,h4){font-family:"Roboto Condensed",sans-serif}
/* The form draws its own panel and padding, so neutralise AW's wrapper. The captured "Get in touch" heading is removed by clean.mjs. */
.template-AdventureWorldContactPage .page-content aside .totem-form{padding:0;margin:0;background:none}
/* AW's .template-AdventureWorldContactPage .page-content aside h3 (pale blue bar, negative margins, padding) must not style the form's own title */
.template-AdventureWorldContactPage .page-content aside .sa-contact :is(h2,h3).sa-title{background:none;margin:0 0 4px;padding:0;font-style:normal}
/* BugHerd #36 v2: every question type and width an editor can choose, for the Contact page AND every Form block.
   Widths: side by side only when the FORM is wide enough (a container query on the form panel, not the window). */
.sa-contact{container-type:inline-size}
.sa-contact .sa-fields{display:flex;flex-wrap:wrap;column-gap:16px}
.sa-contact .sa-fields~.sa-bot-slot{margin-top:0} /* a flex wrapper stops the last field's 14px margin collapsing with the slot's 2px, which made it 16px; the gap stays 14px as before (D67) */
.sa-contact .sa-fields>.sa-field,.sa-contact .sa-fields>.sa-message{flex:1 1 100%;min-width:0}
@container (min-width:520px){
  .sa-contact .sa-fields>.sa-w-33{flex:0 1 calc((100% - 32px)/3)}
  .sa-contact .sa-fields>.sa-w-50{flex:0 1 calc((100% - 16px)/2)}
  .sa-contact .sa-fields>.sa-w-66{flex:0 1 calc((100% - 32px)*2/3 + 16px)}
}
/* Select, State, Country: the same box as a text answer, with a drawn arrow (the base rule removes the native one). */
.sa-contact select.sa-input{padding-right:36px;cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center}
/* Checkbox: the whole row is the target, label text wraps, the box is 22px in AW red. */
.sa-contact .sa-field label.sa-checkrow{display:flex;gap:10px;align-items:flex-start;white-space:normal;font-weight:400;cursor:pointer;min-height:44px;padding:10px 12px;background:#fff;border:1px solid var(--_border)}
.sa-contact .sa-checkrow input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--_btn-bg);cursor:pointer}
.sa-contact .sa-checkrow:has(input:focus-visible){border-color:var(--_ink);box-shadow:0 0 0 3px rgba(0,0,0,.18)}
.sa-contact .sa-checkrow:has(input[aria-invalid="true"]){border-color:var(--_danger);box-shadow:inset 3px 0 0 var(--_danger)}
.sa-contact .sa-field--check .sa-msg{min-height:1.3em}
/* Message: an editor's paragraph between questions. */
.sa-contact .sa-message{margin:0 0 14px;font-size:16px;line-height:1.5;color:var(--_text)}
.sa-contact .sa-message>:last-child{margin-bottom:0}
/* A Form block on any page (blocks/Form): the panel sits in the page's own grid. */
.aw-form-block{margin:0 0 30px}
.aw-form-block .aw-form-block__intro>:last-child{margin-bottom:0}
.aw-form-block .aw-form-block__media img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;margin:0 0 20px}
.aw-form-block--stacked .aw-form-block__intro{margin:0 0 20px}
@media (max-width:991px){.aw-form-block--split .aw-form-block__intro,.aw-form-block--split .aw-form-block__media{margin-bottom:20px}}
@media (max-width:1199px){.aw-form-block--rail .aw-form-block__intro{margin-bottom:20px}}
/* rail: a flex row from lg so the panel can stick (StickyRail sticks it only when it fits the window) */
@media (min-width:1200px){.aw-form-block__rail-row{display:flex}.aw-form-block__rail-row::before,.aw-form-block__rail-row::after{display:none}}
