/* ============================================================
   VISA APPLY PAGE
   CLEAN • SMALL • PROFESSIONAL • RESPONSIVE
============================================================ */

*,
*::before,
*::after{
    box-sizing:border-box;
}

:root{
    --primary1:#ff6a00;
    --primary2:#ff0066;

    --dark:#111827;
    --muted:#64748b;

    --bg:#f5f7fb;
    --card:#ffffff;

    --border:#e5e7eb;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    padding:0;
    font-family:Poppins,Arial,sans-serif;
    background:var(--bg);
    color:var(--dark);
    overflow-x:hidden;
}

/* ============================================================
   CONTAINER
============================================================ */

.apply-container{
    width:min(1280px,94%);
    margin:auto;
}

/* ============================================================
   PAGE
============================================================ */

.apply-page{
    padding:18px 0 45px;
}

/* ============================================================
   TOPBAR
============================================================ */

.apply-topbar{
    background:var(--card);

    border-radius:24px;

    padding:18px;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

    border:1px solid var(--border);

    box-shadow:
    0 8px 24px rgba(0,0,0,.05);

    margin-bottom:18px;
}

.topbar-left{
    display:flex;
    align-items:center;
    gap:18px;
}

.country-mini-image{
    width:110px;
    min-width:110px;
    height:110px;

    border-radius:22px;
    overflow:hidden;

    background:#f3f4f6;
}

.country-mini-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.mini-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:7px 14px;

    border-radius:999px;

    background:#fff1eb;

    color:var(--primary1);

    font-size:12px;
    font-weight:800;

    margin-bottom:12px;
}

.topbar-left h1{
    margin:0 0 10px;

    font-size:34px;
    line-height:1.1;

    font-weight:900;
}

.topbar-left p{
    margin:0;

    color:var(--muted);

    line-height:1.7;

    font-size:14px;
}

.topbar-right{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.mini-stat{
    min-width:130px;

    padding:16px;

    border-radius:18px;

    background:#f8fafc;

    border:1px solid #edf2f7;

    text-align:center;
}

.mini-stat small{
    display:block;

    font-size:12px;

    color:var(--muted);

    margin-bottom:6px;
}

.mini-stat strong{
    font-size:18px;
    font-weight:800;
}

/* ============================================================
   TIMELINE
============================================================ */

.apply-timeline{
    background:var(--card);

    border-radius:24px;

    padding:18px;

    border:1px solid var(--border);

    display:flex;
    align-items:center;
    justify-content:center;

    gap:14px;

    margin-bottom:20px;
}

.timeline-step{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
}

.timeline-step span{
    width:42px;
    height:42px;

    border-radius:50%;

    background:#e5e7eb;

    color:#6b7280;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:15px;
    font-weight:800;
}

.timeline-step small{
    font-size:12px;
    font-weight:700;
    color:var(--muted);
}

.timeline-step.active span{
    background:
    linear-gradient(
        135deg,
        var(--primary1),
        var(--primary2)
    );

    color:#fff;
}

.timeline-step.active small{
    color:var(--dark);
}

.timeline-line{
    width:70px;
    height:3px;

    border-radius:999px;

    background:#e5e7eb;
}

/* ============================================================
   GRID
============================================================ */

.apply-grid{
    display:grid;
    grid-template-columns:1fr 340px;
    gap:20px;
    align-items:start;
}

/* ============================================================
   CARD
============================================================ */

.apply-card,
.sidebar-card{
    background:var(--card);

    border-radius:24px;

    padding:22px;

    border:1px solid var(--border);

    box-shadow:
    0 8px 24px rgba(0,0,0,.05);
}

.apply-card{
    min-height:100%;
}

/* ============================================================
   CARD HEAD
============================================================ */

.card-head{
    margin-bottom:22px;
}

.card-head h2{
    margin:0 0 8px;

    font-size:30px;
    font-weight:900;
}

.card-head p{
    margin:0;

    color:var(--muted);

    font-size:14px;
    line-height:1.7;
}

/* ============================================================
   FORM
============================================================ */

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}

.full-width{
    grid-column:1/-1;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    margin-bottom:8px;

    font-size:14px;
    font-weight:700;

    color:#374151;
}

.form-group input,
.form-group textarea{
    width:100%;

    min-height:56px;

    border-radius:16px;

    border:1px solid #dbe2ea;

    background:#fff;

    padding:14px 16px;

    outline:none;

    font-size:14px;
    font-family:inherit;

    transition:.25s ease;
}

.form-group textarea{
    min-height:130px;
    resize:vertical;
}

.form-group input:focus,
.form-group textarea:focus{
    border-color:var(--primary1);

    box-shadow:
    0 0 0 4px rgba(255,106,0,.10);
}

/* ============================================================
   BUTTON
============================================================ */

.submit-btn{
    width:100%;

    min-height:58px;

    border:none;
    border-radius:18px;

    margin-top:22px;

    background:
    linear-gradient(
        135deg,
        var(--primary1),
        var(--primary2)
    );

    color:#fff;

    font-size:15px;
    font-weight:800;

    cursor:pointer;

    transition:.30s ease;

    box-shadow:
    0 14px 30px rgba(255,106,0,.18);
}

.submit-btn:hover{
    transform:translateY(-2px);
}

/* ============================================================
   SIDEBAR
============================================================ */

.sidebar-wrap{
    position:sticky;
    top:110px;
}

.sidebar-card{
    margin-bottom:18px;
}

.sidebar-card h3{
    margin:0 0 18px;

    font-size:22px;
    font-weight:900;
}

/* ============================================================
   INFO ROW
============================================================ */

.info-row{
    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:12px;

    padding:14px 0;

    border-bottom:1px solid #edf2f7;
}

.info-row:last-child{
    border-bottom:none;
}

.info-row span{
    color:var(--muted);
    font-size:14px;
}

.info-row strong{
    font-size:14px;
    font-weight:800;
}

/* ============================================================
   WHATSAPP
============================================================ */

.whatsapp-btn{
    width:100%;

    min-height:56px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:18px;

    background:
    linear-gradient(
        135deg,
        #25D366,
        #128C7E
    );

    color:#fff;

    font-size:15px;
    font-weight:800;

    transition:.30s ease;
}

.whatsapp-btn:hover{
    transform:translateY(-2px);
}

/* ============================================================
   MULTI STEP FORM
============================================================ */

.form-step{
    display:none;
}

.form-step.active-step{
    display:block;
}

.step-actions{
    display:flex;
    gap:14px;
    margin-top:24px;
}

.back-btn{
    min-width:140px;
    min-height:56px;

    border:none;
    border-radius:18px;

    background:#e5e7eb;

    color:#111827;

    font-size:14px;
    font-weight:800;

    cursor:pointer;
}

.review-box{
    padding:22px;
    border-radius:20px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
}

.review-box h3{
    margin:0 0 12px;
    font-size:28px;
}

.review-box p{
    margin:0;
    color:#64748b;
    line-height:1.8;
}

.timeline-step.completed span{
    background:#22c55e;
    color:#fff;
}

@media(max-width:768px){

    .step-actions{
        flex-direction:column;
    }

    .back-btn,
    .submit-btn{
        width:100%;
    }

}

/* ============================================================
   TABLET
============================================================ */

@media(max-width:1100px){

    .apply-grid{
        grid-template-columns:1fr;
    }

    .sidebar-wrap{
        position:static;
    }

    .apply-topbar{
        flex-direction:column;
        align-items:flex-start;
    }

    .topbar-right{
        width:100%;
        grid-template-columns:repeat(3,1fr);
    }
}

/* ============================================================
   MOBILE
============================================================ */

@media(max-width:768px){

    .apply-page{
        padding:10px 0 30px;
    }

    .apply-container{
        width:min(100%, calc(100% - 12px));
    }

    .apply-topbar{
        padding:14px;
        border-radius:20px;
        gap:14px;
    }

    .topbar-left{
        width:100%;
        align-items:flex-start;
    }

    .country-mini-image{
        width:82px;
        min-width:82px;
        height:82px;
        border-radius:18px;
    }

    .topbar-left h1{
        font-size:26px;
    }

    .topbar-left p{
        font-size:13px;
    }

    .topbar-right{
        grid-template-columns:1fr;
        gap:10px;
    }

    .mini-stat{
        width:100%;
        min-width:100%;
    }

    .apply-timeline{
        padding:14px 10px;
        gap:10px;
        overflow-x:auto;
        justify-content:flex-start;
    }

    .timeline-line{
        width:40px;
    }

    .timeline-step span{
        width:36px;
        height:36px;
        font-size:13px;
    }

    .timeline-step small{
        font-size:11px;
    }

    .apply-card,
    .sidebar-card{
        padding:18px;
        border-radius:20px;
    }

    .card-head h2{
        font-size:26px;
    }

    .form-grid{
        grid-template-columns:1fr;
        gap:14px;
    }

    .form-group input,
    .form-group textarea{
        min-height:54px;
    }

    .submit-btn{
        min-height:56px;
    }
}

/* ============================================================
   SMALL MOBILE
============================================================ */

@media(max-width:480px){

    .topbar-left{
        flex-direction:column;
    }

    .country-mini-image{
        width:100%;
        height:180px;
    }

    .topbar-left h1{
        font-size:24px;
    }

    .apply-timeline{
        border-radius:18px;
    }

    .apply-card,
    .sidebar-card{
        border-radius:18px;
    }

}