/*!
 * 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: Circles */
.sw-theme-circles {
}

.sw-theme-circles .sw-container {
    min-height: 300px;
}

.sw-theme-circles .step-content {
    padding: 10px 0;
    text-align: left;
}

.sw-theme-circles .sw-toolbar {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 0 !important;
}

.sw-theme-circles .sw-toolbar-top {
}

.sw-theme-circles .sw-toolbar-bottom {
    border-top-color: #ddd !important;
    border-bottom-color: #ddd !important;
}

.sw-theme-circles > ul.step-anchor {
    position: relative;
    border: none;
    list-style: none;
    margin: 0;
    padding: 0;
    
    display: flex;
	justify-content: space-between; /* หัวใจหลัก */
}

.sw-theme-circles > ul.step-anchor:before {
    content: "" ;
    position: absolute;
    top: 50%;
    bottom: 0;
    width: 100%;
    height: 5px;
    background-color: #f5f5f5;
    border-radius: 3px;
    z-index: 0;
}
.sw-theme-circles > ul.step-anchor:after{
	content: "" ;
    position: absolute;
    top: 50%;
    bottom: 0;
    height: 5px;
    background-color: var(--green);
    border-radius: 3px;
    z-index: 2;
}
.sw-theme-circles > ul.step-anchor:has(li:first-child.done):after{
    width: 33%;
}
.sw-theme-circles > ul.step-anchor:has(li:nth-child( 2 ).done):after{
    width: 66%;
}
.sw-theme-circles > ul.step-anchor:has(li:nth-child( 3 ).done):after{
    width: 100%;
}

.sw-theme-circles > ul.step-anchor > li {
    border: none;
    flex: 0 0 auto;
	text-align: center;
    z-index: 98;
}

@media screen and (max-width: 768px) {

	#smartwizard h4 {
		font-size: 2em;
	}
}

.sw-theme-circles > ul.step-anchor > li > a:hover {
    color: #bbb;
}

.sw-theme-circles > ul.step-anchor > li > a > small {
    position: relative;
    bottom: -40px;
    color: #ccc;
    font-size: 14px!important
}

.sw-theme-circles > ul.step-anchor > li.clickable > a:hover {
    color: var(--greenlight) !important;
}

.sw-theme-circles > ul.step-anchor > li.active > a {
    color: var(--green);
}

.sw-theme-circles > ul.step-anchor > li.active > a > small {
    color: #000;
}

.sw-theme-circles > ul.step-anchor > li.done > a {
    color:var(--green);
    font-weight: 600
}

.sw-theme-circles > ul.step-anchor > li.done > a > small {
    color: #000;
}

.sw-theme-circles > ul.step-anchor > li.danger > a {
    border-color: #d9534f;
    color: #d9534f;
    background: #fff;
}

.sw-theme-circles > ul.step-anchor > li.danger > a > small {
    color: #d9534f;
}

.sw-theme-circles > ul.step-anchor > li.disabled > a, .sw-theme-circles > ul.step-anchor > li.disabled > a:hover {
    color: #eee !important;
}

