.inovonics-cloud-services-agreement .gfield_description {
    max-height: min(24rem, 55vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #767676;
    border-radius: 0.25rem;
    padding: 1rem;
    background: #fff;
}

.inovonics-cloud-services-agreement .gfield_description:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
}

.inovonics-cloud-services-agreement .gfield_description p:first-child {
    margin-top: 0;
}

.inovonics-cloud-services-agreement .gfield_description p:last-child {
    margin-bottom: 0;
}

/*
 * Agreement text first, then the check box with its label on one line.
 * Gravity Forms places the description inside the consent container, so the
 * container itself is laid out; the rules after it cover a description that is
 * a direct child of the field instead.
 */
.inovonics-cloud-services-agreement .ginput_container_consent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
}

.inovonics-cloud-services-agreement .ginput_container_consent .gfield_description {
    order: -1;
    flex: 0 0 100%;
    margin: 0 0 0.75rem;
}

.inovonics-cloud-services-agreement .ginput_container_consent input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
}

.inovonics-cloud-services-agreement .ginput_container_consent label {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.inovonics-co-agreement__submit-note {
    margin: 1rem 0 0;
    color: #3f4f5f;
    font-weight: 600;
}

.inovonics-cloud-services-agreement.gfield {
    display: flex;
    flex-direction: column;
}

.inovonics-cloud-services-agreement > .gfield_label,
.inovonics-cloud-services-agreement > legend {
    order: 0;
}

.inovonics-cloud-services-agreement > .gfield_description {
    order: 1;
}

.inovonics-cloud-services-agreement > .ginput_container_consent {
    order: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.inovonics-cloud-services-agreement > .gfield_validation_message {
    order: 3;
}

/*
 * Live read of the Standard application (field 61): the agreement text is a direct
 * child of the consent fieldset, after the check box container, and the class rules
 * above did not take effect there. Lay out the field itself by its stable id so the
 * order is text, check box, then the submit note.
 */
#field_125_61 {
    display: flex;
    flex-direction: column;
}

#field_125_61 > legend,
#field_125_61 > .gfield_label {
    order: 0;
}

#field_125_61 > .gfield_description {
    order: 1;
    margin: 0 0 0.75rem;
}

#field_125_61 > .ginput_container_consent {
    order: 2;
    margin-top: 0;
}

#field_125_61 > .gfield_validation_message {
    order: 3;
}

#field_125_61 > .inovonics-co-agreement__submit-note {
    order: 4;
}

.inovonics-co-confirmation__heading {
    color: #3a6f8f;
}

/* Standard application field polish. Presentation only; widths stay as stored in the form. */
#gform_wrapper_125 input[type="text"],
#gform_wrapper_125 input[type="email"],
#gform_wrapper_125 input[type="tel"],
#gform_wrapper_125 input[type="url"],
#gform_wrapper_125 input[type="number"],
#gform_wrapper_125 select,
#gform_wrapper_125 textarea {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #8a96a0;
    border-radius: 0.25rem;
    font-size: 1rem;
    line-height: 1.4;
}

#gform_wrapper_125 input[type="text"]:focus,
#gform_wrapper_125 input[type="email"]:focus,
#gform_wrapper_125 input[type="tel"]:focus,
#gform_wrapper_125 select:focus,
#gform_wrapper_125 textarea:focus {
    border-color: #3a6f8f;
    outline: 2px solid #3a6f8f;
    outline-offset: 1px;
}

#gform_wrapper_125 .gfield_label {
    margin-bottom: 0.375rem;
}

#gform_wrapper_125 .gform_body .gfield {
    margin-bottom: 1.25rem;
}
