/*popup*/
.festival-popup {
    display: none;
}

.festival-popup-inner {
    width: 500px;
    height: 338px;
    border-radius: 30px;
    /*width: 768px;*/
    /*height: 267px;*/
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    background: url(https://yuccahq.com/wp-content/themes/child-theme/assets/images/popup/festival-bg.png) no-repeat center;
    background-size: cover;
}

.festival-popup-inner p.text {
    color: #fff;
    text-align: center;
    font-size: 16px;
    max-width: 260px;
    margin: 0 auto;
    line-height: 26px;
}

div#gform_wrapper_16 .gfield_description {
    color: #fff;
    text-align: center !important;
    font-size: 15px;
    max-width: 350px;
    margin: 0 auto 0 !important;
    line-height: 22px;
}

.festival-popup-inner p.text span {
    color: #e0c972;
    font-size: 15px;
}

/* popup display */
#festival-popup {
    position: fixed;
    /*width: 100%;*/
    visibility: hidden;
    z-index: 100002;
    top: 0;
    right: 0;
    opacity: 0;
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    -webkit-transition: -webkit-transform 0.2s, opacity 0.2s, visibility 0s 0.2s;
    transition: transform 0.2s, opacity 0.2s, visibility 0s 0.2s;
    direction: rtl;
}

.show-popup {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5);
}

.appeared {
    visibility: visible !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: all 0.4s ease 0s, opacity 0.4s ease 0s !important;
}

#popup_close {
    position: absolute;
    /*margin: 40px 7px 0 0;*/
    margin: 7px 7px 0 0;
    width: 26px;
    height: 26px;
    cursor: pointer;
    background: #332e29;
    border-radius: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
}

div#popup_close::after {
    content: 'x';
    color: #fff;
    font-size: 20px;
    position: absolute;
    left: 9px;
}

.hide-popup {
    visibility: hidden !important;
    opacity: 0 !important;
    transform: scale(0.5) !important;
    transition: all 0.2s ease 0s, opacity 0.2s ease 0s, visibility 0s ease 0.2s !important;
}

#popup_close:hover {
    opacity: 0.8;
}

@media only screen and (max-width: 768px) {
    .festival-popup-inner {
        width: 300px;
        height: 379px;
        /*border-radius: 30px;*/
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex-direction: column;
        background: url(https://yuccahq.com/wp-content/themes/child-theme/assets/images/popup/festival-bg-m.png) no-repeat center;
        /*background: url(https://yuccahq.com/wp-content/themes/child-theme/assets/images/popup/exhibition-m.jpg) no-repeat center;*/
        background-size: cover;
    }

    .festival-popup-inner p.text {
        font-size: 14px !important;
    }

    div#gform_wrapper_16 .gfield_description {
        text-align: center;
        margin: 0 0 10px;
    }

    div#gform_confirmation_wrapper_16 {
        margin: 90px auto;
    }
}

/*gform 16*/
div#gform_wrapper_16 {
    margin: 0 0 15px !important;
    padding: 0 !important;
}

div#gform_wrapper_16 .gform_footer.top_label {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

input#input_16_4 {
    width: 430px;
    border-radius: 6px;
    background: #d7d7d7;
    height: 40px;
    margin: 0 !important;
    padding: 0;
    color: #000;
    border: none;
    text-indent: 30px;
    font-size: 14px;
}

input#gform_submit_button_16 {
    margin: 0 !important;
    width: 152px !important;
    height: 38px !important;
    border: none !important;
    color: #fff !important;
    font-size: 15px !important;
    border-radius: 30px !important;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#262626+0,d6b279+50,262626+100 */
    background: #262626; /* Old browsers */
    background: -moz-linear-gradient(left, #262626 0%, #d6b279 50%, #262626 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, #262626 0%, #d6b279 50%, #262626 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, #262626 0%, #d6b279 50%, #262626 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#262626', endColorstr='#262626', GradientType=1); /* IE6-9 */
}

li#field_16_4 {
    padding: 0 !important;
    margin: -20px 0 0 !important;
}

div#gform_confirmation_wrapper_16 {
    color: #fff;
    font-size: 13px;
    margin: 60px auto;
}

div#gform_wrapper_16 .ginput_container.ginput_container_text {
    position: relative;
    margin: 10px 0;
}

div#gform_wrapper_16 .ginput_container.ginput_container_text:after {
    content: '';
    background: url(https://yuccahq.com/wp-content/themes/child-theme/images/form-phone-icon.png) no-repeat center;
    width: 14px;
    position: absolute;
    right: 10px;
    z-index: 1000000000000;
    height: 27px;
    top: 6px;
}

div#gform_wrapper_16 .gform_ajax_spinner {
    padding-left: 0 !important;
    margin-right: 20px !important;
}

@media only screen and (max-width: 768px) {
    div#gform_wrapper_16 {
        width: 270px;
    }

    input#input_16_4 {
        width: 270px;
        font-size: 13px;
    }
}

div#gform_wrapper_16 div.validation_error {
    font-size: 11px;
    margin: 0;
    border: none;
}

div#validation_message_16_4 {
    font-size: 12px !important;
    height: 20px;
    padding: 0;
    font-weight: normal;
}

div#gform_wrapper_16 .gfield_error {
    background: none !important;
    max-width: 100% !important;
    border: none !important;
}

div#gform_wrapper_16 .validation_error {
    display: none;
}

input#input_16_4.error {
    border: 1px solid red;
    color: red;
}

input#input_16_4.success {
    border: 1px solid green;
    color: green;
}

input#gform_submit_button_16.error,
input#gform_submit_button_16.disabled {
    opacity: 0.5;
}