﻿#courses {
    width: 100%;
    height: auto;
}

.courses_form {
    display: block;
    margin-top: 0em;
    font-family: Open Sans;
    font-weight: 400;
    font-style: normal;
    letter-spacing: .05rem;
    text-transform: none;
    line-height: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.field_list {
    width: 100%;
    height: auto;
}

.block_contents {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 1em 0;
}

.label_block {
    display: inline-block;
    margin: 0 0 0.5em 0;
}

.label_contents {
    align-items: center;
    column-gap: 1ex;
    display: flex;
    flex-wrap: wrap;
}

.label_required {
    font-family: Open Sans;
    font-weight: 400;
    font-style: normal;
    letter-spacing: .05rem;
    text-transform: none;
    line-height: 1.5rem;
    color: #bf1e2e;
}

.courses_form input[type="text"], input[type="tel"], output, textarea {
    background-color: #fafafa;
    border: 1px solid #a9a9a9;
    box-sizing: border-box;
    border-radius: 2px;
    color: #000;
    height: 46px;
    padding: 10px;
    position: relative;
    width: 100%;
}

#weightOutput {
    background-color: #fafafa;
    border: 1px solid #a9a9a9;
    box-sizing: border-box;
    color: #000;
    height: 46px;
    padding: 10px;
    position: relative;
    width: 100%;
    margin: 0 0 0.5em 0;
}

.courses_form input[type="range"] {
    width: 80vw;
    margin: 2em 0 1em 0;
}

/* Thumb */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: #bf1e2e;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s ease-in-out;
    margin-top: -9px; /* You might need to adjust this value for your specific case */
}

input[type=range]::-moz-range-thumb {
    background: #bf1e2e;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s ease-in-out;
}

/* Track */
input[type=range]::-moz-range-track {
    background: #a9a9a9;
    height: 2px;
}

input[type=range]::-webkit-slider-runnable-track {
    height: 2px;
    background: #a9a9a9;
    cursor: pointer;
}

input[type=range] {
    -webkit-appearance: none; /* This needs to be included for the custom styles to take effect in Safari */
    width: 100%; /* This needs to be set, it can be adjusted as per your needs */
}

.courses_form input[type="submit"] {
    background-color: #bf1e2e;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.block_contents textarea {
    min-height: 100px;
    resize: vertical;
    margin: 2em 0 0 0;
}

.form_button {
    display: flex;
    justify-content: center;
    margin: 2em 0 0 0;
}

.courses_button {
    display: inline-block;
    width: auto;
    height: auto;
    text-align: center;
    cursor: pointer;
    font-family: Roboto;
    font-weight: 400;
    font-style: normal;
    letter-spacing: .02em;
    font-size: .9rem;
    padding: .7em 1.336em;
    line-height: normal;
    border-style: solid;
    border-width: 0px;
    border-radius: .4rem;
    transition: .1s opacity linear;
    appearance: none;
    --webkit-backface-visibility: hidden;
    --webkit-font-smoothing: antialiased;
}

.block_checkbox {
    display: flex;
    flex-wrap: wrap;
    row-gap: 1em;
    margin: 2em 0;
}

.grid_checkbox {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 1em;
    align-items: center;
}

.grid_checkbox label {
    width: 100%;
}

.grid_checkbox input[type="checkbox"] {
    width: 1em;
    height: 1em;
}

@media (hover: hover) {
    .courses_button:hover {
         opacity: .8;
        }
}


@media screen and (max-width: 767px) and (orientation: portrait) {
    #courses {
        width: 100%;
        height: auto;
    }

    .courses_form {
        font-size: 0.8rem;
    }

    .field_list .label_contents {
        font-size: calc((.9 - 1) * calc(.012 * min(100vh, 900px)) + 1rem);
    }

    .courses_form input[type="range"] {
        width: 80vw;
    }
}