.qjs {
    --brand: #6f2cb0;
    --ink: #2b2f33;
    --muted: #7a7f86;
    --line: #e9edf0;
    --border: #d8dde3;
    --orange: #fe8018;
    color: var(--ink);
    background: #fff;
}
#qjs-title {
    background: var(--color-orange);
    font-size: 16px;
    line-height: 25px;
    padding: 10px;
    font-weight: 600;
    color: var(--color-white);
    text-align: center;
    text-transform: uppercase;
}
.vcolortd #qjs-title{
    background-color: var(--brand);
}
.qjs-form {
    border-left: 5px solid #efefef;
    border-right: 5px solid #efefef;
    border-bottom: 5px solid #efefef;
    padding: 15px 15px 25px;
}
.qjs-group {
    margin-bottom: 15px;
}

.qjs-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Field with icon */
.qjs-field {
    position: relative;
}
.qjs-fi .qjs-ic-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-orange);
    font-size: 16px;
    pointer-events: none;
}
.vcolortd .qjs-fi .qjs-ic-left{
 color: var(--color-purple);
}
.qjs-select .qjs-ic-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 13px;
    pointer-events: none;
}
/* Control */
.qjs-control {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    padding: 10px 14px 10px 38px;
    outline: 0;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.qjs-control::placeholder {
    color: #9aa0a6;
}
.qjs-field:focus-within .qjs-control {
    border-color: var(--brand);
}

/* Select style + iOS text color */
.qjs-select .qjs-control {
    color: #333333;
    -webkit-text-fill-color: #333333;
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
    padding-right: 36px;
}
/* Badge giá trị */
.qjs-legend {
    display: flex;
    align-items: center;
    gap: 6px;
}
.qjs-badge {
    display: inline-flex;
    align-items: baseline;
    background: #fff;
}
.qjs-unit {
    margin-left: 3px;
}
.qjs-sep {
    opacity: 0.65;
    font-weight: 700;
}

/* ===== Slider màu đặc brand (không gradient) ===== */
.qjs-range {
    position: relative;
    height: 35px;
}
.qjs-track {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
    background: #e9edf3;
    pointer-events: none;
}
.qjs-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
    background: var(--orange);
    left: 0;
    right: 0;
    pointer-events: none;
}

/* Hai input range — KHÔNG chồng nhau (JS set left/right) */
.qjs-in {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: 0;
    height: 35px;
    background: transparent;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: auto;
}
.qjs-in::-webkit-slider-runnable-track {
    background: transparent;
    height: 46px;
}
.qjs-in::-moz-range-track {
    background: transparent;
    height: 46px;
}
/* Thumb tím */
.qjs-in::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--orange);
    border: 0;
    margin-top: calc((46px - 22px) / 2);
    cursor: pointer;
}
.qjs-in:active::-webkit-slider-thumb {
    background: var(--orange);
}
.qjs-in::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--orange);
    border: 0;
    cursor: pointer;
}
.qjs-in:active::-moz-range-thumb {
    background: var(--orange);
}

/* Button outline như hình (cam) */
.qjs-actions {
    display: flex;
    justify-content: center;
}
.qjs-btn {
    text-transform: uppercase;
    font-size: 14px;
    line-height: 20px;
    padding: 10px 20px;
    border: 1px solid var(--color-orange);
    color: var(--color-orange);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    font-weight: bold;
    background: var(--color-white);
    outline: 0 !important;
    cursor: pointer;
    -webkit-transition: var(--effect-m);
    -moz-transition: var(--effect-m);
    -o-transition: var(--effect-m);
    transition: var(--effect-m);
}
.qjs-btn::before{
    position: absolute;
    top: 1px;
    left: 1px;
    bottom: 1px;
    right: 100%;
    content: "";
    background: var(--color-orange);
    -webkit-transition: var(--effect-m);
    -moz-transition: var(--effect-m);
    -o-transition: var(--effect-m);
    transition: var(--effect-m);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}
.vcolortd .qjs-btn{
    border: 1px solid var(--color-purple);
    color: var(--color-purple);
}
.vcolortd .qjs-btn::before{
    background: var(--color-purple);
}
.qjs-btn:hover::before {
     right: 1px;
}
.qjs-btn span{
    position: relative;
    z-index: 1;
}
.qjs-btn:hover{
    color: #fff;
}
.slr {
    --brand: #6f2cb0;
    --muted: #6b7280;
    --line: #e9edf3;
    color: #111827;
    font: 16px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    max-width: 360px;
}
.slr-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
/* Track / fill */
.slr-range {
    position: relative;
    height: 42px;
}
.slr-track {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
    background: var(--line);
    pointer-events: none;
}
.slr-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
    background: var(--brand);
    left: 0;
    right: 0;
    pointer-events: none;
}

/* Two <input type="range"> (no overlap) */
.slr-in {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: 0;
    height: 42px;
    background: transparent;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: auto;
}
.slr-in::-webkit-slider-runnable-track {
    background: transparent;
    height: 42px;
}
.slr-in::-moz-range-track {
    background: transparent;
    height: 42px;
}
/* Thumb tròn tím */
.slr-in::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand);
    border: 0;
    margin-top: calc((42px - 18px) / 2);
    cursor: pointer;
}
.slr-in::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand);
    border: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
