/* ==================================================
   BASE CONTAINER (ALL STEPS)
================================================== */

.sxs-admission-step{
    max-width:820px;
    margin:30px auto;
    background:#fff;
    border:2px solid #1b2fa6;
    padding:20px;
    position:relative;
    z-index:1;
}

.sxs-form-container{
    padding:15px;
    position:relative;
    z-index:2;
}

/* ==================================================
   APPLICATION HEADER
================================================== */

.sxs-app-header{
    display:flex;
    justify-content:space-between;
    font-size:13px;
    border-bottom:1px solid #1b2fa6;
    padding-bottom:4px;
    margin-bottom:10px;
}

/* ==================================================
   SCHOOL HEADER
================================================== */

.sxs-school-name{
    text-align:center;
    color:#0000cc;
    font-size:22px;
    font-weight:bold;
    margin:0;
}

.sxs-school-subtitle{
    text-align:center;
    color:#0000cc;
    font-size:15px;
    margin:5px 0 15px;
}

.sxs-form-title{
    text-align:center;
    color:#0000cc;
    font-size:14px;
    font-weight:bold;
    margin-bottom:20px;
}

/* ==================================================
   LOGO
================================================== */

.sxs-logo{
    text-align:center;
    margin-bottom:10px;
}

.sxs-logo-placeholder{
    width:120px;
    height:120px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

/* ==================================================
   TEXT & FORM ELEMENTS
================================================== */

.sxs-admission-step p{
    font-size:13px;
    line-height:1.7;
}

.sxs-admission-step input[type="text"],
.sxs-admission-step input[type="number"],
.sxs-admission-step textarea{
    border:none;
    border-bottom:1px dotted #000;
    font-size:13px;
    padding:4px 2px;
    outline:none;
}

.sxs-admission-step textarea{
    width:100%;
    resize:none;
}

/* ==================================================
   INLINE ROWS
================================================== */

.sxs-inline-row{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:nowrap;
}

.sxs-long-line{
    width:280px;
    border-bottom:1px solid #000;
}

.sxs-small-line{
    width:120px;
    border-bottom:1px solid #000;
}

/* ==================================================
   STEP 1 – PHOTO & SIGNATURE
================================================== */

.sxs-photo-row{
    display:flex;
    justify-content:space-between;
    margin:20px 0;
}

.sxs-photo-box{
    width:160px;
    height:190px;
    border:2px solid red;
    text-align:center;
    padding:6px;
    font-size:12px;
    position:relative;
}

.sxs-photo-preview{
    height:140px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.sxs-photo-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.sxs-photo-box input[type="file"]{
    position:absolute;
    bottom:4px;
    left:4px;
    width:calc(100% - 8px);
    font-size:11px;
}

/* ==================================================
   SIGNATURE
================================================== */

.sxs-signature-row{
    display:flex;
    justify-content:space-between;
    margin-top:30px;
}

.sxs-sign-box{
    width:45%;
    border:1px solid #000;
    padding:8px;
    text-align:center;
}

.sxs-sign-preview{
    height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    font-size:12px;
    color:#555;
}

.sxs-sign-preview img{
    max-width:100%;
    max-height:100%;
}

/* ==================================================
   HR TEXT
================================================== */

.sxs-hr-text{
    display:flex;
    align-items:center;
    margin:20px 0;
    font-weight:bold;
}

.sxs-hr-text::before,
.sxs-hr-text::after{
    content:"";
    flex:1;
    border-bottom:1px solid #000;
}

.sxs-hr-text span{
    padding:0 10px;
}

/* ==================================================
   STEP 2 – BIO DATA
================================================== */

.sxs-center-title{
    text-align:center;
    margin:15px 0;
}

.sxs-red-box{
    border:2px solid red;
    padding:6px 20px;
    font-weight:bold;
    display:inline-block;
}

.sxs-sub-title{
    margin-top:6px;
    font-size:13px;
    font-weight:bold;
    color:#0000cc;
}

.sxs-note{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:11px;
    color:#0000cc;
    margin-bottom:10px;
}

.sxs-form-row{
    font-size:13px;
    margin:6px 0;
    line-height:1.6;
}

.sxs-box-input{
    display:inline-flex;
    gap:2px;
}

.sxs-box-input input{
    width:18px;
    height:18px;
    border:1px solid #000;
    text-align:center;
    font-size:12px;
}

/* ==================================================
   STEP 3 – ADMIT CARD
================================================== */

.sxs-admit-logo{
    text-align:center;
    margin:10px 0;
}

.sxs-admit-header{
    text-align:center;
}

.sxs-admit-title{
    font-weight:bold;
    font-size:16px;
    margin-top:6px;
}

.sxs-admit-note{
    font-size:12px;
}

.sxs-admit-photo{
    width:120px;
    height:150px;
    border:2px solid #000;
    margin:20px auto;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
}

.sxs-admit-row{
    font-size:13px;
    margin:8px 0;
}

.sxs-line{
    display:inline-block;
    min-width:200px;
    border-bottom:1px dotted #000;
}

.sxs-small{
    min-width:120px;
}

.sxs-medium{
    min-width:160px;
}

.sxs-large{
    min-width:220px;
}

/* ==================================================
   STEP 4 – PROCEDURE
================================================== */

.sxs-heading{
    font-weight:bold;
    text-transform:uppercase;
    font-size:14px;
    margin-bottom:12px;
}

.sxs-sub-heading{
    font-weight:bold;
    font-size:13px;
    margin:14px 0 6px;
}

.sxs-list{
    font-size:13px;
    line-height:1.6;
    margin-left:18px;
}

.sxs-alpha{
    margin-left:20px;
}

.sxs-note-indent{
    margin-left:40px;
    font-style:italic;
}

/* ==================================================
   ACTION BUTTONS
================================================== */

.sxs-form-actions{
    margin-top:30px;
}

.sxs-between{
    display:flex;
    justify-content:space-between;
}

.sxs-form-actions button{
    background:#1b2fa6;
    color:#fff;
    border:none;
    padding:8px 18px;
    font-size:13px;
    cursor:pointer;
}

.sxs-form-actions button:hover{
    background:#0f1f80;
}

/* ==================================================
   WATERMARK (ALL STEPS)
================================================== */

.sxs-admission-step::before{
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width:320px;
    height:320px;
    background:url("../img/watermark.jpeg") center no-repeat;
    background-size:contain;
    opacity:0.08;
    transform:translate(-50%,-50%);
    pointer-events:none;
    z-index:0;
}

/* ==================================================
   PRINT SUPPORT
================================================== */

@media print{
    body{ background:#fff; }
    .sxs-form-actions{ display:none; }
    .sxs-admission-step::before{ opacity:0.12; }
}

/* ===============================
   GLOBAL LOADER
================================ */

.sxs-loader{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.sxs-spinner{
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top: 5px solid #1b2fa6;
    border-radius: 50%;
    animation: sxs-spin 1s linear infinite;
}

.sxs-loader-text{
    margin-top: 12px;
    font-size: 14px;
    color: #1b2fa6;
    font-weight: bold;
}

@keyframes sxs-spin{
    0%{ transform: rotate(0deg); }
    100%{ transform: rotate(360deg); }
}

