EuropeWonder/page-thank-you.php

128 lines
2.9 KiB
PHP

<?php
/**
* Template Name: Thank You Page
*/
get_header();
$is_inquiry = isset($_GET['inquiry']) && $_GET['inquiry'] === 'sent';
?>
<!-- Hero section -->
<section class="page-hero">
<div class="hero-content">
<h1><?php echo $is_inquiry ? 'Thank You for Your Inquiry!' : 'Thank You for Your Booking!'; ?></h1>
<p><?php echo $is_inquiry ? 'Your inquiry has been sent successfully' : 'Your payment has been successfully processed'; ?></p>
</div>
</section>
<!-- Thank you content -->
<section class="payment-success">
<i class="fas <?php echo $is_inquiry ? 'fa-envelope' : 'fa-check-circle'; ?>"></i>
<h2><?php echo $is_inquiry ? 'Inquiry Sent' : 'Booking Confirmed'; ?></h2>
<?php if ($is_inquiry): ?>
<p>We have received your inquiry and will get back to you as soon as possible with pricing and availability information. You will receive a confirmation email shortly.</p>
<?php else: ?>
<p>We have received your payment and your tour booking has been confirmed. You will receive a confirmation email shortly with all the details of your booking.</p>
<?php endif; ?>
<p>If you have any questions, please don't hesitate to contact us.</p>
<a href="<?php echo esc_url(home_url('/')); ?>" class="btn-return">Return to Homepage</a>
</section>
<style>
/* Thank You Page Styles */
.page-hero {
height: 40vh;
background: linear-gradient(to top,
rgba(0, 0, 0, 0.7) 0%,
rgba(0, 0, 0, 0.4) 30%,
rgba(0, 0, 0, 0) 100%
), var(--accent);
display: flex;
align-items: center;
justify-content: center;
text-align: center;
margin-bottom: 4rem;
}
.page-hero .hero-content {
padding: 2rem;
color: white;
}
.page-hero h1 {
font-size: 3.5rem;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.page-hero p {
font-size: 1.3rem;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
max-width: 800px;
margin: 0 auto;
}
.payment-success {
text-align: center;
padding: 4rem 2rem;
max-width: 600px;
margin: 0 auto;
}
.payment-success i {
font-size: 4rem;
margin-bottom: 2rem;
}
.payment-success i.fa-check-circle {
color: #10B981;
}
.payment-success i.fa-envelope {
color: var(--accent);
}
.payment-success h2 {
color: #1F2937;
margin-bottom: 1rem;
font-size: 2rem;
}
.payment-success p {
color: #4B5563;
margin-bottom: 2rem;
line-height: 1.6;
}
.btn-return {
display: inline-block;
padding: 1rem 2rem;
background-color: var(--accent);
color: white;
text-decoration: none;
border-radius: 8px;
transition: all 0.3s ease;
}
.btn-return:hover {
background-color: var(--accent-dark);
transform: translateY(-2px);
}
@media (max-width: 768px) {
.page-hero h1 {
font-size: 2.5rem;
}
.page-hero p {
font-size: 1.1rem;
}
.payment-success {
padding: 2rem 1rem;
}
}
</style>
<?php get_footer(); ?>