/* BMW Quarter Horses: what WordPress needs on top of site.css.
   site.css is the approved design, copied in unchanged. Design changes are made there
   (redesign/src/site.css) and re-copied; this file only holds what the static build never needed. */

/* ---------- files that live in the theme folder, not at the site root ---------- */
@font-face{font-family:"Juana Alt";src:url("../fonts/juana-alt-black.woff2") format("woff2");font-weight:900;font-style:normal;font-display:swap}
@font-face{font-family:"Juana Alt";src:url("../fonts/juana-alt-bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Juana Alt";src:url("../fonts/juana-alt-semibold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Juana Alt";src:url("../fonts/juana-alt-regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Juana Alt";src:url("../fonts/juana-alt-light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
body::before{background-image:url("../img/grain.png")}

/* ---------- signed in: the admin bar sits above the fixed header ---------- */
.admin-bar .hd{top:32px}
.admin-bar .menu{top:32px}
.admin-bar .cat-bar{top:96px}
.admin-bar .sheet{top:32px;height:calc(100dvh - 32px)}
@media (max-width:782px){
  .admin-bar .hd,.admin-bar .menu{top:46px}
  .admin-bar .cat-bar{top:102px}
  .admin-bar .sheet{top:46px;height:calc(100dvh - 46px)}
}
#wpadminbar{position:fixed}

/* ---------- pages written in the WordPress editor (index.php) ---------- */
.bmwqh-entry{max-width:70ch}
.bmwqh-entry h2,.bmwqh-entry h3{font-family:var(--f-display);font-weight:700;line-height:1.12;margin:1.6em 0 .5em}
.bmwqh-entry h2{font-size:clamp(22px,2.2vw,30px)}
.bmwqh-entry h3{font-size:clamp(18px,1.6vw,22px)}
.bmwqh-entry p,.bmwqh-entry ul,.bmwqh-entry ol{margin:0 0 1.1em}
.bmwqh-entry ul,.bmwqh-entry ol{padding-left:1.3em}
.bmwqh-entry ul{list-style:disc}
.bmwqh-entry ol{list-style:decimal}
.bmwqh-entry a{color:var(--ribbon);text-decoration:underline;text-underline-offset:3px}
.bmwqh-entry .headline a{color:inherit;text-decoration:none}
.bmwqh-entry img{box-shadow:var(--shadow)}

/* ==========================================================================
   The contact form: WPForms' own markup, dressed as .form / .field / .choices / .btn in site.css.
   WPForms' stylesheets are switched off by the theme (inc/wpforms.php), so these are the only rules on it.
   Each block names the site.css rule it repeats; change that rule and this one together.
   ========================================================================== */
.bmwqh-form .wpforms-container{margin:0;padding:0}
.bmwqh-form .wpforms-form{margin:0}
.bmwqh-form .form-ask [hidden]{display:none}

/* .field-row / .field: Name and Email share a row, everything else takes a full one */
.bmwqh-form .wpforms-field-container{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.bmwqh-form .wpforms-field{grid-column:1/-1;min-width:0;margin:0 0 18px;padding:0;border:0;float:none;width:auto;clear:none}
.bmwqh-form .wpforms-field-name,.bmwqh-form .wpforms-field-email,.bmwqh-form .wpforms-field.wpforms-one-half{grid-column:auto}
.bmwqh-form .wpforms-field-name:has(.wpforms-field-row){grid-column:1/-1}
.bmwqh-form .wpforms-field-row{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.bmwqh-form .wpforms-field-row::before,.bmwqh-form .wpforms-field-row::after{content:none}
.bmwqh-form .wpforms-field-row-block{min-width:0;margin:0;padding:0;float:none;width:auto}

/* .field span, .choices legend */
.bmwqh-form .wpforms-field-label,.bmwqh-form .wpforms-field-sublabel{display:block;float:none;width:auto;font-family:var(--f-cond);font-weight:inherit;font-size:11px;line-height:1.65;letter-spacing:.24em;text-transform:uppercase;color:var(--ribbon);margin:0 0 7px;padding:0}
.bmwqh-form .wpforms-field-sublabel{margin:5px 0 0;color:var(--ink-45)}
.bmwqh-form .wpforms-required-label{display:none}   /* the approved form marks nothing with an asterisk */
.bmwqh-form .wpforms-field-description{font-size:13px;line-height:1.45;color:var(--ink-70);margin:6px 0 0}

/* .field input, .field textarea, .field select */
.bmwqh-form .wpforms-field input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=file]),
.bmwqh-form .wpforms-field textarea,
.bmwqh-form .wpforms-field select{display:block;width:100%;max-width:none;height:auto;margin:0;font:inherit;color:inherit;background:var(--paper-2);border:0;border-radius:0;padding:12px 14px 11px;outline:none;appearance:none;-webkit-appearance:none;box-shadow:inset 0 0 0 1.5px transparent;transition:box-shadow .2s,background-color .2s}
.bmwqh-form .wpforms-field textarea{min-height:132px;resize:vertical}
.bmwqh-form .wpforms-field input:not([type=radio]):not([type=checkbox]):focus,
.bmwqh-form .wpforms-field textarea:focus,
.bmwqh-form .wpforms-field select:focus{background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--electric)}

/* .choices: each choice is a tile, the chosen one navy */
.bmwqh-form .wpforms-field fieldset{border:0;padding:0;margin:0;min-width:0}
.bmwqh-form .wpforms-field-radio ul,.bmwqh-form .wpforms-field-checkbox ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.bmwqh-form .wpforms-field-radio li,.bmwqh-form .wpforms-field-checkbox li{position:relative;margin:0;padding:0;list-style:none}
.bmwqh-form .wpforms-field-radio li::before,.bmwqh-form .wpforms-field-checkbox li::before{content:none}
.bmwqh-form .wpforms-field-radio input,.bmwqh-form .wpforms-field-checkbox input{position:absolute;opacity:0;pointer-events:none;margin:0}
.bmwqh-form .wpforms-field-label-inline{display:block;margin:0;font-family:var(--f-cond);font-weight:inherit;text-transform:uppercase;letter-spacing:.2em;font-size:12px;line-height:1.2;padding:11px 15px 10px;background:var(--paper-2);cursor:pointer;transition:background-color .2s,color .2s}
.bmwqh-form .wpforms-field-label-inline:hover{background:var(--sky)}
.bmwqh-form input:checked+.wpforms-field-label-inline{background:var(--navy);color:var(--paper)}
.bmwqh-form input:focus-visible+.wpforms-field-label-inline{outline:2px solid var(--electric);outline-offset:2px}

/* the Horse field is filled from the link the visitor arrived by, and shown as the card above the form */
.bmwqh-form .bmw-horse,.bmwqh-form .wpforms-field-hidden,.bmwqh-form .wpforms-field-hp{display:none !important}

/* the spam check (Turnstile or reCAPTCHA) WPForms puts above the button: the same gap as a field */
.bmwqh-form .wpforms-recaptcha-container{margin:0 0 18px;padding:0;clear:both;max-width:100%;overflow:hidden}

/* .btn, with the arrow the approved button carries */
.bmwqh-form .wpforms-submit-container{display:flex;align-items:center;gap:14px;margin:0;padding:0;clear:both}
.bmwqh-form .wpforms-submit{display:inline-flex;align-items:center;gap:14px;margin:0;border:0;border-radius:0;background:var(--navy);color:var(--paper);font-family:var(--f-cond);font-weight:inherit;text-transform:uppercase;letter-spacing:.24em;font-size:12.5px;line-height:1.65;padding:15px 22px 14px;cursor:pointer;transition:background-color .25s}
.bmwqh-form .wpforms-submit:hover{background:var(--ribbon)}
.bmwqh-form .wpforms-submit::after{content:"";flex:none;width:26px;height:10px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M0 5h24M19 1l5 4-5 4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 10'%3E%3Cpath d='M0 5h24M19 1l5 4-5 4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center/contain no-repeat}
.bmwqh-form .wpforms-submit[disabled]{opacity:.6;cursor:default}
.bmwqh-form .wpforms-submit-spinner{width:22px;height:22px}

/* what WPForms adds that the approved form never showed: a missed field, and the thank-you */
.bmwqh-form .wpforms-error:not(input):not(textarea):not(select),.bmwqh-form .wpforms-error-container{display:block;font-family:var(--f-body);font-size:13px;line-height:1.4;letter-spacing:0;text-transform:none;color:#a3321f;margin:6px 0 0}
.bmwqh-form .wpforms-error-container{margin:0 0 18px}
.bmwqh-form input.wpforms-error,.bmwqh-form textarea.wpforms-error,.bmwqh-form select.wpforms-error{box-shadow:inset 0 0 0 1.5px #a3321f !important}
.bmwqh-form .wpforms-error-noscript{display:block;font-size:13px;color:var(--ink-70);margin:0 0 18px}
.bmwqh-form .wpforms-confirmation-container,.bmwqh-form .wpforms-confirmation-container-full,.bmwqh-form [id^="wpforms-confirmation-"]{background:var(--paper-2);padding:20px 22px;font-size:clamp(16px,1.1vw,17.5px);line-height:1.62}
.bmwqh-form .wpforms-confirmation-container p:last-child,.bmwqh-form .wpforms-confirmation-container-full p:last-child{margin-bottom:0}
@media (max-width:600px){
  .bmwqh-form .wpforms-field-container,.bmwqh-form .wpforms-field-row{grid-template-columns:1fr}   /* as .field-row */
  .bmwqh-form .wpforms-field-name,.bmwqh-form .wpforms-field-email,.bmwqh-form .wpforms-field.wpforms-one-half{grid-column:1/-1}
}
