{% extends "base.html.twig" %}

{% block title %} {{ parent() }} Neptune | Paiement {% endblock %}
       
{% block content %} 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
		
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            padding: 50px;
        }

        .login-box {
            max-width: 400px;
            margin: auto;
            background-color: #fff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .form-group {
			margin-top: 20px;
            margin-bottom: 20px;
            text-align: left;
        }
        .form-group label {
            display: block;
            font-weight: bold;
            margin-bottom: 5px;
        }
        .form-group input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
        .form-group button {
            padding: 10px 20px;
            background-color: #007bff;
            border: none;
            color: #fff;
            border-radius: 4px;
            cursor: pointer;
        }
        img{
            margin-top: 10%;
            margin-left: 0%;
            width: 85%;
        }
		p{
			margin-left:10px;
			font-size:12px;
			text-align:left;
		}
		a{
			text-decoration:none;
			color:#007bff;
		}
    </style>
</head>
    <div class="container-fluid">
		<div class="row justify-content-center">
			<div class="col-12 col-md-10">
				 <h1 class="text-center"> Procéder au paiement </h1> 


			</div>
		</div>
	</div>

	<!-- formulaire de payement qui enverra automatiquement un pdf par mail à l'utilisateur -->
	<div class="login-box">
		<form action='' method='post'>
			<input type="hidden" id="send_pdf" name="send_pdf" value="send_pdf">
			<div class="form-group">
				<label>Nom sur la carte</label>
				<input type="text" id="card_name" name="card_name" class="form-control"placeholder="nom sur la carte" required minlength="2">
			</div>
			<div class="form-group">
				<label>Numéro de la carte</label>
				<input type="text" id="num_card" name="num_card" class="form-control"placeholder="numéro de la carte" required minlength="16" maxlength='16'>
			</div>
			<div>
				<div class="form-group">
					<label>Date d'expiration</label>
					<input type="date" id="expiry_date" name="expiry_date" class="form-control"placeholder="MM/AA" required>
				</div>
				<div class="form-group">
					<label>Code de sécurité</label>
					<input type="text" id="security_code" name="security_code" class="form-control"placeholder="xxx" required minlength="3" maxlength='4'>
				</div>
			</div>
			<div class="form-group">
					<label>Code postale</label>
					<input type="text" id="postal_code" name="postal_code" class="form-control" required minlength="5" maxlength='5'>
			</div>
			<input type="submit" value="Payer et confirmer la réservation">
		</form>
	</div>

{% endblock %} 