* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

#spinWheelOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

    #spinWheelOverlay.sw-active {
        display: flex;
    }

#swModal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 780px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    position: relative;
    align-items: center;
    margin: auto;
}

#swClose {
    position: absolute;
    top: -14px;
    right: -14px;
    background: #C0191C;
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    min-width: 44px;
    min-height: 44px;
}

/* ── Left panel ── */
#swLeft {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sw-special-label {
    color: #C0191C;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.sw-subtitle {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.4;
}

    .sw-subtitle strong {
        color: #C0191C;
        font-weight: 900;
    }

.sw-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 4px;
}

.sw-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .sw-field label {
        font-size: 12px;
        font-weight: 500;
        color: #333;
    }

.sw-phone-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 8px;
}

.sw-flag-select {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
    height: 44px;
    cursor: pointer;
}

.sw-field input {
    height: 44px;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 16px;
    color: #1a1a1a;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

    .sw-field input:focus {
        border-color: #C0191C;
        box-shadow: 0 0 0 3px rgba(192,25,28,0.12);
    }

    .sw-field input::placeholder {
        color: #aaa;
    }

    /* ── Existing form validation styling ── */
    /* Added only for form validation */
    .sw-field input.input-error {
        border-color: #C0191C;
        box-shadow: 0 0 0 3px rgba(192,25,28,0.12);
    }

.error-message {
    min-height: 14px;
    font-size: 11px;
    color: #C0191C;
    line-height: 1.4;
    display: none;
}

.error-message-show {
    display: block !important;
}

.sw-form-error {
    display: none;
    font-size: 13px;
    font-weight: 600;
    color: #C0191C;
    background: #FBEAEA;
    border: 1px solid #F0C4C4;
    border-radius: 6px;
    padding: 10px 12px;
    line-height: 1.4;
}

    .sw-form-error.sw-show {
        display: block;
    }

#swCTA {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    background-color: #C0191C;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 6px;
    box-shadow: 0 4px 14px rgba(192,25,28,0.4);
    transition: background-color 0.2s, transform 0.15s;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

    #swCTA:hover {
        background-color: #A01416;
    }

    #swCTA:active {
        transform: scale(0.98);
        background-color: #A01416;
    }

    #swCTA:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }

.sw-phone-error {
    display: none;
    font-size: 11px;
    color: #C0191C;
    margin-top: 3px;
}

    .sw-phone-error.sw-visible {
        display: block;
    }

.sw-offer-terms {
    font-size: 11px;
    color: #888780;
    line-height: 1.5;
}

    .sw-offer-terms a {
        color: #888780;
        text-decoration: underline;
    }

.sw-legal-note {
    font-size: 11px;
    color: #888780;
    line-height: 1.6;
}

    .sw-legal-note a {
        color: #C0191C;
        text-decoration: underline;
    }

/* ── Right panel ── */
#swRight {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sw-wheel-wrap {
    position: relative;
    width: 320px;
    height: 320px;
}

.sw-wheel-pointer {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 22px solid #C0191C;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

#swCanvas {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    display: block;
    cursor: pointer;
    opacity: 1;
    touch-action: manipulation;
}

/* ── Confetti ── */
#swConfetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100000;
}


/* ── Win screen ── */
#swWinScreen {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.97);
    z-index: 20;
    border-radius: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px 20px 40px;
    text-align: center;
}

    #swWinScreen.sw-show {
        display: flex;
    }

    #swWinScreen h2 {
        font-size: 24px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
    }

        #swWinScreen h2 span {
            color: #C0191C;
        }

.sw-win-redeem {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 14px;
    color: #333;
}

    .sw-win-redeem strong {
        color: #C0191C;
        font-size: 15px;
    }

.sw-win-valid {
    color: #C0191C;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.sw-timer-box {
    background-color: #C0191C;
    border-radius: 10px;
    padding: 14px 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
}

.sw-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sw-num {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    min-width: 44px;
    text-align: center;
    color: #fff;
}

.sw-lbl {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.9;
}

.sw-timer-sep {
    font-size: 26px;
    font-weight: 700;
    margin-top: -4px;
    color: #fff;
}

.sw-win-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #C0191C;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    min-width: 44px;
    min-height: 44px;
}

.sw-win-smallprint {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 10px;
    color: #aaa;
    text-align: right;
}

/* ══════════════════════════════
           MOBILE — single column, wheel on top
        ══════════════════════════════ */
@@media (max-width: 640px) {
    #spinWheelOverlay {
        align-items: flex-start;
        padding: 8px;
    }

    #swModal {
        grid-template-columns: 1fr;
        padding: 20px 16px 24px;
        gap: 20px;
        border-radius: 16px;
        margin: 8px auto;
    }

    #swRight {
        order: -1;
    }

    .sw-wheel-wrap {
        width: 260px;
        height: 260px;
        margin: 0 auto;
    }

    #swCanvas {
        width: 260px;
        height: 260px;
    }

    .sw-special-label {
        font-size: 20px;
        text-align: center;
    }

    .sw-subtitle {
        text-align: center;
        font-size: 13px;
    }

    #swCTA {
        height: 52px;
        font-size: 16px;
    }

    .sw-win-redeem {
        white-space: normal;
        font-size: 13px;
    }

    .sw-timer-box {
        padding: 12px 16px;
        gap: 12px;
    }

    .sw-num {
        font-size: 26px;
    }

    #swClose {
        top: 8px;
        right: 8px;
        position: fixed;
    }
}

@@media (max-width: 360px) {
    .sw-wheel-wrap {
        width: 220px;
        height: 220px;
    }

    #swCanvas {
        width: 220px;
        height: 220px;
    }
}
