@import "shadows";
@import "base";
@import "colors";
@import "links";
@import "sepia";

.form-button {
    color: white;
    outline: none;
    border: none;
    margin: 1rem 0;
    padding: 0.5rem;
    font-weight: 400;
    font-family: $font-family;
    font-size: 1.5rem;
    // background: #eee;

    transition: all ease 40ms;

    border-radius: 0.25rem;
    background: $districtr-red;
}

.form-button:hover {
    cursor: pointer;
    background: $districtr-red-dark;
}

.form-button:active {
    background: $districtr-red-dark;
}

.form-button:focus {
    box-shadow: $focus-shadow;
}

.form-button:disabled {
    background: $sepia-accent-light;
    color: #504746;
}

.form-page {
    background: $mggg-very-dark-blue;
}

.form-container {
    background: #ffffff;
    border-radius: 1rem;
    margin: 1rem auto;
    min-width: 250px;
    width: 60%;
}

.form-content {
    // border-bottom: 1px solid #ddd;
    padding: 1rem 1.5rem;
    border-bottom: #ddd 1px solid;
}

.form-content:last-child {
    border: none;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    border-bottom-style: none;
}

.form {
    background: $districtr-light-grey;
    color: #444;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    display: flex;
    flex-direction: column;
}

.form__item {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.form__double-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0 1rem 0 0;
}

.form__double-item:last-child {
    margin: 0;
}

.form__double-item-container {
    margin: 0;
    align-items: center;
    display: flex;
    flex-direction: row;
}

.text-input {
    outline: none;
    border: 1px solid $outline-grey;
    margin: 0 0 1rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 1.5rem;
    color: #111;
    font-family: $font-family;
}

.text-area {
    height: 10rem;
}

.form__title {
    margin-bottom: 0;
    line-height: 1.25;
}

.form-takeaway {
    font-weight: 400;
    margin: 0;
}

.form label {
    font-size: 1rem;
}

.form__section-heading {
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.popup-message {
    width: 100%;
    top: 1rem;
    display: block;
    padding: 1rem;
    font-size: 1.25rem;
    margin: 0;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    transition: height ease 100ms;
}

.alert {
    background: $districtr-red-dark;
    color: white;
}

.hidden {
    display: none !important;
}

@media (max-width: 800px) {
    .form-container {
        width: 90%;
    }
}
