/* ==========================================================================
   0. Import Google Font (Roboto)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Set Default Font untuk Seluruh Halaman */
body, input, button, select, textarea {
    font-family: 'Roboto', sans-serif !important;
}

/* ==========================================================================
   1. Form Inputs & Placeholders
   ========================================================================== */
input[type="text"], 
input[type="password"] {
    color: #222222 !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

/* Base Placeholder Style */
input::placeholder {
    color: #333333;
    font-weight: 300;
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Focus State Placeholder */
input:focus::placeholder {
    opacity: 0.3;
    transform: translateX(4px);
}

/* Legacy Browser Compatibility */
input::-webkit-input-placeholder {
    color: #a0aec0;
    font-weight: 300;
}
input:-ms-input-placeholder {
    color: #a0aec0;
    font-weight: 300;
}

/* ==========================================================================
   2. Base Layout & Components (Desktop Default)
   ========================================================================== */
.iofrm-layout {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    min-height: 100vh !important;
}

/* Pembagian Presisi 50% Kiri dan 50% Kanan */
.img-holder {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    position: relative !important;
    height: 100vh !important;
    min-height: 100vh !important;
}

.form-holder {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.img-holder .bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0.43;
    z-index: 1 !important;
}

/* Paksa Konten Form Berada di Tengah Kolom Kanan */
.form-content {
    width: 100% !important;
    max-width: 500px !important; /* Membatasi lebar konten agar rapi */
    margin: 0 auto !important;   /* Menetralkan pendorongan ke kanan */
    padding: 30px !important;
    text-align: left !important;
}

.form-items {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.form-content .form-items {
    border-radius: 0;
}

.form-items .form-group {
    width: 100% !important;
    max-width: 450px !important;
    border-radius: 5px;
}

.form-items .grecaptcha {
    width: 100% !important;
    max-width: 450px !important;
    background-color: #ffffff !important;
    border-radius: 5px;
}

/* Overlay Text Styling (Desktop) */
.img-holder .overlay-text {
    position: absolute !important;
    bottom: 30px !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80% !important;
    padding: 12px 15px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    backdrop-filter: blur(2px);
    z-index: 3 !important;
}

.img-holder .overlay-text h2 {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.img-holder .overlay-text p {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 5px !important;
    margin-bottom: 0 !important;
}

/* Visibility Control Flags */
.text-desktop {
    display: block;
}
.text-mobile {
    display: none;
}

/* ==========================================================================
   3. Desktop Only Styles (>= 768px)
   ========================================================================== */
@media (min-width: 768px) {
    html, body {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .form-body, 
    .iofrm-layout {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }
}

/* ==========================================================================
   4. Mobile Responsive Styles (< 768px)
   ========================================================================== */
@media (max-width: 767.98px) {
    /* Toggle Visibility Text */
    .text-desktop {
        display: none !important;
    }
    .text-mobile {
        display: block !important;
    }

    /* Layout HP */
    .form-body .iofrm-layout {
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
        height: auto !important;
    }

    .form-holder, 
    .form-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 15px !important;
    }

    .form-items .form-group {
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .form-items .grecaptcha {
        width: 100% !important;
        background-color: #f9f9f9 !important;
    }

    .iofrm-layout .img-holder,
    .iofrm-layout .form-holder {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .form-body .iofrm-layout .img-holder {
        display: block !important;
        width: 100% !important;
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
        position: relative !important;
        order: -1 !important;
    }

    .form-body .iofrm-layout .img-holder .bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        display: block !important;
    }

    /* Teks Overlay HP */
    .form-body .iofrm-layout .img-holder .overlay-text {
        position: absolute !important;
        top: auto !important;
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        padding: 6px 10px !important;
        text-align: center !important;
        z-index: 3 !important;
    }

    .form-body .iofrm-layout .img-holder .overlay-text h2 {
        font-size: 1.05rem !important;
        color: #ffffff !important;
        margin-bottom: 2px !important;
    }

    .form-body .iofrm-layout .img-holder .overlay-text p {
        font-size: 0.78rem !important;
        color: #ffffff !important;
        margin: 0 !important;
    }

    .form-body .iofrm-layout .form-holder {
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        order: 2 !important;
        padding-bottom: 20px !important;
    }

    .form-body .iofrm-layout .form-holder .form-content {
        min-height: auto !important;
        height: auto !important;
        padding-top: 15px !important;
        padding-bottom: 10px !important;
    }
}