:root {
    --wf-primary: #0b213a;          /* Deep Navy */
    --wf-accent: #c02222;           /* Brand Red */
    --wf-blue: #2c6ed5;             /* Action Blue */
    --wf-bg: #f4f7fa;               /* Soft Grey-Blue BG */
    --wf-card-bg: #ffffff;
    --wf-text-dark: #1e293b;
    --wf-text-muted: #64748b;
    --wf-border: #e2e8f0;
    --wf-success: #10b981;
    --wf-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ========================================= 
   PAGE WRAPPER
   ========================================= */
.wf-apply-body {
    background-color: var(--wf-bg);
    min-height: 100vh;
    padding: 60px 20px;
    font-family: 'DM Sans', sans-serif;
}

/* ========================================= 
   APPLICATION CARD
   ========================================= */
.wf-apply-card {
    max-width: 650px;
    margin: 0 auto;
    background: var(--wf-card-bg);
    border-radius: 24px;
    box-shadow: var(--wf-shadow);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ========================================= 
   PROGRESS BAR
   ========================================= */
.wf-progress-container {
    padding: 30px 40px 10px;
    background: #fff;
}

.wf-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 25px;
}

.wf-progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--wf-border);
    z-index: 1;
}

.wf-progress-line {
    position: absolute;
    top: 15px;
    left: 0;
    height: 2px;
    width: 0%; /* Dynamic */
    background: var(--wf-blue);
    z-index: 1;
    transition: width 0.4s ease;
}

.wf-step-node {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 2px solid var(--wf-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--wf-text-muted);
    z-index: 2;
    transition: all 0.3s ease;
}

.wf-step-node.active {
    border-color: var(--wf-blue);
    color: var(--wf-blue);
    box-shadow: 0 0 0 4px rgba(44, 110, 213, 0.1);
}

.wf-step-node.completed {
    background: var(--wf-blue);
    border-color: var(--wf-blue);
    color: #fff;
}

.wf-step-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--wf-text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================= 
   CARD HEADER
   ========================================= */
.wf-card-header {
    text-align: center;
    padding: 0 40px 30px;
}

.wf-card-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--wf-primary);
    margin-bottom: 10px;
}

.wf-card-header p {
    color: var(--wf-text-muted);
    font-size: 15px;
}

/* ========================================= 
   FORM CONTENT
   ========================================= */
.wf-form-content {
    padding: 0 40px 40px;
}

.wf-step-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.wf-step-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================= 
   INPUT STYLING
   ========================================= */
.wf-input-group {
    margin-bottom: 24px;
    position: relative;
}

.wf-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--wf-text-dark);
    margin-bottom: 8px;
}

.wf-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.wf-input-icon {
    position: absolute;
    left: 16px;
    color: var(--wf-text-muted);
    font-size: 18px;
    transition: color 0.3s ease;
}

.wf-control {
    width: 100%;
    height: 54px;
    padding: 12px 16px 12px 48px;
    border: 1.5px solid var(--wf-border);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    color: var(--wf-text-dark);
    transition: all 0.3s ease;
    background: #fff;
}

.wf-control:focus {
    outline: none;
    border-color: var(--wf-blue);
    box-shadow: 0 0 0 4px rgba(44, 110, 213, 0.1);
}

.wf-control:focus + .wf-input-icon {
    color: var(--wf-blue);
}

/* VALIDATION STATES */
.wf-input-group.success .wf-control {
    border-color: var(--wf-success);
}

.wf-input-group.error .wf-control {
    border-color: var(--wf-accent);
}

.wf-error-msg {
    color: var(--wf-accent);
    font-size: 12px;
    font-weight: 500;
    margin-top: 6px;
    display: none;
}

.wf-input-group.error .wf-error-msg {
    display: block;
}

/* ========================================= 
   TOGGLE SELECTOR (GRID)
   ========================================= */
.wf-toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 5px;
}

.wf-toggle-item input {
    display: none;
}

.wf-toggle-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 1.5px solid var(--wf-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.wf-toggle-label i {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--wf-text-muted);
}

.wf-toggle-label span {
    font-size: 14px;
    font-weight: 600;
}

.wf-toggle-item input:checked + .wf-toggle-label {
    border-color: var(--wf-blue);
    background: rgba(44, 110, 213, 0.04);
}

.wf-toggle-item input:checked + .wf-toggle-label i,
.wf-toggle-item input:checked + .wf-toggle-label span {
    color: var(--wf-blue);
}

/* ========================================= 
   ACTION BUTTONS
   ========================================= */
.wf-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.wf-btn {
    height: 54px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-btn-primary {
    background: var(--wf-blue);
    color: #fff;
    flex: 2;
}

.wf-btn-primary:hover {
    background: #1e56b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 110, 213, 0.25);
}

.wf-btn-secondary {
    background: var(--wf-border);
    color: var(--wf-text-dark);
    flex: 1;
}

.wf-btn-secondary:hover {
    background: #cbd5e1;
}

/* ========================================= 
   SECURITY FOOTER
   ========================================= */
.wf-security-footer {
    background: #f8fafc;
    padding: 20px 40px;
    border-top: 1px solid var(--wf-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wf-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wf-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.wf-trust-badge i {
    color: var(--wf-success);
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 500px) {
    .wf-form-content, .wf-progress-container, .wf-card-header, .wf-security-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .wf-toggle-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================= 
   PREVIEW SECTION (ULTRA-CLEAN REDESIGN)
   ========================================= */
.wf-preview-card {
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    text-align: left;
}

.wf-preview-header {
    background: #f8fafc;
    padding: 20px 28px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wf-preview-header h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.wf-status-pill {
    background: #ecfdf5;
    color: #059669;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wf-preview-body {
    padding: 10px 0;
}

.wf-preview-section {
    padding: 15px 28px;
}

.wf-preview-section-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--wf-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wf-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8fafc;
}

.wf-preview-row:last-child {
    border-bottom: none;
}

.wf-preview-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

/* Terms Box Refined */
.wf-terms-box {
    background: #fff;
    border: 1.5px solid #f1f5f9;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.wf-terms-box .form-check-input:checked {
    background-color: var(--wf-blue);
    border-color: var(--wf-blue);
}

/* ========================================= 
   SUCCESS SCREEN (IMMERSIVE REDESIGN)
   ========================================= */

.wf-success-full-screen {
    padding: 10px 0;
    text-align: center;
    animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon-section {
    margin-bottom: 30px;
}

.check-circle {
    width: 100px;
    height: 100px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.25);
    position: relative;
}

.check-circle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% { transform: scale(1.6); opacity: 0; }
}

.success-title {
    font-size: 34px;
    font-weight: 800;
    color: #0b213a;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.success-subtitle {
    color: #64748b;
    max-width: 420px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 1.6;
}

.summary-card-mini {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: left;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.summary-header {
    font-size: 13px;
    font-weight: 800;
    color: #0b213a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f1f5f9;
}

/* Success Summary Overrides */
#finalSummary .wf-preview-card {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

#finalSummary .wf-preview-header {
    display: none;
}

#finalSummary .wf-preview-body {
    padding: 0;
}

#finalSummary .wf-preview-row {
    padding: 10px 0;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-modern-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0b213a;
    color: #fff;
    padding: 18px 40px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-modern-primary:hover {
    background: #153255;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(11, 33, 58, 0.15);
    color: #fff;
}






