* {
    box-sizing: border-box;
}

html {
    width: 100%;
    font-size: 20px;
    font-family: 'Merriweather', serif;
    background-color: rgba(247, 247, 247, 0.3);
}

.container {
    width: 100%;
    margin: 0 auto;
}

header {
    background-color: #2d3945;
}

.main-header {
    width: 80%;
    padding: 0.8rem;
    margin: 0 auto;
    text-align: center;
    color:#ffffff;
    font-size: 10px;
    font-weight: 300;
}

.main-body {
    width: 90%;
    margin: 0 auto;
}

.main-body-intro {
    padding: 0.5rem;
    border-bottom: 4px solid #2d3945;
    text-align: center;
}

.main-body-intro h2 {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 900;
    color: #2d3945;
}

.main-body-intro p {
    margin: 0.5rem 0 1.3rem;
    font-size: 15px;
    line-height: 1.3;
    color: #b1b6ba;
}

form,
.fieldline {
    margin-top: 0.15rem;
    border-top: 2px solid #2d3945;
}

fieldset {
    padding: 0;
    border: none;
}

.main-form {
    width: 100%;
    margin: 0 ;
    margin-top: 0.5rem;
    border-radius: 5px;
    background-color: rgba(247, 247, 247, 0.8);
}

.fieldset {
    margin: 0 2rem;
}

.fieldset legend {
    margin: 1rem 0;
    font-size: 18px;
    font-weight: 900;
    color: #343f4b;
}

.input-fields label,
.checkpref label {
    margin-bottom: 1rem;
    color:#0d498f;
    font-size: 14px;
}

 label[for$="news"],
 label[for$="format"] {
    color: #535955;
}

[placeholder="Required"]::placeholder,
[placeholder^="Example"]::placeholder {
    font-size: 14px;
    text-align: right;
    font-style: italic;
    color: #7c7b74;
}

[placeholder^="Can"]::placeholder {
    font-size: 14px;
    font-style: italic;
    color: #7c7b74;
}

.input-fields input,
.input-fields select,
.input-fields textarea {
    width: 100%;
    border: none;
    border-radius: 4px;
    margin: .7rem 0;
    outline: none;
    background-color: #eff0f1;
    padding: 0.75rem 0.5rem;
    font-size: 14px;
    color: #535955;
    transition: 0.2s;
}

.input-fields input:focus,
.input-fields select:focus,
.input-fields textarea:focus,
[type="checkbox"]:focus,
[type="radio"]:focus {
    border: 2px solid #46698b;
    box-shadow: 0 0 4px #46698b;
}

.arrangezip {
    display: flex;
    flex-direction: column;
    margin-top: 0.25rem;
}

.arrangezip label {
    margin-bottom: 0;
}

input[id="zip"] {
    width: 50%;
    margin-bottom: 1.5rem;
}

.fieldset:first-child {
    margin-bottom: 1rem;
    border-bottom: 2px solid #2d3945;
}

.checkpref {
    margin-bottom: 1rem;
}


[type="checkbox"],
[type="radio"]{
    outline: none;
    margin: 0.5rem 0;
    transition: 0.2s;
}

.first-choice {
    margin-top: 0.6rem;
}


[type="checkbox"] + label,
[type="radio"] + label {
    padding: .35rem;
}

button[type="submit"] {
    padding: 0.8rem;
    width: 100%;
    border: none;
    border-radius: 5px;
    outline: none;
    margin: .8rem 0;
    color: #ffffff;
    background-color: #4ebbb5;
}

button[type="submit"]:active {
    background-color: #337baf;
}

.main-footer {
    color: #b0b4b9;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    font-style: italic;
}

@media (min-width:768px) {

    header {
        margin-bottom: 1.5rem;
    }

    .main-body-intro {
        padding-bottom: 0.8rem;
    }

    .main-form {
        padding-top: 0.5rem;
    }

    .main-body-intro h2 {
        font-size: 26px;
    }

    .main-body {
        max-width: 750px;
        width: 60%;
    }

    .input-fields {
        display: flex;
        justify-content: space-between;
    }

    .input-fields label {
        align-self: center;
        margin-bottom: 0;
    }

    .input-fields input,
    .input-fields select,
    .input-fields textarea {
        width:70%;
    }

    .arrangezip {
        flex-direction: row;
        align-items: center;
        margin-top: 0;
        width: 60%;
    }

    .arrangezip label {
        margin-top: -0.75rem;
    }

    .arrangezip input {
        width: 50%;
    }

    .options-part {
        margin-left: 0.5rem;
    }

    .othertopic {
        flex-direction: column;
        align-items: flex-start;
    }

    .othertopic label {
        align-self: flex-start;
    }

    .othertopic textarea {
        width: 100%;
    }
}
