/* Booking Form Styling */
/* .booking_form_section {
    padding: 60px 0;
    background-color: #f8f9fa;
} */

.form_main_title {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Fredoka-Bold', sans-serif;
    color: #000;
    text-transform: capitalize;
}

.booking_step {
    display: block;
    /* We'll show all steps for now as per the image layout */
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step_header h3 {
    background: #e9ecef;
    padding: 12px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-family: 'Fredoka-Bold', sans-serif;
    color: #333;
    display: flex;
    align-items: center;
}

/* Packages Grid */
.packages_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.package_card {
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.package_card:hover,
.package_card.active {
    border-color: #e31e24;
    /* Fitwize Red */
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.1);
}

.pkg_img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pkg_content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pkg_content h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #e31e24;
    font-family: 'Fredoka-Bold', sans-serif;
}

.pkg_content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.4;
}

.pkg_footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
}

.select_pkg_btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    transition: background 0.3s;
}

.package_card.active .select_pkg_btn {
    background: #e31e24;
}

/* Food Grid */
.food_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.food_card {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.food_img img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.qty_selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.qty_btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
}

.qty_selector input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
}

/* Services Grid */
.services_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.service_card {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.svc_img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
}

.svc_info label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.svc_info input {
    margin-right: 10px;
}

/* Summary Box */
.booking_summary {
    position: sticky;
    bottom: 20px;
    background: #333;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.summary_details {
    display: flex;
    gap: 25px;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.total_box .total_amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
    margin-left: 10px;
}

.book_now_btn {
    background: #e31e24;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
    width: auto;
    min-width: 160px;
}

.book_now_btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.book_now_btn:not(:disabled):hover {
    transform: scale(1.05);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .booking_form_section {
        padding-bottom: 120px; /* Space for the sticky summary bar */
    }

    .booking_step {
        padding: 20px 15px;
        margin-bottom: 25px;
    }

    .step_header h3 {
        font-size: 1.15rem;
        padding: 10px 15px;
        margin-bottom: 20px;
    }

    .packages_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .pkg_img img {
        height: 160px;
    }

    .food_grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }

    .food_card {
        padding: 10px;
    }

    .food_img img {
        height: 80px;
    }

    .services_grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .payment_plan_options {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Fixed Bottom Bar on Mobile */
    .booking_summary {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        padding: 12px 15px;
        background: #222;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
        display: block; /* Overrides flex */
    }
    
    .summary_details {
        display: grid;
        grid-template-areas: 
            "package date"
            "total button";
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        align-items: center;
        width: 100%;
        justify-content: stretch;
    }

    #summary_package {
        grid-area: package;
        font-size: 0.8rem;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #ddd;
    }

    #summary_package span {
        display: none; /* Hide 'Package:' label to save space */
    }

    #summary_date {
        grid-area: date;
        font-size: 0.8rem;
        text-align: right;
        color: #ddd;
    }

    #summary_date span {
        display: none; /* Hide 'Date:' label */
    }

    .total_box {
        grid-area: total;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .total_box span:first-child {
        font-size: 0.75rem;
        color: #aaa;
    }

    .total_box .total_amount {
        font-size: 1.25rem;
        margin-left: 0;
        color: #ffc107;
        font-weight: bold;
    }

    .book_now_btn {
        grid-area: button;
        width: 100% !important;
        padding: 10px 15px;
        font-size: 0.95rem;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    /* Datepicker styling for mobile */
    .ui-datepicker {
        width: 100% !important;
        font-size: 0.9rem !important;
    }
    .ui-datepicker table {
        font-size: 0.85rem !important;
    }
    .ui-datepicker td span, .ui-datepicker td a {
        padding: 6px !important;
        text-align: center !important;
    }
}

/* WooCommerce Product Page Integration */
.single-product .product_total_display {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.single-product .product_booking_form_wrapper {
    margin-top: 50px;
    border-top: 2px solid #eee;
    padding-top: 40px;
}

.single-product .booking_summary {
    display: none;
}

@media (max-width: 768px) {
    .single-product .booking_summary {
        display: flex;
    }
}

/* Payment Plan Styling */
.payment_plan_options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment_option {
    border: 2px solid #eee;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment_option:hover {
    border-color: #e31e24;
    background: #fffafa;
}

.payment_option input[type="radio"]:checked+.option_content .option_title {
    color: #e31e24;
}

.payment_option.active {
    border-color: #e31e24;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.1);
}

.option_content {
    display: flex;
    flex-direction: column;
}

.option_title {
    font-family: 'Fredoka-Bold', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
    display: block;
}

.option_desc {
    font-size: 0.95rem;
    color: #666;
}

.option_desc strong {
    color: #333;
}

.step_header h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #e31e24;
    margin-right: 15px;
    border-radius: 2px;
}

.package_card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* jQuery UI Datepicker Modern Overrides */
.date_picker_container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

#event_date {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

#event_date:focus {
    border-color: #e31e24;
}

.ui-datepicker {
    font-family: 'Inter', sans-serif !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    background: #fff !important;
}

.ui-datepicker-header {
    background: #e31e24 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 0 !important;
    position: relative;
}

.ui-datepicker-title {
    font-family: 'Fredoka-Bold', sans-serif !important;
    font-weight: normal !important;
    margin: 0 !important;
    text-align: center;
    font-size: 1.1rem;
}

.ui-datepicker-prev, .ui-datepicker-next {
    top: 8px !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    position: absolute !important;
    display: inline-block;
    width: 1.8em !important;
    height: 1.8em !important;
}

.ui-datepicker-prev {
    left: 10px !important;
}

.ui-datepicker-next {
    right: 10px !important;
}

.ui-datepicker-prev span, .ui-datepicker-next span {
    display: block;
    position: absolute;
    left: 50%;
    margin-left: -8px;
    top: 50%;
    margin-top: -8px;
}

.ui-datepicker-prev-hover, .ui-datepicker-next-hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    top: 8px !important;
}

.ui-datepicker th {
    font-weight: 600 !important;
    color: #666 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    padding: 8px 0 !important;
    text-align: center;
}

.ui-datepicker td {
    border: none !important;
    padding: 3px !important;
}

.ui-state-default, .ui-widget-content .ui-state-default {
    border: none !important;
    background: #f8f9fa !important;
    color: #333 !important;
    text-align: center !important;
    border-radius: 4px !important;
    font-weight: normal !important;
    padding: 8px !important;
    display: block;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.ui-state-default:hover {
    background: #e31e24 !important;
    color: #fff !important;
}

.ui-state-highlight, .ui-widget-content .ui-state-highlight {
    background: #fff3f3 !important;
    color: #e31e24 !important;
    border: 1px solid #e31e24 !important;
}

.ui-state-active, .ui-widget-content .ui-state-active {
    background: #e31e24 !important;
    color: #fff !important;
    box-shadow: 0 2px 5px rgba(227, 30, 36, 0.2);
}

.ui-datepicker-calendar {
    margin: 0 !important;
}

/* Next Step Button Styling */
.step_footer_nav {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.next_step_btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-family: 'Inter', sans-serif;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.next_step_btn:hover {
    background: #e31e24;
    transform: translateY(-1px);
}

.next_step_btn:active {
    transform: translateY(0);
}