/* CF7 Slider Captcha */

.cf7sc-wrapper {
    margin: 12px 0 16px;
    user-select: none;
    -webkit-user-select: none;
}

.cf7sc-track {
    position: relative;
    height: 48px;
    border-radius: 24px;
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    overflow: hidden;
    cursor: default;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.08);
    transition: border-color .2s;
}

.cf7sc-track:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.cf7sc-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #e8f5e9, #c8e6c9);
    border-radius: 24px;
    transition: background .3s;
    pointer-events: none;
}

.cf7sc-track.is-success .cf7sc-fill {
    background: linear-gradient(90deg, #43a047, #66bb6a);
}

.cf7sc-handle {
    position: absolute;
    left: 2px;
    top: 2px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
    transition: background .2s, box-shadow .2s;
    touch-action: none;
}

.cf7sc-handle:active {
    cursor: grabbing;
    box-shadow: 0 3px 10px rgba(0,0,0,.22);
}

.cf7sc-handle svg {
    width: 20px;
    height: 20px;
    color: #555;
    transition: color .2s;
    pointer-events: none;
}

.cf7sc-track.is-success .cf7sc-handle {
    background: #43a047;
    cursor: default;
}

.cf7sc-track.is-success .cf7sc-handle svg {
    color: #fff;
}

.cf7sc-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #888;
    font-weight: 500;
    pointer-events: none;
    letter-spacing: .01em;
    transition: color .2s;
    padding-left: 50px;
}

.cf7sc-track.is-success .cf7sc-label {
    color: #2e7d32;
}

/* Submit désactivé tant que slider pas validé */
.wpcf7-form:not(.cf7sc-unlocked) input[type="submit"],
.wpcf7-form:not(.cf7sc-unlocked) button[type="submit"] {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}
