/**
 * Akhuwat Loan Manager — Frontend Styles
 * Fully responsive, mobile-first professional design
 */

/* ============ RESET & BASE ============ */
.alm-form-wrapper,
.alm-form-wrapper *,
.alm-chk-container,
.alm-chk-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.alm-form-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 680px;
    width: 100%;
    margin: 32px auto;
    padding: 0 16px;
    color: #1a1a2e;
}

/* ============ FORM CONTAINER ============ */
.alm-form-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08), 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    animation: almSlideUp 0.5s ease-out;
}

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

/* ============ HEADER ============ */
.alm-form-header {
    background: linear-gradient(135deg, #0d7a3e 0%, #14a352 50%, #1dc965 100%);
    padding: 32px 24px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.alm-form-header::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 60%);
    animation: almShimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes almShimmer {
    0%,100% { transform: rotate(0deg); }
    50%      { transform: rotate(180deg); }
}

.alm-form-logo { margin-bottom: 10px; }
.alm-form-logo img { height: 60px; width: auto; }

.alm-form-title {
    color: #fff;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 800;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    position: relative;
}

.alm-form-subtitle {
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    line-height: 1.6;
    position: relative;
}

/* ============ FORM BODY ============ */
#almApplicationForm { padding: 24px 20px 28px; }

.alm-field-group { margin-bottom: 20px; }

.alm-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.alm-label-icon { margin-right: 4px; }
.alm-required { color: #ef4444; font-weight: 700; }

/* ============ INPUTS ============ */
.alm-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a2e;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.alm-input:hover { border-color: #cbd5e1; background: #fff; }
.alm-input:focus { border-color: #0d7a3e; background: #fff; box-shadow: 0 0 0 3px rgba(13,122,62,0.1); }
.alm-input.alm-input-error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.alm-input.alm-input-success { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }

.alm-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.alm-hint { display: block; font-size: 11px; color: #94a3b8; margin-top: 5px; }

/* ============ ERROR ============ */
.alm-error {
    font-size: 12px; color: #ef4444; margin-top: 5px;
    min-height: 0; overflow: hidden; font-weight: 500;
    transition: all 0.25s ease;
}
.alm-error:not(:empty) { min-height: 18px; animation: almShakeX 0.4s ease; }

@keyframes almShakeX {
    0%,100% { transform: translateX(0); }
    25%      { transform: translateX(-5px); }
    75%      { transform: translateX(5px); }
}

/* ============ PHOTO UPLOAD ============ */
.alm-photo-upload { text-align: center; }

.alm-photo-preview {
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 3px dashed #d1d5db;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    cursor: pointer; overflow: hidden;
    transition: all 0.25s ease;
    background: #f8fafc;
    position: relative;
}

.alm-photo-preview:hover { border-color: #0d7a3e; border-style: solid; box-shadow: 0 6px 20px rgba(13,122,62,0.15); }
.alm-photo-preview.alm-has-photo { border-style: solid; border-color: #0d7a3e; }
.alm-photo-placeholder { color: #94a3b8; font-size: 26px; text-align: center; line-height: 1.4; }
.alm-photo-placeholder small { font-size: 10px; display: block; margin-top: 4px; }
#almPhotoImg { width: 100%; height: 100%; object-fit: cover; }
.alm-file-input { display: none; }

/* ============ AUTO-FILLED FIELDS ============ */
.alm-auto-fields {
    margin: 20px 0;
    padding: 18px 16px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 14px;
    border: 1px solid #bbf7d0;
    animation: almFadeIn 0.35s ease-out;
}

@keyframes almFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.alm-auto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.alm-auto-item { text-align: center; padding: 10px 8px; }
.alm-auto-label { display: block; font-size: 11px; color: #6b7280; font-weight: 500; margin-bottom: 5px; }
.alm-auto-value { display: block; font-size: 17px; font-weight: 700; color: #0d7a3e; }

/* ============ SUBMIT BUTTON ============ */
.alm-submit-group { margin-top: 24px; }

.alm-submit-btn {
    width: 100%;
    padding: 15px 24px;
    font-size: 16px; font-weight: 700; font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #0d7a3e, #14a352, #1dc965);
    border: none; border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 14px rgba(13,122,62,0.3);
}

.alm-submit-btn:hover  { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13,122,62,0.4); }
.alm-submit-btn:active { transform: translateY(0); }
.alm-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.alm-spinner {
    display: inline-block; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
    border-radius: 50%; animation: almSpinAnim 0.75s linear infinite;
    vertical-align: middle; margin-right: 7px;
}

@keyframes almSpinAnim { to { transform: rotate(360deg); } }

/* ============ FORM NOTE ============ */
.alm-form-note {
    margin-top: 18px; padding: 14px 16px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-radius: 10px; border-left: 4px solid #f59e0b;
    font-size: 13px; line-height: 1.7; color: #78350f;
}

.alm-form-note a { color: #0d7a3e; font-weight: 600; text-decoration: none; }
.alm-form-note a:hover { text-decoration: underline; }

/* ============ SUCCESS CARD ============ */
.alm-success-container { animation: almSlideUp 0.5s ease-out; }

.alm-success-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 20px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.07);
    border: 1px solid #f1f5f9;
}

.alm-success-icon { font-size: 64px; margin-bottom: 14px; animation: almBounce 1s ease infinite; }

@keyframes almBounce {
    0%,20%,50%,80%,100% { transform: translateY(0); }
    40% { transform: translateY(-14px); }
    60% { transform: translateY(-7px); }
}

.alm-success-title { font-size: clamp(18px, 4vw, 24px); font-weight: 800; color: #0d7a3e; margin-bottom: 10px; }
.alm-success-text { font-size: 14px; color: #64748b; line-height: 1.7; margin-bottom: 20px; }

.alm-success-notice {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 14px; padding: 18px 16px;
    margin: 18px 0; text-align: left;
    border: 1px solid #fbbf24;
}

.alm-success-notice h3 { color: #92400e; font-size: 14px; margin-bottom: 8px; }
.alm-success-notice p  { color: #78350f; font-size: 13px; margin-bottom: 10px; }

.alm-doc-list { list-style: none; padding: 0; }
.alm-doc-list li { padding: 7px 0; color: #78350f; font-size: 13px; font-weight: 500; border-bottom: 1px solid rgba(251,191,36,0.3); }
.alm-doc-list li:last-child { border-bottom: none; }

.alm-whatsapp-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important; text-decoration: none !important;
    border-radius: 50px; font-size: 15px; font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
    margin: 16px 0;
}

.alm-whatsapp-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.45); color: #fff !important; }
.alm-success-email-note { color: #94a3b8; font-size: 13px; margin-top: 14px; }

.alm-apply-again-btn {
    display: inline-block; margin-top: 16px;
    padding: 10px 26px;
    background: transparent; color: #64748b;
    border: 2px solid #e2e8f0; border-radius: 10px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.25s ease; font-family: inherit;
}

.alm-apply-again-btn:hover { border-color: #0d7a3e; color: #0d7a3e; }

/* ============ GLOBAL ERROR ============ */
.alm-global-error {
    padding: 12px 16px; border: 1px solid #fca5a5;
    border-radius: 10px; background: #fef2f2;
    color: #991b1b; font-size: 13px; font-weight: 500;
    margin-bottom: 16px;
}

/* ============ PAYMENT SECTION (Apply Form) ============ */
.alm-payment-section {
    margin: 24px 0 6px;
    background: #fff;
    border-radius: 16px;
    padding: 22px 18px 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.alm-payment-heading {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}

.alm-pay-icon { font-size: 32px; flex-shrink: 0; }
.alm-payment-heading h3 { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 3px; }
.alm-payment-heading p  { font-size: 12px; color: #64748b; }

.alm-fee-banner {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac; border-radius: 10px;
    padding: 12px 16px; margin-bottom: 16px;
}

.alm-fee-label { color: #166534; font-size: 13px; font-weight: 600; }
.alm-fee-amount { color: #15803d; font-size: 20px; font-weight: 800; }

.alm-pay-instructions { font-size: 12px; color: #475569; line-height: 1.6; margin-bottom: 14px; }

/* Payment account cards */
.alm-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px; margin-bottom: 16px;
}

.alm-accounts-loading { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 13px; padding: 12px; }

.alm-account-card {
    border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 14px; background: #fff;
    border-top: 3px solid #64748b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
}

.alm-account-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.alm-account-card.type-jazzcash   { border-top-color: #dc2626; }
.alm-account-card.type-easypaisa  { border-top-color: #059669; }
.alm-account-card.type-bank       { border-top-color: #2563eb; }

.alm-acc-type-badge {
    font-size: 11px; font-weight: 700;
    color: #fff; padding: 3px 8px;
    border-radius: 6px; display: inline-block;
    margin-bottom: 8px; background: #64748b;
}

.alm-account-card.type-jazzcash  .alm-acc-type-badge { background: #dc2626; }
.alm-account-card.type-easypaisa .alm-acc-type-badge { background: #059669; }
.alm-account-card.type-bank      .alm-acc-type-badge { background: #2563eb; }

.alm-acc-title    { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 3px; }
.alm-acc-name     { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.alm-acc-no-row   { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.alm-acc-no       { font-size: 13px; font-weight: 700; font-family: 'Courier New', monospace; color: #1e293b; }
.alm-acc-bank     { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.alm-acc-photo    { width: 100%; max-height: 60px; object-fit: contain; margin-top: 8px; border-radius: 6px; }

.alm-copy-btn {
    font-size: 11px; font-weight: 600;
    padding: 4px 9px; border-radius: 6px;
    border: 1px solid #e2e8f0; background: #f8fafc;
    color: #475569; cursor: pointer;
    font-family: inherit; transition: all 0.2s ease; white-space: nowrap;
}

.alm-copy-btn:hover { border-color: #0d7a3e; color: #0d7a3e; background: #f0fdf4; }
.alm-copy-btn.alm-copied { background: #0d7a3e; color: #fff; border-color: #0d7a3e; }

/* Proof Upload (Apply Form) */
.alm-proof-upload-wrap { margin-top: 16px; }

.alm-proof-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }

.alm-upload-zone {
    border: 2px dashed #cbd5e1; border-radius: 12px;
    background: #f8fafc; overflow: hidden;
    transition: all 0.25s ease; cursor: pointer;
}

.alm-upload-zone.alm-drag-over { border-color: #0d7a3e; background: #f0fdf4; }

.alm-upload-body { padding: 24px 16px; text-align: center; }
.alm-upload-cloud { font-size: 40px; margin-bottom: 8px; opacity: 0.6; }
.alm-upload-text  { font-size: 13px; color: #64748b; margin-bottom: 4px; }
.alm-upload-or    { font-size: 12px; color: #94a3b8; margin: 6px 0; }

.alm-upload-pick-btn {
    display: inline-block; padding: 9px 20px;
    background: #0d7a3e; color: #fff;
    border: none; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: background 0.2s ease;
}

.alm-upload-pick-btn:hover { background: #065f46; }
.alm-upload-hint { font-size: 11px; color: #94a3b8; margin-top: 6px; }

.alm-upload-preview { padding: 16px; text-align: center; }
.alm-upload-preview img { max-width: 100%; max-height: 180px; border-radius: 10px; border: 1px solid #e2e8f0; }

.alm-preview-info { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
#almPreviewName { color: #475569; font-size: 12px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.alm-remove-proof {
    background: #fef2f2; color: #dc2626;
    border: 1px solid #fecaca; border-radius: 6px;
    padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: inherit;
    transition: background 0.2s ease;
}

.alm-remove-proof:hover { background: #fee2e2; }

.alm-proof-msg { padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.alm-proof-error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alm-proof-success { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }

.alm-proof-submit-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #14a352, #0d7a3e);
    color: #fff; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(20,163,82,0.3); margin-bottom: 10px;
}

.alm-proof-submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,163,82,0.4); }
.alm-proof-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.alm-proof-final-note { color: #94a3b8; font-size: 11px; text-align: center; line-height: 1.5; }

/* Spinner (white) */
.alm-spin {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
    border-radius: 50%; animation: almSpinAnim 0.7s linear infinite;
    vertical-align: middle; margin-right: 5px;
}

/* ============ CHECK LOAN STATUS FORM ============ */
.alm-chk-container {
    max-width: 680px;
    width: 100%;
    margin: 32px auto;
    padding: 0 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
}

.alm-chk-header { text-align: center; margin-bottom: 24px; }
.alm-chk-header h2 { font-size: clamp(20px, 4vw, 26px); font-weight: 800; color: #0f172a; margin-bottom: 6px; letter-spacing: -0.4px; }
.alm-chk-header p  { color: #64748b; font-size: 13px; }

.alm-chk-body {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 22px 20px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

/* Tabs */
.alm-chk-tabs {
    display: flex; gap: 5px;
    background: #f1f5f9; border-radius: 10px;
    padding: 4px; margin-bottom: 20px;
}

.alm-chk-tab {
    flex: 1; padding: 9px 12px;
    border: none; background: transparent;
    border-radius: 7px; font-size: 13px; font-weight: 600;
    color: #64748b; cursor: pointer;
    transition: all 0.2s ease; font-family: inherit; text-align: center;
}

.alm-chk-tab:hover  { color: #1e293b; background: rgba(255,255,255,0.6); }
.alm-chk-tab.active { background: #fff; color: #0d7a3e; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.alm-chk-panel        { display: none; }
.alm-chk-panel.active { display: block; }

.alm-chk-label { display: block; font-size: 13px; font-weight: 600; color: #1e293b; margin-bottom: 7px; }
.alm-chk-label .req { color: #ef4444; margin-left: 2px; }

.alm-chk-input {
    width: 100%; padding: 12px 16px;
    border: 2px solid #e2e8f0; border-radius: 10px;
    font-size: 15px; font-family: inherit; color: #1e293b;
    background: #fff; outline: none; letter-spacing: 1px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alm-chk-input:focus { border-color: #0d7a3e; box-shadow: 0 0 0 3px rgba(13,122,62,0.1); }
.alm-chk-hint { display: block; margin-top: 5px; font-size: 11px; color: #94a3b8; }

.alm-chk-error {
    display: none; padding: 10px 13px;
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 8px; color: #dc2626; font-size: 13px; font-weight: 500;
    margin: 10px 0 0;
}

.alm-chk-submit {
    display: flex; align-items: center; justify-content: center;
    width: 100%; margin-top: 16px; padding: 14px 24px;
    background: linear-gradient(135deg, #0d7a3e, #14a352);
    color: #fff; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    font-family: inherit; letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(13,122,62,0.28);
}

.alm-chk-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13,122,62,0.38); }
.alm-chk-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.alm-chk-spinner {
    display: inline-block; width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
    border-radius: 50%; animation: almSpinAnim 0.7s linear infinite;
    vertical-align: middle; margin-right: 6px;
}

/* Results container */
.alm-chk-results { display: none; margin-top: 20px; }

/* ============ RESULT CARDS ============ */
.alm-result-card {
    background: #fff;
    border-radius: 16px; border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    padding: 22px 20px; margin-bottom: 16px;
    animation: almSlideUp 0.45s ease-out;
}

.alm-result-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 18px; padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9; gap: 10px;
    flex-wrap: wrap;
}

.alm-result-ref  { font-size: 12px; font-weight: 700; color: #64748b; letter-spacing: 1px; font-family: 'Courier New', monospace; }
.alm-result-name { font-size: 17px; font-weight: 700; color: #1a1a2e; margin-top: 4px; }

.alm-status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px; border-radius: 50px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
    white-space: nowrap; flex-shrink: 0;
    animation: almPulse 2s ease-in-out infinite;
}

@keyframes almPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* ============ PROGRESS BAR ============ */
.alm-progress-bar {
    display: flex; align-items: center; justify-content: space-between;
    margin: 20px 0 36px; position: relative;
    padding: 0 4px;
}

.alm-progress-bar::before {
    content: ''; position: absolute;
    top: 50%; left: 28px; right: 28px;
    height: 3px; background: #e2e8f0;
    transform: translateY(-50%); z-index: 0;
}

.alm-progress-fill {
    position: absolute; top: 50%; left: 28px;
    height: 3px; background: linear-gradient(90deg, #10b981, #0d7a3e);
    transform: translateY(-50%); z-index: 1;
    transition: width 1s ease-out; border-radius: 3px;
}

.alm-progress-step {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 2; background: #fff;
    border: 3px solid #e2e8f0;
    transition: all 0.45s ease;
    position: relative; flex-shrink: 0;
}

.alm-progress-step.active  { border-color: #10b981; background: #d1fae5; }
.alm-progress-step.current { border-color: #f59e0b; background: #fef3c7; animation: almPulse 1.5s ease-in-out infinite; }

.alm-progress-step .num {
    font-size: 14px; font-weight: 700; color: #94a3b8; line-height: 1;
}

.alm-progress-step.active .num  { color: #059669; }
.alm-progress-step.current .num { color: #d97706; }

.alm-progress-step-label {
    position: absolute; bottom: -22px; left: 50%;
    transform: translateX(-50%);
    font-size: 9px; font-weight: 600; color: #94a3b8;
    white-space: nowrap;
}

/* ============ DETAIL GRID ============ */
.alm-detail-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-top: 16px;
}

.alm-detail-item {
    background: #f8fafc; border-radius: 10px;
    padding: 12px; border: 1px solid #f1f5f9;
}

.alm-detail-item-label { font-size: 10px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 4px; }
.alm-detail-item-value { font-size: 14px; font-weight: 700; color: #1a1a2e; word-break: break-word; }
.alm-detail-item-value.alm-amount { color: #0d7a3e; font-size: 15px; }

/* ============ CHECK RESULT PAYMENT BLOCK ============ */
.alm-chk-payment-block {
    margin-top: 16px; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 14px;
    padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.alm-chk-payment-block h4 { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0 0 6px; }
.alm-chk-payment-block p  { font-size: 12px; color: #64748b; margin: 0 0 10px; line-height: 1.6; }

.alm-chk-payment-approved { border-color: #86efac; background: linear-gradient(135deg, #f0fdf4, #fff); }
.alm-chk-payment-approved h4 { color: #065f46; }

.alm-chk-fee-row {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac; border-radius: 10px;
    padding: 11px 14px; margin-bottom: 12px;
}

.alm-chk-fee-label { color: #166534; font-size: 12px; font-weight: 600; }
.alm-chk-fee-val   { color: #15803d; font-size: 18px; font-weight: 800; }

.alm-chk-instr { font-size: 12px; color: #475569; margin: 6px 0 10px; line-height: 1.6; }

.alm-chk-acc-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px; margin-bottom: 10px;
}

.alm-chk-wa-msg {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 8px; padding: 12px 14px;
    font-size: 12px; color: #475569; line-height: 1.6; margin-top: 6px;
}

/* Upload zone per-card */
.alm-chk-upload-wrap { margin-top: 14px; border-top: 1px dashed #e2e8f0; padding-top: 14px; }
.alm-chk-upload-title { font-size: 13px; font-weight: 700; color: #1e293b; margin: 0 0 10px; }

.alm-chk-upload-zone {
    border: 2px dashed #cbd5e1; border-radius: 10px;
    background: #f8fafc; padding: 20px 14px;
    text-align: center; cursor: pointer;
    transition: all 0.2s ease; margin-bottom: 10px;
}

.alm-chk-upload-zone:hover { border-color: #0d7a3e; background: #f0fdf4; }
.alm-chk-upload-cloud { font-size: 28px; margin-bottom: 5px; }
.alm-chk-upload-body p { font-size: 12px; color: #475569; margin: 0 0 3px; }
.alm-chk-upload-body small { font-size: 10px; color: #94a3b8; }
.alm-chk-upload-preview { padding: 10px; text-align: center; }
.alm-chk-upload-preview img { max-width: 100%; max-height: 140px; border-radius: 8px; border: 1px solid #e2e8f0; margin-bottom: 6px; }
.alm-chk-filename { font-size: 11px; color: #475569; margin: 0 0 6px; }
.alm-chk-remove-btn { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; border-radius: 5px; padding: 3px 9px; font-size: 11px; cursor: pointer; font-family: inherit; }
.alm-chk-remove-btn:hover { background: #fee2e2; }
.alm-chk-proof-msg { padding: 9px 12px; border-radius: 8px; font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.alm-chk-proof-error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; display: none; }
.alm-chk-proof-success { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; display: none; }

.alm-chk-submit-proof-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, #0d7a3e, #14a352);
    color: #fff; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(13,122,62,0.25); margin-bottom: 10px;
}

.alm-chk-submit-proof-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(13,122,62,0.35); }
.alm-chk-submit-proof-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.alm-chk-wa-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important; text-decoration: none !important;
    border-radius: 10px; font-size: 14px; font-weight: 700;
    margin-top: 6px; transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(37,211,102,0.3);
}

.alm-chk-wa-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37,211,102,0.4); color: #fff !important; }

/* ============ NO RESULTS ============ */
.alm-no-results { text-align: center; padding: 36px 20px; animation: almSlideUp 0.4s ease-out; }
.alm-no-results h3 { color: #1a1a2e; font-size: 17px; margin-bottom: 8px; }
.alm-no-results p  { color: #64748b; font-size: 13px; line-height: 1.6; }

/* ============ STATUS CHECK TABS (old compat) ============ */
.alm-check-tabs { display: flex !important; gap: 6px !important; background: #f1f5f9 !important; border-radius: 12px !important; padding: 4px !important; margin-bottom: 22px !important; }
.alm-check-tab  { flex: 1 !important; padding: 10px 14px !important; border: none !important; background: transparent !important; border-radius: 9px !important; font-size: 13px !important; font-weight: 600 !important; color: #64748b !important; cursor: pointer !important; transition: all 0.2s ease !important; font-family: inherit !important; }
.alm-check-tab:hover { color: #1a1a2e !important; background: rgba(255,255,255,0.5) !important; }
.alm-check-tab-active, .alm-check-tab.alm-check-tab-active { background: #fff !important; color: #1a1a2e !important; box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important; }

/* ============ RTL ============ */
.alm-form-wrapper[dir="rtl"] {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;
    line-height: 2.0; direction: rtl;
}

.alm-form-wrapper[dir="rtl"] .alm-form-note { border-left: none; border-right: 4px solid #f59e0b; }
.alm-form-wrapper[dir="rtl"] .alm-success-notice { text-align: right; }
#almCheckWrapper[dir="rtl"] { font-family: 'Noto Nastaliq Urdu', serif; direction: rtl; }
#almCheckWrapper[dir="rtl"] .alm-chk-payment-block { border-left: none; border-right: 4px solid #86efac; }

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
    .alm-form-wrapper,
    .alm-chk-container { padding: 0 12px; margin: 20px auto; }

    .alm-form-header { padding: 24px 16px 20px; }
    .alm-form-logo img { height: 50px; }

    #almApplicationForm { padding: 18px 16px 22px; }

    .alm-auto-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .alm-auto-value { font-size: 14px; }
    .alm-auto-label { font-size: 10px; }

    .alm-success-card { padding: 24px 16px; }
    .alm-photo-preview { width: 120px; height: 120px; }

    .alm-chk-body { padding: 16px 14px; }

    /* Progress bar smaller */
    .alm-progress-bar { margin-bottom: 38px; }
    .alm-progress-step { width: 32px; height: 32px; }
    .alm-progress-step .num { font-size: 11px; }
    .alm-progress-step-label { font-size: 8px; bottom: -20px; }
    .alm-progress-bar::before { left: 20px; right: 20px; }
    .alm-progress-fill { left: 20px; }

    .alm-detail-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .alm-detail-item { padding: 10px; }
    .alm-detail-item-value { font-size: 13px; }

    .alm-result-card { padding: 16px 14px; }
    .alm-result-header { flex-direction: column; align-items: flex-start; }
    .alm-status-badge { font-size: 11px; padding: 5px 12px; }

    .alm-accounts-grid,
    .alm-chk-acc-grid { grid-template-columns: 1fr; }

    .alm-fee-banner { flex-direction: column; align-items: flex-start; gap: 4px; }
    .alm-fee-amount { font-size: 18px; }

    .alm-chk-fee-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .alm-chk-fee-val { font-size: 16px; }

    .alm-payment-section { padding: 16px 14px; }
    .alm-pay-icon { font-size: 28px; }
    .alm-payment-heading h3 { font-size: 14px; }
}

@media (max-width: 380px) {
    .alm-auto-grid { grid-template-columns: 1fr; }
    .alm-detail-grid { grid-template-columns: 1fr; }
    .alm-chk-tabs { flex-direction: column; }
    .alm-progress-step { width: 28px; height: 28px; }
    .alm-progress-step .num { font-size: 10px; }
    .alm-progress-step-label { font-size: 7px; bottom: -18px; }
}
