/* Non-Critical Home Page Styles - Lazy Loaded */

/* Popup Styles */
input::-webkit-calendar-picker-indicator {
    display: none;
}

.popup-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.popup-container {
    display: none;
    position: fixed;
    width: 900px;
    height: 450px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -30%);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.popup-content {
    position: relative;
}

.popup-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.popup-content .popup-img-web {
    display: block;
}

.popup-content .popup-img-app {
    display: none;
}

.close-btn {
    position: fixed;
    top: calc(45% - 225px - 30px);
    right: calc(50% - 450px - 30px);
    cursor: pointer;
    z-index: 1001;
    border-radius: 50%;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
}

.close-btn svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(4px 4px 6px rgba(15, 11, 11, 0.5));
}

/* Survey Popup Styles */
.judul-survei {
    color: rgba(0, 101, 143, 1);
}

.body-survei {
    color: var(--base);
}

#popup-survey-container .popup-content {
    background-color: var(--primary-light-container);
    padding: 8px;
}

.icon-popup-survei {
    border-radius: 24px;
    background: var(--tertiary, #D1303A);
    display: flex;
    padding: 12px;
    gap: 8px;
    align-self: flex-start;
}

.wrapper-survei {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
}

.wrapper-konten-survei {
    display: flex;
    flex-direction: column;
}

/* Media Queries - Desktop Large */
@media only screen and (min-width: 1400px) {
    .owl-carousel .owl-item img {
        height: 100%;
        object-fit: fill;
    }
}

/* Media Queries - Tablet */
@media screen and (max-width: 960px) {
    .popup-container {
        width: 90%;
        height: auto;
        max-height: 80vh;
        max-width: 90vw;
        top: 25%;
        transform: translate(-50%, -25%);
    }

    .close-btn {
        top: calc(50% - 40vh - 30px);
        right: calc(50% - 45vw - 30px);
    }
}

/* Media Queries - Mobile */
@media only screen and (max-width: 600px) {
    .keuntungan-bergabung h2 {
        font-size: 20px;
        line-height: 1.7;
    }

    .wrap-keuntungan {
        gap: 100px;
        margin-top: 72px;
    }

    .inner-keuntungan {
        width: 90%;
        flex-direction: column;
    }

    .inner-keuntungan img.icon-size {
        width: 120px;
    }

    .wrap-body-keuntungan {
        text-align: center;
    }

    .intro-cta button {
        width: 100%;
    }

    #scan-modal {
        width: 90%;
        height: 40%;
        max-width: 90vw;
    }

    .drawingBuffer,
    #preview > video:nth-child(2) {
        width: 100%;
        height: 100%;
    }

    #close-modal {
        width: 30%;
    }

    .popup-container {
        width: 95%;
        height: auto;
        max-height: 70vh;
        padding: 10px;
        top: 20%;
        transform: translate(-50%, -20%);
    }

    .close-btn {
        top: calc(50% - 35vh - 25px);
        right: calc(52% - 47.5vw - 25px);
        width: 40px;
        height: 40px;
        padding: 4px;
    }

    .close-btn svg {
        width: 20px;
        height: 20px;
        filter: drop-shadow(5px 5px 7px rgba(15, 11, 11, 0.5));
    }

    .popup-content .popup-img-web {
        display: none;
    }

    .popup-content .popup-img-app {
        display: block;
    }
}
