/* Reset */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
}
* {
    box-sizing: border-box;
}
.input {
    padding-bottom: 1em;
}
#panel-tabs {
    display: none;
}
/* 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;
}

/* Variables */
:root {
    /* colors */
    --color-primary: hsl(240, 2%, 23%);
    --color-primary-dark: hsl(240, 2%, 13%);
    --color-primary-light: hsl(240, 2%, 33%);

    --color-secondary: hsl(216, 75%, 36%);
    --color-secondary-dark: hsl(216, 75%, 26%);
    --color-secondary-light: hsl(216, 75%, 46%);

    --color-tertiary: #0b4b9b;

    /* 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);
    --button-link: hsl(213, 81%, 71%);
    --button-rounded-radius: 8px;

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

    /* panel-rounded-radius */
    --panel-rounded-radius: 16px;
}

/* 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: var(--panel-rounded-radius);
}
.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 {
    color: var(--color-primary);
    background: white
}
.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-transparent.panel-rounded::before {
    border-radius: var(--panel-rounded-radius);
}
.panel-transparent.panel-top::before {
    border-bottom: none !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.panel-transparent.panel-bottom::before {
    border-top: none !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* 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;
    font-weight: bold;
}
.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: var(--button-rounded-radius);
}

/* Button Primary */
.button-primary {
    border-color: var(--button-primary);
    background: var(--button-primary);
    text-shadow: 1px 1px 3px black;
}
.button-primary:hover {
    border-color: var(--button-primary-hover);
    background: var(--button-primary-hover);
    box-shadow: 5px 5px 0 rgb(0 0 0 / 20%);
}
.button-primary.button-ghost {
    background: transparent;
    color: #1a237e;
}
.button-primary.button-ghost:hover {
    border-color: #1a237e;
    background: #1a237e;
    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);
    box-shadow: 5px 5px 0 rgb(0 0 0 / 20%);
}

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

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

/* Sections */

/* Header */
header {
    text-align: center;
}
.header-inner {
    padding: 0 0 2em 0;
}
.header-logo img {
    width: 100%;
    padding: 1.5em 0;
    max-width: 250px;
}
.header-phone h3 {
    display: inline;
    vertical-align: middle;
}
.header-phone a {
    vertical-align: middle;
}
header a,
header a:focus,
header a:hover {
    color: white;
    text-decoration: none;
}
.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;
    }
}

/* Footer */
footer {
    padding: 1em;
    color: white;
    background: var(--color-primary);
}
@media screen and (min-width: 850px) {
    footer {
        padding: 1em 2em;
    }
}

/* Layout */
.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hero-panel {
    z-index: 1;
    flex: 1;
}
.spacer-panel {
    height: 5em;
}
.grid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Common */
main {
    position: relative;
}
.masthead {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.text-shadow {
    text-shadow:3px 3px 5px black;
}

/* Copy Panels */
.hero-panel-copy h1 {
    font-size: 4.5em;
}
.hero-panel-copy h2 {
    font-size: 3em;
}
.hero-panel-copy h3 {
    font-size: 1.7em;
}
.hero-panel-copy h4 {
    font-size: 1.5em;
}
.hero-panel-copy ul {
    font-size: 1.9em;
}
.hero-panel-copy ul {
    margin: 0 auto;
    text-align: left;
    padding: 0;
    font-weight: normal;
}
.hero-panel-copy li {
    font-weight: bold;
    margin: 0;
    padding: 0;
    margin-left: 1.5em;
}
.hero-panel-copy ul {
    width: 90%;
}
@media screen and (min-width: 600px) {
    .hero-panel-copy ul {
        width: 75%;
    }
    .hero-panel-copy li {
        margin-left: 25%;
    }
}
@media screen and (min-width: 850px) {
    .hero-panel-copy ul {
        width: 100%;
    }
    .hero-panel-copy li {
        margin-left: 15%;
    }
}
@media screen and (min-width: 1250px) {
    .hero-copy-panel h1 {
        font-size: 3em;
        margin: 0;
    }
    .hero-panel {
        display: grid;
        grid-template-columns: auto minmax(0, 800px) minmax(0, 600px) auto;
        grid-template-areas:
            '. c f .'
            '. . f .'
    }

    /* copy panel */
    .hero-panel-copy {
        text-align: left;
        padding: 4em 1em 2em 2em;
        justify-content: space-between;
        max-width: none;
        margin: 0;
    }
    .hero-panel-copy h1 {
        font-size: 5em;
    }
    .hero-panel-copy h2 {
        font-size: 3em;
    }
    .hero-panel-copy h3 {
        font-size: 2em;
    }
    .hero-panel-copy h4 {
        font-size: 1.8em;
        padding-bottom: 0.25em;
    }
    .hero-panel-copy ul {
        font-size: 1.8em;
    }
    .hero-panel-copy h3 {
        width: 50%;
    }
    .hero-panel-copy ul {
        width: 100%;
    }
    .hero-panel-copy li {
        margin-left: 2.5em;
    }
}

/* Page Specific */

/* Welcome Page */
.hero-panel {
    grid-template-areas:
        'c'
        '.'
        'f'
        'f'
        'b';
}
.hero-panel-overlay {
    z-index: -1;
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2 / 5;
}
.hero-panel-overlay-copy {
    z-index: 10;
}
.hero-panel-form {
    grid-area: f;
    padding: 2em;
    max-width: 500px;
    min-width: 400px;
    margin: 0 auto;
}
.hero-panel-copy {
    grid-area: c;
    color: white;
    padding: 1em;
    text-align: center;
}
.hero-panel-copy.top {
    grid-area: t;
}
.hero-panel-copy.middle {
    grid-area: m;
}
.hero-panel-copy.middle ul {
    padding-top: 1em;
}
.hero-panel-copy.bottom {
    grid-area: b;
}
.hero-panel-copy h1 {
    font-size: 4em;
}
@media screen and (min-width: 850px) {
    .hero-panel {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            't t t'
            'f f f'
            'b b b';
    }
    .hero-panel-overlay {
        grid-column: 1 / -1;
        grid-row: -4 / -1;
    }
    .hero-panel-copy {
        padding: 2em;
    }
    .welcome .masthead {
        text-align: left;
    }
    .hero-panel-form {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-panel-copy.middle {
        text-align: left;

    }
}

/* new welcome */
.welcome .hero-panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        't t t'
        'f f f'
        'b b b';
}
.welcome .hero-panel-form {
    align-self: center;
}
.welcome .hero-panel-copy.bottom {
    color: var(--color-primary);
    background: white;
}

/* new misc + upper section */
.content main {
    background: #d1cdc9;
}
.content .hero-panel-copy.top {
    text-align: left;
    display: grid;
    align-items: end;
    min-height: 700px;
}
.content .hero-panel-copy.top h4 {
    padding: 1em;
    text-align: center;
}
@media screen and (min-width: 1400px) {
    .content .hero-panel-copy.top {
        min-height: auto;
        align-items: start;
        grid-template-columns: 1fr 1fr;
    }
}

/* new - lower section */
.content .hero-panel-copy-img img {
    width: 100%;
    display: block;
}
.content .hero-panel-copy.middle > * {
    flex: 1;
}
.content .hero-panel-copy.middle {
    display: flex;
    flex-direction: column;
    background: white;
    border-top: 15px solid var(--color-primary);
    color: #333;
}
.content .hero-panel-copy.middle ul {
    padding-bottom: 1em;
}
.content .hero-panel-copy.middle .images {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.content .hero-panel-copy.middle img {
    max-height: 300px;
}
@media screen and (min-width: 650px) {
    .content .hero-panel-copy.middle .images {
        flex-direction: row;
        justify-content: space-between;
    }
}
@media screen and (min-width: 850px) {
    .content .hero-panel-copy.middle {
        flex-direction: row;
    }
    .content .hero-panel-copy.middle .images {
        justify-content: flex-end;
        gap: 2em;
    }
    .content .hero-panel-copy.middle .images {
        flex-direction: column;
        align-items: flex-end;
    }
}
@media screen and (min-width: 1100px) {
    .content .hero-panel-copy.middle .images {
        padding-left: 1em;
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Content Page */
@media screen and (min-width: 850px) {
    .content form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 0 1em;
    }
    .content form > .input {
        grid-column: span 2;
    }
    .content .grid-double {
        grid-column: span 2;
    }
    .content .hero-panel-form {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    .content .hero-panel {
        display: block;
    }
}
@media screen and (min-width: 1250px) {
    .content .hero-panel {
        display: grid;
        grid-template-columns: minmax(0, 66%) 700px auto;
        grid-template-rows: auto auto auto 1fr;
        grid-template-areas:
            't t t'
            'f f f'
            'm m m'
            'b b b'
            '. . .';
        justify-content: start;
        align-items: start;
    }
}

/* Thankyou Page */
@media screen and (min-width: 1400px) {
    .thankyou .hero-panel-copy.top {
        min-height: 450px;
    }
}

@media screen and (max-width: 849px) {
    header {
        padding: 0.5em;
    }
    .header-inner {
        padding-bottom: 0;
    }
    .header-inner img {
        padding: 0;
    }
    .header-logo {
        margin: 0 !important;
    }
    .welcome .hero-panel-copy.top h2 {
        font-size: 2.5em;
    }
    .hero-panel-form {
        padding: 1em;
        min-width: 0;
    }
}
