.appmaths-form {
    --appmaths-primary-color: #38B;
    max-width: 40em;
    margin: auto;
    display: inline-block;
}
.appmaths-validation-error {
    color: red;
    margin-top: 0;
    font-size: 0.8em;
    line-height: 1em;
}
.appmaths-form-input-user-changed:invalid {
    border-color: red;
}
.appmaths-form-input-user-changed:valid {
}
.appmaths-form fieldset {
    margin: 0.5em 0 2em;
    border: 1px solid var(--appmaths-primary-color);
    border-radius: 1em;
    padding: 1em;
    display: inline-block;
}
.appmaths-form fieldset legend {
    font-weight: bold;
    font-size: 1.5em;
    color: var(--appmaths-primary-color);
}
.appmaths-form th {
    padding-left: 0.5em;
    padding-right: 0.5em;
    text-align: left;
}
.appmaths-form input {
    border-radius: 0.4em;
    font-size: 1.1em;
    padding: 0.2em 0.3em;
    width: calc(100% - 1em);
}
.appmaths-form input[type="checkbox"] {
    width: 1em;
    height: 1em;
}
.appmaths-form .appmaths-control-group {
    margin: 0.5em min(1em, 5%) 1em;
}
.appmaths-form button[type="submit"], .appmaths-submit-button,
.appmaths-form-container .appmaths-form-message {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.appmaths-form button[type="submit"], .appmaths-submit-button {
    margin-top: 1em;
    display: block;
    background-color: var(--appmaths-primary-color);
    color: beige;
    min-width: 40%;
    font-size: x-large;
    cursor: pointer;
}
.appmaths-form button[type="submit"]:disabled, .appmaths-submit-button:disabled {
    opacity: 0.6;
    filter: brightness(120%);
    cursor: default;
}
.appmaths-form label.required::after {
    font-weight: bold;
    content: " *";
    color: var(--appmaths-primary-color);
}
.appmaths-form.appmaths-form-submitted[data-submit-times-remaining="0"] .appmaths-form-content,
.appmaths-form.appmaths-form-submitted[data-submit-times-remaining="0"] .appmaths-submit-button {
    display: none;
}
.appmaths-form-submission-in-progress .appmaths-validation-submit-result {
    color: #555;
}
.appmaths-form.appmaths-form-submission-failed .appmaths-validation-submit-result {
    color: red;
}
.appmaths-form.appmaths-form-submitted .appmaths-validation-submit-result {
    display: block;
    text-align: center;
    font-size: 1.2em;
    margin-top: 1em;
    color: darkgreen;
}
.appmaths-form.appmaths-form-submitted .appmaths-form-submission-table-outer-container {
    display: flex;
    margin: 0;
}
.appmaths-form.appmaths-form-submitted .appmaths-form-submission-table-inner-container {
    display: inline-block;
    margin: 1em auto;
    padding: 0;
    border: 1px solid gray;
    border-radius: 0.5em;
}
.appmaths-form.appmaths-form-submitted .appmaths-form-submission-table {
    margin: 0;
    font-family: Arial, sans-serif;
    border-collapse: collapse;
}
.appmaths-form.appmaths-form-submitted .appmaths-form-submission-table > tbody > tr {
    border-bottom: 1px solid #ccc;
}
.appmaths-form.appmaths-form-submitted .appmaths-form-submission-table > tbody > tr:last-child {
    border-bottom: none;
}
.appmaths-form.appmaths-form-submitted .appmaths-form-submission-table > tbody > tr > * {
    padding: 0.5em;
    text-align: left;
}
.appmaths-form.appmaths-form-submitted .appmaths-form-submission-table > tbody > tr > th,
.appmaths-form.appmaths-form-submitted .appmaths-form-submission-table > tbody > tr > td {
    vertical-align: top;
}
.appmaths-form.appmaths-form-submitted .appmaths-form-submission-table > tbody > tr > th {
    font-weight: normal;
    font-style: italic;
}
.appmaths-form.appmaths-form-submitted .appmaths-form-submission-table > tbody > tr > td {
    font-weight: bold;
    font-style: normal;
}
