/* ===============================
   FORTUNE POPUP FORM DESIGN
================================ */
#wpadminbar {
    z-index: -999;
    display: none !important;
}

p.gform_required_legend {
    display: none;
}


/* Wrapper */
.fortune-popup-form {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}



/* Inner Box */
.fortune-popup-inner {
    position: relative;
    background: #fdfef8;
    border: 2px solid #95ad11;
    border-radius: 28px;
    padding: 40px 45px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Content */
.fortune-popup-content {
    position: relative;
    z-index: 2;
}

/* Heading */
.fortune-popup-content h2 {
    text-align: center;
    font-size: 30px;
    color: #6d6666;
    font-weight: 500;
    margin-bottom: 10px;
}

.fortune-popup-content h2 strong {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #9eb809;
}

/* Corner Images */
.fortune-popup-img {
    position: absolute;
    pointer-events: none;
}

.fortune-popup-top-right {
    top: -20px;
    right: -20px;
    width: 150px;
}

.fortune-popup-bottom-left {
    bottom: -25px;
    left: -20px;
    width: 150px;
}

/* Gravity Form Reset */
.fortune-popup-form .gform_wrapper {
    margin: 0;
}

.fortune-popup-form .gform_fields {
    gap: 16px;
}

/* Labels */
.fortune-popup-form .gfield_label {
    color: #6d6666;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* Input Fields */
.fortune-popup-form input[type="text"],
.fortune-popup-form input[type="email"],
.fortune-popup-form input[type="tel"],
.fortune-popup-form textarea {
    width: 100%;
    background: #f4fbe5;
    border: 1px solid rgba(149, 173, 17, 0.3);
    border-radius: 14px;
    height: 52px;
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
}

/* Focus */
.fortune-popup-form input:focus,
.fortune-popup-form textarea:focus {
    border-color: #95ad11;
    box-shadow: 0 0 0 2px rgba(158, 184, 9, 0.15);
}

/* Checkbox */
.fortune-popup-form input[type="checkbox"] {
    accent-color: #9eb809;
}

.fortune-popup-form .gfield_consent_label {
    color: #6d6666;
    font-size: 14px;
}

/* Button */
.fortune-popup-form .gform_footer {
    margin-top: 15px;
}

.fortune-popup-form .gform_button {
    width: 100%;
    background: #9eb809;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* Button Hover */
.fortune-popup-form .gform_button:hover {
    background: #8ca307;
    transform: translateY(-1px);
}

/* Error */
.fortune-popup-form .validation_message {
    color: red;
    font-size: 12px;
}

/* Success Message */
.fortune-popup-form .gform_confirmation_message {
    background: #f4fbe5;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    color: #6d6666;
}

/* ===============================
   MOBILE
================================ */
/* Only small-height mobile devices like iPhone SE */
@media (max-width: 390px) and (max-height: 700px) {

    .fortune-popup-inner {
        padding: 25px 20px 60px 20px !important;
        border-radius: 20px;
    }

    .fortune-popup-content h2 {
        font-size: 24px;
        line-height: 1.15;
        margin-bottom: 14px;
    }

    .fortune-popup-content h2 strong {
        font-size: 28px;
        line-height: 1.15;
    }

    .fortune-popup-form .gform_fields {
        gap: 10px;
    }

    .fortune-popup-form .gfield_label {
        font-size: 15px;
        margin-bottom: 5px;
    }

    div#popmake-12758 {
        transform: scale(0.8);
        margin: 0 auto;
        left: 0 !important;
        top: 0 !important;
    }

    .fortune-popup-form input[type="text"],
    .fortune-popup-form input[type="email"],
    .fortune-popup-form input[type="tel"],
    .fortune-popup-form textarea {
        height: 46px;
        min-height: 46px;
        font-size: 15px;
    }

    .fortune-popup-form .gform_button {
        padding: 13px 18px;
        font-size: 16px;
        border-radius: 14px;
    }

    .fortune-popup-form .gfield_description {
        display: none;
    }

    .fortune-popup-top-right {
        width: 90px;
        top: -4px;
        right: -8px;
    }

    .fortune-popup-bottom-left {
        width: 85px;
        bottom: -22px;
        left: -22px;
    }
}

@media (max-width: 767px) {

    .fortune-popup-inner {
        padding: 60px 20px;
        border-radius: 20px;
    }

    .fortune-popup-content h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .fortune-popup-content h2 strong {
        font-size: 28px;
    }

    .fortune-popup-top-right {
        width: 100px;
    }

    .fortune-popup-bottom-left {
        width: 100px;
        bottom: 0px;
        left: 0px;
    }

    .fortune-popup-form input {
        height: auto;
    }

    .fortune-popup-form .gform_button {
        font-size: 16px;
        padding: 14px;
        height: auto !important;
    }

    .fortune-popup-form .gform_wrapper.gravity-theme input:not([type=radio]):not([type=checkbox]):not([type=image]):not([type=file]) {
        min-height: 45px !important;
    }
}