/* assets/css/jsa-onboard.css */

/* Bigger, bolder form box */
#jsa-onboard-form {
    max-width: 560px;
    margin: 46px auto 70px auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 3px 32px 0 rgba(44, 62, 80, 0.10), 0 2px 12px 0 rgba(44,62,80,0.10);
    padding: 48px 44px 38px 44px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

/* Logo - big and centered */
#jsa-onboard-form .jsa-onboard-logo,
.jsa-onboard-logo {
    text-align: center;
    margin-bottom: 44px;
}
#jsa-onboard-form .jsa-onboard-logo img,
.jsa-onboard-logo img {
    max-width: 420px;
    width: 90%;
    height: auto;
    display: inline-block;
    margin: 0 auto 10px auto;
    padding-bottom: 0;
}

/* Progress Bar */
#jsa-onboard-form .jsa-progressbar {
    width: 100%;
    background: #ececec;
    height: 10px;
    border-radius: 14px;
    margin-bottom: 30px;
    overflow: hidden;
}
#jsa-onboard-form .jsa-progress {
    height: 100%;
    background: #31b6b4;
    border-radius: 12px 0 0 12px;
    transition: width 0.25s cubic-bezier(.6,.01,.4,1);
    width: 25%; /* JS will update this dynamically */
}

/* Steps */
#jsa-onboard-form .jsa-step {
    display: none;
    animation: jsa-fadein 0.45s;
}
#jsa-onboard-form .jsa-step.active {
    display: block;
}

@keyframes jsa-fadein {
    from { opacity: 0; transform: translateY(20px);}
    to   { opacity: 1; transform: none; }
}

#jsa-onboard-form h2,
#jsa-onboard-form h3 {
    margin-top: 0;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    color: #233a53;
    margin-bottom: 24px;
}

#jsa-onboard-form label {
    font-size: 1.12rem;
    color: #42506b;
    display: block;
    margin-bottom: 8px;
    margin-top: 18px;
    font-weight: 500;
}

/* Base inputs */
#jsa-onboard-form input[type="text"],
#jsa-onboard-form input[type="email"],
#jsa-onboard-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.8px solid #c4d0df;
    border-radius: 10px;
    font-size: 1.08rem;
    background: #fafcff;
    margin-bottom: 22px;
    box-sizing: border-box;
}

/* (optional) matching focus style */
#jsa-onboard-form input[type="text"]:focus,
#jsa-onboard-form input[type="email"]:focus,
#jsa-onboard-form input[type="tel"]:focus {
    border-color: #2583b7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,131,183,0.15);
    background: #fff;
}

#jsa-onboard-form input[type="file"] {
    display: none;
}
#jsa-onboard-form .jsa-file-label {
    display: inline-block;
    background: #f1faf8;
    border: 1.5px dashed #31b6b4;
    color: #239088;
    padding: 16px 26px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 16px;
    margin-top: 5px;
    transition: background 0.15s;
}
#jsa-onboard-form .jsa-file-label:hover {
    background: #e1f7f3;
}

/* Unified, modern button style - bigger and bold */
#jsa-onboard-form button,
#jsa-onboard-form .jsa-step-actions button,
#jsa-onboard-form .jsa-next-step,
#jsa-onboard-form .jsa-prev-step {
    display: inline-block;
    padding: 18px 54px;
    background: #2583b7;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.28rem;
    margin: 20px 12px 0 0;
    cursor: pointer;
    transition: 
        background 0.18s, 
        box-shadow 0.18s, 
        transform 0.09s;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.10);
    outline: none;
    min-width: 150px;
    letter-spacing: 0.5px;
}

/* --- BUTTON ACTIVE STATE --- */
#jsa-onboard-form button:active,
#jsa-onboard-form .jsa-step-actions button:active,
#jsa-onboard-form .jsa-next-step:active,
#jsa-onboard-form .jsa-prev-step:active {
    background: #17466d !important;
    color: #e3eaff !important;
    transform: scale(0.96);
    box-shadow: 0 1px 3px rgba(44, 62, 80, 0.15);
}

#jsa-onboard-form .jsa-next-step {
    background: #2583b7;
}
#jsa-onboard-form .jsa-next-step:hover,
#jsa-onboard-form button:hover:not(.jsa-prev-step) {
    background: #1a5677;
}
#jsa-onboard-form .jsa-prev-step {
    background: #e8e8ec;
    color: #48506b;
    border: 1px solid #d3d6e3;
}
#jsa-onboard-form .jsa-prev-step:hover {
    background: #cfd2de;
    color: #1a5677;
}
/* ACTIVE for prev-step button */
#jsa-onboard-form .jsa-prev-step:active {
    background: #b8bac5 !important;
    color: #233a53 !important;
    transform: scale(0.96);
}

/* Confirmation message */
#jsa-onboard-form .jsa-confirm-message {
    font-size: 1.22rem;
    color: #258d60;
    font-weight: 600;
    margin-top: 23px;
    padding: 18px 0;
    text-align: center;
}

/* Radio buttons and row */
#jsa-onboard-form .jsa-radio-row {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}
#jsa-onboard-form .jsa-radio-row label {
    margin: 0;
    font-weight: 500;
    color: #45505c;
}
#jsa-onboard-form input[type="radio"] {
    margin-right: 8px;
    accent-color: #2583b7;
}

@media (max-width: 600px) {
    #jsa-onboard-form {
        max-width: 99vw;
        padding: 14px 2vw;
        border-radius: 12px;
    }
    #jsa-onboard-form h2, #jsa-onboard-form h3 {
        font-size: 1.13rem;
    }
    .jsa-onboard-logo img {
        max-width: 180px !important;
    }
}

#jsa-onboard-form .jsa-step:not(.active) { display: none !important; }
#jsa-onboard-form .jsa-step.active { display: block !important; }
/* --- Multi-File Upload Queue Styles --- */

#jsa-onboard-form #jsa-upload-queue {
    background: #f7fafc;
    border: 1.5px solid #e5eaf3;
    border-radius: 10px;
    padding: 18px 18px 6px 18px;
    margin-bottom: 14px;
    margin-top: 14px;
    box-shadow: 0 2px 10px rgba(44, 62, 80, 0.04);
    font-size: 1.07rem;
    color: #233a53;
    min-height: 44px;
    transition: all 0.22s;
    animation: jsa-fadein 0.44s;
}
#jsa-onboard-form #jsa-upload-queue ul {
    list-style: disc inside;
    margin-left: 14px;
    padding-left: 0;
}
#jsa-onboard-form #jsa-upload-queue li {
    margin-bottom: 7px;
    line-height: 1.42;
    color: #2d536f;
    font-size: 1.02rem;
}
#jsa-onboard-form #jsa-upload-queue strong {
    color: #17466d;
    font-size: 1.09rem;
}

/* Processing Button */
#jsa-onboard-form #jsa-process-btn {
    display: none;
    padding: 15px 44px;
    background: linear-gradient(90deg, #31b6b4 60%, #2583b7 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.14rem;
    border: none;
    border-radius: 10px;
    box-shadow: 0 1.5px 5px rgba(44,62,80,0.09);
    margin-bottom: 14px;
    margin-left: 2px;
    margin-top: 6px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.18s, transform 0.11s;
}
#jsa-onboard-form #jsa-process-btn:hover:not(:disabled) {
    background: linear-gradient(90deg, #2583b7 50%, #1a5677 100%);
}
#jsa-onboard-form #jsa-process-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
}

#jsa-onboard-form .jsa-error-message {
    background: #ffecec;
    color: #b60000;
    border: 1.5px solid #ffd8d8;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    margin-top: 6px;
    font-size: 1.07rem;
    text-align: left;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(182,0,0,0.07);
    word-break: break-word;
    animation: jsa-fadein 0.45s;
}

/* Responsive adjustments for queue/btn on mobile */
@media (max-width: 600px) {
    #jsa-onboard-form #jsa-upload-queue {
        font-size: 0.97rem;
        padding: 12px 7px 2px 12px;
    }
    #jsa-onboard-form #jsa-process-btn {
        padding: 11px 12px;
        font-size: 1.01rem;
    }
}
#jsa-onboard-form .jsa-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2.5px dashed #31b6b4;
    background: #f1faf8;
    color: #239088;
    border-radius: 11px;
    padding: 28px 8px 18px 8px;
    margin-bottom: 18px;
    cursor: pointer;
    min-height: 100px;
    transition: border 0.15s, background 0.18s;
}
#jsa-onboard-form .jsa-dropzone.dragover {
    border-color: #2583b7;
    background: #e1f7f3;
}
#jsa-onboard-form .jsa-file-btn {
    background: #2583b7;
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 9px 28px;
    margin: 10px 0 0 8px;
    font-size: 1.09rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-block;
}
#jsa-onboard-form .jsa-file-btn:hover {
    background: #1a5677;
}
#jsa-onboard-form .jsa-upload-limits {
    color: #709c96;
    font-size: 0.97rem;
    margin-top: 10px;
    font-weight: 400;
}
/* === GLOBAL PROCESSING OVERLAY =================================== */
#jsa-processing-overlay{
    position: fixed; 
    inset: 0; 
    z-index: 9999;
    background: rgba(255,255,255,.82);
    display: none; /* <-- THIS LINE */
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: #17466d;
}

.jsa-processing-spinner{
    width:64px; height:64px;
    border:8px solid #eee; border-top:8px solid #2583b7;
    border-radius:50%; animation:jsa-spin 1s linear infinite;
    margin-bottom:26px;
}
@keyframes jsa-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
