<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Policy Not Found</title>
    <style>
        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f3f7fc; margin: 0; padding: 0; }
        header { background-color: #007BFF; color: white; padding: 20px; text-align: center; }
        nav { background-color: #e9ecef; padding: 12px; text-align: center; }
        nav a { margin: 0 15px; text-decoration: none; color: #007BFF; font-weight: bold; }
        nav a:hover { text-decoration: underline; }
        .container { max-width: 700px; margin: 40px auto; background-color: white; padding: 30px 40px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center; }
        h2 { color: #dc3545; margin-bottom: 25px; }
        p { font-size: 1.1em; color: #333; }
        .error-message { color: #dc3545; font-weight: bold; margin-top: 20px; }
        .back-button { display: inline-block; margin-top: 30px; padding: 10px 20px; background-color: #6c757d; color: white; text-decoration: none; border-radius: 5px; }
        .back-button:hover { background-color: #5a6268; }
        footer { text-align: center; color: #666; font-size: 14px; padding: 15px 0; margin-top: auto; }
    </style>
</head>
<body>
    <header>
        <h1>Search Insurance Policy</h1>
    </header>

    <nav>
        <a href="medicalInsurance">Medical Insurance</a>
        <a href="home">Home</a>
        <a href="logout">Logout</a>
    </nav>

    <div class="container">
        <h2>Policy Not Found</h2>
        <p class="error-message">${message}</p>
        <p>The policy number you entered could not be found in our records.</p>
        <a href="/searchPolicy" class="back-button">Try Again</a>
    </div>

    <footer>
        &copy; 2025 Uniq Team FSD49 – All rights reserved.
    </footer>
</body>
</html>