/* Acady's embedded Gravity Forms: preserve GF fields, conditional logic and
   payment controls. Only the native navigation buttons receive brand styling. */
:is(.acady-native-form,.acady-trial-frame) .gform_wrapper :is(.gform_button,.gform_next_button,.gform_previous_button){
 background-color:#b84032!important;border:1px solid #b84032!important;color:#fff!important;
 border-radius:8px!important;min-height:48px;padding:13px 22px!important;
 font-family:inherit!important;font-size:16px!important;font-weight:600!important;line-height:1.5!important;
 box-shadow:none!important;cursor:pointer;transition:background-color .15s,border-color .15s;
}
:is(.acady-native-form,.acady-trial-frame) .gform_wrapper :is(.gform_button,.gform_next_button):hover{
 background-color:#943126!important;border-color:#943126!important;
}
:is(.acady-native-form,.acady-trial-frame) .gform_wrapper .gform_previous_button{
 background-color:#e9eff6!important;border-color:#c7d4df!important;color:#173247!important;
}
:is(.acady-native-form,.acady-trial-frame) .gform_wrapper :is(.gform_button,.gform_next_button,.gform_previous_button):focus-visible{
 outline:3px solid #2467c9;outline-offset:3px;
}
/* Prototype purchase-panel fieldsets used a two-column grid. GF fieldsets
   contain their own complete row; nesting that grid halves the address width. */
.acady-native-form .gform_wrapper fieldset.gfield:not([hidden]){display:block;min-width:0}
.acady-native-form .gform_wrapper .ginput_container_address{width:100%;min-width:0;box-sizing:border-box}
.acady-native-form .gform_wrapper .ginput_container_address input:not([type=hidden]),
.acady-native-form .gform_wrapper .ginput_container_address select{width:100%;max-width:100%;min-height:48px}
.acady-native-form .gform_wrapper .ginput_container_address .ginput_address_country{flex-basis:100%;width:100%}
@media(max-width:640px){
 .acady-native-form .gform_wrapper .ginput_container_address>.gform-grid-col{flex-basis:100%;width:100%}
}
/* Match the primary buttons in the approved page designs. */
.acady-native-form .gform_wrapper :is(.gform_button,.gform_next_button){display:block;width:100%!important;flex:1 1 100%;min-height:60px!important;text-align:center!important;text-transform:none!important;font-weight:700!important;border-radius:7px!important;margin-inline:0!important}
.acady-native-form .gform_wrapper :is(.gform_footer,.gform_page_footer){flex-wrap:wrap}
/* Shared native form layout, isolated from prototype form styles. */
.acady-native-form .gform_wrapper{--gf-font-family-primary:var(--sans);--gf-form-gap-y:24px;--gf-field-gap-y:8px}
.acady-native-form .gform_wrapper .gform_fields{row-gap:24px!important;column-gap:16px!important}
.acady-native-form .gform_wrapper .gfield{min-width:0;margin-bottom:0;padding:0}
.acady-native-form .gform_wrapper fieldset.gfield{margin:0;border:0}
.acady-native-form .gform_wrapper .gfield_label{display:block;font-family:inherit;font-size:14px;font-weight:600;line-height:1.5;letter-spacing:normal;border:0;padding:0;margin:0 0 8px;color:#173247}
.acady-native-form .gform_wrapper .gfield_label .gfield_required{display:inline;width:auto;height:auto;min-width:0;min-height:0;border:0;border-radius:0;background:none;color:#526b80;font-size:12px;font-weight:400;line-height:inherit;padding:0;margin:0 0 0 3px;letter-spacing:normal}
.acady-native-form .gform_wrapper .gfield_required .gfield_required{margin:0}
.acady-native-form .gform_wrapper .gfield_description{font-size:12px;line-height:1.65;color:#526b80;padding-top:8px}
.acady-native-form .gform_wrapper input:not([type=hidden]):not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]),
.acady-native-form .gform_wrapper select{min-height:48px;font-family:inherit;font-size:15px;line-height:1.5;border:1px solid #b7cce3;border-radius:6px;background-color:#fff;box-shadow:none;max-width:100%}
.acady-native-form .gform_wrapper select:not([multiple]){appearance:none;padding:11px 40px 11px 12px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23526b80' stroke-width='1.8'%3E%3Cpath d='m5 7 5 5 5-5'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-size:18px 18px!important;background-position:right 12px center!important}
.acady-native-form .gform_wrapper select option{background:#fff;color:#173247}
.acady-native-form .gform_wrapper :is(input,select,textarea):focus-visible{outline:2px solid #2566ce;outline-offset:2px;box-shadow:none}
/* Only server-identified empty HTML spacer fields are suppressed. */
.acady-native-form .gform_wrapper .acady-layout-spacer{display:none}
.acady-native-form .gform_wrapper .gfield--type-html>.gfield{margin:0!important}
.acady-native-form .gform_wrapper .ginput_container_name.gform-grid-row{margin-inline:0;column-gap:16px}
.acady-native-form .gform_wrapper .ginput_container_name>.gform-grid-col{min-width:0;padding-inline:0}
.acady-native-form .gform_wrapper .ginput_container_address{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin-inline:0;width:100%}
.acady-native-form .gform_wrapper .ginput_container_address>.gform-grid-col{min-width:0;width:auto;padding-inline:0}
.acady-native-form .gform_wrapper .ginput_container_address>:is(.ginput_full,.ginput_address_line_1,.ginput_address_line_2,.ginput_address_country){grid-column:1/-1}
.acady-native-form .gform_wrapper .gfield--type-total{padding-top:16px;border-top:1px solid #d5e1ed}
/* GF's calculated total remains its native readonly control, presented as a price. */
.acady-native-form .gform_wrapper .ginput_container_total input[type=text],
.acady-native-form .gform_wrapper .ginput_container_total .ginput_total{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0;min-height:0;height:auto;width:100%;max-width:100%;font-family:inherit;font-size:24px!important;font-weight:600;line-height:1.4;color:#173247}
.acady-native-form .gform_wrapper .ginput_container_address input::placeholder{font-size:inherit;font-family:inherit}
.acady-native-form .gform_wrapper .gform_footer{margin-top:20px;padding-top:0}
@media(max-width:640px){.acady-native-form .gform_wrapper .ginput_container_address{grid-template-columns:minmax(0,1fr)}.acady-native-form .gform_wrapper :is(input,select){font-size:16px!important}}
/* Native checkout forms, matched to the approved numbered purchase layout. */
/* Prototype legends decorate every span as a step badge. Native GF spans also
   contain ordinary label text and required markers, so reset those explicitly. */
.acady-native-form .gform_wrapper legend.gfield_label>span:not(.acady-payment-number){display:inline;width:auto;height:auto;min-width:0;min-height:0;flex:initial;align-items:normal;justify-content:normal;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;padding:0;margin:0}
.acady-native-form .gform_wrapper legend.gfield_label>.gfield_required{font-size:12px;font-weight:400;color:#526b80;margin-left:3px}
.acady-native-form.acady-payment-form .gform_wrapper .acady-payment-heading{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;font-family:inherit;font-size:20px;font-weight:600;line-height:1.4;letter-spacing:-.5px;color:#173247;margin:0 0 18px;padding:0 0 16px;border:0;border-bottom:1px solid #d5e1ed}
.acady-native-form.acady-payment-form .gform_wrapper .acady-payment-heading>.acady-payment-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 29px;width:29px;height:29px;border:0;border-radius:50%;background:#edf4fb;color:#2566ce;font-size:11px;font-weight:600;line-height:1;letter-spacing:0;padding:0;margin:0}
.acady-native-form.acady-payment-form .gform_wrapper .acady-payment-section{grid-column:1/-1;margin-top:8px}
.acady-native-form.acady-payment-form .gform_wrapper .acady-payment-product{grid-column:1/-1;width:100%}
.acady-native-form.acady-payment-form .gform_wrapper .acady-payment-product select{width:100%}
.acady-native-form.acady-payment-form .gform_wrapper .gfield--type-total{background:#f3f7fc;padding:20px;border:0;border-radius:8px;margin-top:8px}
.acady-native-form.acady-payment-form .gform_wrapper .acady-payment-recaptcha-notice{display:block;font-size:12px!important;line-height:1.6!important;font-weight:400!important;letter-spacing:normal;color:#526b80;margin:24px 0 0!important;max-width:100%}
.acady-native-form.acady-payment-form .gform_wrapper .acady-payment-recaptcha-notice a{font-size:inherit;line-height:inherit}
@media(max-width:540px){.acady-native-form.acady-payment-form .gform_wrapper .acady-payment-heading{font-size:18px}.acady-native-form.acady-payment-form .gform_wrapper .ginput_container_name{flex-wrap:wrap}.acady-native-form.acady-payment-form .gform_wrapper .ginput_container_name>.gform-grid-col{flex-basis:100%;width:100%}}
/* Recruitment uses native GF fields, with the approved numbered section rhythm. */
.acady-application-form .gform_wrapper .acady-application-heading{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:600;line-height:1.35;margin:20px 0 24px;padding-top:28px;border-top:1px solid #ccdef0;color:#173247}
.acady-application-form .gform_wrapper .gfield:first-child .acady-application-heading{border:0;margin-top:0;padding-top:0}
.acady-application-form .gform_wrapper .gform_fields>.acady-application-heading{grid-column:1/-1;margin-bottom:0}
.acady-application-form .acady-application-heading>span{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;background:#edf5ff;color:#2467c9;font-size:12px;font-weight:500}
.acady-application-form .gform_wrapper textarea{width:100%;box-sizing:border-box;font-family:inherit;font-size:16px;line-height:1.6;color:#173247;padding:12px 14px;border:1px solid #b7cce3;border-radius:6px;background:#fff;box-shadow:none;resize:vertical}
.acady-native-form .gform_wrapper .acady-form-recaptcha-notice,.acady-native-form .gform_wrapper .acady-form-recaptcha-notice a{font-size:12px!important;line-height:1.6!important;font-weight:400!important;color:#526b80}
.acady-native-form .gform_wrapper .acady-form-recaptcha-notice{margin:24px 0 0!important;padding:0!important}
