CF7

<!-- ✅ Limo Booking Landing Page for Riyadh -->
<div class="limo-booking-widget">
<!-- 🔹 Service Toggle -->
<div class="service-toggle" role="tablist" aria-label="Select service">
<button class="service-pill active" data-service="Airport Transfer">Airport Transfer</button>
<button class="service-pill" data-service="Full Day Chauffeur">Full Day Chauffeur</button>
</div>

<!-- 🔹 Contact Form 7 Booking Form -->
<div class="booking-form-wrapper">

    </div>
    </div>

    <!-- ✅ Styles -->
    <style>
    .limo-booking-widget {
    max-width: 720px;
    margin: 30px auto;
    font-family: "Poppins", Arial, sans-serif;
    }

    .service-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.06);
    padding: 8px;
    border-radius: 30px;
    }

    .service-pill {
    border: none;
    padding: 10px 18px;
    border-radius: 24px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    }

    .service-pill.active {
    background: #1f9d3b;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    .service-pill:not(.active) {
    background: #fff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .booking-form-wrapper {
    margin-top: 16px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    .wpcf7-form label {
    display: block;
    margin: 10px 0;
    font-weight: 500;
    }

    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form input[type="number"],
    .wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    font-size: 15px;
    box-sizing: border-box;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
    }

    .wpcf7-form input[type="text"]:focus,
    .wpcf7-form input[type="email"]:focus,
    .wpcf7-form input[type="tel"]:focus,
    .wpcf7-form textarea:focus {
    border-color: #1f9d3b;
    outline: none;
    background-color: #fff;
    }

    .wpcf7-form input[type="submit"] {
    background: #1f9d3b;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    }

    .wpcf7-form input[type="submit"]:hover {
    background: #17802f;
    }

    @media (max-width: 480px) {
    .service-toggle {
    gap: 8px;
    padding: 6px;
    }
    .service-pill {
    padding: 8px 12px;
    font-size: 14px;
    }
    }
    </style>

    <!-- ✅ JavaScript for Toggle Behavior -->
    <script>
    (function() {
    var container = document.querySelector('.limo-booking-widget');
    if (!container) return;
    var pills = container.querySelectorAll('.service-pill');

    function findHiddenServiceInput() {
    return container.querySelector('input[name="service"]') || document.querySelector('.wpcf7-form input[name="service"]');
    }

    function getAirportLabels() {
    return container.querySelectorAll('.optional-airport, .wpcf7-form label.optional-airport');
    }

    function setService(name) {
    pills.forEach(function(p) {
    p.classList.toggle('active', p.getAttribute('data-service') === name);
    });

    var hiddenService = findHiddenServiceInput();
    if (hiddenService) hiddenService.value = name;

    var airportEls = getAirportLabels();
    airportEls.forEach(function(el) {
    el.style.display = (name === 'Airport Tr

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Your Comment
    Your Name
    Your Email
    Your Website