/* =========================================================
   JOIN & SPIN PAGE
   /app/assets/css/join-and-spin.css
========================================================= */


/* =========================================================
   SPIN CHOICE HEADING
========================================================= */

.spin-choice-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-top: 26px;
    margin-bottom: 16px;
}


.spin-step-number {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #159447;
    color: #ffffff;

    font-size: 21px;
    font-weight: 800;

    box-shadow:
        0 5px 12px rgba(21, 148, 71, 0.20);
}


.spin-choice-heading h3 {
    margin: 0 0 2px;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;

    color: #17213b;
}


.spin-choice-heading p {
    margin: 0;

    font-size: 14px;
    color: #667085;
}



/* =========================================================
   CHOICE LIST
========================================================= */

.spin-choice-list {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-bottom: 24px;
}



/* =========================================================
   CHOICE CARD
========================================================= */

.spin-choice-card {
    position: relative;

    display: flex;
    align-items: flex-start;

    width: 100%;

    padding: 16px;

    background: #ffffff;

    border: 1.5px solid #dce3e7;
    border-radius: 14px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}


.spin-choice-card:hover {
    border-color: #25a55b;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.07);
}


.spin-choice-card > input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}



/* =========================================================
   SELECTED CARD
========================================================= */

.spin-choice-card:has(input:checked) {
    border: 2px solid #159447;

    background:
        linear-gradient(
            135deg,
            #f7fff9 0%,
            #f0fff6 100%
        );

    box-shadow:
        0 7px 22px rgba(21, 148, 71, 0.13);
}



/* =========================================================
   CUSTOM RADIO
========================================================= */

.spin-radio {
    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 3px;
    margin-right: 13px;

    border: 2px solid #aab4bd;
    border-radius: 50%;

    background: #ffffff;

    transition: 0.2s ease;
}


.spin-radio span {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: transparent;

    transition: 0.2s ease;
}


.spin-choice-card:has(input:checked) .spin-radio {
    border-color: #159447;
}


.spin-choice-card:has(input:checked) .spin-radio span {
    background: #159447;
}



/* =========================================================
   WHEEL OPTION
========================================================= */

.spin-choice-wheel {
    padding: 18px 16px 16px;
}


.spin-choice-content {
    flex: 1;
    min-width: 0;
}


.spin-choice-top {
    display: flex;
    align-items: center;

    min-height: 70px;

    gap: 12px;
}


.spin-gift-symbol {
    flex: 0 0 45px;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 37px;
    color: #159447;
}


.spin-choice-title {
    flex: 1;

    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;

    color: #17213b;
}


.spin-choice-title strong {
    display: block;

    font-size: 18px;
    font-weight: 850;

    color: #17213b;
}



/* =========================================================
   MINI FORTUNE WHEEL
========================================================= */

.fortune-wheel-mini {
    position: relative;

    flex: 0 0 76px;

    width: 76px;
    height: 76px;
}


.wheel-circle {
    position: absolute;

    inset: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    border: 5px solid #f6a400;

    background:
        conic-gradient(
            #e83b35 0deg 45deg,
            #f6a800 45deg 90deg,
            #278b4d 90deg 135deg,
            #2487ce 135deg 180deg,
            #ef4343 180deg 225deg,
            #f4b018 225deg 270deg,
            #33a05e 270deg 315deg,
            #3288d1 315deg 360deg
        );

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.15);
}


.wheel-circle::before {
    content: "";

    position: absolute;

    width: 43px;
    height: 43px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.18);
}


.wheel-circle span {
    position: relative;
    z-index: 2;

    text-align: center;

    font-size: 11px;
    line-height: 1;
    font-weight: 900;

    color: #17213b;
}


.wheel-circle small {
    display: block;

    margin-top: 2px;

    font-size: 8px;
    font-weight: 800;
}


.wheel-pointer {
    position: absolute;

    z-index: 4;

    top: -9px;
    left: 50%;

    transform: translateX(-50%);

    font-size: 22px;
    line-height: 1;

    color: #f6a400;

    text-shadow:
        0 2px 2px rgba(0, 0, 0, 0.15);
}



/* =========================================================
   PRIZES AREA
========================================================= */

.spin-prizes {
    margin-top: 12px;
    padding-top: 13px;

    border-top: 1px solid #e3ebe6;
}


.spin-prizes-label {
    margin-bottom: 13px;

    font-size: 14px;
    font-weight: 800;

    color: #17213b;
}


.spin-prize-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 8px;
}


.spin-prize {
    min-width: 0;

    text-align: center;
}


.prize-icon {
    width: 100%;
    max-width: 66px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 7px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 850;

    box-shadow:
        0 3px 7px rgba(0, 0, 0, 0.12);
}


.spin-prize span {
    display: block;

    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;

    color: #263246;
}


.spin-prize small {
    display: block;

    margin-top: 2px;

    font-size: 10px;
    line-height: 1.2;

    color: #e53b2e;
    font-weight: 750;
}



/* =========================================================
   PRIZE COLOURS
========================================================= */

.credit-prize {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #5eb619,
            #218a26
        );
}


.ntuc-prize {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #f32934,
            #d51420
        );

    font-size: 16px;
    font-weight: 900;
    font-style: italic;
}


.movie-prize {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #f7a300,
            #ef6c00
        );

    font-size: 20px;
}


.grab-prize {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #33a96a,
            #13884b
        );

    font-size: 15px;
}



/* =========================================================
   NO GIFT OPTION
========================================================= */

.spin-choice-no-gift {
    align-items: center;

    min-height: 90px;
}


.spin-choice-no-gift .spin-radio {
    margin-top: 0;
}


.no-gift-symbol {
    flex: 0 0 47px;

    width: 47px;
    height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 14px;

    font-size: 41px;

    color: #172f3e;
}


.no-gift-copy {
    display: flex;
    flex-direction: column;

    gap: 3px;
}


.no-gift-copy strong {
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;

    color: #17213b;
}


.no-gift-copy span {
    font-size: 14px;
    line-height: 1.4;

    color: #657080;
}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .spin-choice-heading {
        gap: 10px;

        margin-top: 22px;
    }


    .spin-step-number {
        flex-basis: 38px;

        width: 38px;
        height: 38px;

        font-size: 19px;
    }


    .spin-choice-heading h3 {
        font-size: 18px;
    }


    .spin-choice-heading p {
        font-size: 13px;
    }


    .spin-choice-card {
        padding: 14px 12px;
    }


    .spin-radio {
        flex-basis: 22px;

        width: 22px;
        height: 22px;

        margin-right: 10px;
    }


    .spin-radio span {
        width: 10px;
        height: 10px;
    }


    .spin-choice-top {
        gap: 8px;
    }


    .spin-gift-symbol {
        flex-basis: 37px;

        width: 37px;
        height: 37px;

        font-size: 31px;
    }


    .spin-choice-title {
        font-size: 15px;
    }


    .spin-choice-title strong {
        font-size: 16px;
    }


    .fortune-wheel-mini {
        flex-basis: 62px;

        width: 62px;
        height: 62px;
    }


    .wheel-circle {
        border-width: 4px;
    }


    .wheel-circle::before {
        width: 34px;
        height: 34px;
    }


    .wheel-circle span {
        font-size: 9px;
    }


    .wheel-circle small {
        font-size: 7px;
    }


    .wheel-pointer {
        top: -7px;

        font-size: 18px;
    }


    .spin-prize-grid {
        gap: 5px;
    }


    .prize-icon {
        max-width: 52px;
        height: 33px;

        font-size: 11px;
    }


    .spin-prize span {
        font-size: 9px;
    }


    .spin-prize small {
        font-size: 8px;
    }


    .ntuc-prize {
        font-size: 13px;
    }


    .movie-prize {
        font-size: 17px;
    }


    .grab-prize {
        font-size: 12px;
    }


    .spin-choice-no-gift {
        min-height: 80px;
    }


    .no-gift-symbol {
        flex-basis: 38px;

        width: 38px;
        height: 38px;

        margin-right: 10px;

        font-size: 34px;
    }


    .no-gift-copy strong {
        font-size: 15px;
    }


    .no-gift-copy span {
        font-size: 12px;
    }

}



/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .spin-choice-card {
        padding-left: 10px;
        padding-right: 10px;
    }


    .fortune-wheel-mini {
        flex-basis: 56px;

        width: 56px;
        height: 56px;
    }


    .spin-prize span {
        font-size: 8.5px;
    }


    .spin-choice-title {
        font-size: 14px;
    }


    .spin-choice-title strong {
        font-size: 15px;
    }

}


/* =========================================================
   STEP 1 CONSENT
========================================================= */

.step1-consent-box {
    margin: 20px 0 22px;

    padding: 14px 16px;

    background: #f8faf9;

    border: 1px solid #dfe7e2;
    border-radius: 12px;
}


.step1-consent-box .consent-row {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 0;

    cursor: pointer;
}


.step1-consent-box .consent-row input {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin: 3px 0 0;

    accent-color: #159447;

    cursor: pointer;
}


.step1-consent-box .consent-row span {
    flex: 1;

    font-size: 11.5px;
    line-height: 1.55;

    color: #667085;
}


.step1-consent-box .consent-row a {
    color: #159447;

    font-weight: 600;

    text-decoration: none;
}


.step1-consent-box .consent-row a:hover {
    text-decoration: underline;
}


@media (max-width: 600px) {

    .step1-consent-box {
        padding: 12px 13px;

        margin-top: 17px;
        margin-bottom: 18px;
    }


    .step1-consent-box .consent-row {
        gap: 9px;
    }


    .step1-consent-box .consent-row input {
        width: 16px;
        height: 16px;
    }


    .step1-consent-box .consent-row span {
        font-size: 10.5px;
        line-height: 1.5;
    }

}