/* 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;
}
body > div.clearfix,
body > div.col-md-4.col-md-offset-4 {
    display: none;
}
#panel-tabs {
    display: none;
}

/* Variables */
:root {
    /* colors */
    --color-primary: #0cc5f3;
    --color-primary-dark: hsl(192, 91%, 40%);
    --color-primary-light: hsl(192, 91%, 60%);

    --color-secondary: #f7941e;
    --color-secondary-dark: hsl(33, 93%, 44%);
    --color-secondary-light: hsl(33, 93%, 64%);

    /* header */
    --header-top: none;
    --header-bottom: none;
    --header-bg: transparent;

    /* footer */
    --footer-top: 15px solid var(--color-primary);
    --footer-bottom: none;
    --footer-bg: white;
    --footer-text: #333;

    /* buttons */
    --button-primary: var(--color-primary);
    --button-primary-hover: var(--color-primary-light);

    --button-secondary: var(--color-secondary);
    --button-secondary-hover: var(--color-secondary-light);

    /* panel-transparent */
    --panel-transparent-color: var(--color-primary);
    --panel-transparent-opacity: 0.5;

    /* panel-transparent alt */
    --panel-transparent-alt-color: var(--color-secondary);
    --panel-transparent-alt-opacity: 0.5;

    /* 4 column section */
    --section-4col-bg: var(--color-primary);
    --section-4col-text: #333;

    /* 3 icon section */
    --section-3icons-bg: white;
    --section-3icons-text: #333;
    --section-3icons-mast-text: #333;
    --section-3icons-mobile-border: 5px solid var(--color-primary-dark);
    --section-3icons-icon-border: 5px solid var(--color-primary-dark);
    --section-3icons-icon-bg: var(--color-primary);
    --section-3icons-icon-text: white;
}

/* Utilities */

/* Containers */
.container-xs {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
.container-sm {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.container-md {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.container-lg {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
.container-xl {
    width: 100%;
    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-solid.alt {
    border: 1px solid 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 {
    position: relative;
    z-index: 1;
    border: 1px solid white;
    color: white;
}
.panel-transparent > div {
    position: relative;
    z-index: 0;
}
.panel-transparent::before {
    position: absolute;
    z-index: -1;
    content: " ";
    top: 0; bottom: 0;
    left: 0; right: 0;

    background: var(--panel-transparent-color);
    opacity: var(--panel-transparent-opacity);
}
.panel-transparent.alt::before {
    background: var(--panel-transparent-alt-color);
    opacity: var(--panel-transparent-alt-opacity);
}

/* Panel Outline */
.panel-outline {
    border: 1px solid rgb(26, 35, 126);
    background: rgba(26, 35, 126, 0.2);
}

/* 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;
}

/* Panel Slant */
.panel-slant-left,
.panel-slant-right {
    display: none;
}
@supports(display: flex) {
    .panel-slant {
        display: flex;
    }
    .panel-slant-body {
        flex: 1;
    }
    .panel-slant-body .copy {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .panel-slant-left,
    .panel-slant-right {
        width: 2em;
        display: flex;
        flex-direction: column;
    }
    .panel-slant-left-bottom,
    .panel-slant-right-top {
        flex: 1;
    }
    .panel-slant-left-top,
    .panel-slant-right-bottom {
        height: 2em;
    }
    .panel-slant-left-top:before,
    .panel-slant-right-bottom:before {
        content: '';
        position: absolute;
    }
}
/* Panel Slant Color - Default */
.panel-slant-body {
    background: rgba(255,255,255,0.8);
}
.panel-slant-left-bottom,
.panel-slant-right-top {
    background: rgba(255,255,255,0.8);
}
.panel-slant-left-top:before {
    border-bottom: 2em solid rgba(255,255,255,0.8);
    border-left: 2em solid transparent;
}
.panel-slant-right-bottom:before {
    border-top: 2em solid rgba(255,255,255,0.8);
    border-right: 2em solid transparent;
}
/* Panel Slant Color - Primary */
.panel-slant-primary .panel-slant-body {
    color: white !important;
}
.panel-slant-primary .panel-slant-body {
    background: rgba(156, 39, 176, 0.8);
}
.panel-slant-primary .panel-slant-left-bottom,
.panel-slant-primary .panel-slant-right-top {
    background: rgba(156, 39, 176, 0.8);
}
.panel-slant-primary .panel-slant-left-top:before {
    border-bottom: 2em solid rgba(156, 39, 176, 0.8);
}
.panel-slant-primary .panel-slant-right-bottom:before {
    border-top: 2em solid rgba(156, 39, 176, 0.8);
}
/* Panel Slant Size - Large */
.panel-slant-lg  .panel-slant-left,
.panel-slant-lg  .panel-slant-right {
    width: 4em;
}
.panel-slant-lg  .panel-slant-left-top,
.panel-slant-lg  .panel-slant-right-bottom {
    height: 4em;
}
.panel-slant-lg .panel-slant-left-top:before {
    border-bottom-width: 4em;
    border-left: 4em solid transparent;
}
.panel-slant-lg .panel-slant-right-bottom:before {
    border-top-width: 4em;
    border-right: 4em solid transparent;
}
/* Panel Slant Size - Small */
.panel-slant-sm  .panel-slant-left,
.panel-slant-sm  .panel-slant-right {
    width: 1em;
}
.panel-slant-sm  .panel-slant-left-top,
.panel-slant-sm  .panel-slant-right-bottom {
    height: 1em;
}
.panel-slant-sm .panel-slant-left-top:before {
    border-bottom-width: 1em;
    border-left: 1em solid transparent;
}
.panel-slant-sm .panel-slant-right-bottom:before {
    border-top-width: 1em;
    border-right: 1em solid transparent;
}

/* 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;
    margin-top: 0.5em;
    margin-right: 0.25em;
    font-weight: bold;
}
.button:last-child {
    margin-right: 0;
}
.button:hover {
    border-color: #222;
    background: #222;
    box-shadow: 5px 5px 0 rgb(0 0 0 / 20%);
}
.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-big {
    border-width: 6px;
    font-size: 3em;
}
.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: var(--button-primary);
    background: var(--button-primary);
}
.button-primary:hover {
    border-color: var(--button-primary-hover);
    background: var(--button-primary-hover);
}
.button-primary.button-ghost {
    background: transparent;
    color: white;
	font-size: 40px;
}
.button-primary.button-ghost:hover {
    border-color: var(--button-primary);
    background: var(--button-primary);
    color: white;
}

/* Button Secondary */
.button-secondary {
    border-color: var(--button-secondary);
    background: var(--button-secondary);
}
.button-secondary:hover {
    border-color: var(--button-secondary-hover);
    background: var(--button-secondary-hover);
}
.button-secondary.button-ghost {
    background: transparent;
    color: var(--button-secondary);
}
.button-secondary.button-ghost:hover {
    border-color: var(--button-secondary);
    background: var(--button-secondary);
    color: white;
}

/* Masthead */
.masthead {
    color: white;
    text-align: center;
}

/* 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: 850px) {
        /* 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)); */
            grid-template-columns: 1fr 1fr;
        }
        .image-radio legend {
            grid-column: 1 / -1;
        }
    }
}

/* 4 column section */
.section-4col {
    background: var(--section-4col-bg);
    padding: 3em 0;
}
.section-4col > div {
    padding: 2em;
}
.section-4col > div:not(:last-child) {
    padding: 2em;
}
.section-4col h2 {
    color: var(--section-4col-text);
    padding-bottom: 0.5em;
}
.section-4col h3 {
    color: var(--section-4col-text);
    line-height: 1.5em;
}
@media screen and (min-width: 850px) {
    .section-4col {
        text-align: center;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    .section-4col > div:not(:last-child) {
        border-right: 2px solid var(--section-4col-text);
    }
}

/* 3 icon section */
.section-3icons {
    color: var(--section-3icons-text);
    background: var(--section-3icons-bg);
    padding: 1em;
    border-bottom: 15px solid var(--color-primary);
}
.section-3icons h1 {
    padding: 0.5em 0;
    font-weight: bold;
    color: var(--section-3icons-mast-text);
    font-size: 3em;
}
.section-3icons-icon {
    border: var(--section-3icons-mobile-border);
    max-width: 500px;
    margin: 0 auto 1em;
    padding: 1em;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.section-3icons-icon-inner {
    border-radius: 50%;
    border: var(--section-3icons-icon-border);
    background: var(--section-3icons-icon-bg);
    color: var(--section-3icons-icon-text);
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.section-3icons-icon > *:first-child {
    padding-bottom: 1em;
}
.section-3icons-icon > *:last-child {
    padding-top: 1em;
}
.section-3icons img {
    border-radius: 50%;
    border: var(--section-3icons-icon-border);
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 1em;
}
@media screen and (min-width: 850px) {
    .section-3icons-icon > *:first-child {
        padding: 1em 0 0.5em;
    }
    .section-3icons-icon > *:last-child {
        padding: 0;
    }
    .section-3icons-inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 5em;
    }
    .section-3icons-icon {
        border: none;
        max-width: none;
        margin: 0;
    }
    .section-3icons-icon-inner {
        order: -1;
    }
    .section-3icons-icon p {
        margin-top: 0;
    }
}

/* Sections */

/* Header */
header {
    border-top: var(--header-top);
    border-bottom: var(--header-bottom);
    background: var(--header-bg);
}
.header-inner {
    padding: 0 0 2em 0;
}
.header-logo img {
    width: 300px;
	margin-left: 40px;
	margin-top: 10px;
}
header {
    text-align: center;
}
header a,
header a:focus,
header a:hover {
    color: white;
    text-decoration: none;
}
header h2 > a {
    color: #333;
}
header h2 > a:focus,
header h2 > a:hover {
    color: #333;
    text-decoration: underline;
}
.header-inner > div {
    margin-bottom: 1em;
}
.header-inner > div:last-child {
    margin-bottom: 0;
}
.header-inner > div:not(:first-child) {
    padding: 0 1em;
}
@media screen and (min-width: 850px) {
    .header-inner {
        padding: 0 2em;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header-inner > div {
        margin-bottom: 0;
    }
    .header-inner > div:not(:first-child) {
        padding: 0;
    }
}
@media screen and (min-width: 1250px) {
    .header-inner {
        padding-left: 0;
    }
    header img {
        margin-left: -2em;
        margin-top: -2em;
    }
    .thankyou header img {
        margin-left: 2em;
        margin-top: 0;
    }
}

/* Footer */
footer {
    border-top: var(--footer-top);
    border-bottom: var(--footer-bottom);
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 1em;
}
@media screen and (min-width: 850px) {
    footer {
        padding: 1em 2em;
    }
}

/* Layout */
.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}

/* Common */
.text-shadow {
    text-shadow:3px 3px 5px black;
}
.big-box-shadow {
    box-shadow: 0 20px 40px 8px rgb(0 0 0 / 25%);
}
.grid-double {
    grid-column: span 2;
}

/* section info */
.section-info {
    position: relative;
}
.section-info-item {
    padding: 2em;
    min-height: 40vh;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    flex-direction: column;
    align-items: center;
}
.section-info-item-inner {
    margin-bottom: 1em;
    grid-column: 1 / -1;
    color: white;
}
.section-info-item:nth-child(even) .section-info-item-inner {
    margin-top: 3em;
}
.section-info-button {
    position: absolute;
    top: 0; bottom: 0;
    left: 0; right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.section-info-button button {
    margin-top: 0;
}
@media screen and (min-width: 1250px) {
    .section-info-item-inner {
        grid-column: 9 / 13;
        color: white;
    }
    .section-info-item:nth-child(even) .section-info-item-inner {
        grid-column: 1 / 5;
    }
    .section-info-item h3 {
        padding: 0 2em;
    }
}

/* panel-works */
.panel-works {
    background: white;
    padding: 0 2em 2em 2em;
}
.panel-works .masthead {
    padding: 1em;
    color: #333;
}
.panel-works h2 {
    padding-top: 0.5em !important;
    text-align: center;
}
.panel-works p {
    text-align: justify;
    font-size: 1.2em;
}
.panel-works ul {
    font-size: 1.3em;
    margin-bottom: 1.5em;
    padding-top: 1em;
    padding-left: 33%;
}
.panel-works .section-3icons-icon {
    padding: 0;
}
.panel-works .section-3icons-icon p:first-child   {
    padding-top: 0;
    margin-top: -15px;
}
.panel-works-bottom {
    padding-top: 1em;
}
.panel-works-bottom p {
    margin-bottom: 0;
}
.panel-works .fa {
    border-bottom: 10px solid transparent;
    vertical-align: middle;
    font-size: 1.8em;
}
.panel-works .fa-check {
    color: #5cb85c;
}
.panel-works .fa-close {
    color: #d9534f;
}
@media screen and (min-width: 850px) {
    .panel-works {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            'm m'
            'l l'
            'b b'
            'c r';
    }
    .panel-works .masthead { grid-area: m; }
    .panel-works-left { grid-area: l; }
    .panel-works-center { grid-area: c; }
    .panel-works-right { grid-area: r; }
    .panel-works-bottom { grid-area: b; }
}
@media screen and (min-width: 1250px) {
    .panel-works {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            'm m m'
            'l c r'
            'l b b';
    }
    .panel-works-bottom {
        padding-top: 0;
        padding-left: 2em;
        align-self: end;
    }
}

.panel-benefits img {
    padding-top: 0 !important;
}

/* Page Specific */

/* Welcome Page */

/* shared */
main {
    display: flex;
    flex-direction: column;
}
.hero {
    min-height: 75vh;
    padding: 2em 0;
}
.form-panel {
    max-width: 500px;
    margin: 0 auto;
    padding: 1em 2em 0;
}
.masthead h1 {
    font-size: 3em;
}

/* hero masthead */
.hero .masthead h1 {
    font-size: 4em;
}
.hero .masthead a {
    text-decoration: none;
    white-space: nowrap;
    padding: 0.25em 0.5em;
    line-height: 2.5;
    margin-left: -0.25em;
    margin-right: -0.25em;
}
@media screen and (min-width: 1250px) {
    .hero {
        padding: 4em;
        display: grid;
        grid-template-columns: auto repeat(3, minmax(auto, 500px)) auto;
        grid-template-areas:
            'h h h h h'
            'C C C F F';
        align-items:  center;
    }
    .hero .masthead {
        text-align: left;
    }
    header {
        grid-area: h;
        align-self: start
    }
    .form-panel {
        max-width: none;
        margin: 0;
        grid-area: F;
    }
    .copy-panel {
        grid-area: C;
    }
}

/* welcome only */
.welcome.layout {
    background: grey;
}
.welcome .masthead {
    padding: 2em 1em;
    text-align: center;
    grid-area: M;
}
@media screen and (min-width: 1250px) {
    .welcome .hero {
        grid-template-areas:
            'h h h h h'
            '. M M M .'
            '. F F F .';
    }
    .welcome .form-panel {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Content Page */
@media screen and (min-width: 850px) {
    .hero {
        grid-template-columns: auto minmax(auto, 800px) minmax(auto, 800px) auto;
        grid-template-areas:
            'h h h h'
            '. C F .';
        align-items:  center;
    }
}
@media screen and (min-width: 850px) {
    form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 0 1em;
    }
    .content .grid-double {
        grid-column: span 2;
    }
}

/* darkness for simulated modal */
body {
    background: black;
}
main > .masthead {
    background: white;
}
.content .hero .copy-panel {
    opacity: 0.5;
}
.content header {
    opacity: 0.5;
}
.content main > .masthead {
    opacity: 0.5;
}
.content .section-info {
    opacity: 0.5;
}
.content .section-3icons {
    opacity: 0.5;
}
.content .panel-works {
    opacity: 0.5;
}
.content footer {
    opacity: 0.5;
}

/* start button adding content class */
.content-form {
    display: none;
}
.content .content-form {
    display: block;
}
.content .start-button, .content .bottom-cta {
    display: none;
}

/* Thankyou page */
.thankyou .hero {
    padding: 2em 0 0 0;
    min-height: 100vh;
    grid-template-areas:
        'h h h h h'
        'C C C F F'
        'f f f f f';
}
.thankyou footer {
    grid-area: f;
    align-self: end;
}
