<?php
defined('ABSPATH') || exit;

$bookwellab_cancel_page_title = isset($bookwellab_cancel_page_title)
    ? (string) $bookwellab_cancel_page_title
    : '';
$bookwellab_cancel_message = isset($bookwellab_cancel_message)
    ? (string) $bookwellab_cancel_message
    : '';
$bookwellab_cancel_message_type = isset($bookwellab_cancel_message_type)
    ? (string) $bookwellab_cancel_message_type
    : 'success';
$bookwellab_cancel_box_class = isset($bookwellab_cancel_box_class)
    ? (string) $bookwellab_cancel_box_class
    : 'bw-cancel-result--success';
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
    <meta charset="<?php bloginfo('charset'); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo esc_html($bookwellab_cancel_page_title); ?></title>
    <style>
        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #f6f5fa;
            color: #1f2937;
        }
        .bw-cancel-result-wrap {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            box-sizing: border-box;
        }
        .bw-cancel-result-card {
            width: 100%;
            max-width: 520px;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 32px 28px;
            box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
            text-align: center;
        }
        .bw-cancel-result-card h1 {
            margin: 0 0 16px;
            font-size: 24px;
            line-height: 1.3;
            color: #111827;
        }
        .bw-cancel-result-card p {
            margin: 0;
            font-size: 16px;
            line-height: 1.6;
            color: #4b5563;
        }
        .bw-cancel-result-card.bw-cancel-result--success {
            border-top: 4px solid #5700b4;
        }
        .bw-cancel-result-card.bw-cancel-result--info {
            border-top: 4px solid #6b7280;
        }
        .bw-cancel-result-card.bw-cancel-result--error {
            border-top: 4px solid #dc2626;
        }
        .bw-cancel-result-home {
            display: inline-block;
            margin-top: 24px;
            padding: 10px 18px;
            border-radius: 8px;
            background: #5700b4;
            color: #ffffff;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
        }
        .bw-cancel-result-home:hover,
        .bw-cancel-result-home:focus {
            background: #4b0099;
            color: #ffffff;
        }
    </style>
</head>
<body>
    <div class="bw-cancel-result-wrap">
        <div class="bw-cancel-result-card <?php echo esc_attr($bookwellab_cancel_box_class); ?>">
            <h1><?php echo esc_html($bookwellab_cancel_page_title); ?></h1>
            <p><?php echo esc_html($bookwellab_cancel_message); ?></p>
            <a class="bw-cancel-result-home" href="<?php echo esc_url(home_url('/')); ?>">
                <?php esc_html_e('Back to website', 'bookwellnow-appointment-booking'); ?>
            </a>
        </div>
    </div>
</body>
</html>
