/* ****************************************************************************

This stylesheet is ONLY for styles that are used across ALL Congrats pages.

Please do not add page-specific styles here. See /congrats/readme.md for more info.

**************************************************************************** */


/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* CSS RESET*/

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
}

main {
    display: block;
}

hr {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

a {
    background-color: transparent;
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}

b,
strong {
    font-weight: bolder;
}

code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

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

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

details {
    display: block;
}

summary {
    display: list-item;
}

template {
    display: none;
}

[hidden] {
    display: none;
}

/* DEFAULT CONGRATS HEADER/FRAME STYLES */

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    min-height: 100vh;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: #273237;
}

.congrats__frame {
    margin: 0 auto;
    width: 100%;
    max-width: 700px;
    text-align: center;
    padding: 0 20px;
}

.congrats__title,
.congrats__subtitle {
    margin: 0;
}

.congrats__title {
    font-family: 'DM Serif Text', serif;
    font-size: 28px;
    margin-top: 1em;
}

.congrats__subtitle {
    color: #727171;
    margin-top: 6px;
    margin-bottom: 1em;
}

.congrats__span--alt {
    font-family: 'DM Serif Text', serif;
    color: #273237;
    text-decoration: underline;
    white-space: nowrap;
}

.congrats__main {
    border: 2px solid #F2F2F2;
    border-radius: 10px;
    padding: 40px 10px 30px 10px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.section__logo img {
    width: 100%;
    max-width: 192px;
}

.button__cta {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    border: none;
    border-radius: 35px;
    padding: 0.555em 1.666em;
    min-width: 200px;
    background-color: #0877B8;
    color: #fff;
    -webkit-box-shadow: 0px 3px 5px #66666633;
    box-shadow: 0px 3px 5px #66666633;
}

.button__cta:focus,
.button__cta:hover {
    background: #333;
    color: #fff;
    -webkit-transition: 0.25s background;
    -o-transition: 0.25s background;
    transition: 0.25s background;
}

.button__nothanks {
    color: #AFAFAF;
    font-size: 21px;
}

.section-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 24px;
    max-width: 400px;
}

.section__cta {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    width: 100%;
    margin-bottom: 30px;
    white-space: nowrap;
}

.section__cta a {
    text-decoration: none;
}

.section__social {
    width: 100%;
    min-width: 120px;
    margin: 5px 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.section__social--reviews {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
}

.section__social--stars {
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
}

@media (min-width: 350px) {
    .section__social {
        max-width: 50%;
        width: auto;
    }

    .section__social--reviews {
        padding: 0 20px 0 0;
    }

    .section__social--stars {
        border-left: 1px solid #AFAFAF;
        padding: 0 0 0 20px;
    }
}


.reviews__img {
    display: none;
}

.social__text-container p {
    margin: 0;
}

.social__text-container {
    font-size: 14px;
    color: #727171;
    white-space: nowrap;
}

.social__text--small {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}


@supports (--css: variables) {

    .stars--rating {
        display: block;
        text-align: left;
    }

    .stars {
        --star-size: 21px;
        --star-color: #fff;
        --star-background: #08B88F;
        --percent: calc(var(--rating) / 5 * 100%);

        display: inline-block;
        font-size: var(--star-size);
        font-family: Times;
        line-height: 1;

    }

    .stars::before {
        content: '★★★★★';
        letter-spacing: 0px;
        background: -webkit-gradient(linear, left top, right top, from(var(--star-background)), to(var(--star-color)));
        background: -o-linear-gradient(left, var(--star-background) var(--percent), var(--star-color) var(--percent));
        background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.congrats__ul {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    max-width: 285px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 30px auto;
    padding: 0;
    text-align: left;
}

.congrats__ul li {
    margin-bottom: 0.555em;
    padding-left: 1.25em;
    list-style: none;
    background-image: url("../../images/congrats-check.svg");
    background-repeat: no-repeat;
    background-position: left 0.333em;
    background-size: 0.7em;

}

.congrats__disclosures {
    color: #747680;
    margin-top: 2em;
    text-align: left;
}

/* Tablet */
@media (min-width: 768px) {
    .congrats__title {
        font-size: 2.333em;
    }

    .congrats__subtitle {
        font-size: 1.333em;
    }

    .congrats__main {
        border: none;
    }

    .section__logo img {
        max-width: 400px;
    }

    .section-container {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        margin-top: 60px;
        max-width: none;
    }

    .section__cta {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
        margin: 0 40px;
    }

    .button__cta {
        cursor: pointer;
        font-size: 1.555em;
        padding: 0.4em 1.666em;
    }

    .section__nothanks {
        margin-top: 25px;
    }

    .button__nothanks {
        color: #AFAFAF;
        font-size: 18px;
    }

    .section__social {
        padding: 0 10px;
    }

    .section__social--reviews {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
    }

    .section__social--stars {
        -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
        order: 3;
        border-left: none;
    }

    .stars--rating {
        text-align: center;
    }

    .reviews__img {
        display: block;
        width: 25px;
        margin-bottom: 7px;
    }

    .congrats__ul {
        margin-top: 45px;
        max-width: 375px;
    }

    .congrats__ul li {
        font-size: 24px;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .congrats__title {
        font-size: 2.666em;
    }

    .congrats__subtitle {
        font-size: 1.555em;
    }

    .button__cta {
        border-radius: 40px;
        font-size: 1.777em;
    }

    .section__logo img {
        max-width: 500px;
    }

    .congrats__ul {
        margin-top: 35px;
        max-width: 440px;
    }

    .congrats__ul li {
        font-size: 28px;
    }
}

