/*!
 * SmartWizard v4.3.x
 * jQuery Wizard Plugin
 * http://www.techlaboratory.net/smartwizard
 *
 * Created by Dipu Raj
 * http://dipuraj.me
 *
 * Licensed under the terms of MIT License
 * https://github.com/techlab/SmartWizard/blob/master/LICENSE
 */

/* SmartWizard Theme: Dots */
.sw-theme-dots{
}
.sw-theme-dots .sw-container {
    min-height: 300px;
}
.sw-theme-dots .step-content {
    padding: 10px 0;
    border: none;
    background-color: transparent;
    text-align: left;
}
.sw-theme-dots .sw-toolbar{
    background: transparent;
    border-radius: 0 !important;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 0 !important;
}
.sw-theme-dots .sw-toolbar-top{
    border-bottom-color: rgba(148,163,184,0.15) !important;
}
.sw-theme-dots .sw-toolbar-bottom{
    border-top-color: rgba(148,163,184,0.15) !important;
    border-bottom-color: rgba(148,163,184,0.15) !important;
}
.sw-theme-dots > ul.step-anchor{
    position: relative;
    background: transparent;
    border: 0px solid transparent !important;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    margin-top: 28px;
    margin-bottom: 10px;
    padding-left: 0;
}
.sw-theme-dots > ul.step-anchor:before {
    content: " ";
    position: absolute;
    left: 4%;
    right: 4%;
    bottom: 25px;
    height: 4px;
    background-color: rgba(148,163,184,0.18);
    border-radius: 3px;
    z-index: 95;
}
.sw-theme-dots > ul.step-anchor > li{
    border: none;
    flex: 1 1 0;
    display: flex;
    list-style: none;
    position: relative;
}
/* Colored progress segments: done = cyan, leading into active = cyan→violet */
.sw-theme-dots > ul.step-anchor > li.done::before,
.sw-theme-dots > ul.step-anchor > li.active::before {
    content: " ";
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    height: 4px;
    background: #22d3ee;
    border-radius: 3px;
    z-index: 96;
    box-shadow: 0 0 8px rgba(34,211,238,0.35);
}
.sw-theme-dots > ul.step-anchor > li.done:first-child::before { left: 50%; }
.sw-theme-dots > ul.step-anchor > li.done:last-child::before { right: 50%; }
.sw-theme-dots > ul.step-anchor > li.active::before {
    right: 50%;
    background: linear-gradient(90deg, #22d3ee, #a78bfa);
    box-shadow: 0 0 8px rgba(167,139,250,0.35);
}
.sw-theme-dots > ul.step-anchor > li.active:first-child::before { content: none; }
/* Anchors styles */
.sw-theme-dots > ul.step-anchor > li > a{
    position: relative;
    text-align: center;
    font-weight: bold;
    background: transparent;
    border: none;
    color: #7c8db5;
    text-decoration: none;
    outline-style:none;
    z-index: 96;
    display: block;
    width: 100%;
    flex: 1 1 auto;
    align-self: stretch;
    padding: 6px 4px 54px;
}
/* Keep every step the same height even when its <small> date is empty */
.sw-theme-dots > ul.step-anchor > li > a small {
    display: block;
    min-height: 1.4em;
}
.sw-theme-dots > ul.step-anchor > li > a:before {
    content: ' ';
    position: absolute;
    bottom: 12px;
    left: 50%;
    margin-left: -15px;
    display: block;
    border-radius: 50%;
    color: #22d3ee;
    background: rgba(148,163,184,0.15);
    border: none;
    width: 30px;
    height: 30px;
    text-decoration: none;
    z-index: 98;
}
.sw-theme-dots > ul.step-anchor > li > a:after  {
    content: ' ';
    position: absolute;
    bottom: 20px;
    left: 50%;
    margin-left: -7px;
    display: block;
    width: 14px;
    height: 14px;
    background: rgba(148,163,184,0.25);
    border-radius: 50%;
    z-index: 99;
}
.sw-theme-dots > ul.step-anchor > li > a:hover  {
    color: #94a3b8;
    background: transparent;
}
.sw-theme-dots > ul.step-anchor > li > a:focus{
    color: #7c8db5;
    border: none;
}
.sw-theme-dots > ul.step-anchor > li.clickable > a:hover {
    color: #a5b4fc;
}
/* Active anchors */
.sw-theme-dots > ul.step-anchor > li.active > a{
    color: #a78bfa;
}
.sw-theme-dots > ul.step-anchor > li.active > a:hover{
    border: none;
}
.sw-theme-dots > ul.step-anchor > li.active > a:after {
    background: #a78bfa;
    box-shadow: 0 0 10px rgba(167,139,250,0.6);
}
/* Done anchors */
.sw-theme-dots > ul.step-anchor > li.done > a{
    color: #22d3ee;
}
.sw-theme-dots > ul.step-anchor > li.done > a:after {
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34,211,238,0.45);
}
/* Danger anchors */
.sw-theme-dots > ul.step-anchor > li.danger > a {
    color: #f87171;
}
.sw-theme-dots > ul.step-anchor > li.danger > a:after {
    background: #f87171;
}

.sw-theme-dots > ul.step-anchor > li.disabled > a, .sw-theme-dots > ul.step-anchor > li.disabled > a:hover {
    color: #64748b !important;
}
.sw-theme-dots > ul.step-anchor > li.disabled > a:after {
    background: #475569;
}

/* Responsive CSS */
@media screen and (max-width: 768px) {
    .sw-theme-dots > ul.step-anchor {
        display: block;
        margin-top: 16px;
    }
    .sw-theme-dots > ul.step-anchor:before {
        top: 0;
        bottom: 0;
        left: 10px;
        right: auto;
        width: 4px;
        height: auto;
        background-color: rgba(148,163,184,0.18);
        display: block;
        margin-right: 10px;
    }

    .sw-theme-dots > ul.step-anchor > li{
        margin-left: 26px;
        display: block;
        clear: both;
    }

    /* Vertical progress segments for mobile */
    .sw-theme-dots > ul.step-anchor > li.done::before,
    .sw-theme-dots > ul.step-anchor > li.active::before {
        top: 0;
        bottom: 0;
        left: -16px;
        right: auto;
        width: 4px;
        height: auto;
    }
    .sw-theme-dots > ul.step-anchor > li.done:first-child::before { top: 19px; left: -16px; }
    .sw-theme-dots > ul.step-anchor > li.done:last-child::before { right: auto; bottom: 50%; }
    .sw-theme-dots > ul.step-anchor > li.active::before { top: 0; bottom: auto; height: 19px; }

    .sw-theme-dots > ul.step-anchor > li > a{
        text-align: left;
        margin-left: 0;
        display: block;
        padding: 6px 4px 6px 6px;
        min-height: 44px;
    }

    .sw-theme-dots > ul.step-anchor > li > a:before {
        top: 4px;
        bottom: auto;
        left: -29px;
        margin-left: 0;
        margin-right: 10px;
        display: block;
    }
    .sw-theme-dots > ul.step-anchor > li > a:after  {
        top: 12px;
        bottom: auto;
        left: -21px;
        margin-left: 0;
        margin-right: 10px;
        display: block;
    }
}
