/* Reset */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
}
* {
    box-sizing: border-box;
}
body {
    background: whitesmoke;
}
.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: 'Roboto', Helvetica, Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, legend small {
    font-family: 'Roboto', 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 {
    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 Card */
.panel-card {
    background: white;
    box-shadow: 0px 0px 10px 0px rgb(30 45 52 / 34%);
}

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

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

/* Button Primary */
.button-primary {
    border-color: #f93822;
    background: #f93822;
    font-weight: bold;
}
.button-primary:hover {
    border-color: #e61118;
    background: #e61118;
}
.button-primary.button-ghost {
    background: transparent;
    color: #1a237e;
}
.button-primary.button-ghost:hover {
    border-color: #1a237e;
    background: #1a237e;
    color: white;
}

/* Masthead */
.masthead {
    color: #333;
    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: 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;
        }
    }
}

/* misc */
.hero {
    text-align: center;
    color: white;
    padding: 5em 1em;
}

.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;
}
.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;
    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;
        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: 0 0 1em 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: #f93822;
}
.item {
    padding: 1em;
    padding-bottom: 0;
}

/* 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 2.5em;
    border-color: #056991;
    background: #056991;
}
.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 #056991;
    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: #056991;
}
.form-radio input:checked + label {
    background: transparent;
    color: #056991;
}
.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); }
}

/* Slider */
.slider {
    width: 100%;
}
.slider-horizontal {
    width: 100% !important;
}
.slider-inner {
    position: relative;
}
.slider-label {
    padding: 1em 0;
}
.slider-track {
    box-shadow: -1px -1px 3px #f93822,
                1px 1px 3px #f93822;
}
.slider-label-left,
.slider-label-right {
    padding-top: 1em;
}
.slider-label-right {
    position: absolute;
    right: 0;
}
.slider-handle {
    background: #f93822 !important;
}

/* Sections */

/* Header */
header {
    background: white;
    padding: 1em;

    border-bottom: 1px solid #d1d5db;
}
.header-logo img {
    width: 100%;
    max-width: 300px;
    padding: 1em;
}
header h3 {
    color: #333;
}
header {
    text-align: center;
}
.header-inner > div {
    margin-bottom: 1em;
}
.header-inner > div:last-child {
    margin-bottom: 0;
}
@supports(display: flex) {
    @media screen and (min-width: 850px) {
        .header-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .header-inner > div {
            margin-bottom: 0;
        }
    }
}

/* Footer */
footer {
    border-top: 1px solid #d1d5db;
    background: white;
    color: #333;
    padding: 1em 0.5em;
}

/* Layout */
.layout {
    min-height: calc(100vh - 1px);
}
main {
    min-height: 85vh;
}
@supports(display: flex) {
    main {
        min-height: initial;
    }
    .layout {
        display: flex;
        flex-direction: column;
    }
    main {
        flex: 1;
    }
}

/* Common */
main {
    padding: 1em;
}
@media screen and (min-width: 850px) {
    main {
        padding: 2em;
    }
}

/* radio buttons */
.form-radio label {
    border: 2px solid #f93822;
    background: white;
    color: #f93822;
}
.form-radio label:hover {
    background: #f93822;
    border-color: #f93822;
    color: white;
}
.form-radio input:checked + label {
    background: #f93822;
    color: white;
}
.form-radio input:checked + label div > span > span {
    border-color: white;
}
.form-radio input:checked + label div > span > span > span {
    background: white;
}

/* Page Specific */

/* Welcome Page */
.welcome main {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.welcome-inner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.welcome-inner > * {
    margin-bottom: 1em !important;
}
.welcome-inner > *:last-child {
    margin-bottom: 0 !important;
}

/* Content Page */
.content-grid {
    padding: 1em;
    padding-top: 3em;
}
.content-grid h2 {
    padding: 0.5em 0 1.5em;
}
.content-grid h2.large-label {
    padding: 1.5em 0 0.5em;
}
.content header {
    padding-bottom: 2.5em;
}
.content .carousel .form-group {
    margin-bottom: 0;
}
.progress-bar {
    background-color: #f93822;
}
@media screen and (min-width: 850px) {
    .carousel-prev-wrap {
        position: absolute;
        bottom: 0;
    }
    .content header {
        padding-bottom: 1em;
    }
    .content-grid {
        padding: 9em 1em 8em;
    }
}
@supports (display: flex) {
    .content main {
        display: flex;
        flex-direction: column;
    }
    .content-inner,
    .content-grid,
    .content-panel,
    .content form,
    .content .carousel {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    .content .carousel-inner {
        flex: 1;
    }
}

/* Thankyou Page */
.thankyou-inner {
    padding: 1em;
}
@supports (display: flex) {
    .thankyou main {
        display: flex;
        flex-direction: column;
    }
    .thankyou-inner {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
