/* Reset */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
}
* {
    box-sizing: border-box;
}
.input {
    padding-bottom: 1em;
}
/* radio buttons */
fieldset>legend {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
}
fieldset>label {
    margin-left: 10px;
}
#panel-tabs {
    display: none;
}

/* Fonts */
body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, legend small {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-weight: bold;
}
.input, footer, .button {
    font-family: 'Lato', Helvetica, Arial, sans-serif;
}
p {
    font-size: 1.2em;
}

/* Utilities */

/* Containers */
.container-xs {
    max-width: 400px;
    margin: 0 auto;
}
.container-sm {
    max-width: 600px;
    margin: 0 auto;
}
.container-md {
    max-width: 800px;
    margin: 0 auto;
}
.container-lg {
    max-width: 1000px;
    margin: 0 auto;
}
.container-xl {
    max-width: 1200px;
    margin: 0 auto;
}

/* Panel Alterations */
.panel-rounded {
    border-radius: 8px;
}
.panel-top {
    border-bottom: none !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.panel-bottom {
    border-top: none !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Panel Basic */
.panel-basic {
    background: #eee;
}

/* Panel Solid */
.panel-solid {
    border: 1px solid white;
    color: white;
    background: rgb(26, 35, 126);
}

/* Panel Card */
.panel-card {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
                0 1px 2px rgba(0, 0, 0, 0.24);
}

/* Panel Transparent */
.panel-transparent {
    color: white;
    background: rgba(26, 35, 126, 0.8);
}

.panel-transparent-white {
    background: rgba(255,255,255,0.8);
}

/* Panel Image Borders (Needs border-image-source in ctp) */
/* border-image-slice is how much of the image to repeat, should be < 49% */
.panel-solar {
    border-style: solid;
    border-image-repeat: round;
    border-image-slice: 12.75%;
    border-width: 2em;
}
.panel-cobwebs {
    border-style: solid;
    border-image-repeat: round;
    border-image-slice: 25%;
    border-width: 1em;
}

/* Panel Image */
/* 2 divs: first is for image, second is for copy/nested panels */
.panel-image {
    position: relative;
}
.panel-image img {
    width: 100%;
}
.panel-image > div:last-child {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Copy */
.copy {
    padding: 2em;
}
.copy.copy-sm {
    padding: 1em;
}
.copy h1, .copy h2, .copy h3 {
    margin-bottom: 0.5em;
}
.copy > :first-child {
    margin-top: 0;
}
.copy > :last-child {
    margin-bottom: 0;
}
.copy.center h1, .copy.center h2, .copy.center h3 {
    text-align: center;
}

/* Force text color for nested panels */
.copy.copy-dark {
    color: #333 !important;
}
.copy.copy-light {
    color: white !important;
}
.copy.copy-light-shadow {
    color: white !important;
    text-shadow:1px 1px 1px black,1px -1px 1px black,-1px 1px 1px black,-1px -1px 1px black;
}
.copy.copy-dark-shadow {
    color: #333 !important;
    text-shadow:1px 1px 1px white,1px -1px 1px white,-1px 1px 1px white,-1px -1px 1px white;
}

/* Buttons */
.button {
    border: 2px solid black;
    background: black;
    color: white;
    padding: 0.5em 1em;
    font-size: 1em;
    transition: all 0.3s;
}
.button:hover {
    border-color: #222;
    background: #222;
}
.button-sm {
    font-size: 0.85em;
    border-width: 1px;
}
.button-lg {
    font-size: 1.3em;
    border-width: 4px;
}
.button-xl {
    border-width: 6px;
    font-size: 1.7em;
}
.button-ghost {
    background: transparent;
    color: black;
}
.button-ghost:hover {
    border-color: black;
    background: black;
    color: white;
}
.button-round {
    border-radius: 8px;
}

/* Button Primary */
.button-primary {
    border-color: #1e73be;
    background: #1e73be;
}
.button-primary:hover {
    border-color: #1961a1;
    background: #1961a1;
}
.button-primary.button-ghost {
    background: transparent;
    color: #1a237e;
}
.button-primary.button-ghost:hover {
    border-color: #1a237e;
    background: #1a237e;
    color: white;
}

/* Masthead */
.masthead {
    color: white;
    text-align: center;
    padding: 3em 0;
}

/* Iconbox */
.iconbox {
    height: 120px;
    width: 120px;
    background: #1a237e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2em auto;
}
.iconbox i {
    font-size: 75px;
    padding: 20px;
    color: white;
}
.iconbox.alternate {
    background: #b71c1c;
}

/* Image Radio Buttons */
.image-radio legend {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
}
.image-radio > div {
    display: inline-block;
    padding: 0.5em;
    width: 50%;
}
.image-radio label {
    margin: 0;
    text-align: center;
}
.image-radio label::after {
    padding-top: 1em;
}
.image-radio img {
    margin-bottom: 0.5em;
    width: 100%;
    border: 5px solid white;
    border-radius: 5px;
    box-shadow: 0px 0px 12px 2px rgba(0,0,0,0.5);
    opacity: 0.5;
    background-color: #b4e8ff;
}
.image-radio img:hover {
    opacity: 1;
    cursor: pointer;
}
.image-radio input {
    opacity: 0;
    position: absolute;
}
/* selected */
.image-radio input:checked + label::after {
    color: #b71c1c;
}
.image-radio input:checked + label > img {
    border-color: #b71c1c;
    opacity: 1;
}
@supports (grid-area: auto) {
    @media screen and (min-width: 800px) {
        /* undo gridless */
        .image-radio > div {
            display: block;
            width: 100%;
            padding: 0;
            padding-bottom: 1em;
        }
        /* grid */
        .image-radio {
            display: grid;
            grid-gap: 0 1em;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        }
        .image-radio legend {
            grid-column: 1 / -1;
        }
    }
}

/* Sections */

/* Header */
header {
    background: white;
    padding: 1em;
}
.header-logo img {
    max-width: 150px;
    margin-bottom: 0.5em;
}
header h2 {
    font-weight: bold;
    color: #1e73be
}
header {
    text-align: center;
}
header a,
header a:focus,
header a:hover {
    text-decoration: none;
}
header img {
    width: 100%;
}
.header-inner > div {
    margin-bottom: 1em;
}
.header-inner > div:last-child {
    margin-bottom: 0;
}
@media screen and (min-width: 800px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header-inner > div {
        margin-bottom: 0;
    }
    .header-logo img {
        max-width: 250px;
        margin-bottom: 0;
    }
}

/* Footer */
footer {
    background: white;
    color: #666666;
    padding: 1em 0.5em;
}

/* Main */
main {
    padding: 3rem;
}

/* Layout */
html, body {
    height: 100%;
}
.welcome.layout, .thankyou.layout {
    padding: 3rem;
    background: whitesmoke;
}

@supports (display: flex) {
    .layout {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    main {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .form-panel .copy {
        padding-bottom: 0;
    }
}
/* gridless */
main > div > div {
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 1em;
}
main > div > div:last-child {
    margin-bottom: 0;
}

/* hero */
.hero {
    padding: 3em 0;
    background: #1e73be;
    text-align: center;
    color: white;
}
.hero hr {
    width: 10%;
}
.hero-copy {
    color: #1e73be;
}

/* phone link */
main h2 a {
    color: white;
}
main h2 a:hover {
    color: white;
}

/* Page Specific */

/* Welcome Page */
.welcome .copy-panel .copy {
    padding: 1.5em;
}
.welcome .copy-panel ul {
    padding-left: 1em;
    font-size: 1.1em;
}
.welcome .copy-panel li {
    padding-bottom: 0.5em;
}
.welcome .copy-panel h1 {
    text-transform: uppercase;
}
@media (max-width: 799px) {
    .welcome .grid-copy-top h1 {
        font-size: 1.7em;
    }
}

.welcome main > div {
    max-width: 600px;
    margin: 0 auto;
}
@supports (grid-area: auto) {
   .welcome main > div {
        max-width: none;
    }
    .welcome form {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
    }
    .welcome .grid-phone {
        padding-top: 0;
    }
    .welcome .grid-blank {
        height: 50px;
    }
    .welcome .grid-button {
        padding-top: 0;
    }

    .welcome .grid-copy-top {
        grid-column: 3 / 11;
    }
    .welcome .grid-phone {
        grid-column: 3 / 11;
    }
    .welcome .grid-blank {
        grid-column: 1 / 13;
    }
    .welcome .grid-form {
        grid-column: 3 / 11;
    }
    .welcome .grid-button {
        grid-column: 3 / 11;
    }
    .welcome .grid-copy-bottom {
        grid-column: 3 / 11;
        grid-row: 4;
    }

    @media (min-width: 1350px) {
        .welcome .grid-copy-top {
            grid-column: 1 / 8;
        }
        .welcome .grid-phone {
            grid-column: 1 / 8;
        }
        .welcome .grid-blank {
            grid-column: 1 / 13;
        }
        .welcome .grid-form {
            grid-column: 2 / 7;
        }
        .welcome .grid-button {
            grid-column: 2 / 7;
        }
        .welcome .grid-copy-bottom {
            grid-column: 2 / 7;
            grid-row: 4;
        }
    }

    @media (max-width: 799px) {
        .welcome .grid-copy-top {
            grid-column: 1 / 13;
        }
        .welcome .grid-phone {
            display: none;
        }
        .welcome .grid-blank {
            grid-column: 1 / 13;
            grid-row: 3;
            height: 25px;
        }
        .welcome .grid-form {
            grid-column: 1 / 13;
            background: rgba(26, 35, 126, 0.8);
            color: white;
        }
        .welcome .grid-button {
            grid-column: 1 / 13;
            padding-top: 2em;
            padding-bottom: 0;
        }
        .welcome .grid-copy-bottom {
            grid-column: 1 / 13;
            grid-row: 5;
        }
    }
}

/* Content Page */
@media (max-width: 799px) {
    .content .copy-panel h1 {
        font-size: 1.7em;
    }
    .content .copy-panel h2,
    .content .copy-panel br {
        display: none;
    }
}
@supports (grid-area: auto) {
    @media screen and (min-width: 800px) {
        /* undo gridless */
        .content main > div > div {
            max-width: none;
            margin: 0;
        }
        /* grid */
        .content main > div {
            display: grid;
            grid-gap: 2em;
            grid-template-columns: 1fr 2fr 2fr 1fr;
        }
        .content .copy-panel {
            grid-column: span 4;
        }
        .content .form-panel {
            grid-column: 2 / span 2;
        }
    }
    @media screen and (min-width: 1000px) {
        .content form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-gap: 0 1em;
        }
        .content .grid-double {
            grid-column: span 2;
        }
    }
}

/* Thankyou Page */
.thankyou main {
    display: flex;
}
.thankyou .copy-panel {
    max-width: none;
}
@media (max-width: 799px) {
    .thankyou .copy-panel h1 {
        font-size: 1.7em;
    }
    .thankyou .copy-panel h3 {
        font-size: 1.3em;
    }
}
