/* =============================================
   DLIMS - Main Stylesheet - Matched to Screenshot
   ============================================= */
* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: #f0f0f0;
    color: #333;
    font-size: 14px;
}

/* ---- Official Header ---- */
.official-header-banner {
    width: 100%;
    display: block;
    background: #fff;
    border-bottom: 3px solid #ffd700;
    line-height: 0;
}
.header-banner-img {
    width: 100%;
    display: block;
    height: 72px;
    object-fit: cover;
    object-position: center;
}

/* ---- Promo Banner (green strip under header) ---- */
.promo-banner {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #1b5e20 100%);
    border-top: 2px solid #ffd700;
    border-bottom: 2px solid #ffd700;
    padding: 6px 12px;
    text-align: center;
}
.promo-text {
    margin: 0;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Noto Nastalikh Urdu','Segoe UI',sans-serif;
    line-height: 1.45;
    font-weight: 500;
}
.promo-text strong { color: #ffd700; font-weight: 700; }

/* ---- Navigation ---- */
.main-nav {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    padding: 0;
    border-bottom: 3px solid #ffd700;
}
.nav-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 0;
}
.nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
    border-bottom-color: #ffd700;
    font-weight: 700;
}
.nav-icon { font-size: 0.9rem; }

/* ---- Container ---- */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 12px 20px;
}
.main-content { padding-top: 12px; }

/* ---- Step Progress (matches screenshot circles) ---- */
.step-progress {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px 10px 12px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: relative;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 100px;
}
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 1;
    border: 2px solid #ddd;
    transition: all 0.3s;
}
.step.active .step-circle {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
    box-shadow: 0 0 0 4px rgba(46,125,50,0.2);
    animation: stepPulse 1.5s ease-in-out infinite;
    position: relative;
}
.step.active .step-circle::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2.5px solid rgba(46,125,50,0.35);
    animation: stepRing 1.5s ease-out infinite;
}
@keyframes stepPulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(46,125,50,0.25); }
    50%      { box-shadow: 0 0 0 8px rgba(46,125,50,0.10); }
}
@keyframes stepRing {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(1.7); opacity: 0;   }
}

/* ---- Form submit overlay spinner ---- */
.form-spinner-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
}
.form-spinner-overlay.active { display: flex; }
.spinner-circle {
    width: 58px; height: 58px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.2);
    border-top-color: #ffd700;
    animation: spinAnim 0.8s linear infinite;
}
.spinner-text {
    color: #fff;
    font-size: 0.88rem;
    font-family: 'Noto Nastalikh Urdu', sans-serif;
    text-align: center;
}
@keyframes spinAnim { to { transform: rotate(360deg); } }

/* ---- Payment method tabs ---- */
.pay-tabs {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.pay-tab {
    flex: 1; min-width: 90px;
    padding: 10px 8px; border-radius: 8px;
    border: 2px solid #e0e0e0; background: #fafafa;
    cursor: pointer; text-align: center; font-size: 0.78rem;
    font-weight: 600; color: #555; transition: all 0.2s;
}
.pay-tab.selected {
    border-color: #c0392b; background: #fff3f3; color: #c0392b;
    box-shadow: 0 2px 8px rgba(192,57,43,0.15);
}
.pay-tab:hover { border-color: #c0392b; }
.pay-method-panel { display: none; }
.pay-method-panel.active { display: block; }
.step.completed .step-circle {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
}
.step-label {
    margin-top: 8px;
    font-size: 0.7rem;
    color: #aaa;
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
}
.step.active .step-label { color: #2e7d32; font-weight: 700; }
.step.completed .step-label { color: #4caf50; font-weight: 600; }
.step-label .urdu {
    font-family: 'Noto Nastalikh Urdu',sans-serif;
    display: block;
    font-size: 0.62rem;
}
/* Connecting line between steps */
.step-line {
    position: absolute;
    top: 18px;
    left: 58%;
    right: -42%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}
.step.completed .step-line { background: #4caf50; }

/* ---- TCS/Limited Notice ---- */
.tcs-notice {
    background: linear-gradient(90deg, #1a472a, #2e7d32);
    border: 1px solid #ffd700;
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.tcs-text { color: #fff; font-family: sans-serif; line-height: 1.3; font-size: 0.82rem; }
.tcs-text strong { color: #ffd700; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ---- Title Row (Driving License Application) ---- */
.form-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #e8f5e9, #fff, #e8f5e9);
    border: 1px solid #2e7d32;
    border-radius: 4px;
    padding: 6px 12px;
    margin-bottom: 10px;
}
.title-en { color: #1b5e20; font-size: 0.82rem; font-weight: 600; }
.title-ur { color: #1b5e20; font-size: 0.82rem; font-weight: 600; font-family: 'Noto Nastalikh Urdu',sans-serif; }

/* ---- Form Section (white card) ---- */
.form-section {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin-bottom: 12px;
}

/* ---- Section Title ---- */
.section-title-compact {
    color: #2e7d32;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #c8e6c9;
    font-family: 'Noto Nastalikh Urdu',sans-serif;
    direction: rtl;
}

/* ---- Form Groups ---- */
.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    direction: rtl;
    font-family: 'Noto Nastalikh Urdu','Segoe UI',sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ccc;
    border-radius: 5px;
    font-size: 0.88rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: 'Segoe UI',sans-serif;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 65px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #aaa; font-size: 0.82rem; }

/* ---- Form Row (2 columns) ---- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ---- Photo Upload Section ---- */
.photo-upload-section {
    background: #fafafa;
    border: 1.5px dashed #a5d6a7;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
}
.photo-upload-title {
    color: #1b5e20;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.photo-upload-alert {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 0.78rem;
    color: #856404;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.photo-guidelines-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.photo-upload-area {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 110px;
}
.upload-placeholder {
    width: 100px;
    height: 110px;
    border: 2px dashed #a5d6a7;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.upload-text {
    font-size: 0.6rem;
    color: #888;
    margin-top: 4px;
    font-family: 'Noto Nastalikh Urdu',sans-serif;
    text-align: center;
    padding: 0 4px;
}
.photo-file-input { display: none; }
.photo-upload-btn {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    display: inline-block;
}
.photo-upload-btn:hover { background: #1b5e20; }
.file-chosen-text { font-size: 0.7rem; color: #64748b; }
.photo-guidelines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 130px;
}
.guideline-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 6px;
}
.guideline-item.avoid { background: #fff5f5; border: 1px solid #ffcdd2; }
.guideline-item.success { background: #f0fff4; border: 1px solid #c8e6c9; }
.guideline-content h5 { font-size: 0.72rem; margin: 0; color: #444; font-weight: 600; }

/* ---- Cropper ---- */
.cropper-container {
    margin-top: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
}
.cropper-header h5 { font-size: 0.85rem; color: #333; margin-bottom: 4px; }
.urdu-text { font-family: 'Noto Nastalikh Urdu',sans-serif; font-size: 0.75rem; color: #666; direction: rtl; }
.cropper-canvas-wrapper {
    overflow: hidden; border-radius: 6px;
    border: 1px solid #dee2e6; background: #000; cursor: move;
}
.cropper-canvas-wrapper canvas { display: block; max-width: 100%; }
.cropper-controls { display: flex; gap: 8px; margin-top: 10px; }
.crop-btn { padding: 8px 16px; border: none; border-radius: 5px; font-size: 0.8rem; cursor: pointer; font-weight: 600; }
.crop-btn-primary { background: #2e7d32; color: #fff; }
.crop-btn-secondary { background: #dc3545; color: #fff; }
.cropper-info small { font-size: 0.7rem; color: #888; display: block; margin-top: 6px; }

/* ---- License Select ---- */
.license-select { font-size: 0.88rem; }

/* ---- Declaration Box ---- */
.declaration-box {
    margin-top: 20px;
    background: #f0f8f0;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #2e7d32;
}

/* ---- Submit Button ---- */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Noto Nastalikh Urdu',sans-serif;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(46,125,50,0.3);
}
.submit-btn:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(46,125,50,0.4);
}
.submit-btn:active { transform: translateY(0); }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 14px; font-size: 0.85rem; line-height: 1.5; }
.alert-success { background: #e8f5e9; border: 1px solid #4caf50; color: #1b5e20; }
.alert-warning { background: #fff8e1; border: 1px solid #ffc107; color: #856404; }
.alert-danger { background: #fdecea; border: 1px solid #f44336; color: #c62828; }

/* ---- Payment Cards ---- */
.payment-card { background: #fff; border-radius: 10px; border: 1px solid #e0e0e0; overflow: hidden; margin-bottom: 14px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.payment-card-header { background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%); color: #fff; padding: 13px 16px; font-size: 0.92rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.payment-card-body { padding: 16px; }
.payment-method { border: 2px solid #e0e0e0; border-radius: 8px; padding: 12px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s; }
.payment-method.selected, .payment-method:hover { border-color: #2e7d32; background: #f0fff4; }
.payment-method-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.payment-method-icon { font-size: 1.5rem; }
.payment-method-name { font-weight: 700; font-size: 0.95rem; }
.payment-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.82rem; }
.payment-detail-row:last-child { border-bottom: none; font-weight: 700; font-size: 0.92rem; }
.account-box { background: #e8f5e9; border: 1.5px solid #4caf50; border-radius: 8px; padding: 12px; text-align: center; margin: 10px 0; }
.account-title { font-size: 0.72rem; color: #555; margin-bottom: 4px; }
.account-name { font-size: 1.1rem; font-weight: 800; color: #1b5e20; }
.account-number { font-size: 0.85rem; color: #388e3c; font-weight: 600; margin-top: 2px; }

/* ---- Summary Table ---- */
.summary-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.summary-table th, .summary-table td { padding: 9px 12px; border-bottom: 1px solid #f0f0f0; text-align: left; }
.summary-table th { background: #f5f5f5; color: #555; font-weight: 600; width: 40%; }
.summary-table td { color: #333; font-weight: 500; }

/* ---- Status Badges ---- */
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #e8f5e9; color: #1b5e20; }
.status-processing { background: #e3f2fd; color: #0d47a1; }

/* ---- FAQ ---- */
.faq-item { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.faq-question { padding: 13px 15px; font-weight: 600; font-size: 0.88rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #1b5e20; transition: background 0.2s; user-select: none; }
.faq-question:hover { background: #f0fff4; }
.faq-icon { font-size: 1.1rem; font-weight: 700; flex-shrink: 0; color: #2e7d32; }
.faq-answer { display: none; padding: 12px 16px; font-size: 0.82rem; color: #555; border-top: 1px solid #e8f5e9; background: #fafff8; line-height: 1.7; direction: rtl; font-family: 'Noto Nastalikh Urdu',sans-serif; }
.faq-answer.open { display: block; }

/* ---- Live Ticker (bottom fixed) ---- */
.live-apps-ticker {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: #fff; padding: 7px 0; z-index: 9000;
    overflow: hidden; border-top: 2px solid #ffd700;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.ticker-content {
    display: flex;
    animation: tickerScroll 120s linear infinite;
    white-space: nowrap;
}
.ticker-item { padding: 0 30px; font-size: 0.82rem; font-family: 'Noto Nastalikh Urdu',sans-serif; direction: rtl; }
.ticker-item strong { color: #ffd700; }
.ticker-item .count { color: #ffd700; font-weight: bold; }
.ticker-total { background: rgba(255,215,0,0.15); padding: 0 35px !important; border-radius: 20px; margin: 0 15px; }
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ---- Footer ---- */
footer {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 100%);
    color: white; padding: 18px 10px; text-align: center; margin-bottom: 42px;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 10px; font-size: 0.82rem; }
.footer-link-item { display: flex; align-items: center; gap: 5px; }
.footer-link-item a { color: #fff; text-decoration: underline; }
.footer-copy { margin: 0; font-size: 0.78rem; opacity: 0.9; }
.footer-nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.78rem; }
.footer-nav a:hover { color: #ffd700; }

/* ---- Track ---- */
.track-result { background: #fff; border-radius: 10px; border: 1px solid #e0e0e0; padding: 20px; margin-top: 14px; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }

/* ---- Done / Success ---- */
.app-ref-box { background: linear-gradient(135deg,#e8f5e9,#f1f8e9); border: 2px solid #4caf50; border-radius: 10px; padding: 16px; margin: 16px 0; }
.app-ref-label { font-size: 0.75rem; color: #666; margin-bottom: 6px; }
.app-ref-number { font-size: 1.5rem; font-weight: 900; color: #1b5e20; letter-spacing: 2px; }

/* ---- Responsive Mobile ---- */
@media (max-width: 480px) {
    body { padding-bottom: 40px; font-size: 13px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .photo-guidelines-container { flex-direction: column; }
    .form-section { padding: 12px; }
    .form-group label { font-size: 0.75rem; }
    .form-group input, .form-group select, .form-group textarea { padding: 8px; font-size: 0.8rem; }
    .section-title-compact { font-size: 0.88rem; }
    .submit-btn { font-size: 0.9rem; padding: 12px; }
    .ticker-item { padding: 0 20px; font-size: 0.72rem; }
    .nav-link { font-size: 0.75rem; padding: 8px 12px; }
    .step-circle { width: 30px; height: 30px; font-size: 0.8rem; }
    .step-label { font-size: 0.62rem; }
    .header-banner-img { height: 56px; }
}
@media (min-width: 481px) {
    body { padding-bottom: 45px; }
}
