/* Base styles */
div {
    width: 100%;
}

:root {
    --blue: #4680aa;
    --red: #e4695e;
    --orange: #f0c670;
    --black: #000;
    --green: #14bd43;
}
/* Headers */
h1, h2, h3 {
    margin-bottom: 30px;
}
/* Colors */
.blue {
    color: var(--blue);
}
.blue-bg {
    background-color: var(--blue);
}
.red {
    color: var(--red);
}
.red-bg {
    background-color: var(--red);
}
.orange {
    color: var(--orange);
}
.orange-bg {
    background-color: var(--orange);
}

/* Fonts */
.inter {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
.inter.bold {
    font-weight: 600;
}
.inter.italic {
    font-style: italic;
}

/* Grid */
div.main-container {
    display: grid;
    grid-template-columns: 1fr minmax(auto, 1280px) 1fr;
}
div.main-content {
    width: 100%;
    grid-column: 2/3;
}

/* Padding */
.padding-top {
    padding-top: 40px;
}
.padding-bottom {
    padding-bottom: 40px;
}

/* Alignment */
.center {
    text-align: center;
}
.right {
    text-align: right;
}

/* Links */
a {
    text-decoration: none;
    color: #0920a2;
}
a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 10px;
    transition: all .1s;
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
}
.btn:focus {
    outline: none;
}
.btn:active {
    box-shadow: 0 2px 3px rgba(0,0,0,.3) inset;
    filter: brightness(75%);
    outline: none;
}
.btn:hover {
    text-decoration: none;
    filter: brightness(115%);
    cursor: pointer;
    transform: scale(1.03);
}
.btn.lg {
    padding: 14px 20px;
    font-size: 28px;
}
.btn.blue {
    background-color: var(--blue);
    border: 1px solid #FFF;
    color: #FFF;
}
.btn.white {
    border: 2px solid var(--black);
    color: var(--black);
}
.btn.green {
    border: 1px solid #FFF;
    color: #FFF;
    background-color: var(--green);
}

/* Processing overlay */
#processing-overlay {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0,0,0,.6);
    user-select: none;
}
#processing-overlay-container {
    width: 100%;
    height: 100vh;
    display: grid;
    align-items: center;
    justify-items: center;
}
#processing-overlay-content {
    color: #FFF;
    text-align: center;
}
#processing-overlay-content .message {
    font-size: 32px;
}
#processing-overlay-content img {
    display: inline-block;
    margin-bottom: 20px;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@media(min-width: 1024px) {
    #processing-overlay-content .message {
        font-size: 48px;
    }
}

/* Text Input */
input:not([type=submit]):not([type=file]), textarea {
    padding: 10px;
    width: 100%;
    border: 1px solid #999;
    transition: box-shadow .2s ease-out;
    color: #333;
}
input:not([type=submit]):not([type=file]):focus, textarea:focus {
    box-shadow: 0 0 8px rgba(8,76,113,.5);
    background-color: #FFF;
    outline: none;
}
/* Select */
select {
    background-color: #FFF;
    padding: 10px;
    width: 100%;
    border: 1px solid #BBB;
}
/* Styled checkboxes */
.styled-cb {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 5px;
    padding-top: 3px;
    cursor: pointer;
    font-size: 16px;
}
.styled-cb input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.control_indicator {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: #e6e6e6;
    border: 0px solid #000000;
    border-radius: 0px;
}
.styled-cb:hover input ~ .control_indicator,
.styled-cb input:focus ~ .control_indicator {
    background: #cccccc;
}

.styled-cb input:checked ~ .control_indicator {
    background: #2aa1c0;
}
.styled-cb:hover input:not([disabled]):checked ~ .control_indicator,
.styled-cb input:checked:focus ~ .control_indicator {
    background: #0e6647;
}
.styled-cb input:disabled ~ .control_indicator {
    background: #e6e6e6;
    opacity: 0.6;
    pointer-events: none;
}
.control_indicator:after {
    box-sizing: unset;
    content: '';
    position: absolute;
    display: none;
}
.styled-cb input:checked ~ .control_indicator:after {
    display: block;
}
.control-checkbox .control_indicator:after {
    left: 8px;
    top: 4px;
    width: 3px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.control-checkbox input:disabled ~ .control_indicator:after {
    border-color: #7b7b7b;
}

/* Cards */
.horizontal-card {
    display: grid;
    border: 1px solid #DDD;
    background-color: #F7F7F7;
}
.horizontal-card .image {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center center;
}
.horizontal-card .title {
    margin-bottom: 8px;
}
.horizontal-card .title a {
    color: var(--blue);
    font-size: 22px;
}
.horizontal-card .date {
    margin-bottom: 1.5em;
}
.horizontal-card .text {
    padding: 1em;
}
.horizontal-card .blurb {
    margin-bottom: 2em;
}
@media(min-width: 768px) {
    .horizontal-card {
        grid-template-columns: 1fr 1fr;
    }
}

/* Spacers */
div.spacer.black {
    width: 100%;
    height: 3px;
    background-color: var(--black);
}

/* Video */
.video-thumb {
    width: 100%;
    display: inline-block;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center center;
    transition: all .2s;
}
.video-thumb:hover {
    filter: brightness(115%);
}
div.video-embed-container {
    aspect-ratio: 16/9;
}
div.video-embed-container iframe {
    width: 100%;
    height: 100%;
}

/* Icons */
.social-icon {
    width: 50px;
    height: 50px;
    mask-size: 50px 50px;
}
.social-icon.white {
    background: #FFF;
}
.social-icon.facebook {
    mask-image: url(/img/icons/facebook-square.svg);
}
.social-icon.instagram {
    mask-image: url(/img/icons/instagram.svg);
}
.social-icon.youtube {
    mask-image: url(/img/icons/youtube.svg);
}

i {
    display: inline-block;
}
i.white {
    background-color: #FFF;
}
i.previous {
    mask-image: url(/img/icons/previous-step-2.svg);
}
i.next {
    mask-image: url(/img/icons/next-step-2.svg);
}
i.play {
    mask-image: url(/img/icons/play.svg);
}
i.pause {
    mask-image: url(/img/icons/pause.svg);
}

/* Panels */
.panel {
    padding: 10px 1em;
    border-radius: 6px;
    margin-bottom: 1em;
    text-align: left;
}
.panel.success {
    display: none;
    color: #FFF;
    background-color: var(--green);
}
.panel.error {
    display: none;
    color: #FFF;
    background-color: var(--red);
}