/* CSS Reset */
html {
    box-sizing: border-box;
    font-size: 16px;    
}

*,
*:before,
*:after {
    box-sizing: inherit;
}
body,
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    padding: 0;
    font-weight: normal;
    font-family: Verdana, system-ui, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

/* Global */

.page_padding {
    padding-left: 5vw;
    padding-right: 5vw;
}

/* Header */

header {
    filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04))
        drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

header img {
    width: 100%;
    max-width: 200px;
}

/* Main */

main {
    background-color: #f0f0f0;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Form Section */

section#form {
    max-width: 1300px;
    padding: 5rem 10rem;
}
section#form .content {
    color: #0a187b;
    font-size: clamp(1rem, 2vw, 1.25rem);
}
section#form .content h1 {
    color: #c52334;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
}

/* Confirmation Section */
section#confirmation_section h2, section#unsub_section h2 {
    color: #0a187b;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}
section#confirmation_section p.confirmation_title, section#unsub_section p.unsub_title {
    font-size: clamp(1rem, 2vw, 1.25rem);
}
section#confirmation_section div.further_adjustments {
    font-size: clamp(1rem, 2vw, 1.25rem);
}
section#confirmation_section div#preference_selection ul li {
    font-size: 1.25rem;
    padding-bottom: 0.25rem;
}

/* Unsub Confirmation */


/* Footer */

footer {
    background-color: #313d4e;
    padding-bottom: 50px;
}
.sociallinks ul li.contact a:after {
    background: url(https://pages.connect.massgeneral.org/rs/329-ZEM-341/images/mail.svg)
        no-repeat;
}
.sociallinks ul li.youtube a:after {
    background: url(https://pages.connect.massgeneral.org/rs/329-ZEM-341/images/youtube.svg)
        no-repeat;
}
.sociallinks ul li.facebook a:after {
    background: url(https://pages.connect.massgeneral.org/rs/329-ZEM-341/images/facebook.svg)
        no-repeat;
}
.sociallinks ul li.twitter a:after {
    background: url(https://pages.connect.massgeneral.org/rs/329-ZEM-341/images/x-logo.png)
        no-repeat;
    background-size: contain;
}
.sociallinks ul li.instagram a:after {
    background: url(https://pages.connect.massgeneral.org/rs/329-ZEM-341/images/instagram.svg)
        no-repeat;
}
.sociallinks ul li a:after {
    content: "";
    width: 31px;
    height: 23px;
    margin-left: 10px;
    margin-top: 7px;
    float: left;
    font-size: 25px;
    position: absolute;
}
.sociallinks ul li {
    display: inline-block;
    margin: 0 35px;
    padding-bottom: 0;
}
.sociallinks ul li a {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    display: block;
    float: left;
    line-height: 40px;
    position: relative;
    color: #fff;
    text-decoration: none;
}
.sociallinks ul {
    height: 40px;
    border: 1px solid #fff;
    border-left: 0;
    border-right: 0;
    text-align: center;
}
.sociallinks {
    margin-bottom: 25px;
}
.toplinks ul li {
    display: inline-block;
    margin: 0 35px;
    padding-bottom: 0;
}
.toplinks ul li a {
    font-size: 18px;
    font-weight: 200;
    display: block;
    float: left;
    position: relative;
    color: #fff;
    text-decoration: none;
}
.toplinks ul li a:hover,
.sociallinks ul li a:hover {
    color: #7ea3cc;
}
.toplinks ul li span.boldlink {
    font-weight: 600;
    color: #7ea3cc;
    font-size: 18px;
    display: block;
    float: left;
    position: relative;
}
.toplinks {
    padding: 50px 0;
}

/* Media Queries */

@media only screen and (max-width: 1024px) {
    section#form {
        padding: 4rem 8vw;
    }
}

@media only screen and (max-width: 768px) {
    header img {
        max-width: 180px;
    }
    main {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    section#confirmation_section div#preference_selection ul {
        padding-left: 2rem;
    }
    .sociallinks ul {
      border: none;
      height: auto;
    }
    .toplinks {
      padding-bottom: 10px;
    }
    .toplinks ul li.boldlink_custom {
      width: 100%;
      display: flex;
      justify-content: center;
      padding-bottom: 1rem;
    }
    .toplinks ul li {
      margin: 0;
      padding-right: 6px;
    }
    .toplinks_custom {
      text-align: center;
    }
    .copyright {
      text-align: center;
    }
}
