.challenges_lp {
    padding: 96px 0;
}

.challenge-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 120px 20px; */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 32px;
    background: #F5F5F5;
    padding: 32px;
}

h2.challenges_lp-title {
    color: var(--Pure-Primary-Forest-Green, #114226);
    font-family: "Work Sans";
    font-size: 42px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -1.68px;
    margin-bottom: 32px;
}

p.challenges_lp-subtitle {
    color: #000;
    font-family: "Work Sans";
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    margin-bottom: 32px;
    opacity: 0.8;
}

.challenge-step {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 32px;
    align-self: stretch;
    align-items: center;
    justify-content: space-between;
}

.challenge-step:last-child {
    border-bottom: none;
}

.chalstepLeft {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #114226;
    border-radius: 50%;
    font-weight: normal;
    font-size: 27px;
    color: #114226;
}

.challenge-step h3 {
    margin: 0;
    color: #171717;
    font-family: "Work Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -1.44px;
}

.stepsdesc {
    gap: 16px;
    display: flex;
    flex-direction: column;
}

.step-subtitle {
    margin: 0;
    color: #000;
    font-family: "Work Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

/* Step 1: Challenge Options */
.challenge-options {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.challenge-option input {
    display: none;
}

.option-card {
    padding: 16px 24px;
    /* border: 2px solid #ddd; */
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFF;
    color: #114226;
}

.challenge-option input:checked+.option-card {
    background: #114226;
    color: #00FF6A;
    /* border-color: #00ff4d; */
}

.option-card:hover {
    border-color: #00FF6A;
}

.option-name {
    margin-bottom: 10px;
    font-family: 'CCSmash', sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    text-transform: uppercase;
}

.option-duration {
    font-family: "Work Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    text-transform: uppercase;
    letter-spacing: -0.96px;
}

/* Step 2: Stake Selector */
.stake-selector {
    align-items: center;
    position: relative;
    display: flex;
    flex: 1 0 0;
    margin: auto;
    width: 87%;
}

.slider-wrapper {
    width: 100%;
}

#stake-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#stake-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1d5c3a;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#stake-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1d5c3a;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stake-display {
    text-align: right;
    margin-top: 15px;
    font-size: 20px;
    font-weight: 600;
}

.stake-amount {
    background: #1d5c3a;
    color: #00ff4d;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

/* Step 3: Multiplier Options */
.multiplier-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.multiplier-option input {
    display: none;
}

.multiplier-btn {
    padding: 30px 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 24px;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.multiplier-option input:checked+.multiplier-btn {
    background: #1d5c3a;
    color: #00ff4d;
    border-color: #00ff4d;
}

.multiplier-btn:hover {
    border-color: #00ff4d;
}

/* Step 4: Rules Display */
.rules-display {
    display: flex;
    gap: 16px;
    align-items: stretch;
    justify-content: center;

}

.rule-item {
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1 0 0;
    justify-content: space-between;
    height: 137px;
}

.rule-grey {
    background: #EBEBEB;

}

button#go-button span {
    color: #114226;
    text-align: center;
    font-family: CCSmash;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -1.68px;
}


button#go-button {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 16px;
    flex: 1;
}

.rule-label {
    color: #171717;
    text-align: left;
    font-family: "Work Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -1.44px;
}

.rule-value {
    color: #2DBA69;
    font-family: "Work Sans";
    text-align: left;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    /* 26.4px */
}

.rule-allocations .rule-value {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #000;
    font-size: 15px;
    font-weight: 400 !important;
}

.rule-allocations .rule-highlight {
    color: #2DBA69;
    font-weight: 600;
}

.go-button {
    background: #00FF6A;
    color: #114226;
    border: none;
    padding: 20px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
}

.go-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 255, 77, 0.3);
}

.go-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.arrow {
    font-size: 24px;
}

@media (max-width: 768px) {
    .challenge-options {
        grid-template-columns: 1fr;
    }

    .option-name {
        font-size: 18px;
    }

    .go-button {
        font-size: 18px;
        padding: 15px 20px;
    }

    .rule-allocations .rule-value {
        font-size: 12px;
        gap: 5px;
    }
}

/* Hide default slider */
input[type="range"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    border-radius: 3px;
    background: #FFF;
    outline: none;
    cursor: pointer;
    height: 8px;
    border: 0;
}

/* Webkit thumb */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #ddd;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    border-color: #999;
}

input[type="range"]::-webkit-slider-thumb:active {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Firefox thumb */
input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #ddd;
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    border-color: #999;
}

input[type="range"]::-moz-range-thumb:active {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
}

input[type="range"]::-moz-range-progress {
    background: #e8e8e8;
    border-radius: 3px;
    height: 6px;
}

/* Value badge - Green dollar amount - Overlapping with thumb */
.value-display {
    position: absolute;
    top: 50%;
    left: var(--thumb-position);
    transform: translate(-50%, -50%);
    pointer-events: auto;
    z-index: 20;
    /* Increased z-index */
    cursor: grab;
    transition: left 0.1s ease;
}

.value-display:active {
    cursor: grabbing;
    transition: ease-in-out;
}

.value-badge {
    background: #114226;
    color: #00FF6A;
    padding: 10px 20px;
    border-radius: 8px;
    white-space: nowrap;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    user-select: none;
    transition: all 0.1s ease;
    text-align: center;
    font-family: "Work Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    letter-spacing: -1.44px;
    pointer-events: auto;
}

.value-badge:hover {
    box-shadow: 0 10px 28px rgba(27, 94, 63, 0.4);
    transform: scale(1.05);
}

.value-badge:active {
    transform: scale(0.98);
}

.value-badge::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: rgba(46, 221, 159, 0.3);
}

.value-badge::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background: rgba(46, 221, 159, 0.3);
}

.badge-content {
    margin: 0 8px;
}

.info {
    background: linear-gradient(135deg, #f8fafb 0%, #f0f4f8 100%);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-top: 50px;
}

.info p {
    margin: 8px 0;
}

.info strong {
    color: #1b5e3f;
    font-weight: 600;
}

.price-range {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.price-item {
    flex: 1;
    text-align: center;
}

.price-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: #1b5e3f;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.value-badge {
    animation: slideIn 0.3s ease-out;
}

.payout-mulitplier-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 0 0;
    align-self: stretch;
}

.payout-mulitplier {
    border-radius: 8px;
    background: var(--Pure-Greyscale-0, #FFF);
    display: flex;
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    color: var(--Pure-Primary-Neon-Green, #000);
    text-align: center;
    font-family: "Work Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
    /* 24px */
    letter-spacing: -1.44px;
    cursor: pointer;
}

.payout-mulitplier.active {
    border-radius: 8px;
    background: var(--Pure-Primary-Forest-Green, #114226);
    color: var(--Pure-Primary-Neon-Green, #00FF6A);
}

/* Hide the native slider thumb */
#rangeSlider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 0;
    height: 0;
    pointer-events: none;
}

#rangeSlider::-moz-range-thumb {
    width: 0;
    height: 0;
    border: none;
    pointer-events: none;
}

#rangeSlider::-ms-thumb {
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Ensure the slider track is still visible and clickable */
#rangeSlider {
    position: relative;
    z-index: 10;
}


.value-display:active {
    cursor: grabbing;
}

/* Dragging state for visual feedback */
.value-display.dragging {
    z-index: 25;
    transition: none;
    /* Remove transition during drag for smooth movement */
}

.value-display.dragging .value-badge {
    box-shadow: 0 15px 35px rgba(27, 94, 63, 0.6);
    transform: scale(1.1);
}

/* label.challenge-option:not(.Active):hover {
    opacity: 0.5;
} */

label.challenge-option:hover:has(input:not(:checked)) {

    opacity: 0.5;

}

@media (max-width: 1200px) {

    .challenge-step {
        grid-template-columns: 1fr;
    }

    .chalstepLeft {
        display: grid;
        grid-template-columns: 1fr 50fr;
        align-items: center;
    }

    .stepsdesc {
        align-items: flex-start;
        gap: 8px;
    }

    .step-number {
        width: 48px;
        height: 48px;
    }

    .challenge-options {
        display: grid;
        gap: 16px;
        grid-template-columns: 1fr 1fr;
    }

    label.challenge-option {
        display: block;
        width: 100%;
    }

    .rule-item {
        flex: 1 1 calc(33.333% - 16px);
        height: inherit;
        gap: 24px;
    }

    button#go-button {
        flex: 1 1 100%;
        flex-direction: row;
        padding: 16px;
        height: 64px;
        align-items: center;
        justify-content: center;
    }

    .rules-display {
        flex-wrap: wrap;
    }
}

@media (max-width:576px) {

    .stake-selector {

        width: 74%;
    }
}

@media (max-width: 500px) {

    .challenge-container {
        padding: 20px;
    }
}

@media (max-width: 380px) {
    .challenge-options {
        grid-template-columns: 1fr;
    }
}