/* signup.css — Navy redesign, same HTML structure */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --navy:     #14233C;
    --navy2:    #0d1a2d;
    --blue:     #005BE6;
    --blue-lt:  #4a93fb;
    --green:    #008000;
    --red:      #d70b0b;
    --white:    #ffffff;
    --bg:       #f0f4fb;
    --muted:    #64748b;
    --border:   #e2e8f0;
}

body {
    background: var(--bg);
    color: #444;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

/* ===== LAYOUT ===== */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ===== LEFT PANEL ===== */
.wizard-content-left {
    flex: 0 0 42%;
    background-color: var(--navy);
    background-image:
        linear-gradient(160deg, rgba(0,91,230,0.35) 0%, rgba(13,26,45,0.9) 100%),
        url('https://www.wintrustunion.com/signup/form-wizard-bg-2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}

/* decorative circles */
.wizard-content-left::before,
.wizard-content-left::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.07);
}
.wizard-content-left::before {
    width: 400px; height: 400px;
    top: -100px; left: -100px;
}
.wizard-content-left::after {
    width: 300px; height: 300px;
    bottom: -80px; right: -80px;
}

.wizard-content-left h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    margin: 0 0 16px;
    position: relative;
    z-index: 1;
}
.wizard-content-left h1 span {
    color: var(--blue-lt);
}

/* ===== FORM PANEL ===== */
.form-panel {
    flex: 1;
    overflow-y: auto;
    background: var(--bg);
    display: flex;
    justify-content: center;
}

.form-wizard {
    color: #555;
    padding: 40px 44px;
    width: 100%;
    max-width: 640px;
}

/* ===== HEADER ===== */
.form-wizard-header {
    text-align: center;
    margin-bottom: 8px;
}
.form-wizard-header p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 24px;
}

/* ===== STEP INDICATORS ===== */
.form-wizard-steps {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: flex;
    align-items: center;
}
.form-wizard-steps::after { content: ''; display: table; clear: both; }

.form-wizard-steps li {
    width: 25%;
    position: relative;
    text-align: center;
}
.form-wizard-steps li::after {
    content: '';
    height: 3px;
    background: var(--border);
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}
.form-wizard-steps li:last-child::after { width: 50%; left: 0; }

.form-wizard-steps li span {
    background: var(--border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.3s, box-shadow 0.3s;
}

.form-wizard-steps li.active span {
    background: var(--blue);
    box-shadow: 0 0 0 5px rgba(0,91,230,0.18);
}
.form-wizard-steps li.activated span {
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(0,128,0,0.15);
}
.form-wizard-steps li.active::after,
.form-wizard-steps li.activated::after {
    background: var(--blue);
    left: 50%; width: 50%;
}
.form-wizard-steps li.activated::after {
    background: var(--green);
    width: 100%; left: 0;
}
.form-wizard-steps li:last-child::after { left: 0; }

/* ===== FIELDSETS ===== */
.wizard-fieldset { display: none; border: 0; margin: 0; padding: 0; }
.wizard-fieldset.show { display: block; }

.wizard-fieldset h5 {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
}

/* ===== FORM GROUPS ===== */
.form-group {
    position: relative;
    margin: 22px 0;
}

.form-control {
    font-weight: 400;
    height: auto !important;
    padding: 14px 16px;
    color: #333;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,91,230,0.1);
}
.form-control::placeholder { color: #c0c7d0; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Floating label */
.wizard-form-text-label {
    position: absolute;
    left: 16px;
    top: 14px;
    font-size: 0.95rem;
    color: #aab;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
}
.focus-input .wizard-form-text-label {
    top: -10px;
    left: 10px;
    font-size: 0.72rem;
    color: var(--blue);
    background: var(--white);
    padding: 0 5px;
    border-radius: 4px;
    font-weight: 600;
}

/* Error underline */
.wizard-form-error {
    display: none;
    background: var(--red);
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 0 0 10px 10px;
}
.wizard-form-error.visible { display: block; }
.form-control:has(+ .wizard-form-error.visible) {
    border-color: var(--red);
}

/* Password eye */
.wizard-password-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--muted);
    font-size: 1.1rem;
    user-select: none;
    transition: color 0.2s;
}
.wizard-password-eye:hover { color: var(--blue); }

/* ===== NAVIGATION ===== */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.form-wizard-next-btn,
.form-wizard-submit {
    background: linear-gradient(135deg, var(--blue) 0%, #003ea3 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(0,91,230,0.3);
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.form-wizard-next-btn:hover,
.form-wizard-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,91,230,0.38);
    color: #fff;
}

.form-wizard-previous-btn {
    background: #f1f5f9;
    color: var(--muted);
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.form-wizard-previous-btn:hover {
    background: #e2e8f0;
    color: var(--navy);
}

.form-wizard-login-btn {
    background: transparent;
    color: var(--blue);
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    text-decoration: none;
    transition: opacity 0.2s;
}
.form-wizard-login-btn:hover { opacity: 0.75; color: var(--blue); }

/* ===== IDENTITY CARDS ===== */
.identity-intro {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #1e40af;
    margin-bottom: 22px;
    line-height: 1.6;
}

.info-cards { margin-bottom: 22px; }
.info-card {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.info-card-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #EBF2FF;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.info-card h6 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 0.875rem;
    font-weight: 700;
}
.info-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ===== PROFILE UPLOAD ===== */
.profile-pic-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}
.pic-holder {
    width: 130px; height: 130px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
    border: 3px solid var(--blue);
    box-shadow: 0 4px 16px rgba(0,91,230,0.2);
    cursor: pointer;
}
.pic-holder .pic {
    width: 100%; height: 100%; object-fit: cover;
}
.pic-holder .upload-file-block,
.pic-holder .upload-loader {
    position: absolute;
    inset: 0;
    background: rgba(0,91,230,0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    border-radius: 50%;
}
.pic-holder:hover .upload-file-block { opacity: 1; }
.pic-holder.upload-in-progress .upload-file-block { display: none; }
.pic-holder.upload-in-progress .upload-loader { opacity: 1; }
.uploadProfileInput { display: none; }
.upload-label-text {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}
.spinner {
    width: 28px; height: 28px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== SNACKBAR ===== */
.snackbar {
    visibility: hidden;
    min-width: 260px;
    background: var(--navy);
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 14px 20px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    font-size: 0.85rem;
    transform: translateX(-50%);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.snackbar.show {
    visibility: visible;
    animation: fadein 0.4s, fadeout 0.4s 2.6s forwards;
}
@keyframes fadein  { from { bottom:10px; opacity:0; } to { bottom:30px; opacity:1; } }
@keyframes fadeout { from { bottom:30px; opacity:1; } to { bottom:10px; opacity:0; } }

/* ===== SUCCESS PANEL ===== */
.success-panel { display: none; text-align: center; padding: 40px 0; }
.success-panel.show { display: block; }
.success-panel h5 { color: var(--green); font-size: 1.3rem; margin-bottom: 12px; font-weight: 700; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .layout { flex-direction: column; }
    .wizard-content-left { flex: none; min-height: 200px; padding: 30px 24px; }
    .wizard-content-left h1 { font-size: 1.6rem; }
    .form-wizard { padding: 28px 20px; }
}
@media (max-width: 767px) {
    .wizard-content-left { min-height: 160px; }
    .info-card { flex-direction: column; gap: 8px; }
}