/**
 * LeanCMS v2 — Gravity Forms structural styles
 *
 * Gravity-Forms-specific LAYOUT only. The form-control *look* (inputs,
 * textarea, select, checkbox/radio, labels, required marker, validation
 * messages, the error summary box) is owned by the shared substrate
 * `lcms-forms.css` (always loaded), which scopes those rules to
 * `.gform_wrapper` as well as `.lcms-form`. This sheet keeps only the bits
 * tied to Gravity Forms' own DOM structure.
 *
 * Loaded conditionally by Style_Manager — only when the active theme does not
 * provide its own LCMS base stylesheet (base.css). Themes can disable via:
 *
 *   add_filter( 'lcms_load_gform_styles', '__return_false' );
 *
 * Submit-button branding lives in lcms-core.css / the theme button system.
 *
 * @package lcms
 */

/* ── Form wrapper ──────────────────────────────────────── */
.gform_wrapper {
    text-align: left;
}

/* ── Field layout (GF DOM structure) ───────────────────── */
.gform_wrapper .gform_fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gform_wrapper .gfield {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Error-summary inner row (icon + text) ─────────────── */
.gform_wrapper .gform_submission_error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: 500;
}

.gform_wrapper .gform-icon--close {
    width: 1.25rem;
    height: 1.25rem;
}
