﻿:root {
    --dark-blue: #091F42;
    --dark-blue-2: #3E3E7A;
    --dark-ivory: #F0EFE4;
    --green: #007F00;
    --grey: #EBEBEB;
    --grey-2: #E2E2E2;
    --ivory: #F9F8ED;
    --light-green: #E0FCCC;
    --light-grey: #B3B3B3;
    --light-grey-2: #F5F5F5;
    --light-grey-3: #F1F1F1;
    --light-grey-4: #E0E0E0;
    --light-grey-5: #FBFBFB;
    --light-red: #FFECEC;
    --light-violet: #F3F3FF;
    --light-yellow: #FFE4C4;
    --red: #E95C7B;
    --violet: #8383FF;
    --white: #FFFFFF;
    --yellow: #F99500;
}

.violet-color {
    color: var(--violet);
}

.green-color {
    color: var(--green);
}

.zero-gutter {
    --bs-gutter-x: 0;
}

.row h5 {
    font-size: 14px;
    color: var(--dark-blue);
}


/* ============ Buttons ============ */

.sw-btn {
    border: 2px solid var(--violet);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    padding: 8px 19px;
    text-align: center;
    background-color: var(--violet);
    color: var(--white);   
}

.sw-btn:hover {
    background-color: var(--dark-blue-2);
    border-color: var(--dark-blue-2);
    transition: 0.2s ease-in-out;
}

.sw-btn:disabled {
    opacity: 0.2 !important;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.sw-btn:focus {
    box-shadow: none;
}

.sw-btn--outline {
    background: transparent;
    border-color: var(--violet);
    color: var(--violet);
    transition: .2s ease-in-out; 
}

.sw-btn--ghost {
    background: transparent;
    border: 0;
    color: var(--violet);
    transition: .2s ease-in-out;
}

.sw-btn--ghost:hover {
    background-color: transparent;
    font-weight: bolder;
    border: 0;
}

.sw-btn--outline:hover {
    background: var(--violet);
    border-color: var(--violet);
    color: var(--white);
    transition: .2s ease-in-out;
}

.sw-btn--large {
    font-size: 16px;
    padding: 13px 22px;
}

.sw-btn--disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.sw-btn--disabled:hover {
    background-color: var(--violet);
    color: var(--white);
    border-color: var(--violet);
    text-decoration: none;
}

.sw-btn--danger,
.sw-btn--danger:hover {
    background-color: var(--red);
    border-color: var(--red);
}

.sw-btn--danger:hover {
    opacity: 0.8;
}


/* ============ Top bar ============ */

.template-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 40px 40px 0 40px;
    font-family: 'DM Sans', sans-serif;
}

.template-header h1,
.template-header h4,
.template-header h5,
.template-header small {
    margin-bottom: 0px;
    color: var(--dark-blue);
}

.template-name-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.template-lastsaved {
    gap: 16px;
}

.title {
    font-weight: bold;
    line-height: 1;
}

.last-saved {
    line-height: 1.5;
}

.rounded-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8383FF;
    border-radius: 4px;
    padding: 0 10px;
    color: white !important;
    text-transform: uppercase;
    height: 100%;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}


/* ============ Progess bar ============ */

.sw-theme-progress > div > .nav {
    gap: 16px;
    box-shadow: none !important;
    padding: 32px 40px;
}

@media screen and (max-width: 640px) {
    .sw-theme-progress > div > .nav {
        flex-direction: column;
    }
}

.sw-theme-progress > div > .nav .nav-link {
    border-radius: 6px;
    background-color: var(--light-grey-3);
    padding: 1rem;
    height: 100%;
}

.sw-theme-progress > div > .nav .nav-link:hover {
    background-color: var(--light-grey-4);
}

.sw-theme-progress > div > .nav .nav-link h5,
.sw-theme-progress > div > .nav .nav-link small {
    color: var(--light-grey);
    text-align: center;
}

.sw-theme-progress > div > .nav .nav-link.active h5,
.sw-theme-progress > div > .nav .nav-link.active.done h5,
.sw-theme-progress > div > .nav .nav-link.active small {
    color: var(--white);
}

.sw-theme-progress > div > .nav .nav-link.done h5,
.sw-theme-progress > div > .nav .nav-link.done small {
    color: var(--dark-blue);
}

.sw-theme-progress > div > .nav .nav-link.active,
.sw-theme-progress > div > .nav .nav-link.active.done,
.sw-theme-progress > div > .nav .nav-link.active.done small{
    background: var(--dark-blue) !important;
    color: var(--white);
}

.sw-theme-progress > div > .nav .nav-link.active::after,
.sw-theme-progress > div > .nav .nav-link.done::after {
    background: none;
}

.sw-theme-progress > div > .nav h5 {
    margin-bottom: 0px;
}

.sw.sw-justified > div > .nav .nav-link, 
.sw.sw-justified > div > .nav > li {
    flex-basis: 0;
    flex-grow: 1;
    text-align: center;
}

.sw.sw-loading:before {
    border-color: var(--dark-blue) var(--violet) var(--violet) !important;
}


/* ============ Content ============ */

a {
    text-decoration: none;
}

.wizard:not(.fas) {
    font-family: 'DM Sans', sans-serif;
}

.wizard {
    border: none;
    margin-bottom: 0;
    max-width: 100% !important;
    padding: 0;
}

.wizard-survey-desc {
    background: var(--white);
    padding: 0 40px 24px 40px;
}


.wizard .sw-tab-content .tab-pane-sw {
    padding: 0 !important;
}

.wizard .backdrop-spinner {
    color: var(--violet);
}

.description {
    line-height: 1.4;
    font-weight: 300;
}

.nav-stage .container-survey {
    padding-left: 40px;
    padding-right: 40px;
}

.container-survey {
    padding-left: 24px;
    padding-right: 40px;
}

.form-check-input {
    margin-top: 0;
}

.row--c {
    align-items: center;
    display: flex;
}

.row--mb {
    margin-bottom: 10px;
}


/* ============ Bottom bar ============ */

.sw .toolbar {
    display: grid;
    gap: 16px;
    background-color: var(--ivory);
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    margin: 0 40px 40px 40px;
    border-radius: 0 0 8px 8px;
}

.back-button-grid {
    grid-column: 2;
    justify-self: end;
}

.next-button-grid {
    grid-column: 3;
    justify-self: start;
}

.exit-button-grid {
    grid-column: 4;
    justify-self: end;
}


/* ============ Error page ============ */

.toolbar-box-error {
    background-color: var(--ivory);
    margin: 40px 40px 0 40px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: center;
}


/* ============ Sticky bar ============ */

.wizard .sticky-content {
    position: sticky;
    top: -1px;
    z-index: 10;
    background-color: var(--white);
}

.wizard .sticky-content.is-pinned {
    box-shadow: 0 0 2rem 0 rgb(41 48 66 / 20%);
}

.wizard .sticky-content.is-pinned .template-header {
    padding-top: 24px;
}   

.wizard .sticky-content.is-pinned .nav {
    padding: 24px 40px;
}


/* ============ Modal ============ */

.sw-modal {
    font-family: 'DM Sans';
}

.sw-modal-title {
    color: var(--dark-blue);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.625;
    margin: 0;
}

.sw-modal-content {
    background-clip: padding-box;
    font-family: 'DM Sans';
    background-color: var(--white);
    border: 0 solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    display: flex;
    flex-direction: column;
    outline: 0;
    pointer-events: auto;
    position: relative;
    width: 100%
}

.sw-modal-description {
    font-weight: 300;
}

.sw-modal-description--single {
    margin: 0.5rem 0;
}

.sw-modal-body {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}