
.af-app-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding:32px;}
.af-app-wrapper form {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.af-progress-line {
   position: absolute;
    top: 30px;
    left: calc(100px / 2);
    right: calc(100px / 2);
    height: 3px;
    background: #8d7b68;
    z-index: 1;
}

.af-progress-fill {
    height: 100%;
    width: 0%;
    background: #8d7b68;
    transition: width 0.4s ease;
    
}

.af-progress {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    margin:0 30px;                            

}
/* STEP */
.af-progress .af-step {
    position: relative;
    z-index: 2;
    flex: 0 0 auto; /* ❗ quan trọng */
    text-align: center;
}

/* CIRCLE */
.af-progress .circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #8d7b68;
    background: #fff;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto;
    transition: all .3s ease;
}

/* ACTIVE + DONE */
.af-step.active .circle,
.af-step.done .circle {
    background: #8d7b68;
    color: #fff;
    border-color: #8d7b68;
}

.af-progress .label {
    margin-top: 10px;
    font-size: 16px;
    font-weight:normal;
    line-height:1.4;
    color: #666;
    max-width: 120px;
}
.af-progress .af-step.active .label {
    font-weight:bold;
}
.af-step.active .circle,
.af-step.done .circle{background:#8d7b68;color:#fff}
.af-step-pane{display:none}
.af-step-pane.active{display:block}
.af-step-pane label {
    font-size: 16px;
    font-weight:normal;
    line-height:1.4;
}
.af-required {color: #e53935;margin-left: 3px;
}
.af-prev {
    margin-right:10px;
}

.af-error{
    color:#ff4d4f;
    font-size:13px;
    margin-top:6px;
    line-height:1.4;
    font-weight:500;
}

.is-invalid{
    border-color:#ff4d4f !important;
    box-shadow:0 0 0 3px rgba(255,77,79,.08) !important;
}

.form-control{
    transition:all .25s ease;
}
button#submitBtn,
button.btn.btn-primary.af-prev,
button.btn.btn-primary.af-next {
   background: #8d7b68;
   border-color:#8d7b68;

}
@media (max-width: 768px) {

.af-app-wrapper {
    padding: 15px;
}

/* TITLE */
.af-app-wrapper h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
}

/* PROGRESS MOBILE = VERTICAL */
.af-progress {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    margin: 0px;
    padding-left: 0px;
}

/* LINE DỌC */
.af-progress-line {
    position: absolute;
    left: 16px;
    top: calc(36px / 2);
    bottom: calc(36px / 2);
    width: 3px;
    height: 80%;
    
}

.af-progress-fill {
    width: 3px !important;
    height: 0%;
    background: #8d7b68;
    transition: height .4s ease;
}

/* STEP ITEM */
.af-progress .af-step {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-align: left;
}
.af-progress .af-step:last-child {
    margin-bottom: 0;
}

/* CIRCLE */
.af-progress .circle {
    width: 36px;
    height: 36px;
    font-size: 13px;
    margin: 0;
    margin-right: 10px;
}

.af-progress .label {
    margin-top: 0px!important;
    max-width: 100%;
}

/* FORM */
.af-step-pane {
    margin-top: 10px;
}

/* INPUT */
.form-control {
    height: 45px;
    font-size: 14px;
    border-radius: 8px;
}

/* LABEL SMALL */
.mb-3 small {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
}

/* BUTTON */
button {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-size: 15px;
    margin-top: 10px;
}

.af-next,
 #submitBtn {
    background: #1e1a1a;
    color: #fff;
    border: none;
}
/* BACK BUTTON */
.af-prev {
    border: none;
    
}

/* CHECKBOX */
input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 8px;
}

    /* GROUP CHECKBOX */
    .mb-3 div {
        margin-bottom: 6px;
    }
}