/* Wraps the progress bar and the card */
.form-container {
    height: 100%;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Wraps Form Data */
.form-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px 40px 36px 40px;
    border: 1px solid #DADCE0;
    border-radius: 5px;
    flex: 1;
}

/* "Create your Pick Ticket" */
.form-card-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3333;
    color: #202124;
    padding-bottom: 24px;
}

/* A step represents one "page" of a form. Converting accordions to pages. */
.form-step {
    display: none;
    transition: all 0.3s ease-in-out;
    flex: 1;
}

/* This is the sub-label to describe a "page" */
.form-step-label {
    font-size: 18px;
    color: #c1c1c1;
    padding-bottom: 24px;
}

/* The active step/"page" */
.form-step-active {
    display: flex;
    flex-direction: column;
}

/* Container used to maintain interactive labels */
.form-input-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    position: relative;
}

.form-input-container>label {
    position: absolute;
    left: 8px;
    bottom: 5px;
    background-color: white;
    color: #5f6368;
    padding: 0px 6px;
    margin-bottom: 0px;
    transition: all .15s cubic-bezier(.4, 0, .2, 1);
}

.form-input-container>select,
input {
    border: 1px solid #c1c1c1;
    border-radius: 4px;
    margin-bottom: 0px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset;
}

select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

label {
    font-size: 16px;
    margin-bottom: 4px;
}

input,
select {
    appearance: auto;
    -moz-appearance: none;
    -webkit-appearance: none;
}

select {
    padding: 4px 22px 4px 10px;
    font-size: 16px;
    border-radius: 4px;
    height: 36px;
    border-color: #c1c1c1;
    appearance: none;
    padding-right: 12px;
    background-image: url(../chevron-down-outline.svg);
    background-repeat: no-repeat;
    background-position: right;
    background-origin: content-box;
    background-size: 20px;
    margin-bottom: 24px;
    background-color: #fff;
    min-width: 100%;
}

option {
    width: 100%;
    padding: 6px 8px;
}

select:focus {
    outline: none;
}

input:focus,
input:active {
    outline: none;
}

input::-webkit-date-and-time-value {
    text-align: left;
}

input[type='date']::-webkit-calendar-picker-indicator {
    background-image: url(../calendar-outline.svg);
    background-repeat: no-repeat;
    background-position: right;
    background-origin: content-box;
    background-size: 20px;
    width: 20px;
}

input[type='time']::-webkit-calendar-picker-indicator {
    background-image: url(../time-outline.svg);
    background-repeat: no-repeat;
    background-position: right;
    background-origin: content-box;
    background-size: 20px;
    width: 20px;
}

input {
    padding: 4px 12px 4px 10px;
    font-size: 16px;
    border-radius: 4px;
    height: 36px;
    -webkit-min-logical-width: 100%;
    min-width: 100%;
    background-color: #fff;
}

.form-checkbox {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 40px;
}

input[type='checkbox'] {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    padding: 0px;
    accent-color: var(--sunbelt-green);
    -webkit-min-logical-width: 0;
    min-width: 0;
    appearance: auto;
    -webkit-appearance: auto !important;
}

/* Everything related to textareas */
.form-textarea-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    position: relative;
    flex: 1;
}

.form-textarea-title {
    padding-bottom: 6px;
    font-size: 18px;
}

textarea {
    border: 1px solid #c1c1c1;
    padding: 6px 8px;
    border-radius: 4px;
    min-height: 120px;
    flex: 1;
}

textarea:focus {
    outline: none;
    border: 1px solid var(--sunbelt-green);
}

::-webkit-resizer {
    display: none;
}

/* Form lines are used for displaying two input containers side-by-side instead of stacked */
.form-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
}

.form-line-element {
    width: 48%;
}

/* Disabled Inputs are part of a process which involves awaiting another inputs value change */
.form-input-container.disabled>label {
    background-color: #FAFAFA !important;
    color: #c1c1c1 !important;
}

.form-input-container.disabled>input {
    cursor: not-allowed;
}

@media only screen and (max-width: 768px) {

    .form-card {
        margin: 0px !important;
        padding: 0px !important;
        border: none !important;
    }

    .form-line {
        flex-direction: column !important;
    }

    .form-line-element {
        width: 100% !important;
    }

    input[type='date']::-webkit-calendar-picker-indicator,
    input[type='time']::-webkit-calendar-picker-indicator {
        background-image: none !important;
        background-repeat: no-repeat;
        background-position: right;
        background-origin: content-box;
        background-size: 0px !important;
        width: 0px !important;
    }
}

@media only screen and (max-width: 768px) and (prefers-color-scheme: dark) {
    .form-card {
        background-color: #121212 !important;
        border-color: #121212 !important;
    }

    .form-input-container>select,
    input {
        background-color: #2F2F2F;
        border-color: #2F2F2F;
    }

    .form-input-container>label {
        background-color: #2F2F2F;
    }

    .form-input-container.disabled>label {
        background-color: #2F2F2F !important;
    }

    textarea {
        background-color: #2F2F2F !important;
        border-color: #2F2F2F !important;
    }
}

@media (prefers-color-scheme: dark) {

    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 30px #1A1A1A inset;
    }

    select {
        background-image: url(../chevron-down-darkmode.svg);
    }

    .form-card {
        background-color: #282828;
        border-color: #282828;
    }

    .form-card-title {
        color: #e6e6e6 !important;
    }

    .form-step-label {
        color: #8B8B8B !important;
    }

    .form-input-container>select,
    input {
        background-color: #1E1E1E;
        border-color: #1A1A1A;
        color: #e6e6e6 !important;
    }

    .form-input-container>label {
        background-color: #1A1A1A;
        color: #e6e6e6;
    }

    .form-input-container.disabled>label {
        background-color: #1A1A1A !important;
        color: #e6e6e6 !important;
    }

    .form-textarea-title {
        color: #e6e6e6 !important;
    }

    textarea {
        background-color: #1A1A1A;
        border-color: #1A1A1A;
        color: #e6e6e6;
    }

    option {
        color: #e6e6e6 !important;
    }
}