/**
 * CSS for forms
 *
 * Use these classes:
 * .form-container - container for the form with optional header
 * .form - the main form element
 * .line - a single line in the form usually containing a label and an input
 * .checkbox
 */

.form-container {
    width: 60vw;
    min-width: 300px;
    margin: 24px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.form-container > header {
    width: 100%;
    font-size: 1.5em;
    font-weight: bold;
    text-align: left;
    margin-bottom: 16px;
    border-bottom: solid 2px var(--black-darker);
}

.line {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.line * {
    margin: 4px 16px;
}

.line label {
    width: 30%;
    text-align: right;
}

.line input {
    width: 70%;
}

.checkbox {
    width: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin: 8px 16px;
}   

.line-submit {
    display: flex;
    justify-content: flex-end;
}

input.btn {
    cursor: pointer;
    background-color: var(--green);
    margin: 4px;
    padding: 4px;
    border-radius: 4px;
    border: none;
}
