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

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

/* 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 {
    border: 1px solid white;
    color: white;
    background: rgba(26, 35, 126, 0.5);
}

/* 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: none;
    background: black;
    color: white;
    padding: 0.5em 1em;
    font-size: 1em;
    transition: all 0.3s;
    font-weight: bold;
}
.button:hover {
    border-color: #222;
    background: #222;
}
.button-sm {
    font-size: 0.85em;
}
.button-lg {
    font-size: 1.3em;
}
.button-xl {
    font-size: 1.7em;
}
.button-ghost {
    background: transparent;
    color: black;
}
.button-ghost:hover {
    background: black;
    color: white;
}
.button-round {
    border-radius: 8px;
}

/* Button Primary */
.button-primary {
    background: linear-gradient(to right, #fe5501, #fea300);
}
.button-primary:hover {
    color: #0aeef9;
    text-shadow: 1px 1px 1px #515151;
    background: linear-gradient(to right, #fe5501, #fea300);
}
.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 {
    padding: 1em;
    text-align: center;
    padding-bottom: 4.5em;
}
header h2 {
    font-weight: bold;
    color: #333;
}
header a,
header a:focus,
header a:hover {
    text-decoration: none;
}
header img {
    width: 50%;
}
.header-inner > div {
    margin-bottom: 1em;
}
.header-inner > div:last-child {
    margin-bottom: 0;
}
@media screen and (min-width: 800px) {
    header img {
        width: 100%;
    }
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header-inner > div {
        margin-bottom: 0;
    }
    .header-logo img {
        margin-bottom: 0;
    }
}

/* Footer */
footer {
    display: flex;
    align-items: flex-end;
}
.footer-copyright {
    padding: 0 1em;
}
footer img {
    max-height: 60px;
}

/* Layout */
.layout {
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
    padding: 0 1em;
}
/* gridless */
main > div > div {
    margin: 0 auto;
    margin-bottom: 1em;
}
main > div > div:last-child {
    margin-bottom: 0;
}

/* Shared */
.upper-copy {
    text-align: center;
}
.heading {
    text-align: left;
}
.main-panel {
    margin-top: 2em;
    padding-bottom: 1em;
}
.main-panel img {
    max-width: 100%;
}
.main-panel .img-portrait {
    width: 100%;
    max-width: 190px;
    margin: 0 0 0 auto;
}
.lower-copy {
    text-align: left;
}

/* New */
.panel-inner {
    padding: 1em;
}
.panel-center {
    padding: 0.5em;
    background: #ddd;
}
.panel-header {
    position: relative;
}
.panel-main {
    padding: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-top-right-radius: 0;
}
.panel-main h1 {
    color: #056991;
}

/* progress bar */
.panel-progress {
    padding: 1em;
    background: white;
    position: absolute;
    bottom: -0.5em;
    right: 0.5em;
    width: 400px;
    border: 1px solid #ddd;
    border-bottom: none;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
@media (max-width: 599px) {
    .panel-progress {
        left: 0.5em;
        width: auto;
    }
    .panel-main {
        border-top-left-radius: 0;
    }
}
.progress {
    margin-bottom: 0;
    height: 0.5em;
}
.welcome .progress {
    opacity: 0;
}
.progress-bar {
    transition: none !important;
}

/* carousel */
.carousel-prev-wrap {
    padding: 1em;
    margin-top: 1em;
}
.carousel-prev {
    border: none;
    background: transparent;
    text-align: center;
	float: left;
	width: 50px;
	height: 50px;
    background: #bbb;
    border-radius: 100%;

    opacity: 0;
    cursor: default;
    transition: opacity 0.5s;
}
.carousel-prev.visible {
    opacity: 1;
    cursor: pointer;
}
.carousel-prev:focus {
    outline: none;
}
.carousel-prev .fa {
    font-size: 36px;
    line-height: 36px;
    color: white;
}
.carousel-prev:hover .fa {
    color: #056991;
}
.item {
    padding: 1em;
}

/* radio buttons */
.form-radio-inner {
    position: relative;
    margin-bottom: 1em;
}
.form-radio input {
    position: absolute;
    opacity: 0;
}
.form-radio label {
    cursor: pointer;
    margin: 0;
    border-width: 1px;
    padding: 0.7em 0.4em;
    border: none;
    background: linear-gradient(to right, #426fff, #09eff9);
}
.form-radio label:hover {
    color: #0aeef9;
    text-shadow: 1px 1px 1px #515151;
    background: linear-gradient(to right, #426fff, #09eff9);
}
.form-radio input + label div {
    position: absolute;
    right: 16px;
    top: 8px;
    padding-top: 6px;
    width: 36px;
    height: 36px;
}
.form-radio input:checked + label div > span > span {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #0aeef9;
    border-radius: 50%;
    position: relative;
}
.form-radio input:checked + label div > span > span > span {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0aeef9;
}
.form-radio input:checked + label {
    background: transparent;
    border: 1px solid #426fff;
    color: #0aeef9;
    text-shadow: 1px 1px 1px #515151;
}
.animation-bounce {
    animation: bounce 400ms linear both;
}
@keyframes bounce {
    0% { transform: scale(1, 1); }
    20% { transform: scale(0.6, 0.6); }
    60% { transform: scale(1.8, 1.8); }
    90% { transform: scale(0.8, 0.8); }
    100% { transform: scale(1, 1); }
}
.form-radio-inner label {
    user-select: none;
}

/* Slider */
.slider {
    width: 100%;
}
.slider-horizontal {
    width: 100% !important;
}
.slider-inner {
    position: relative;
}
.slider-label {
    padding: 1em 0;
}
.slider-track {
    box-shadow: -1px -1px 5px rgba(5, 105, 145, 0.2),
                1px 1px 2px rgba(5, 105, 145, 0.6);
}
.slider-label-left,
.slider-label-right {
    padding-top: 1em;
}
.slider-label-right {
    position: absolute;
    right: 0;
}

/* Page Specific */

/* Welcome Page */
.refcode-form {
    position: relative;
}
.refcode-form .input .fa {
    display: none;
    color: green;
    position: absolute;
    top: 0;
    right: 0;
}
#refcode-zip:valid + .fa {
    display: inline;
}

.welcome .panel-main > * {
    margin-bottom: 1em;
}
.welcome .panel-main  {
    padding: 1em;
    padding-bottom: 0;
}
.welcome .copy-panel .panel-inner {
    border: 2px solid #ddd;
}
.welcome label {
    font-size: 1.6em;
}
@supports (grid-area: auto) {
    @media screen and (min-width: 800px) {
        .welcome .panel-main {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-column-gap: 1em;
        }
        .welcome .copy-panel {
            grid-column: 2;
            grid-row: span 2;
        }
        .welcome .forms {
            grid-row: 2;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }
    }
}

/* Content Page */
.content .carousel-inner {
    min-height: 400px;
}
.content .carousel h2 {
    color: #666;
    padding: 1em 0;
}

/* Thank You Page */
.thankyou .main-panel {
    text-align: center;
}
.thankyou .panel-inner {
    padding: 3em;
}
.thankyou .main-panel h3 {
    padding: 2em 0;
}
