/* estilos públicos para o formulário e roleta */
.sorteio-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sorteio-qr-box {
    text-align: center;
}
a.link-camp {
    margin: 15px auto;
    display: block;
    background: orange;
    width: fit-content;
    color: #fff;
    padding: 15px;
    border-radius: 50px;
}
a.link-camp:hover {
    color: #fff;
}
div#sorteio-form-wrap h3, div#sorteio-form-wrap label {
    color: #fff;
}
.sorteio-qr img { width: 300px; height: 300px; max-width: 100%; border-radius: 8px; }
.sorteio-play {
    padding: 0px;
}
form#sorteio-form {
    padding: 15px;
}
#sorteio-form label input[type="text"], #sorteio-form input[type="email"], #sorteio-form input[type="text"] { width: 100%; padding: 10px; box-sizing: border-box; border-radius: 6px; border: 1px solid #ddd; }
#wheel-area, .wheel-area { position: relative; display: flex; justify-content: center; align-items: center; margin: 20px 0; }
.wheel-area { width: 400px; height: 400px; margin: 0 auto; position: relative; }
#winner { font-size: 18px; padding: 12px; background: #f7f7f7; border-radius: 6px; margin-top: 12px; text-align:center; }

div#sorteio-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* pointer */
.wheel-pointer {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    font-size: 75px;
    color: #d33;
    text-shadow: 0 1px 0 #fff;
    pointer-events: none;
}
button#sorteio-spin, button#sorteio-exit {
    background: #056340;
    color: #fff;
    border: solid 4px #fff;
    padding: 5px 15px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    height: 55px;
    width: auto;
    margin-top: 30px;
}



/* spin button */
.wheel-controls { text-align: center; margin-top: 12px; }

/* result */
#sorteio-result { margin-top: 16px; text-align:center; font-size: 18px; font-weight: bold; color: #fff; }

/* small screens */
@media (max-width:700px) {
    .wheel-area { width: 320px; height: 320px; }
}

/* Modal overlay */
.sorteio-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.sorteio-modal-box {
    background: darkgreen;
    color: #fff;
    padding: 16px 20px;
    text-align: center;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.sorteio-modal-img { max-width: 85vw; max-height: 60vh; width: auto; height: auto; display: block; margin: 0 auto 12px; border-radius: 8px; }
.sorteio-modal-text { font-size: 22px; font-weight: 700; }

/* HTML/CSS Wheel */
.wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: solid 10px #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.wheel-item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 0 0;
    text-align: center;
    pointer-events: none;
    will-change: transform;
}
.wheel-item .label {
    display: inline-block;
    background: rgba(255,255,255,0.85);
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font: bold 12px/1 Arial, sans-serif;
    white-space: nowrap;
}
.wheel-item img {
    width: 115px !important;
    height: 115px !important;
    object-fit: contain;
    object-position: center;
}

.wheel-item.has-image img {
    width: 75px !important;
    height: 75px !important;
}


@media screen and (max-width: 800px) {
    .wheel-item img {
        width: 70px !important;
        height: 70px !important;
    }
    .wheel-item.has-image img {
        width: 50px !important;
        height: 50px !important;
    }
}

.wheel-item.has-image {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
}

/* spacing for stacked image + text on retries */
.wheel-item.has-image .label {
    /*margin-top: 6px;*/
}

form#sorteio-form label {
    width: 100%;
}

button#sorteio-submit {
    width: 100%;
    border: none;
    background: orange;
    color: #fff;
    padding: 5px;
    border-radius: 50px;
}

div#sorteio-qr-code img {
    background: #fff !important;
    display: block !important;
    padding: 10px;
    border-radius: 15px;
}

.sorteio-play {
    text-align: center;
}
.reg-camp a {
    color: orange;
}