/* ==========================================================
   PMB KAMPUS AL-ISLAM
   FORM.CSS
   ========================================================== */

/* ===========================
   ROOT
=========================== */

:root{

    --primary:#0F5132;

    --primary-light:#198754;

    --gold:#C7A84F;

    --danger:#dc3545;

    --warning:#ffc107;

    --success:#198754;

    --dark:#212529;

    --gray:#6c757d;

    --light:#f8f9fa;

    --white:#ffffff;

    --border:#dee2e6;

    --shadow:0 10px 35px rgba(0,0,0,.08);

    --radius:16px;

    --transition:.3s ease;

}

/* ===========================
   RESET
=========================== */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

body{

    background:#f5f7fb;

    color:var(--dark);

    font-family:
    "Segoe UI",
    sans-serif;

    line-height:1.6;

}

.container{

    width:min(1100px,92%);

    margin:auto;

}

/* ===========================
   WRAPPER
=========================== */

.form-wrapper{

    padding:50px 0;

}

#registrationForm{

    background:#fff;

    border-radius:20px;

    box-shadow:var(--shadow);

    overflow:hidden;

}

/* ===========================
   HEADER
=========================== */

.form-header{

    position:relative;

    overflow:hidden;

    background:
        linear-gradient(
            135deg,
            #0f5132,
            #198754
        );

    color:#fff;

    text-align:center;

    padding:60px 45px;

}

.form-header::before{

    content:"";

    position:absolute;

    inset:0;

    background:url("../images/pattern.svg");

    background-repeat:repeat;

    background-size:50px;

    opacity:.08;

}

.form-header>*{

    position:relative;

    z-index:2;

}

.form-header img{

    width:95px;

    margin-bottom:15px;

}

.form-header h1{

    font-size:34px;

    margin-bottom:10px;

}

.form-header h2{

    font-size:22px;

    font-weight:500;

}

.form-header p{

    margin-top:12px;

    opacity:.9;

}

/* ===========================
   PROGRESS
=========================== */

.progress-area{

    padding:25px 35px;

    background:#fff;

    border-bottom:1px solid #eee;

}

.progress-info{

    display:flex;

    justify-content:space-between;

    margin-bottom:10px;

    font-weight:600;

}

.progress-bar{

    height:10px;

    background:#e9ecef;

    border-radius:20px;

    overflow:hidden;

}

.progress-fill{

    width:10%;

    height:100%;

    background:linear-gradient(
        90deg,
        #14532d 0%,
        #198754 50%,
        #6fcf97 100%
    );

    border-radius:999px;

    transition:width .35s ease;

}

/* ===========================
   STEP
=========================== */

.form-step{

    display:none;

    padding:45px;

}

.form-step.active{

    display:block;

    animation:fade .35s;

}

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

.form-step h2{

    color:var(--primary);

    margin-bottom:15px;

    font-size:30px;

}

.step-description{

    margin-bottom:30px;

    color:#666;

}

/* ===========================
   GRID
=========================== */

.grid-2{

    display:grid;

    grid-template-columns:

    repeat(2,1fr);

    gap:25px;

}

.full{

    grid-column:1/-1;

}

/* ===========================
   FORM GROUP
=========================== */

.form-group{

    display:flex;

    flex-direction:column;

}

.form-group label{

    font-weight:600;

    margin-bottom:8px;

}

.form-group span{

    color:var(--dark);

}

/* ===========================
   INPUT
=========================== */

input,

select,

textarea{

    width:100%;

    padding:14px 16px;

    border:1px solid var(--border);

    border-radius:12px;

    font-size:15px;

    transition:.25s;

    background:#fff;

}

textarea{

    resize:vertical;

}

input:focus,

select:focus,

textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:

    0 0 0 4px

    rgba(15,81,50,.12);

}

small{

    margin-top:5px;

    color:#777;

}

.input-group{

    display:flex;

}

.input-addon{

    background:#f3f3f3;

    border:1px solid var(--border);

    border-left:none;

    padding:14px 18px;

    border-radius:0 12px 12px 0;

}

/* ==========================================================
   RADIO & CHECKBOX
   ========================================================== */

.radio-group,
.checkbox-group{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:15px;

    margin-top:10px;

}

.radio-group label,
.checkbox-group label{

    display:flex;

    align-items:center;

    gap:12px;

    padding:15px 18px;

    border:2px solid var(--border);

    border-radius:14px;

    background:#fff;

    cursor:pointer;

    transition:var(--transition);

}

.radio-group label:hover,
.checkbox-group label:hover{

    border-color:var(--primary);

    background:#f7fcf9;

}

.radio-group input,
.checkbox-group input{

    width:18px;

    height:18px;

    accent-color:var(--primary);

}

/* ==========================================================
   PROGRAM CARD
   ========================================================== */

.program-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:25px;

    margin-top:25px;

}

.program-card{

    display:block;

    cursor:pointer;

}

.program-card input{

    display:none;

}

.program-content{

    border:2px solid var(--border);

    border-radius:18px;

    padding:28px;

    transition:.3s;

    height:100%;

    background:#fff;

}

.program-card:hover .program-content{

    transform:translateY(-6px);

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    border-color:var(--primary);

}

.program-card input:checked + .program-content{

    border-color:var(--primary);

    background:#f7fcf9;

    box-shadow:0 15px 40px rgba(15,81,50,.15);

}

.program-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;

}

.program-header h3{

    color:var(--primary);

    font-size:24px;

}

.badge-program{

    background:var(--gold);

    color:#fff;

    padding:5px 12px;

    border-radius:30px;

    font-size:12px;

    font-weight:bold;

}

.program-content ul{

    margin-top:18px;

    padding-left:20px;

}

.program-content li{

    margin-bottom:10px;

}

/* ==========================================================
   REKOMENDASI
   ========================================================== */

.recommendation-box{

    display:flex;

    gap:18px;

    align-items:flex-start;

    margin:25px 0;

    background:#e8f7ef;

    border-left:5px solid var(--success);

    border-radius:14px;

    padding:20px;

}

.recommendation-box i{

    color:var(--success);

    font-size:32px;

}

.recommendation-box strong{

    display:block;

    margin-bottom:6px;

}

/* ==========================================================
   DETAIL PROGRAM
   ========================================================== */

.program-detail{

    margin-top:35px;

    background:#f9fafb;

    border:1px solid var(--border);

    border-radius:16px;

    padding:25px;

}

.program-detail h3{

    color:var(--primary);

    margin-bottom:15px;

}

/* ==========================================================
   INFO BOX
   ========================================================== */

.info-box{

    display:flex;

    gap:18px;

    margin:30px 0;

    padding:20px;

    border-left:5px solid var(--gold);

    background:#fff8e8;

    border-radius:14px;

}

.info-box i{

    font-size:28px;

    color:var(--gold);

}

/* ==========================================================
   PAYMENT
   ========================================================== */

.payment-summary{

    margin:30px 0;

}

.payment-card{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

}

.payment-item{

    background:#fff;

    border:1px solid var(--border);

    border-radius:16px;

    text-align:center;

    padding:25px;

    transition:.3s;

}

.payment-item:hover{

    transform:translateY(-4px);

    box-shadow:var(--shadow);

}

.payment-item span{

    display:block;

    color:#777;

    margin-bottom:10px;

}

.payment-item strong{

    color:var(--primary);

    font-size:24px;

}

/* ==========================================================
   UPLOAD KK
========================================================== */

.upload-wrapper{

    margin-top:30px;

}

.upload-box{

    border:3px dashed #cfd8dc;

    border-radius:18px;

    padding:50px 30px;

    text-align:center;

    cursor:pointer;

    transition:var(--transition);

    background:#fafafa;

}

.upload-box:hover{

    border-color:var(--primary);

    background:#f7fcf9;

}

.upload-box i{

    font-size:58px;

    color:var(--primary);

    margin-bottom:20px;

}

.upload-box h3{

    color:var(--primary);

    margin-bottom:10px;

}

.upload-box p{

    color:#666;

}

.file-preview{

    display:flex;

    align-items:center;

    gap:20px;

    margin-top:25px;

    padding:20px;

    border:1px solid var(--border);

    border-radius:16px;

    background:#fff;

}

.file-icon{

    width:65px;

    height:65px;

    border-radius:14px;

    background:var(--primary);

    display:flex;

    justify-content:center;

    align-items:center;

    color:#fff;

    font-size:30px;

}

.file-info h4{

    margin-bottom:5px;

    color:var(--primary);

}

/* ==========================================================
   REVIEW
========================================================== */

#reviewContainer{

    margin-top:30px;

}

.review-section{

    background:#fff;

    border:1px solid var(--border);

    border-radius:18px;

    margin-bottom:25px;

    overflow:hidden;

}

.review-header{

    background:var(--primary);

    color:#fff;

    padding:18px 25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.review-header button{

    background:#fff;

    color:var(--primary);

    border:none;

    padding:8px 16px;

    border-radius:8px;

    cursor:pointer;

    font-weight:bold;

}

.review-body{

    padding:25px;

}

.review-item{

    display:grid;

    grid-template-columns:240px 1fr;

    padding:12px 0;

    border-bottom:1px dashed #ddd;

}

.review-item:last-child{

    border-bottom:none;

}

.review-label{

    font-weight:600;

    color:#666;

}

.review-value{

    color:#222;

}

.agreement{

    margin-top:35px;

    padding:20px;

    border-radius:14px;

    background:#fff8e8;

    border-left:5px solid var(--gold);

}

/* ==========================================================
   BUTTON
========================================================== */

.step-navigation{

    margin-top:45px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.btn-prev,

.btn-next,

.btn-submit{

    border:none;

    border-radius:12px;

    cursor:pointer;

    padding:15px 28px;

    font-size:16px;

    font-weight:600;

    transition:.3s;

}

.btn-prev{

    background:#ececec;

    color:#444;

}

.btn-prev:hover{

    background:#ddd;

}

.btn-next{

    background:var(--primary);

    color:#fff;

}

.btn-next:hover{

    background:#0a3d27;

}

.btn-submit{

    background:var(--gold);

    color:#fff;

    font-size:17px;

}

.btn-submit:hover{

    transform:translateY(-3px);

    box-shadow:var(--shadow);

}

/* ==========================================================
   SUBMIT CARD
========================================================== */

.submit-card{

    text-align:center;

    background:#f7fcf9;

    border:1px solid #d7ebe0;

    border-radius:18px;

    padding:50px;

}

.submit-card i{

    font-size:70px;

    color:var(--success);

    margin-bottom:20px;

}

.submit-card h3{

    color:var(--primary);

    margin-bottom:15px;

}

.submit-card ul{

    margin-top:20px;

    display:inline-block;

    text-align:left;

}

.submit-card li{

    margin-bottom:12px;

}

/* ==========================================================
   LOADING
========================================================== */

#loadingOverlay{

    position:fixed;

    inset:0;

    background:rgba(255,255,255,.85);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.loading-box{

    background:#fff;

    padding:40px;

    border-radius:20px;

    text-align:center;

    box-shadow:var(--shadow);

}

.spinner{

    width:65px;

    height:65px;

    border:7px solid #eee;

    border-top:7px solid var(--primary);

    border-radius:50%;

    margin:auto;

    animation:spin 1s linear infinite;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/* ==========================================================
   TOAST
========================================================== */

#toastContainer{

    position:fixed;

    top:25px;

    right:25px;

    z-index:99999;

}

.toast{

    background:#fff;

    border-left:5px solid var(--success);

    border-radius:14px;

    padding:18px 22px;

    min-width:320px;

    margin-bottom:15px;

    box-shadow:var(--shadow);

    animation:toastIn .3s ease;

}

.toast.error{

    border-left-color:var(--danger);

}

.toast.warning{

    border-left-color:var(--warning);

}

@keyframes toastIn{

    from{

        opacity:0;

        transform:translateX(40px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

/* ==========================================================
   SCROLL TOP
========================================================== */

#scrollTop{

    position:fixed;

    right:25px;

    bottom:25px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    cursor:pointer;

    box-shadow:var(--shadow);

    display:none;

    transition:.3s;

}

#scrollTop:hover{

    transform:translateY(-5px);

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:900px){

.grid-2{

    grid-template-columns:1fr;

}

.payment-card{

    grid-template-columns:1fr;

}

.review-item{

    grid-template-columns:1fr;

    gap:6px;

}

.step-navigation{

    flex-direction:column-reverse;

    gap:15px;

}

.btn-prev,

.btn-next,

.btn-submit{

    width:100%;

}

}

@media(max-width:600px){

.form-header{

    padding:30px 20px;

}

.form-header h1{

    font-size:26px;

}

.form-step{

    padding:25px;

}

.progress-area{

    padding:20px;

}

.upload-box{

    padding:35px 20px;

}

}

.success-page{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:40px 20px;

    background:

    linear-gradient(

    135deg,

    #f7faf8,

    #eef5f0);

}

.success-card{

    width:100%;

    max-width:560px;

    background:#fff;

    border-radius:24px;

    padding:40px;

    text-align:center;

    box-shadow:

    0 15px 40px rgba(0,0,0,.08);

}

.success-logo{

    width:120px;

    height:auto;

    margin-bottom:24px;

}

.success-icon{

    width:90px;

    height:90px;

    border-radius:50%;

    background:#1d7a44;

    color:#fff;

    margin:auto;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:42px;

    margin-bottom:24px;

}

.registration-box{

    margin:24px 0;

    padding:18px;

    border-radius:14px;

    background:#f5f8f6;

    border:1px solid #dfe8e2;

}

.registration-box h3{

    font-size:34px;

    color:#0d5c35;

    letter-spacing:2px;

    margin-top:10px;

}

#qrCode{

    margin:30px auto;

    display:flex;

    justify-content:center;

}

#qrCode canvas{

    border:8px solid white;

    box-shadow:

    0 10px 25px rgba(0,0,0,.1);

}

.button-group{

    display:flex;

    flex-direction:column;

    gap:15px;

    margin-top:30px;

}

.button-group a{

    width:100%;

}

@media(max-width:768px){

.success-card{

padding:30px 22px;

}

.registration-box h3{

font-size:26px;

}

}

.success-footer{

margin-top:25px;

font-size:14px;

color:#666;

line-height:1.8;

}

