/* =========================================================
   FHS ASSESSMENT - NEW FORM ONLY
   ========================================================= */

.fhs-assessment {
    width: 100%;
    max-width: 100%;
    color: #111;
    font-family: "Rethink Sans", serif !important;
}

.fhs-assessment *,
.fhs-assessment *::before,
.fhs-assessment *::after {
    box-sizing: border-box;
}
.fhs-assessment .slidecontainer {
    width: 100%;
    position: relative;
    margin-top: 35px !important;
}

.fhs-assessment p {
    margin-bottom: 10px !important;
}
/* =========================================================
   TWO COLUMN ROW
   ========================================================= */

.fhs-assessment .fhs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 38px;

    width: 100%;
    margin: 0 0 24px;
}


.fhs-assessment .fhs-field {
    width: 100%;
    min-width: 0;
}


/* CF7 wrapper MUST be full width */
.fhs-assessment .fhs-field .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}
.fhs-assessment .fhs-field p {
    width: 100% !important;
}

/* =========================================================
   TEXT / EMAIL / PHONE INPUTS
   ========================================================= */

.fhs-assessment .fhs-field input[type="text"],
.fhs-assessment .fhs-field input[type="email"],
.fhs-assessment .fhs-field input[type="tel"] {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: 49px !important;

    margin: 0 !important;
    padding: 0 13px !important;

    background: #e9e9e7 !important;

    border: 1px solid #333 !important;
    border-radius: 6px !important;

    color: #17243a !important;

    font-size: 18px !important;
    font-weight: 400 !important;

    outline: none !important;
    box-shadow: none !important;
}


.fhs-assessment .fhs-field input::placeholder {
    color: #17243a !important;
    opacity: 1 !important;
}


/* =========================================================
   DROPDOWNS
   ========================================================= */

/*
 * Force the actual CF7 select to exactly match
 * the text input width.
 */

.fhs-assessment .fhs-field select {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    min-width: 100% !important;

    height: 49px !important;

    margin: 0 !important;
    padding: 0 38px 0 13px !important;

    background-color: #e9e9e7 !important;

    border: 1px solid #333 !important;
    border-radius: 6px !important;

    color: #17243a !important;

    font-size: 18px !important;
    font-weight: 400 !important;

    outline: none !important;
    box-shadow: none !important;
}


/*
 * If the theme is using Select2,
 * force that to full width too.
 */

.fhs-assessment .fhs-field .select2-container {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
}


.fhs-assessment
.fhs-field
.select2-container
.select2-selection--single {
    width: 100% !important;
    height: 49px !important;

    background: #e9e9e7 !important;

    border: 1px solid #333 !important;
    border-radius: 6px !important;

    box-shadow: none !important;
}


.fhs-assessment
.fhs-field
.select2-container
.select2-selection__rendered {
    height: 47px !important;

    display: flex !important;
    align-items: center !important;

    padding-left: 13px !important;

    color: #17243a !important;

    font-size: 18px !important;
    background: rgb(233, 233, 231) !important;
}


.fhs-assessment
.fhs-field
.select2-container
.select2-selection__arrow {
    height: 47px !important;
}


/* =========================================================
   HOT STUFF
   ========================================================= */

/*.fhs-assessment .fhs-hot-stuff {*/
/*    width: 100%;*/
/*    height: 48px;*/

/*    display: flex;*/
/*    align-items: center;*/

/*    margin: 18px 0 27px;*/
/*    padding: 0 13px;*/

/*    background: #dce615;*/

/*    border: 1px solid #333;*/
/*    border-radius: 6px;*/

/*    color: #111;*/

/*    font-size: 18px;*/
/*    font-weight: 700;*/
/*}*/

/* ==========================================================
   HOT STUFF
   ========================================================== */

.fhs-assessment .fhs-hot-stuff {
    --speed: 15s;
    --trail-size: 50;

    position: relative !important;

    width: 100% !important;
    min-height: 72px !important;

    display: flex !important;
    align-items: center !important;

    box-sizing: border-box !important;

    padding: 0 20px !important;

    background: #DCE600 !important;

    border: 1px solid #252525 !important;
    border-radius: 8px !important;

    /*
     * Keep the outer clipping.
     */
    overflow: hidden !important;
        margin-bottom: 20px !important;
}


/* Text */

.fhs-assessment .fhs-hot-stuff > span:first-child {
    position: relative !important;
    z-index: 20 !important;

    color: #111 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

.fhs-assessment .fhs-hot-text {
    position: relative !important;
    z-index: 100 !important;

    display: block !important;

    color: #111111 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    padding: 20px 8px 5px 0px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ==========================================================
   YOUR TRAIL EFFECT
   ========================================================== */

.fhs-assessment .fhs-hot-stuff .trail {
    --speed: 15s;
    --trail-size: 60;

    width: calc(var(--trail-size) * 1cqmin);
    aspect-ratio: 4;

    background:
        radial-gradient(
            100% 100% at right,
            #ef483e,
            transparent 50%
        );

    offset-path: border-box;
    offset-anchor: 100% 50%;

    -webkit-animation:
        fhs-hot-journey
        var(--speed)
        infinite
        linear;

    animation:
        fhs-hot-journey
        var(--speed)
        infinite
        linear;

    position: absolute;

    pointer-events: none;

    z-index: 10;
}



/* ==========================================================
   COVER THE INTERIOR
   ========================================================== */

.fhs-assessment .fhs-hot-cover {
    position: absolute !important;

    /*
     * Leave only a very small area around the border
     * available for the trail.
     */
    left: 2px !important;
    right: 2px !important;
    top: 2px !important;
    bottom: 2px !important;

    background: #DCE600 !important;

    border-radius: 6px !important;

    z-index: 15 !important;

    pointer-events: none !important;
}


/* Put text above everything */

.fhs-assessment .fhs-hot-stuff > span:first-child {
    z-index: 20 !important;
}


/* ==========================================================
   JOURNEY
   ========================================================== */

@keyframes fhs-hot-journey {

    from {
        offset-distance: 0%;
    }

    to {
        offset-distance: 100%;
    }

}



/* =========================================================
   SLIDER BLOCK
   ========================================================= */

/* ================================
   FHS RANGE SLIDER
   ================================ */

.fhs-range-container {
    position: relative;
    width: 100%;
    overflow: visible !important;
}

.fhs-range-container input[type="range"].slider {
    --slider-percent: 0%;

    position: relative !important;
    display: block !important;

    width: 100% !important;
    height: 8px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    outline: none !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    background:
        linear-gradient(
            to right,
            #D95359 0%,
            #D95359 var(--slider-percent),
            #252525 var(--slider-percent),
            #252525 100%
        ) !important;

    cursor: pointer;
    pointer-events: auto !important;

    z-index: 2;
}


/* ================================
   CHROME / EDGE TRACK
   ================================ */

.fhs-range-container input[type="range"].slider::-webkit-slider-runnable-track {
    height: 8px;

    border: 0;
    border-radius: 0;

    background: transparent;
}


/* ================================
   CHROME / EDGE THUMB
   ================================ */

/*
 * Make the native thumb INVISIBLE.
 *
 * We don't want the browser's white/grey
 * circle to appear.
 *
 * But keep a large invisible hit area
 * so dragging remains easy.
 */

.fhs-range-container input[type="range"].slider::-webkit-slider-thumb {

    -webkit-appearance: none;
    appearance: none;

    width: 60px;
    height: 60px;

    margin-top: -26px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
}


/* ================================
   FIREFOX TRACK
   ================================ */

.fhs-range-container input[type="range"].slider::-moz-range-track {
    height: 8px;

    border: 0;
    border-radius: 0;

    background: transparent;
}


/* ================================
   FIREFOX THUMB
   ================================ */

.fhs-range-container input[type="range"].slider::-moz-range-thumb {

    width: 60px;
    height: 60px;

    border: 0;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
}


/* ================================
   YELLOW VALUE CIRCLE
   ================================ */

.fhs-range-container .slider-value {
    position: absolute;
    top: 50%;

    width: 60px;
    height: 60px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    border-radius: 50%;

    background: #E6F000;

    /* Base border */
        border: 3px solid #E6F000 !important;

    color: #000;

    font-size: 20px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;

    z-index: 5;

    pointer-events: none;

    /* Important */
    overflow: visible;
}


/* ==========================================
   MOVING TRAIL AROUND THE CIRCLE
   ========================================== */

.fhs-range-container .slider-value::before {
    content: "";

    position: absolute;

    inset: -6px;

    border-radius: 50%;

    /*
     * Most of the border is transparent.
     * The visible part is the moving trail.
     */
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 285deg,
        #ef483e 315deg,
        #ef483e 340deg,
        transparent 360deg
    );

    animation: fhsCircleTrail 3.5s linear infinite;

    z-index: -1;

    pointer-events: none;

    /*
     * Cut out the middle so only
     * the circular border remains.
     */
    -webkit-mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - 4px),
            #000 calc(100% - 2px)
        );

    mask:
        radial-gradient(
            farthest-side,
            transparent calc(100% - 4px),
            #000 calc(100% - 2px)
        );
}


/* ==========================================
   SOFT GLOW
   ========================================== */

.fhs-range-container .slider-value::after {
    content: "";

    position: absolute;

    inset: -3px;

    border-radius: 50%;

    background: transparent;

    box-shadow:
        0 0 6px rgba(239, 72, 62, 0.7);

    animation: fhsCircleGlow 2.5s linear infinite;

    z-index: -2;

    pointer-events: none;
}


/* ==========================================
   ANIMATION
   ========================================== */

@keyframes fhsCircleTrail {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


@keyframes fhsCircleGlow {

    from {
        transform: rotate(0deg);
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    to {
        transform: rotate(360deg);
        opacity: 0.5;
    }
}



/* =========================================================
   SUBMIT
   ========================================================= */

.fhs-assessment .fhs-submit {
    display: flex;
    align-items: center;

    gap: 35px;

    margin-top: 45px;
}


.fhs-assessment .fhs-submit-arrow {
    position: relative;

    width: 88px;
    height: 88px;

    flex: 0 0 88px;

    border-radius: 50%;

    background: #ff4038;

    box-shadow: 7px 8px 10px rgba(0, 0, 0, .18);
}


.fhs-assessment .fhs-submit-arrow span::before {
    content: "";

    position: absolute;

    left: 25px;
    top: 37px;

    width: 38px;
    height: 14px;

    background: #fff;
}


.fhs-assessment .fhs-submit-arrow span::after {
    content: "";

    position: absolute;

    left: 51px;
    top: 27px;

    width: 0;
    height: 0;

    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 27px solid #fff;
}


.fhs-assessment .fhs-submit-button {
    width: 108px !important;
    height: 49px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #dce615 !important;

    border: 1px solid #333 !important;
    border-radius: 4px !important;

    color: #111 !important;

    font-size: 17px !important;
    font-weight: 700 !important;

    cursor: pointer;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .fhs-assessment .fhs-row {
        grid-template-columns: 1fr;
        gap: 16px;

        margin-bottom: 16px;
    }


    .fhs-assessment .fhs-slider-block {
        margin-bottom: 22px;
    }


    .fhs-assessment .fhs-slider-value {
        width: 54px;
        height: 54px;

        font-size: 16px;
    }


    .fhs-assessment .fhs-submit {
        gap: 25px;
    }


    .fhs-assessment .fhs-submit-arrow {
        width: 75px;
        height: 75px;

        flex-basis: 75px;
    }
}