*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f5f7fb;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    padding:20px;
}

.container{
    width:100%;
    max-width:700px;
}

.card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.12);
}

.header{
    background:linear-gradient(135deg,#e53935,#1565c0);
    color:#fff;
    padding:35px 30px;
    text-align:center;
}

.header h1{
    font-size:28px;
    font-weight:700;
}

.header p{
    margin-top:8px;
    opacity:.9;
    font-size:15px;
}

.form-body{
    padding:30px;
}

.form-group{
    margin-bottom:20px;
}

label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#333;
}

.required{
    color:#e53935;
}

input,
textarea{
    width:100%;
    padding:14px 16px;
    border:2px solid #d9e2ef;
    border-radius:12px;
    font-size:15px;
    transition:.3s;
    outline:none;
}

input:focus,
textarea:focus{
    border-color:#1565c0;
    box-shadow:0 0 0 4px rgba(21,101,192,.15);
}

textarea{
    min-height:120px;
    resize:vertical;
}

button{
    width:100%;
    padding:16px;
    border:none;
    border-radius:12px;
    background:linear-gradient(135deg,#e53935,#1565c0);
    color:#fff;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 25px rgba(21,101,192,.3);
}

.footer{
    text-align:center;
    color:#888;
    font-size:13px;
    margin-top:18px;
}

@media(max-width:600px){

.header{
    padding:25px 20px;
}

.header h1{
    font-size:22px;
}

.form-body{
    padding:20px;
}

button{
    font-size:16px;
}

}

.info-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-left:6px;
    position:relative;
    cursor:pointer;
    color:#1565c0;
    font-size:18px;
    vertical-align:middle;
    line-height:1;
}

.info-icon i{
    display:block;
}

.info-icon:hover{
    color:#0d47a1;
}

.tooltip{
    position:absolute;
    top:38px;
    left:50%;
    transform:translateX(-50%);
    width:380px;
    max-width:calc(100vw - 40px);
    background:#222;
    color:#fff;
    padding:16px;
    border-radius:12px;
    font-size:13px;
    line-height:1.7;
    font-weight:400;
    opacity:0;
    visibility:hidden;
    transition:.25s;
    z-index:9999;
    box-shadow:0 12px 30px rgba(0,0,0,.25);
}

.tooltip::before{
    content:"";
    position:absolute;
    top:-10px;
    left:50%;
    transform:translateX(-50%);
    border-left:10px solid transparent;
    border-right:10px solid transparent;
    border-bottom:10px solid #222;
}

.info-icon:hover .tooltip{
    opacity:1;
    visibility:visible;
}

.help-image{
    margin-top:15px;
    text-align:center;
}

.help-image img{
    width:100%;
    max-width:420px;
    border-radius:12px;
    border:1px solid #ddd;
    box-shadow:0 5px 18px rgba(0,0,0,.08);
}

.help-caption{
    margin-top:8px;
    color:#666;
    font-size:13px;
}

.button-group{
    display:flex;
    gap:15px;
    margin-top:10px;
}

.btn-back,
.btn-submit{
    flex:1;
    text-decoration:none;
}

.btn-back{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:16px;
    border-radius:12px;
    background:#6c757d;
    color:#fff;
    font-size:17px;
    font-weight:600;
    transition:.3s;
}

.btn-back:hover{
    background:#5a6268;
    transform:translateY(-2px);
    box-shadow:0 12px 25px rgba(0,0,0,.18);
}

.btn-submit button{
    width:100%;
    margin:0;
}

.success-box{
    background:#d1fae5;
    border:1px solid #a7f3d0;
    color:#065f46;
    padding:16px 18px;
    border-radius:12px;
    margin-bottom:20px;
    font-size:15px;
    font-weight:500;
    display:flex;
    align-items:flex-start;
    gap:10px;
    animation:fadeIn .3s;
    box-shadow:0 4px 12px rgba(16,185,129,.08);
}

.success-box i{
    color:#10b981;
    font-size:18px;
    margin-top:2px;
    flex-shrink:0;
}

@media(max-width:600px){

    .button-group{
        flex-direction:column;
    }

    .btn-back{
        font-size:16px;
    }

}

@media (max-width:600px){

    .tooltip{
        position:fixed;
        left:50%;
        top:50%;
        transform:translate(-50%,-50%);
        width:92%;
        max-width:420px;
        max-height:80vh;
        overflow-y:auto;
        border-radius:15px;
    }

    .tooltip::before{
        display:none;
    }

}

/* Tombol Back to Top */
#backToTop {
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 55px;
        height: 55px;
        border: none;
        border-radius: 50%;
        background: linear-gradient(135deg, #ff0000, #ff4d4d);
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        z-index: 9999;
    
        display: flex;
        justify-content: center;
        align-items: center;
    
        box-shadow: 0 8px 20px rgba(255, 0, 0, .35);
    
        /* Animasi */
        opacity: 0;
        visibility: hidden;
        transform: translateY(30px) scale(.8) rotate(180deg);
    
        transition: all .45s cubic-bezier(.68,-0.55,.27,1.55);
    }
    
    /* Saat muncul */
    #backToTop.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    
    /* Hover */
    #backToTop:hover {
        transform: scale(1.15);
        box-shadow: 0 12px 30px rgba(255,0,0,.5);
        background: linear-gradient(135deg, #ff1a1a, #ff6666);
    }
    
    /* Saat ditekan */
    #backToTop:active {
        transform: scale(.9);
    }
    
    #backToTop.show {
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(255,0,0,.6);
        }
        70% {
            box-shadow: 0 0 0 15px rgba(255,0,0,0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(255,0,0,0);
        }
    }

/* ===========================
   GUIDE
=========================== */

.guide-wrapper{
    margin-bottom:30px;
}

.guide-btn{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:16px 20px;
    border:none;
    border-radius:14px;
    cursor:pointer;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
    font-size:16px;
    font-weight:600;
    transition:.35s;
}

.guide-btn:hover{
    transform:translateY(-2px);
}

.guide-btn .arrow{
    margin-left:auto;
    transition:.35s;
}

.guide-btn.active .arrow{
    transform:rotate(180deg);
}

.guide-content{

    max-height:0;

    overflow:hidden;

    opacity:0;

    padding:0 25px;

    margin-top:0;

    border-radius:14px;

    background:#fff;

    border:1px solid #e6e6e6;

    box-shadow:0 10px 25px rgba(0,0,0,.06);

    transition:
        max-height .55s ease,
        opacity .35s ease,
        padding .35s ease,
        margin-top .35s ease;

}

.guide-content.show{

    opacity:1;

    margin-top:15px;

    padding:25px;

}

.guide-content h3{
    color:#2563eb;
    margin-bottom:15px;
}

.guide-content h4{
    margin-top:20px;
    margin-bottom:10px;
}

.guide-content p{
    line-height:1.8;
}

.guide-content ul{
    padding-left:22px;
}

.guide-content li{
    line-height:1.9;
    margin-bottom:10px;
}
