.gform_wrapper.gravity-theme .gform_required_legend {
    display: none;
}
.gform_wrapper.gravity-theme h3 {
    margin-block-end: 0 !important;
}
.gform_wrapper.gravity-theme .gform_fields {
    grid-column-gap: var(--wp--style--block-gap) !important;
    grid-row-gap: var(--wp--style--block-gap) !important;
}
::placeholder { 
    color: var(--wp--preset--color--secondary) !important;
    opacity: 1;
}

/* Labels  --------------------------------------------------- */

.gform_wrapper.gravity-theme .gfield_label {
    font-size: var(--nnn--style--font-size-14) !important;
    font-weight: 500 !important;
    margin-block-end: 0.25rem !important;
    text-transform: uppercase;
}
.gform_wrapper.gravity-theme .gfield_header_item, 
.gform_wrapper.gravity-theme .gform_fileupload_rules, 
.gform_wrapper.gravity-theme .ginput_complex label {
    color: var(--wp--preset--color--tertiary);
    font-size: var(--nnn--style--font-size-14) !important;
    padding-block-start: 0.25rem !important;
}
.gform_wrapper.gravity-theme .gfield_required {
    color: var(--wp--preset--color--accent) !important;
    font-size: 1.125em !important;
    font-weight: 500;
}
.gform_wrapper.gravity-theme .gfield_checkbox label, 
.gform_wrapper.gravity-theme .gfield_radio label {
    font-size: 1.25rem !important;
}

/* Input  ---------------------------------------------------- */

.gform_wrapper.gravity-theme input[type=color], 
.gform_wrapper.gravity-theme input[type=date], 
.gform_wrapper.gravity-theme input[type=datetime-local], 
.gform_wrapper.gravity-theme input[type=datetime], 
.gform_wrapper.gravity-theme input[type=email], 
.gform_wrapper.gravity-theme input[type=month], 
.gform_wrapper.gravity-theme input[type=number], 
.gform_wrapper.gravity-theme input[type=password], 
.gform_wrapper.gravity-theme input[type=search], 
.gform_wrapper.gravity-theme input[type=tel], 
.gform_wrapper.gravity-theme input[type=text], 
.gform_wrapper.gravity-theme input[type=time], 
.gform_wrapper.gravity-theme input[type=url], 
.gform_wrapper.gravity-theme input[type=week],  
.gform_wrapper.gravity-theme select, 
.gform_wrapper.gravity-theme textarea {
    background-color: var(--wp--preset--color--background) !important;
    border: var(--nnn--style--border) !important;
    border-radius: 3px !important;
    font-size: var(--nnn--style--font-size-12) !important;
    height: 40px;
    padding-block: 0.5em !important;
    padding-inline: 0.75rem !important;
}
.gform_wrapper.gravity-theme .gfield textarea {
    display: block;
    font-size: var(--nnn--style--font-size-12) !important;
    padding-block: 0.5em !important;
}
.gform_wrapper.gravity-theme .gfield select {
    color: var(--wp--preset--color--primary) !important;
    height: 40px;
}
.gform_wrapper.gravity-theme .gfield textarea.small {
    height: 120px !important;
}
.gform_wrapper.gravity-theme input[type=color]:focus-visible, 
.gform_wrapper.gravity-theme input[type=date]:focus-visible, 
.gform_wrapper.gravity-theme input[type=datetime-local]:focus-visible, 
.gform_wrapper.gravity-theme input[type=datetime]:focus-visible, 
.gform_wrapper.gravity-theme input[type=email]:focus-visible, 
.gform_wrapper.gravity-theme input[type=month]:focus-visible, 
.gform_wrapper.gravity-theme input[type=number]:focus-visible, 
.gform_wrapper.gravity-theme input[type=password]:focus-visible, 
.gform_wrapper.gravity-theme input[type=search]:focus-visible, 
.gform_wrapper.gravity-theme input[type=tel]:focus-visible, 
.gform_wrapper.gravity-theme input[type=text]:focus-visible, 
.gform_wrapper.gravity-theme input[type=time]:focus-visible, 
.gform_wrapper.gravity-theme input[type=url]:focus-visible, 
.gform_wrapper.gravity-theme input[type=week]:focus-visible, 
.gform_wrapper.gravity-theme select:focus-visible, 
.gform_wrapper.gravity-theme textarea:focus-visible {
    outline: none !important;
    border: 1px solid var(--wp--preset--color--gray-light) !important;
}

/* Checkbox + Radio  ----------------------------------------- */

.gform_wrapper.gravity-theme .gfield_checkbox,
.gform_wrapper.gravity-theme .ginput_container_consent {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    line-height: 1.75em;
}
.gform_wrapper.gravity-theme .ginput_container_consent {
    padding-block-start: 0.5rem;
}
.gform_wrapper.gravity-theme input[type="checkbox"], 
.gform_wrapper.gravity-theme input[type="radio"] {
    border: 2px solid var(--wp--preset--color--background);
    border-radius: 3px !important;
    background-color: var(--wp--preset--color--background);
    outline: 1px solid var(--wp--preset--color--gray-light);
    height: 1rem;
    width: 1rem;
    vertical-align: middle !important;
}
.gform_wrapper.gravity-theme input[type="checkbox"]:checked, 
.gform_wrapper.gravity-theme input[type="radio"]:checked {
    background-color: var(--wp--preset--color--primary);
}

/* Description  ---------------------------------------------- */

.gform_wrapper.gravity-theme .description, 
.gform_wrapper.gravity-theme .gfield_description, 
.gform_wrapper.gravity-theme .gsection_description, 
.gform_wrapper.gravity-theme .instruction {
    color: var(--wp--preset--color--secondary);
    font-size: 1rem !important;
    margin-block-start: -0.25em !important;
    padding-block-start: 0 !important;
    padding-block-end: 0.5rem !important;
}

/* Columns  -------------------------------------------------- */

@media (min-width: 641px) {
    .gform_wrapper.gravity-theme .ginput_complex:not(.ginput_container_address) fieldset:not([style*="display:none"]):not(.ginput_full), 
    .gform_wrapper.gravity-theme .ginput_complex:not(.ginput_container_address) span:not([style*="display:none"]):not(.ginput_full) {
        padding-inline-end: calc(var(--wp--style--block-gap) / 2);
    }
    .gform_wrapper.gravity-theme .ginput_complex:not(.ginput_container_address) fieldset:not([style*="display:none"]):not(.ginput_full)~span:not(.ginput_full), 
    .gform_wrapper.gravity-theme .ginput_complex:not(.ginput_container_address) span:not([style*="display:none"]):not(.ginput_full)~span:not(.ginput_full) {
        padding-inline-start: calc(var(--wp--style--block-gap) / 2);
        padding-inline-end: 0;
    }
}

/* Submit  --------------------------------------------------- */

.gform_wrapper.gravity-theme .gfield_repeater_buttons {
    padding-block-start: 0 !important;
}
.gform_wrapper.gravity-theme .gform_footer input {
    background: var(--wp--preset--color--secondary) !important;
    border: none !important;
    border-radius: none !important;
    box-shadow: none;
    clip-path: polygon( 2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px );
    color: var(--wp--preset--color--background) !important;
    cursor: pointer;
    display: inline-block;
    font-size: var(--nnn--style--font-size-12);
    font-weight: 500;
    line-height: 1em;
    margin: 0;
    outline: none;
    padding-block: 1rem;
    padding-inline: 1.25rem;
    position: relative;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase;
    text-wrap: nowrap;
    transition: background 300ms ease !important;
}
.gform_wrapper.gravity-theme .gform_footer input:hover {
    background: var(--wp--preset--color--accent) !important;
}

/* Errors  --------------------------------------------------- */

.gform_wrapper.gravity-theme .gfield_error .gfield_repeater_cell label, 
.gform_wrapper.gravity-theme .gfield_error label, 
.gform_wrapper.gravity-theme .gfield_error legend, 
.gform_wrapper.gravity-theme .gfield_validation_message, 
.gform_wrapper.gravity-theme .validation_message, 
.gform_wrapper.gravity-theme [aria-invalid=true]+label, 
.gform_wrapper.gravity-theme label+[aria-invalid=true] {
    color: #f22613 !important;
}
.gform_wrapper.gravity-theme .gform_validation_errors {
    background: transparent !important;
    border-radius: 3px;
    border: 1px solid #f22613 !important;
    box-shadow: none !important;
    font-size: var(--nnn--style--font-size-14) !important;
    margin-block-end: var(--wp--style--block-gap) !important;
    margin-block-start: 4px !important;
    padding-block: 8px !important;
    padding-inline-end: 8px !important;
    padding-inline-start: 48px !important;
    position: relative;
    width: 100%;
}
.gform_wrapper.gravity-theme .gform_validation_errors>h2 {
    font-size: 1rem !important;
}
.gform_wrapper.gravity-theme .gfield_validation_message, 
.gform_wrapper.gravity-theme .validation_message {
    background: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    border-radius: none !important;
    color: #f22613 !important;
    font-size: var(--nnn--style--font-size-14) !important;
    font-weight: 500;
    margin-block-start: 0 !important;
    padding: 0 !important;
}