/*--- Genral Styles ---*/

* {
    box-sizing: border-box;
}

body {
    font-family: "Merriweather", 'Times New Roman', Times, serif;
    color: rgb(47, 58, 83);    
}


input:focus,
textarea:focus,
select:focus {
    border-color: rgb(47, 58, 83); 
    background-color: rgb(203, 238, 203);
    transition: background-color 2s;
}

/*--- Header Styles ---*/
h1 {
    background: rgb(47, 58, 83);
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    margin: -8px;
    padding: 20px 0;
}

h2 {
    font-size: 1.3em;
    font-style: normal;
    font-weight: 900;
    text-align: center;
    padding-top: 30px;;
}

header p {
    margin: 0 5px;
    padding-bottom: 40px;
    text-align: center;
    border-bottom: solid 3px rgb(47, 58, 83);
}

header p,
footer p,
::placeholder,
select /*--- set the color bc I work in chrome, I believe mockup is in IOS ---*/
{
    color: rgb(159, 165, 165);  
}

header p,
footer pi
{
    text-align: center;
}

/*--- Form Styles ---*/
form, div.newsletter {
    padding-top: 20px;   
    border-top: solid 2px rgb(47, 58, 83);
}

form {
    margin: 3px 5px 0 5px;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    font-weight: 700;
    font-style: normal;
    font-size: 1.2em;
}

label, .newsletter p {
    font-weight: 300;
    font-style: normal;
    font-size: .8em;
    padding: 15px 0 10px 0;
}

input,
select
{
    background-color: rgb(237, 238, 235);
    border: none;
}


/*--- Fieldset Contact ---*/

.contact {
    padding-bottom: 30px;
}

.contact label {
    display: block;
}

.contact input,
.contact select 
{
    height: 40px;
    min-width: 100%;
}

.contact ::placeholder {
    text-align: right;  
    padding-right: 10px;
    font-family: Merriwether;
    font-weight: 300;
    font-style: normal;
    font-size: 0.8em;

}

#zip {
    min-width: 50%;
    max-width: 50%;
}

/*--- Fieldset Contact End ---*/
/*--- Fieldset Newsletter ---*/

.newsletter {
    background: rgb(241, 242, 238);
}

.newsletter legend {
    padding-top: 20px;
}

.newsletter input {
    margin-bottom: 10px;
}

textarea {
    min-width: 100%;
    height: 100px;
    background: white;
    border: none;
    margin: 20px auto 10px;
}

.radio2 {
    padding-bottom: 20px;
}
/*--- Fieldset Newsletter End ---*/

/*--- Rounded Edges ---*/
input, button, textarea {
    border-radius: 3px;
}

button {
    display: block;
    margin: 20px auto 10px;
    min-width: 100%;
    padding: 15px;
    background: darkturquoise;
    color: white;
    border: none;
    font-family: "Merriwether";
    font-weight: 700;
    font-style: normal;
    text-align: center;
    font-size: 1em;

}

/*--- Footer ---*/

footer {
    text-align: center;
    margin-top: 30px;
    font-family: Merriwether;
    font-weight: 300;
    font-style: italic;
    font-size: 0.8em;
}


/*--- Media Queries ---*/

@media (min-width: 768px) {
    header h2, 
    header p, 
    main {
        max-width: 550px;
        margin: auto;
    }

    form {
        margin: 3px 0 0 0;
    }

    .contact {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        row-gap: 15px;
    }

    .contact label {
        flex-basis: 20%;
    }

    .contact input,
    .contact select {
        flex-basis: 70%;
        min-width: 70%;
    }

    .zip {
        flex-basis: 70%;
        min-width: 70%;       
    }
    
    #zip {
        min-width: 30%;
        max-width: 30%;
    }

    .contact legend {
        padding-bottom: 20px;
    }
    
    h2 {
        padding-bottom: 10px;
    }
   
}