/** Raffle Calendar **/

div.container:has(#vncraffles_calendar) {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

#vncraffles_calendar {
    position: relative;
    z-index: 1;
    background-image: url("../img/bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding-top: 1.5rem;
    padding-left: 13.75%;
    padding-right: 13.75%;
}

@media (max-width: 1023px) {
    #vncraffles_calendar {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

#vncraffles_calendar .door {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    cursor: default;
}

#vncraffles_calendar .door.clickable {
    cursor: pointer;
}

#vncraffles_calendar .door .door--background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #f00;
    z-index: 1;
    color: #fff;
    font-size: 1rem;
    line-height: 1.33;
    text-align: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top-left-radius: 23%;
    padding: 0.5rem;
}

#vncraffles_calendar .door .door--background div {
    width: 100%;
}

#vncraffles_calendar .door .door--background picture {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

#vncraffles_calendar .door:hover .door-front:not(.inactive) {
    transform: rotate3d(0, 1, 0, 35deg);
}

#vncraffles_calendar .door:hover .door-front.inactive {
    cursor: default;
}

#vncraffles_calendar .door:hover .door-front.open {
    transform: rotate3d(0, 1, 0, 80deg);
}

#vncraffles_calendar .door:hover .door-front.open-slightly {
    transform: rotate3d(0, 1, 0, 22.5deg);
}

#vncraffles_calendar .door .door-front {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    z-index: 2;
    box-shadow: #222222 -4px 0px 4px;
    transform-origin: top right;
    transition: transform 350ms ease-in;
    border-top-left-radius: 23%;
}

#vncraffles_calendar .door .door-front.open {
    transform: rotate3d(0, 1, 0, 80deg);
}

#vncraffles_calendar .door .door-front.open.open-slightly {
    transform: rotate3d(0, 1, 0, 80deg);
}

#vncraffles_calendar .door .door-front.open-slightly {
    transform: rotate3d(0, 1, 0, 22.5deg);
}

#vncraffles_calendar .door .door-front-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-top-left-radius: 23%;
    background: rgba(255, 255, 255, 0.2);
}

#vncraffles_calendar .door .door-front-number {
    background: #f00;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: #fff;
    line-height: 64px;
    font-size: 2rem;
    text-align: center;
    position: absolute;
    left: 24px;
    top: 24px;
    z-index: 2;
}

@media (max-width: 480px) {
    #vncraffles_calendar .door .door-front-number {
        width: 48px;
        height: 48px;
        line-height: 48px;
        left: 12px;
        top: 12px;
    }
}

/** Raffle Form **/
#raffle-form .input {
    padding-left: 0;
    padding-right: 0;
}

#raffle-form .input--checkbox {
    display: flex;
    align-items: start;
}

#raffle-form input[type="checkbox"] {
    flex-shrink: 0;
    margin-right: 24px;
}

#raffle-form input[type="checkbox"]:focus-visible {
    outline: 2px solid #006cb5;
    outline-offset: 2px;
}

#raffle-form .input--checkbox label {
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.375;
}

#raffle-form input + .vncraffles-input__error,
#raffle-form select + .vncraffles-input__error,
#raffle-form textarea + .vncraffles-input__error,
#raffle-form .input--checkbox + .vncraffles-input__error {
    margin-top: 0.5rem;
}

#raffle-form video {
    max-width: 100%;
    width: 100%;
    height: auto;
}

#raffle-form .media--cover {
    display: block;
    width: 100%;
}

#raffle-form .gradient-1 {
    padding-left: 0;
    padding-right: 0;
}

#raffle-form .bodytext {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.33333
}

#raffle-form .bodytext a {
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5rem;
    color: inherit;
    text-decoration: none;
}

#raffle-form .bodytext a:hover {
    text-decoration: underline;
}

#raffle-form .bodytext a::after {
    display: inline-block;
    content: '';
    width: 24px;
    height: 24px;
    margin-left: 8px;
    background-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2 12H22M22 12L15 5M22 12L15 19" stroke="%23006CB5" style="stroke:%23006CB5;stroke:color(display-p3 0.0000 0.4235 0.7098);stroke-opacity:1;" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-size: 100%;
}

#raffle-form .error-messages {
    display: none;
}

#raffle-form .form-group label {
    font-size: 0.875rem;
}

#raffle-form .form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#raffle-form .vncraffles-error {
    color: #c10806;
}

#raffle-form .vncraffles-field, #raffle-form .vncraffles-field.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
}

#raffle-form .vncraffles-field.flex-fieldset fieldset, #raffle-form .vncraffles-field.radio-group.flex-fieldset fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
}

#raffle-form .vncraffles-fieldwrap_type_radio > .input__label, #raffle-form .vncraffles-fieldwrap_type_check > .input__label {
    margin-bottom: 1rem;
}

#raffle-form .vncraffles-input__error {
    display: none;
    color: #c10806;
    text-align: left;
    font-size: 12px;
}

#raffle-form .vncraffles-disclaimer * {
    display: inline;
}

#raffle-form .vncraffles-textarea {
    resize: none;
}

ul.vncraffles-errors {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

ul.vncraffles-errors li {
    margin: 0;
    padding: 0;
    color: #c10806;
}

/** Raffle Modal **/
body.modal-open {
}

#raffle-modal {
    position: fixed;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    z-index: 1000;
}

#raffle-modal:before {
    background-color: rgba(0, 0, 0, 0.5019607843);
    content: "";
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

#raffle-modal.hide {
    display: none;
}

#raffle-modal-container {
    max-width: 920px;
    width: calc(100% - 4rem);
    overflow: auto;
    max-height: 90vh;
    z-index: 100;
    color: #fff;
    position: relative;
}

#raffle-modal-iframe {
    width: 100%;
    border: 0;
    overflow: hidden;
}

#raffle-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L22 22' stroke='%230078B9' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M2 22L22 2' stroke='%230078B9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-size: 24px;
    cursor: pointer;
    transform-origin: 50% 50%;
    transition: transform 50ms ease-in;
}

#raffle-modal-close:hover {
    transform: scale3d(1.2, 1.2, 1);
}

@media screen and (max-width: 767px) {
    #raffle-modal-container {
        width: 100%;
        height: 100vh;
        max-height: none;
        margin-top: 0;
        max-width: none;
    }
}

/** Raffle Teaser **/
div.container:has(.raffle-teaser) {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.raffle-teaser {
    color: #fff;
}

.raffle-teaser__left {
    position: relative;
}

.raffle-teaser__left .media--cover {
    display: block;
    width: 100%;
}

.raffle-teaser h1 {
    font-size: 1.5rem;
    color: #fff;
    font-style: italic;
    font-weight: 600;
    line-height: 1.375;
    margin-bottom: 1rem;
}

.raffle-teaser .bodytext {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.3;
}

.raffle-teaser .container-half {
    background: linear-gradient(90deg, #008600 0%, #006EBB 100%);
}

.raffle-teaser img.raffle-teaser__badge {
    height: auto;
    width: 138px;
    position: absolute;
    right: 1rem;
    bottom: 0;
    z-index: 1;
    transform: translate3d(0, 50%, 0) rotate3d(0, 0, 1, -15deg);
}

@media (min-width: 992px) {
    .raffle-teaser img.raffle-teaser__badge {
        width: 160px;
        bottom: unset;
        right: 0;
        top: 1rem;
        transform: translate3d(50%, 0, 0) rotate3d(0, 0, 1, -15deg);
    }
}

@media (min-width: 992px) {
    .raffle-teaser picture img {
        object-fit: cover;
        min-height: 100%;
    }
}

@media screen and (max-width: 1023px) {
    .raffle-teaser picture img {
        aspect-ratio: 16/9;
    }
}

/** Raffle confírmation **/
section.page-section--participate .bodytext {
    font-size: 1.125rem;
}
