*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#050507;
    color:white;
    font-family:Arial,sans-serif;
    overflow-x:hidden;
}

/* NAVBAR */

.navbar{
    height:90px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 52px;
    background:#050507;
    border-bottom:1px solid rgba(155,77,255,.28);
    direction:ltr;
}

.nav-logo{
    width:150px;
    height:90px;
    display:flex;
    align-items:center;
    text-decoration:none;
}

.nav-logo img{
    height:78px;
    width:auto;
    object-fit:contain;
}

nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:46px;
    flex:1;
}

nav a{
    color:white;
    text-decoration:none;
    font-size:14px;
    font-weight:800;
    letter-spacing:.7px;
    position:relative;
}

nav a:hover{
    color:#b76cff;
}

.nav-join-btn{
    width:170px;
    padding:12px 0;
    border:1px solid #9b4dff;
    border-radius:6px;
    color:#d9b8ff;
    text-decoration:none;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    font-weight:800;
}

.nav-join-btn:hover{
    background:#9b4dff;
    color:white;
}

/* HERO */

.apply-hero{
    min-height:420px;
    background:
        linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.78)),
        url("https://look.jmgbb.com/images/_TIlN58t3R.png");
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.hero-overlay{
    max-width:900px;
    padding:40px 20px;
}

.apply-logo{
    width:260px;
    margin-bottom:15px;
}

.hero-overlay h1{
    font-size:48px;
    margin-bottom:15px;
}

.hero-overlay p{
    color:#bdbdbd;
    font-size:18px;
}

/* FORM */

.form-wrapper{
    width:90%;
    max-width:1400px;
    margin:-70px auto 60px;
    position:relative;
    z-index:5;
}

.apply-form{
    background:rgba(7,7,12,.94);
    border:1px solid rgba(155,77,255,.45);
    border-radius:18px;
    padding:45px;
    backdrop-filter:blur(15px);
    box-shadow:
        0 0 30px rgba(155,77,255,.18),
        inset 0 0 20px rgba(155,77,255,.05);
}

.apply-form h2{
    text-align:center;
    margin:35px 0 25px;
    color:white;
    font-size:28px;
}

.form-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:30px;
}

.field{
    display:flex;
    flex-direction:column;
}

.field.full{
    width:100%;
    margin-bottom:20px;
}

.field label{
    margin-bottom:10px;
    color:#fff;
    font-size:15px;
    font-weight:700;
}

.field input,
.field select,
.field textarea{
    width:100%;
    background:rgba(255,255,255,.04);
    border:1px solid rgba(155,77,255,.4);
    border-radius:10px;
    padding:14px;
    color:white;
    outline:none;
    transition:.3s;
    font-size:14px;
}

.field textarea{
    min-height:120px;
    resize:vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
    border-color:#9b4dff;
    box-shadow:0 0 15px rgba(155,77,255,.35);
}

.field option{
    background:#111;
    color:white;
}

.submit-btn{
    width:100%;
    margin-top:30px;
    padding:18px;
    border:none;
    border-radius:12px;
    background:#9b4dff;
    color:white;
    font-size:20px;
    font-weight:800;
    cursor:pointer;
    transition:.3s;
}

.submit-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 0 25px rgba(155,77,255,.6);
}

#formMessage{
    margin-top:20px;
    text-align:center;
    font-size:16px;
    font-weight:bold;
}

/* MOBILE */

@media(max-width:1000px){

    .navbar{
        height:auto;
        flex-direction:column;
        gap:18px;
        padding:20px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:22px;
    }

    .nav-join-btn{
        width:auto;
        padding:10px 22px;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

    .apply-form{
        padding:25px;
    }

    .hero-overlay h1{
        font-size:34px;
    }

    .apply-logo{
        width:180px;
    }
}

/* LOGIN MODAL */
.login-modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.login-box{
    width: 500px;
    max-width: 90%;
    background: #0b0b12;
    border: 1px solid rgba(155,77,255,.5);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 40px rgba(155,77,255,.3);
}

.login-box img{
    width: 90px;
    margin-bottom: 20px;
}

.login-box h2{
    color: white;
    margin-bottom: 15px;
}

.login-box p{
    color: #bdbdbd;
    line-height: 1.8;
    margin-bottom: 25px;
}

.discord-login-btn{
    display: inline-block;
    padding: 14px 30px;
    background: #5865F2;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
}

.discord-login-btn:hover{
    background: #4752c4;
}

/* USER CARD */
.nav-user-card{
    height:48px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:6px 14px 6px 8px;
    border:1px solid rgba(155,77,255,.9);
    border-radius:10px;
    background:rgba(8,8,14,.85);
    direction:ltr;
}

.nav-user-card img{
    width:36px !important;
    height:36px !important;
    border-radius:50%;
    object-fit:cover;
    display:block;
}

.nav-user-card span{
    color:white;
    font-size:14px;
    font-weight:900;
    white-space:nowrap;
}

.nav-user-card a{
    color:#b76cff;
    text-decoration:none;
    font-size:13px;
    font-weight:900;
    white-space:nowrap;
}

/* WIZARD FORM */
.wizard-header{
    margin-bottom:35px;
    padding:22px 24px;
    border:1px solid rgba(155,77,255,.38);
    border-radius:16px;
    background:rgba(255,255,255,.025);
}

.wizard-topline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-bottom:14px;
    font-weight:800;
}

#stepLabel{
    color:#b76cff;
}

#stepTitle{
    color:#fff;
}

.progress-track{
    width:100%;
    height:8px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    overflow:hidden;
}

.progress-bar{
    height:100%;
    width:20%;
    border-radius:999px;
    background:linear-gradient(90deg,#7c3aed,#a855f7);
    transition:width .35s ease;
}

.form-step{
    display:none;
    animation:fadeStep .25s ease;
}

.form-step.active{
    display:block;
}

@keyframes fadeStep{
    from{opacity:0; transform:translateY(8px);}
    to{opacity:1; transform:translateY(0);}
}

.wizard-actions{
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin-top:30px;
}

.wizard-btn{
    min-width:150px;
    padding:14px 24px;
    border-radius:10px;
    font-size:16px;
    font-weight:800;
    cursor:pointer;
    transition:.25s;
}

.wizard-btn.primary{
    margin-inline-start:auto;
    border:none;
    background:#9b4dff;
    color:#fff;
}

.wizard-btn.secondary{
    border:1px solid rgba(155,77,255,.55);
    background:transparent;
    color:#d9b8ff;
}

.wizard-btn:hover:not(:disabled){
    transform:translateY(-2px);
    box-shadow:0 0 18px rgba(155,77,255,.35);
}

.wizard-btn:disabled{
    opacity:.4;
    cursor:not-allowed;
}

.review-note{
    text-align:center;
    color:#bdbdbd;
    margin:-10px 0 25px;
    line-height:1.8;
}

.review-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.review-item{
    padding:16px;
    border:1px solid rgba(155,77,255,.3);
    border-radius:12px;
    background:rgba(255,255,255,.025);
    display:flex;
    flex-direction:column;
    gap:8px;
}

.review-label{
    color:#b76cff;
    font-size:13px;
    font-weight:800;
}

.review-value{
    color:#fff;
    line-height:1.7;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

@media(max-width:700px){
    .wizard-topline{
        align-items:flex-start;
        flex-direction:column;
        gap:6px;
    }

    .wizard-actions{
        flex-direction:column-reverse;
    }

    .wizard-btn{
        width:100%;
    }

    .review-grid{
        grid-template-columns:1fr;
    }
}


/* YES / NO BUTTONS */
.yes-no-group{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    width:100%;
}

.yes-no-option{
    position:relative;
    display:block;
    cursor:pointer;
    user-select:none;
}

.yes-no-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.yes-no-option span{
    min-height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(155,77,255,.4);
    border-radius:10px;
    background:rgba(255,255,255,.04);
    color:#fff;
    font-size:15px;
    font-weight:900;
    transition:.2s ease;
}

.yes-no-option:hover span{
    border-color:#9b4dff;
    background:rgba(155,77,255,.1);
    transform:translateY(-1px);
}

.yes-no-option input:focus-visible + span{
    outline:2px solid #c084fc;
    outline-offset:2px;
}

.yes-option input:checked + span{
    border-color:#22c55e;
    background:rgba(34,197,94,.18);
    box-shadow:0 0 16px rgba(34,197,94,.22);
    color:#86efac;
}

.no-option input:checked + span{
    border-color:#ef4444;
    background:rgba(239,68,68,.18);
    box-shadow:0 0 16px rgba(239,68,68,.2);
    color:#fca5a5;
}

@media(max-width:500px){
    .yes-no-group{
        grid-template-columns:1fr;
    }
}