.itsec-primary-form {
    &.itsec-primary-form--has-padding {
        padding: 1.25rem 1.5rem;
    }

    .components-base-control__label,
    .components-input-control__label,
    label,
    caption,
    legend {
        color: $solid-wp-text-color-dark;
    }
}

.itsec-primary-form__section {
    display: grid;
    grid-template-columns: [label fields] minmax(0, 1fr);
    grid-template-rows: auto;
    grid-gap: .5rem 0;

    @include break-small {
        grid-template-columns: [label] 10rem [fields] minmax(0, 1fr);
    }

    .itsec-primary-form__section-title {
        grid-column: label;
    }

    &:not(:first-child) {
        margin-top: 1.25rem;

        & + * {
            margin-top: 1.25rem;
        }
    }

    > *:not(.itsec-primary-form__section-title) {
        grid-column: fields;
    }
}
