/* Gravity Forms in the v404 theme style: contact page (form 27), event registration (22),
   event replays (1, 2, 3). Same look as the v404 contact form:
   - fields: paper fill, bottom rule, 16px text, white fill + dark rule on focus
   - labels: 13px semibold
   - checkboxes and radios: simple box with label; pill chips only when the field's
     Choice Layout is Horizontal (.gfield--choice-align-horizontal)
   - submit: teal pill button
   The doubled class raises specificity above the Gravity Forms theme CSS. */
html body .cb-form .gform_wrapper.gform_wrapper{
  --cbf-ink:#05262B;--cbf-paper:#F5F7F8;--cbf-rule:rgba(5,38,43,.35);--cbf-teal:#27717C;--cbf-teal-hover:#19535C;--cbf-error:#9B391B;
  --cbf-sans:"Cognixia Display","Red Hat Display",Arial,Helvetica,sans-serif;
  margin:0;padding:0;max-width:none;font-family:var(--cbf-sans);color:var(--cbf-ink)}
html body .cb-form .gform_wrapper.gform_wrapper .gform_heading .gform_title{display:none}
html body .cb-form .gform_wrapper.gform_wrapper .gform_description{display:block;margin:0 0 20px;font:400 14px/1.6 var(--cbf-sans);color:#4D6468}

/* Layout: two columns like the design (half-width fields side by side) */
html body .cb-form .gform_wrapper.gform_wrapper .gform_fields{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
html body .cb-form .gform_wrapper.gform_wrapper .gfield{grid-column:span 12;display:flex;flex-direction:column;gap:8px;margin:0;padding:0;min-width:0;border:0}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield--width-half,.gf_left_half,.gf_right_half,.half-width){grid-column:span 6}
/* Custom CSS Class values set on fields in the form editor */
html body .cb-form .gform_wrapper.gform_wrapper .gfield:is(.full-width,.gf_full){grid-column:span 12}
html body .cb-form .gform_wrapper.gform_wrapper .gfield:is(.third-width,.one-third,.gf_left_third,.gf_middle_third,.gf_right_third,.gfield--width-third){grid-column:span 4}
html body .cb-form .gform_wrapper.gform_wrapper .gfield:is(.two-third-width,.two-thirds,.gfield--width-two-thirds){grid-column:span 8}
html body .cb-form .gform_wrapper.gform_wrapper .gfield:is(.quarter-width,.gfield--width-quarter){grid-column:span 3}
html body .cb-form .gform_wrapper.gform_wrapper .gfield:is(.three-quarter-width,.gfield--width-three-quarter){grid-column:span 9}
html body .cb-form .gform_wrapper.gform_wrapper .gfield--type-hidden,html body .cb-form .gform_wrapper.gform_wrapper .gform_hidden{display:none}

/* Labels and legends */
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield_label,legend.gfield_label,.gform-field-label--type-sub,.ginput_complex label){display:block;margin:0;padding:0;font:600 13px/1.3 var(--cbf-sans);color:var(--cbf-ink)}
html body .cb-form .gform_wrapper.gform_wrapper .ginput_complex label{font-weight:500;font-size:12px;margin-top:6px;color:#4D6468}
html body .cb-form .gform_wrapper.gform_wrapper fieldset.gfield legend.gfield_label{margin-bottom:10px}
html body .cb-form .gform_wrapper.gform_wrapper .gfield_required{color:var(--cbf-error);margin-left:3px;font-weight:600}
html body .cb-form .gform_wrapper.gform_wrapper .gfield_required .gfield_required_text{font-size:11px;font-weight:500}

/* Text inputs, textarea, select */
html body .cb-form .gform_wrapper.gform_wrapper :is(input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),textarea,select){
  display:block;width:100%;min-height:48px;margin:0;padding:12px;
  font:400 16px/1.4 var(--cbf-sans);color:var(--cbf-ink);background:var(--cbf-paper);
  border:0;border-bottom:1px solid var(--cbf-rule);border-radius:0;box-shadow:none;outline:none;
  transition:background-color .15s,border-color .15s,box-shadow .15s}
html body .cb-form .gform_wrapper.gform_wrapper textarea{min-height:110px;resize:vertical}
html body .cb-form .gform_wrapper.gform_wrapper select{appearance:none;-webkit-appearance:none;padding-right:40px;cursor:pointer;
  background-image: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 1.5l5 5 5-5' fill='none' stroke='%2305262B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px}
html body .cb-form .gform_wrapper.gform_wrapper :is(input,textarea,select)::placeholder{color:#6B7F82;opacity:1}
html body .cb-form .gform_wrapper.gform_wrapper :is(input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),textarea,select):focus{
  background-color:#fff;border-bottom-color:var(--cbf-ink);box-shadow:0 1px 0 var(--cbf-ink)}
html body .cb-form .gform_wrapper.gform_wrapper .ginput_complex{display:grid;grid-template-columns:1fr 1fr;gap:20px}
html body .cb-form .gform_wrapper.gform_wrapper .ginput_complex > span{display:flex;flex-direction:column;width:auto;padding:0;margin:0}

/* Checkboxes and radios: a simple box (or circle) with its label */
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield_checkbox,.gfield_radio){display:flex;flex-direction:column;flex-wrap:nowrap;gap:0;margin:0;padding:0}
html body .cb-form .gform_wrapper.gform_wrapper .gchoice{position:relative;display:block;margin:0;padding:0 8px 8px 0 !important;}
html body .cb-form .gform_wrapper.gform_wrapper .gchoice{display:flex;align-items:flex-start;gap:10px}
html body .cb-form .gform_wrapper.gform_wrapper .gchoice input:is([type=checkbox],[type=radio]){flex:0 0 18px;width:18px;height:18px;margin:2px 0 0;accent-color:var(--cbf-ink);cursor:pointer}
html body .cb-form .gform_wrapper.gform_wrapper .gchoice label{display:inline-block;margin:0;padding:0;max-width:none;border:0;background:none;font:400 15px/1.45 var(--cbf-sans);color:var(--cbf-ink);cursor:pointer}
html body .cb-form .gform_wrapper.gform_wrapper .gchoice input:focus-visible{outline:2px solid #0BA7FF;outline-offset:2px}

/* Choice Layout: Horizontal (Gravity Forms field setting) shows pill chips, as on the contact form */
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield--choice-align-horizontal,.gf_list_inline,.cb-chips) :is(.gfield_checkbox,.gfield_radio){flex-direction:row;flex-wrap:wrap}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield--choice-align-horizontal,.gf_list_inline,.cb-chips) .gchoice{display:block}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield--choice-align-horizontal,.gf_list_inline,.cb-chips) .gchoice input:is([type=checkbox],[type=radio]){position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield--choice-align-horizontal,.gf_list_inline,.cb-chips) .gchoice label{display:inline-block;margin:0;padding:8px 14px;
  border:1px solid rgba(5,38,43,.22);border-radius:999px;background:#fff;
  font:500 14px/1.2 var(--cbf-sans);color:var(--cbf-ink);cursor:pointer;transition:background-color .15s,border-color .15s,color .15s}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield--choice-align-horizontal,.gf_list_inline,.cb-chips) .gchoice label::before,html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield--choice-align-horizontal,.gf_list_inline,.cb-chips) .gchoice label::after{content:none}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield--choice-align-horizontal,.gf_list_inline,.cb-chips) .gchoice label:hover{border-color:var(--cbf-ink)}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield--choice-align-horizontal,.gf_list_inline,.cb-chips) .gchoice input:checked + label{background:var(--cbf-ink);border-color:var(--cbf-ink);color:#fff}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield--choice-align-horizontal,.gf_list_inline,.cb-chips) .gchoice input:focus-visible + label{outline:2px solid #0BA7FF;outline-offset:2px}
/* A single consent checkbox reads better as a box with text */
html body .cb-form .gform_wrapper.gform_wrapper .ginput_container_consent{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.5}
html body .cb-form .gform_wrapper.gform_wrapper .ginput_container_consent input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0;accent-color:var(--cbf-ink);cursor:pointer}
html body .cb-form .gform_wrapper.gform_wrapper .ginput_container_consent label{font:400 14px/1.5 var(--cbf-sans);color:var(--cbf-ink)}

/* Help text */
html body .cb-form .gform_wrapper.gform_wrapper :is(.gfield_description,.gform_fileupload_rules,.ginput_counter){padding:0;margin:0;font:400 12px/1.5 var(--cbf-sans);color:#4D6468}

/* Submit: the design's teal pill button */
html body .cb-form .gform_wrapper.gform_wrapper :is(.gform_footer,.gform_page_footer){display:flex;align-items:center;gap:12px;margin:24px 0 0;padding:0}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gform_button,input[type=submit],button[type=submit],.gform_next_button,.gform_previous_button){
  display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:48px;margin:0;padding:13px 24px;
  border:1px solid var(--cbf-teal);border-radius:999px;background:var(--cbf-teal);color:#fff;
  font:600 16px/1 var(--cbf-sans);text-decoration:none;cursor:pointer;box-shadow:none;
  transition:background-color .2s,border-color .2s,box-shadow .2s}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gform_button,input[type=submit],button[type=submit],.gform_next_button):hover{background:var(--cbf-teal-hover);border-color:var(--cbf-teal-hover);box-shadow:0 5px 14px rgba(5,38,43,.08)}
html body .cb-form .gform_wrapper.gform_wrapper .gform_previous_button{background:transparent;color:var(--cbf-ink);border-color:var(--cbf-ink)}
html body .cb-form .gform_wrapper.gform_wrapper .gform_previous_button:hover{background:var(--cbf-ink);color:#fff}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gform_button,input[type=submit],button[type=submit]):focus-visible{outline:2px solid #0BA7FF;outline-offset:2px}
html body .cb-form .gform_wrapper.gform_wrapper :is(.gform_button,input[type=submit],button[type=submit]):active{transform:scale(.97)}
html body .cb-form .gform_wrapper.gform_wrapper .gform_ajax_spinner{width:20px;height:20px;margin:0}

/* Validation */
html body .cb-form .gform_wrapper.gform_wrapper .gform_validation_errors{margin:0 0 20px;padding:14px 16px;border:1px solid var(--cbf-error);border-radius:0;background:#FBF1EE;box-shadow:none}
html body .cb-form .gform_wrapper.gform_wrapper .gform_validation_errors :is(h2,.gform_submission_error){margin:0;font:600 14px/1.4 var(--cbf-sans);color:var(--cbf-error)}
html body .cb-form .gform_wrapper.gform_wrapper .gfield_error :is(input,textarea,select){border-bottom-color:var(--cbf-error);box-shadow:0 1px 0 var(--cbf-error)}
html body .cb-form .gform_wrapper.gform_wrapper .gfield_error .gfield_label{color:var(--cbf-ink)}
html body .cb-form .gform_wrapper.gform_wrapper :is(.validation_message,.gfield_validation_message){margin:0;padding:0;border:0;background:none;font:500 12px/1.4 var(--cbf-sans);color:var(--cbf-error)}

/* Confirmation */
html body .cb-form .gform_confirmation_message{padding:18px 20px;border-left:3px solid var(--cbf-teal,#27717C);background:#EEF4F5;font-size:16px;line-height:1.6;color:#05262B}

/* Narrow places: event sidebar, modals, phones */
html body :is(.cb-side-form,.cognixiaModal) .cb-form .gform_wrapper.gform_wrapper .gfield:is(.gfield--width-half,.gf_left_half,.gf_right_half,.half-width,.third-width,.one-third,.gf_left_third,.gf_middle_third,.gf_right_third,.gfield--width-third,.two-third-width,.quarter-width,.three-quarter-width){grid-column:span 12}
html body .cb-side-form .cb-form .gform_wrapper.gform_wrapper .ginput_complex{grid-template-columns:1fr}
html body .cb-side-form .cb-form .gform_wrapper.gform_wrapper :is(.gform_button,input[type=submit]){width:100%}
.cb-contact-form{margin-top:24px}
@media (max-width:640px){
  html body .cb-form .gform_wrapper.gform_wrapper .gfield:is(.gfield--width-half,.gf_left_half,.gf_right_half,.half-width,.third-width,.one-third,.gf_left_third,.gf_middle_third,.gf_right_third,.gfield--width-third,.two-third-width,.quarter-width,.three-quarter-width){grid-column:span 12}
  html body .cb-form .gform_wrapper.gform_wrapper .ginput_complex{grid-template-columns:1fr}
  html body .cb-form .gform_wrapper.gform_wrapper :is(.gform_button,input[type=submit]){width:100%}
}
@media (prefers-reduced-motion:reduce){
  html body .cb-form .gform_wrapper.gform_wrapper *{transition:none !important}
}
