/**
 * General
 **/

div[id^=module-],
#layout-sidebar {
    font-family: 'Rubik', sans-serif;
}

div[id^=module-] .row {
    margin-right: 0;
    margin-left: 0;
}

div[id^=module-] .form-root .c-form {
    padding-left: 0;
    padding-right: 0;
}

div[id^=module-] .form-root .label-align-right .field-container, 
div[id^=module-] .form-root .label-align-left .field-container, 
div[id^=module-] .form-root .label-align-center .field-container {
    padding-left: 0;
}

/**
 * Typography
 **/
#layout-sidebar__body h1 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: #30808C;
}

#layout-sidebar__body p {
    font-size: 1rem;
}

.ewds-content h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #B34C73;
}

@media (min-width: 1024px) {
   #layout-sidebar__body h1 {
        font-size: 2.6rem;
    }
    #layout-sidebar__body p {
        font-size: 1.1rem;
    }
    .ewds-content h2 {
        margin-bottom: 1.3rem;
        font-size: 2rem;
        color: #B34C73;
        font-weight: 600;
        line-height: 1.1;
    }
}
@media (min-width: 1366px) {
   #layout-sidebar__body h1 {
        font-size: 3.1rem;
    }
    .ewds-content h2 {
        margin-bottom: 2rem;
        font-size: 2.3rem;
        color: #B34C73;
    }
}
/**
 * Layout
 **/
#layout-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

#layout-sidebar__header,
#layout-sidebar__body {
    flex: 1 1 100%;
}

#layout-sidebar__header {
    padding: 0 1rem;
}

#layout-sidebar__body {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

#fo4-logo {
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

#fo4-logo img {
    width: auto;
    max-width: none;
    height: 84px;
}

#layout-sidebar__body main {
    width: 100%;
    padding: 1.5rem 1rem 0;
}

#layout-sidebar__body footer {
    width: 100%;
    margin-top: auto;
    padding-bottom: 3rem;
}

@media (min-width: 1024px) {
    #fo4-logo {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    #layout-sidebar {
        flex-wrap: nowrap;
    }

    #layout-sidebar__header,
    #layout-sidebar__body {
        min-height: 100vh;
    }

    #layout-sidebar__header {
        flex: 1 1 20%;
        width:20%;
        min-width: 300px;
        padding: 0;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.25);
    }

    header.sidebar-header {
        width: 20%;
        min-width: 300px;
        /* height: 100vh; */
        position: fixed;
        display: flex;
        flex-wrap: wrap;
        left: 0;
    }

    #fo4-logo,
    #dnn_HeaderPane {
        width: 100%;
    }

    #dnn_HeaderPane {
        display: flex;
        justify-content: center;
    }

    #layout-sidebar__body {
        flex: 1 1 80%;
        width: 80%;
    }

    #layout-sidebar__body main {
        padding: 3rem 4rem 0;
    }
}

@media (min-width: 1366px) {
    #layout-sidebar__header {
        min-width: 400px;
    }
    header.sidebar-header {
        min-width: 400px;
    }
}
.container-wide {
    max-width: 96%!important;
    margin-left: 2%!important;
    margin-right: 2%!important;
}

/**
 * Side Navigation
 **/

.fo4-side-nav,
.fo4-side-subnav {
    padding: 0;
}

.fo4-side-nav a,
.fo4-side-subnav a {
    text-decoration: none;
} 

.fo4-side-nav > li a {
    color: #30808C;
    font-size: 1.3rem;
    font-weight: bold;
}

.fo4-side-nav > li:not(:last-child) {
    margin-bottom: 1rem;
}

.fo4-side-nav li.active .fo4-side-subnav li:not(.active):has(~ .active) a {
    color: #B34C73;
}

.fo4-side-nav li.active .fo4-side-subnav li.active ~ li a {
    color: #000;
}

.fo4-side-nav li.inactive a {
    color: #000;
}

.fo4-side-nav li.inactive .fo4-side-subnav {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
}

.fo4-side-nav li.active .fo4-side-subnav {
    max-height: none;
}

.fo4-side-subnav li {
    min-height: 1.5rem;
    padding-left: 1rem;
    position: relative;
    z-index: 1;
    
    display: flex;
    align-items: center;
}

.fo4-side-subnav li::before {
    content: '';
    width: 3px;
    height: 100%;
    background: #30808C;
    position: absolute;
    top: 0;
    bottom: -15px;
    left: 0;
    z-index: -1;
}

.fo4-side-subnav > li a {
    color: #B34C73;
    font-size: 1.1rem;
    font-weight: 400;
}

.fo4-side-subnav li span {
    position: absolute;
    left: -5px;
    background-color: transparent;
    height: 13px;
    width: 13px;
    border-radius: 50%;
}

.fo4-side-subnav li.active a {
    color: #30808C;
}

.fo4-side-subnav li.active span {
    background-color: #30808C;
}

@media (min-width: 1024px) {
    .fo4-side-subnav li {
        min-height: 2rem;
    }
    .fo4-side-nav > li a {
        font-size: 1.6rem;
    }
    .fo4-side-subnav > li a {
        font-size: 1.1rem;
    }
}

@media (min-width: 1366px) {
    .fo4-side-subnav li {
        min-height: 2.5rem;
    }
    .fo4-side-nav > li a {
        font-size: 1.8rem;
    }
    .fo4-side-subnav > li a {
        font-size: 1.3rem;
    }
}

/**
 * Action Form
 **/

#layout-sidebar textarea.form-control {
    border: 2px solid #30808C;
    border-radius: 10px;
}

#layout-sidebar .form-root .label-align-top .form-label {
    font-size: 1.2rem;
    font-weight: 300;
}

p[name=dnn428StaticText1] {
    margin-bottom: 0;
    padding-bottom: 0;
}

.modal-header {
    display: none!important;
}

/**
 * Button
 **/
button.btn-xlg {
    display: inline-block;
    background: #30808C;
    box-shadow: 7px 5px 15px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    line-height: 50px;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    padding: 0px 25px;
    margin-top: 46px;
    margin: 0 auto;
    border: 2px solid transparent;
    text-transform: lowercase;
}

button.btn-xlg::first-letter {
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    button.btn-xlg {
        font-size: 32px;
        padding: 15px 25px;
        margin-top: 67px;
    }
}
/**
 * Table Sorter
 **/
#js-table-sorter fieldset {
    width: 100%;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
}

#js-table-sorter fieldset input {
    width: 50%;
}

#js-table-sorter fieldset input, 
#js-table-sorter fieldset button {
    margin: 0 .5rem 0 0;
}

#js-table-sorter fieldset .sort-button {
    text-wrap: nowrap;
    font-size: .9rem;
    padding: 5px 15px;
    border-radius: 25px;
    border: none;
    display: inline-block;
    color: #2e2e2e;
    text-decoration: none;
    background-color: rgba(0, 0, 0, .05);
}

#js-table-sorter fieldset .sort-button::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid rgba(0, 0, 0, 0);
    border-right: 4px solid rgba(0, 0, 0, 0);
    border-bottom: 4px solid rgba(0, 0, 0, 0);
    position: relative;
    top: -10px;
    right: -4px;
}

/**
 * Table
 **/
 .ewds-table {
    width: 100%;
    margin-bottom: 1.875rem;
    font-size: 1rem;
    border: 1px solid #eee;
    letter-spacing: 0.02em;

    caption {
        caption-side: top;
        padding: 0.9375rem 1.25rem!important;
        font-size: 1.3125rem;
        background-color: #e9ecef;
        border-width: 1px 1px 0;
        border-style: solid;
        border-color: #eee;
        color: #333!important;
        font-weight: bold;
    }

    tbody th,
    tbody td,
    thead th {
        padding: 0.75rem 1.25rem!important;
        border-bottom: 1px solid #eee;
        word-break: auto-phrase;
        line-height: 1;
    }

    thead {
        background-color: #f8f9fa;
    }

    tbody {
        th {
            width: 40%;
            background-color: #f7f9fa;
            font-weight: normal;
        }

        td {
            width: 60%;
        }
    }
}

.ewds-table--thlong tbody th,
.ewds-table--thlong tbody td {
    width: 50%;
}

.ewds-table--equal tbody td {
    width: auto;
    padding: 0.5rem 1.25rem!important;
}

.ewds-table--black-border,
.ewds-table--black-border tbody th, 
.ewds-table--black-border tbody td, 
.ewds-table--black-border thead th,
.ewds-table--black-border tbody td:not(:last-child) {
    border: 1px solid #000;
}

.ewds-table-question td {
    cursor: pointer;
}

/**
 * Callout
 **/
.bd-callout {
    padding: 1.25rem;
    border: 1px solid #eee;
    border-left-width: .25rem;
    border-radius: .25rem
}

.bd-callout h4 {
margin-top: 0;
margin-bottom: .25rem
}

.bd-callout p:last-child {
margin-bottom: 0
}

.bd-callout code {
border-radius: .25rem
}

.bd-callout+.bd-callout {
margin-top: -.25rem
}

.bd-callout-info {
border-left-color: #5bc0de
}

.bd-callout-info h4 {
color: #5bc0de
}

.bd-callout-warning {
border-left-color: #f0ad4e
}

.bd-callout-warning h4 {
color: #f0ad4e
}

.bd-callout-danger {
border-left-color: #d9534f
}

.bd-callout-danger h4 {
color: #d9534f
}

.bd-callout-primary{
border-left-color: #007bff
}

.bd-callout-primaryh4 {
color: #007bff
}

.bd-callout-success{
border-left-color: #28a745
}

.bd-callout-successh4 {
color: #28a745
}

.bd-callout-default{
border-left-color: #6c757d
}

.bd-callout-defaulth4 {
color: #6c757d
}

/**
 * Need to copy over to ewds stylesheet after August
 **/
#dnn430ValidateAnswer,
#dnn434ValidateAnswer,
#dnn436ValidateAnswer,
#dnn438ValidateAnswer,
#dnn440ValidateAnswer,
#dnn442ValidateAnswer,
#dnn444ValidateAnswer,
#dnn501ValidateAnswer {
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    visibility: hidden;
    opacity: 0;
}

#dnn428Submit,
#dnn430Submit,
#dnn432Submit,
#dnn434Submit,
#dnn436Submit,
#dnn438Submit,
#dnn440Submit,
#dnn442Submit,
#dnn444Submit,
#dnn501Submit,
#dnn503Submit {
    display: none;
}

.ewds-content ul,
p ul {
    padding: 1rem 1rem 1rem 2rem;
    font-family: 'Montserrat', sans-serif;
    color: #000;
    border-radius: 10px;
    background-color: #efefef;
    list-style: disc;
}

.ewds-content ul li:not(:last-child),
p ul li:not(:last-child) {
    margin-bottom: 1rem;
}

.form-check-label {
    margin-bottom: 0.7rem;
}

.field-container:has(#dnn502Score),
.field-container:has(#dnn502MissingQuestions),
.field-container:has(#dnn502Submit),
.field-container:has(#dnn502Content) {
    display: none;
}

span[id^="error-dnn"] {
    margin-top: .8rem;
    display: inline-block;
}

#dnn502TotalScore + p > p > button.btn-xlg {
    margin-top: 0;
}

/*
 * Prospectus Hunt
 */
label[for^="dnn434Q"],
label[for="dnn444Q1"],
label[for="dnn501Q1"] {
    display: none;
}

textarea[id^="dnn434Q"],
textarea[id="dnn501Q1"] {
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

textarea[id="dnn444Q1"] {
    margin-top: -4rem;
    margin-bottom: 3rem;
}

.field-container:has(textarea[id^="dnn440Q"]),
.field-container:has(textarea[id^="dnn438Q"]),
.field-container:has(textarea[id^="dnn442Q"]),
.field-container:has(textarea[id^="dnn501Q2"]),
.field-container:has(textarea[id^="dnn426LargeText"]),
.field-container:has(textarea[id^="dnn430Q"]),
.field-container:has(textarea[id^="dnn436Q"]),
#dnn442Q4,
#dnn442Q3,
#dnn442Q2,
#dnn442Q1,
#dnn501Q2 {
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .video-containers {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .video-containers > .video-container {
        width: 31.33%;
    }
}

.img-text-section::after {
    opacity: 0.05;
}

.field-container:has(textarea[id="dnn501Q1"]),
.field-container:has(textarea[id="dnn501Q3"]) {
    margin-bottom: 0;
}
