/* Site-wide Gravity Forms styling — the Commercial form's look for every form.
   Loaded after the theme's stylesheets. style.css carries years of per-form
   rules (many with !important), so selectors here double the wrapper class
   and use !important on the properties they own. Nothing here sets `display`
   on fields or labels: GF conditional logic, hidden labels, and the theme's
   accordion (Bootstrap .d-none) all depend on it. */

/* ---- base: every form ---- */
body .gform_wrapper.gform_wrapper ul.gform_fields {
    list-style: none !important;
}
body .gform_wrapper.gform_wrapper ul.gfield_checkbox,
body .gform_wrapper.gform_wrapper ul.gfield_radio {
    list-style: none !important;
    padding-left: 0 !important;
}
body .gform_wrapper.gform_wrapper ul.gform_fields > li.gfield,
body .gform_wrapper.gform_wrapper ul.gfield_checkbox > li,
body .gform_wrapper.gform_wrapper ul.gfield_radio > li {
    list-style: none !important;
}
body .gform_wrapper.gform_wrapper ul.gform_fields > li.gfield::before,
body .gform_wrapper.gform_wrapper ul.gform_fields > li.gfield::marker {
    content: none !important;
}

body .gform_wrapper.gform_wrapper .gfield_label.gfield_label,
body .gform_wrapper.gform_wrapper legend.gfield_label.gfield_label,
body .gform_wrapper.gform_wrapper .ginput_complex label,
body .gform_wrapper.gform_wrapper .gform-field-label--type-sub {
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
    color: #5a6169 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
}
body .gform_wrapper.gform_wrapper .ginput_complex label,
body .gform_wrapper.gform_wrapper .gform-field-label--type-sub {
    margin: 4px 0 0 !important;
    font-size: 11px !important;
    color: #8a9199 !important;
}
body .gform_wrapper.gform_wrapper .gfield_required {
    color: #c0392b !important;
    font-size: 12px !important;
    margin-left: 2px !important;
}
body .gform_wrapper.gform_wrapper .gfield_required .gfield_required_text {
    font-style: normal !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body .gform_wrapper.gform_wrapper .gfield input[type="text"],
body .gform_wrapper.gform_wrapper .gfield input[type="email"],
body .gform_wrapper.gform_wrapper .gfield input[type="tel"],
body .gform_wrapper.gform_wrapper .gfield input[type="number"],
body .gform_wrapper.gform_wrapper .gfield input[type="url"],
body .gform_wrapper.gform_wrapper .gfield input[type="password"],
body .gform_wrapper.gform_wrapper .gfield select,
body .gform_wrapper.gform_wrapper .gfield textarea {
    width: 100% !important;
    max-width: 100% !important;
    height: 44px !important;
    padding: 0 12px !important;
    border: 1px solid #cfd4d9 !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-family: inherit !important;
    line-height: normal !important;
    color: #333 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
body .gform_wrapper.gform_wrapper .gfield textarea {
    height: 120px !important;
    min-height: 120px !important;
    padding: 11px 12px !important;
    resize: vertical;
}
body .gform_wrapper.gform_wrapper .gfield select[multiple] {
    height: auto !important;
    min-height: 120px !important;
    padding: 6px 8px !important;
}
body .gform_wrapper.gform_wrapper .gfield input:focus,
body .gform_wrapper.gform_wrapper .gfield select:focus,
body .gform_wrapper.gform_wrapper .gfield textarea:focus {
    outline: none !important;
    border-color: #0075bb !important;
    box-shadow: 0 0 0 2px rgba(0, 117, 187, .12) !important;
}
body .gform_wrapper.gform_wrapper .gfield ::placeholder {
    color: #9aa1a8 !important;
    opacity: 1 !important;
}

/* checkboxes and radios: normal-case choice text; the inputs keep the
   theme's own rendering (the application form draws custom boxes and the
   C.O.D./Credit switch) */
body .gform_wrapper.gform_wrapper .gchoice label,
body .gform_wrapper.gform_wrapper .gfield_checkbox label,
body .gform_wrapper.gform_wrapper .gfield_radio label {
    font-size: 14.5px !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #333 !important;
    line-height: 1.4 !important;
}
body .gform_wrapper.gform_wrapper .gfield input[type="checkbox"],
body .gform_wrapper.gform_wrapper .gfield input[type="radio"] {
    accent-color: #0075bb;
}

/* section headings */
body .gform_wrapper.gform_wrapper .gsection {
    border-bottom: 1px solid #e3e6e9 !important;
    padding: 0 0 8px !important;
    margin: 18px 0 4px !important;
}
body .gform_wrapper.gform_wrapper .gsection_title {
    font-size: 19px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #1d2327 !important;
    margin: 0 !important;
}

/* section headings some forms build from HTML fields */
body .gform_wrapper.gform_wrapper h2.inner-head-price {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #1d2327 !important;
    margin: 0 0 4px !important;
}

/* buttons */
body .gform_wrapper.gform_wrapper .gform_footer input[type="submit"],
body .gform_wrapper.gform_wrapper .gform_footer button,
body .gform_wrapper.gform_wrapper .gform_page_footer input[type="submit"],
body .gform_wrapper.gform_wrapper .gform_page_footer input[type="button"],
body .gform_wrapper.gform_wrapper .gform_page_footer button {
    background: #0075bb !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 3px !important;
    padding: 15px 28px !important;
    height: auto !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .15s;
}
body .gform_wrapper.gform_wrapper .gform_footer input[type="submit"],
body .gform_wrapper.gform_wrapper .gform_footer button[type="submit"] {
    width: 100%;
}
body .gform_wrapper.gform_wrapper .gform_footer input[type="submit"]:hover,
body .gform_wrapper.gform_wrapper .gform_footer button:hover,
body .gform_wrapper.gform_wrapper .gform_page_footer input:hover,
body .gform_wrapper.gform_wrapper .gform_page_footer button:hover {
    background: #005e96 !important;
}
body .gform_wrapper.gform_wrapper .gform_page_footer .gform_previous_button {
    background: #fff !important;
    color: #0075bb !important;
    border: 1.5px solid #0075bb !important;
}
body .gform_wrapper.gform_wrapper .gfield_repeater_buttons button,
body .gform_wrapper.gform_wrapper .gfield_repeater_buttons .add_repeater_item,
body .gform_wrapper.gform_wrapper .gfield_repeater_buttons .remove_repeater_item {
    background: #fff !important;
    color: #0075bb !important;
    border: 1.5px solid #0075bb !important;
    border-radius: 3px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer;
}

/* validation */
body .gform_wrapper.gform_wrapper .gfield_error input:not([type="checkbox"]):not([type="radio"]),
body .gform_wrapper.gform_wrapper .gfield_error select,
body .gform_wrapper.gform_wrapper .gfield_error textarea {
    border-color: #c0392b !important;
}
body .gform_wrapper.gform_wrapper .gfield_validation_message,
body .gform_wrapper.gform_wrapper .validation_message {
    font-size: 12.5px !important;
    color: #c0392b !important;
    background: none !important;
    border: 0 !important;
    padding: 4px 0 0 !important;
    margin: 0 !important;
}
body .gform_wrapper.gform_wrapper .gfield.gfield_error {
    background: none !important;
    border: 0 !important;
}

/* reCAPTCHA: the widget speaks for itself */
body .gform_wrapper.gform_wrapper .gfield--type-captcha .gfield_label {
    display: none !important;
}

/* ---- Product Samples sits on a dark panel ---- */
body #gform_wrapper_33.gform_wrapper .gfield_label.gfield_label,
body #gform_wrapper_33.gform_wrapper .gchoice label,
body #gform_wrapper_33.gform_wrapper .gfield_checkbox label {
    color: #dfe3e6 !important;
}

/* ---- New Account Application (form 5) layout ----
   The theme once split this form into one list per section and laid each
   out in style.css; that split no longer happens, so rows are rebuilt here
   on a 12-column grid from the classes already on each field. */
body #gform_wrapper_5 ul.gform_fields,
body #gform_wrapper_5 ul.gfield_repeater_item {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 18px;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    align-content: start;
    align-items: start;
    box-sizing: border-box !important;
}
body #gform_wrapper_5 ul.gform_fields {
    margin: 0 !important;
    padding: 6px 30px 26px !important;
}
/* custom.js shows/hides the References list (credit only) through its
   display value, so that list keeps block layout; everything in it is
   full width anyway */
body #gform_wrapper_5 ul.gform_fields:not(.reference),
body #gform_wrapper_5 ul.gfield_repeater_item {
    display: grid !important;
}
body #gform_wrapper_5 ul.gform_fields.reference > li.gfield {
    margin-bottom: 18px !important;
}
body #gform_wrapper_5 ul.gfield_repeater_item {
    margin: 0 0 18px !important;
    padding: 0 !important;
    list-style: none !important;
}
/* admin-only hidden fields are normally pushed off-screen; out of the grid
   entirely instead (their inputs still submit) */
body #gform_wrapper_5 ul.gform_fields > li.gfield_visibility_hidden {
    display: none !important;
}
body #gform_wrapper_5 ul.gform_fields > li.gfield,
body #gform_wrapper_5 ul.gfield_repeater_item > li.gfield {
    grid-column: 1 / -1;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body #gform_wrapper_5 .ginput_container {
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
}

/* section headings: the +/- toggles act as the headers, so hide GF's own */
body #gform_wrapper_5 ul.gform_fields > li.gsection {
    display: none !important;
}
body #gform_wrapper_5 .dorpdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0 12px !important;
    border-bottom: 1px solid #e3e6e9;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #1d2327 !important;
    text-decoration: none !important;
    margin: 6px 0 0 !important;
}
body #gform_wrapper_5 .dorpdown-toggle .menu-iconform {
    float: none !important;
    position: static !important;
    font-style: normal;
    font-size: 24px !important;
    line-height: 1;
    color: #0075bb !important;
    margin-left: auto;
}
body #gform_wrapper_5 h2.new-acc-req {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #1d2327 !important;
    margin: 0 !important;
}

/* type of application: title and C.O.D./Credit switch share a row. The
   switch is the theme's: its labels stay invisible (the track and the
   C.O.D./Credit words are drawn in CSS). */
body #gform_wrapper_5 li.typeofApplication-checkbox > .gfield_label.gfield_label,
body #gform_wrapper_5 li.typeofApplication-checkbox .gchoice label {
    color: transparent !important;
    font-size: 8px !important;
    user-select: none;
}
body #gform_wrapper_5 ul.gform_fields > li.typeofApplication-title { grid-column: 1 / span 4; align-self: center; }
body #gform_wrapper_5 ul.gform_fields > li.typeofApplication-checkbox { grid-column: 5 / -1; align-self: center; }

/* company */
body #gform_wrapper_5 ul.gform_fields > li.credit-req-amount { grid-column: 1 / span 6; }
body #gform_wrapper_5 ul.gform_fields > li.comp-sub-1 { grid-column: 1 / span 3; }
body #gform_wrapper_5 ul.gform_fields > li.comp-sub-2,
body #gform_wrapper_5 ul.gform_fields > li.comp-sub-3,
body #gform_wrapper_5 ul.gform_fields > li.comp-state { grid-column: span 3; }

/* contact: office/fax | contact | ext | email, then the checkbox row */
body #gform_wrapper_5 ul.gform_fields > li.Cntctinfo-r1-col1,
body #gform_wrapper_5 ul.gform_fields > li.Cntctinfo-r2-col1 { grid-column: 1 / span 3; }
body #gform_wrapper_5 ul.gform_fields > li.Cntctinfo-r1-col2,
body #gform_wrapper_5 ul.gform_fields > li.Cntctinfo-r2-col2 { grid-column: span 3; }
body #gform_wrapper_5 ul.gform_fields > li.Cntctinfo-r1-col3,
body #gform_wrapper_5 ul.gform_fields > li.Cntctinfo-r2-col3 { grid-column: span 2; }
body #gform_wrapper_5 ul.gform_fields > li.Cntctinfo-r1-col4,
body #gform_wrapper_5 ul.gform_fields > li.Cntctinfo-r2-col4 { grid-column: span 4; }
body #gform_wrapper_5 ul.gform_fields > li.Cntctinfo-r1-col5,
body #gform_wrapper_5 ul.gform_fields > li.Cntctinfo-r2-col5 { grid-column: 1 / -1; margin-top: -6px !important; }

/* address: street | city | state | zip, bill row then ship row */
body #gform_wrapper_5 ul.gform_fields > li.bill-address,
body #gform_wrapper_5 ul.gform_fields > li.ship-to-adr { grid-column: 1 / span 5; }
body #gform_wrapper_5 ul.gform_fields > li.addr-info-city,
body #gform_wrapper_5 ul.gform_fields > li.ship-city { grid-column: span 3; }
body #gform_wrapper_5 ul.gform_fields > li.addr-info-states,
body #gform_wrapper_5 ul.gform_fields > li.ship-state,
body #gform_wrapper_5 ul.gform_fields > li.addr-info-zip,
body #gform_wrapper_5 ul.gform_fields > li.shp-zip { grid-column: span 2; }
body #gform_wrapper_5 ul.gform_fields > li.addrs-info-row3-col1 { grid-column: 1 / span 4; }
body #gform_wrapper_5 ul.gform_fields > li.addrs-info-row3-col2 { grid-column: span 8; }

/* accompanying documents: name | file | type, one row per upload */
body #gform_wrapper_5 ul.gform_fields > li.AccompanyingDocuments-inc1,
body #gform_wrapper_5 ul.gform_fields > li.AccompanyingDocuments-inc2,
body #gform_wrapper_5 ul.gform_fields > li.AccompanyingDocuments-inc3 { grid-column: 1 / span 4; }
body #gform_wrapper_5 ul.gform_fields > li.AccompanyingDocuments-slctc1,
body #gform_wrapper_5 ul.gform_fields > li.AccompanyingDocuments-slctc2,
body #gform_wrapper_5 ul.gform_fields > li.AccompanyingDocuments-slctc3 { grid-column: span 3; }
body #gform_wrapper_5 ul.gform_fields > li.AccompanyingDocuments-cboxc1,
body #gform_wrapper_5 ul.gform_fields > li.AccompanyingDocuments-cboxc2,
body #gform_wrapper_5 ul.gform_fields > li.AccompanyingDocuments-cboxc3 { grid-column: span 5; align-self: center; }
body #gform_wrapper_5 li[class*="AccompanyingDocuments-cboxc"] .gfield_radio,
body #gform_wrapper_5 li[class*="AccompanyingDocuments-cboxc"] .gfield_checkbox {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 0 !important;
}
body #gform_wrapper_5 li[class*="AccompanyingDocuments-cboxc"] .gchoice {
    position: static !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
    top: auto !important;
}

body #gform_wrapper_5 li[class*="AccompanyingDocuments-slctc"] .gform_fileupload_rules {
    position: static !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    color: #8a9199 !important;
}

/* agreement text boxes */
body #gform_wrapper_5 .account-agreement {
    padding: 14px 18px !important;
    border: 1px solid #cfd4d9 !important;
    border-radius: 3px;
    background: #fff !important;
    font-size: 13.5px !important;
}

/* bank and business references (repeaters): name | address,
   city | state | zip, phone | fax | account, then contact | ext | email */
body #gform_wrapper_5 ul.gfield_repeater_item > .gfield_repeater_buttons { grid-column: 1 / -1; }
body #gform_wrapper_5 ul.gfield_repeater_item > li.bank-detail-na,
body #gform_wrapper_5 ul.gfield_repeater_item > li.busin-ref { grid-column: 1 / span 6; }
body #gform_wrapper_5 ul.gfield_repeater_item > li.bank-detail-na.bank-adr,
body #gform_wrapper_5 ul.gfield_repeater_item > li.bus-adr { grid-column: span 6; }
body #gform_wrapper_5 ul.gfield_repeater_item > li.bank-detail-na.bank-city,
body #gform_wrapper_5 ul.gfield_repeater_item > li.bus-city { grid-column: 1 / span 5; }
body #gform_wrapper_5 ul.gfield_repeater_item > li.bank-detail-na.bank-state,
body #gform_wrapper_5 ul.gfield_repeater_item > li.bus-state { grid-column: span 3; }
body #gform_wrapper_5 ul.gfield_repeater_item > li.bank-detail-na.bank-zip,
body #gform_wrapper_5 ul.gfield_repeater_item > li.bus-zip { grid-column: span 4; }
body #gform_wrapper_5 ul.gfield_repeater_item > li.bank-tele,
body #gform_wrapper_5 ul.gfield_repeater_item > li.busines-tele { grid-column: 1 / span 4; }
body #gform_wrapper_5 ul.gfield_repeater_item > li.bank-fax,
body #gform_wrapper_5 ul.gfield_repeater_item > li.fax-na,
body #gform_wrapper_5 ul.gfield_repeater_item > li.bank-account,
body #gform_wrapper_5 ul.gfield_repeater_item > li.acc-na { grid-column: span 4; }
body #gform_wrapper_5 ul.gfield_repeater_item > li.bank-accname-na,
body #gform_wrapper_5 ul.gfield_repeater_item > li.acc-payab-na { grid-column: 1 / span 5; }
body #gform_wrapper_5 ul.gfield_repeater_item > li.ext-na { grid-column: span 2; }
body #gform_wrapper_5 ul.gfield_repeater_item > li.bank-ct-em-na,
body #gform_wrapper_5 ul.gfield_repeater_item > li.acc-pay-em-na { grid-column: span 5; }

/* signature page: name | title | signature, date below */
body #gform_wrapper_5 ul.gform_fields > li.sign-name { grid-column: 1 / span 3; }
body #gform_wrapper_5 ul.gform_fields > li.sign-title { grid-column: span 3; }
body #gform_wrapper_5 ul.gform_fields > li.sign-signature { grid-column: span 6; }
body #gform_wrapper_5 ul.gform_fields > li.sign-date { grid-column: 1 / span 3; }

/* the theme lays signature fields out as label-beside-input flex rows with
   fixed widths; stack them instead (display itself stays with GF, which
   shows the co-signer rows conditionally) */
body #gform_wrapper_5 ul.gform_fields > li.sign-name,
body #gform_wrapper_5 ul.gform_fields > li.sign-title,
body #gform_wrapper_5 ul.gform_fields > li.sign-signature,
body #gform_wrapper_5 ul.gform_fields > li.sign-date {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}
body #gform_wrapper_5 li[class*="sign-"] > .gfield_label.gfield_label {
    width: auto !important;
    margin: 0 0 6px !important;
}
body #gform_wrapper_5 li[class*="sign-"] > .ginput_container,
body #gform_wrapper_5 li[class*="sign-"] > .gfield_signature_ui_container {
    position: static !important;
    left: auto !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

@media (max-width: 767px) {
    body #gform_wrapper_5 ul.gform_fields { padding: 6px 16px 22px !important; }
    body #gform_wrapper_5 ul.gform_fields > li.gfield,
    body #gform_wrapper_5 ul.gfield_repeater_item > li.gfield { grid-column: 1 / -1 !important; }
}
