/* OPEN BTN */
.wizard-open-btn{
    background:linear-gradient(135deg,#667eea,#764ba2);
    color:#fff;
    border:none;
    padding:12px 25px;
    border-radius:30px;
    cursor:pointer;
}

/* MODAL */
.wizard-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    z-index:9000;
    padding:15px;
}

/* BOX */
.wizard-box{
    background:#fff;
    max-width:500px;
    margin:auto;
    margin-top:50px;
    border-radius:15px;
    padding:25px 20px;
    position:relative;
}

/* CLOSE */
.wizard-close{
    position:absolute;
    right:15px;
    top:10px;
    font-size:22px;
    cursor:pointer;
}

/* HEADER */
.wizard-header{
    text-align:center;
}

.wizard-header p{
    font-size:13px;
    color:#666;
}

/* PROGRESS */
.wizard-progress{
    width:100%;
    height:8px;
    background:#eee;
    border-radius:5px;
    overflow:hidden;
    margin:15px 0 25px;
}

.wizard-bar{
    height:100%;
    width:0%;
    background:linear-gradient(135deg,#667eea,#764ba2);
    transition:.3s;
}

/* STEP */
.wizard-step{
    display:none;
}

.wizard-step.active{
    display:block;
}

/* QUESTION */
.wizard-question{
    font-weight:600;
    margin-bottom:12px;
}

/* OPTIONS */
.wizard-options{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.wizard-option{
    border:1px solid #ccc;
    border-radius:8px;
    padding:10px;
    cursor:pointer;
}

.wizard-option input{
    display:none;
}

.wizard-option.active{
    background:#667eea;
    color:#fff;
    border-color:#667eea;
}

/* COMMENT */
.wizard-comment{
    margin-top:12px;
}

.wizard-comment input{
    width:100%;
    padding:7px;
    border:1px solid #ccc;
    border-radius:6px;
}

/* NAV */
.wizard-nav{
    display:flex;
    justify-content:space-between;
    margin-top:20px;
}

.wizard-nav button{
    padding:8px 20px;
    border:none;
    border-radius:20px;
    cursor:pointer;
}

.wizard-prev{
    background:#ccc;
}

.wizard-next{
    background:#667eea;
    color:#fff;
}

/* LOADING */
.wizard-loading{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(255,255,255,.8);
    z-index:10000;
    justify-content:center;
    align-items:center;
    flex-direction:column;
}

.wizard-spinner{
    width:40px;
    height:40px;
    border:4px solid #ddd;
    border-top:4px solid #667eea;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    to{transform:rotate(360deg);}
}

/* SWEETALERT FIX */
.swal2-container{
    z-index:20000 !important;
}

/* MOBILE */
@media(max-width:480px){

    .wizard-box{
        margin-top:20px;
        padding:20px 15px;
    }

}

/* widget start------------------------------------------ */
/* SURVEY WIDGET */

.survey-widget{
    width:100%;
    max-width:100%;   /* HAPUS batas 350px */
    background:#fff;
    border-radius:16px;
    padding:24px 28px;
    box-shadow:0 4px 12px rgba(0,0,0,.1);
    font-family:Segoe UI,Arial,sans-serif;
    box-sizing:border-box;
}

.survey-title{
    font-weight:600;
    margin-bottom:12px;
    font-size:16px;
}

/* SCORE */

.survey-score{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}

.stars{
    font-size:20px;
    color:#f59e0b;
}

.score-text{
    font-size:14px;
    color:#555;
}

/* BAR */

.survey-bar{
    width:100%;
    height:8px;
    background:#eee;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:10px;
}

.survey-bar-fill{
    height:100%;
    background:linear-gradient(135deg,#4f46e5,#6366f1);
}

/* INFO */

.survey-info{
    display:flex;
    justify-content:space-between;
    font-size:13px;
    color:#666;
    margin-bottom:6px;
}

/* UPDATE */

.survey-update{
    font-size:11px;
    color:#999;
    text-align:right;
}

/* MOBILE RESPONSIVE */

@media(max-width:600px){

    .survey-widget{
        max-width:100%;
        width:100%;
        padding:16px;
        border-radius:12px;
    }

    .survey-title{
        font-size:15px;
        text-align:center;
    }

    .survey-score{
        flex-direction:column;
        gap:6px;
        text-align:center;
    }

    .stars{
        font-size:18px;
    }

    .score-text{
        font-size:13px;
    }

    .survey-info{
        flex-direction:column;
        gap:4px;
        text-align:center;
    }

    .survey-update{
        text-align:center;
    }

}


/* widget end------------------------------------------ */
