/* ============================================= */
/* Loading indicator styles */
.wc-br-processing-container {
    position: relative;
}

.wc-br-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 100;
}

.wc-br-loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 101;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wc-br-loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #333;
    animation: wc-br-spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes wc-br-spin {
    to { transform: rotate(360deg); }
}

.wc-br-loading-content p {
    margin: 0;
    color: #333;
    font-size: 14px;
}
/*
.wc-br-processing-feedback {
    display: inline-block;
    margin-left: 10px;
    color: #555;
    font-size: 0.9em;
}*/

/* For Step 3 Summary */
.summary-item .resource-calculation {
    font-size: 0.9em;
    color: #666;
    margin-left: 15px;
}
.summary-item .resource-total {
    font-weight: bold;
    margin-left: 15px;
}

/* For Cart Page */
.woocommerce-cart .cart_item .resource-days {
    display: inline-block;
    margin-left: 5px;
    font-weight: normal;
    color: #666;
}

.resource-total {
    display: none;
}


.own-bike-question {
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
}

.own-bike-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.own-bike-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.hide-if-own-bike {
    transition: all 0.3s ease;
}


/* Add paired resource styling */
.resource-option.conditional-required {
    position: relative;
    animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(255,0,0,0.4); }
    70% { box-shadow: 0 0 0 5px rgba(255,0,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}

.resource-conditional {
    margin-top: 10px;
    padding: 10px;
    background: #f8f8f8;
    border: 1px dashed #ddd;
}

.conditional-pair {
    margin-top: 8px;
}



/* quanity */

.quantity {
    display: none !important;
}

/* total price button */

.single_add_to_cart_button.button.alt {
    padding: 15px 35px;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 700;
    display: none !important;
}


/* Add to your style.css */
#woocommerce-checkout-wrapper {
    min-height: 300px;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.blockUI.blockOverlay {
    background: unset !important;
    position: unset !important;
}

div#step-2 {
    padding-top: 15px;
}


#step-4 .woocommerce-checkout {
    opacity: 1 !important;
    display: block !important;
}

#step-4 .woocommerce form {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

/* Ensure checkout fields are visible */
#step-4 .woocommerce-billing-fields,
#step-4 .woocommerce-shipping-fields,
#step-4 .woocommerce-additional-fields,
#step-4 #order_review {
    display: block !important;
}

/* Enable payment methods and place order button */
#step-4 .payment_methods,
#step-4 #payment {
    display: block !important;
    opacity: 1 !important;
}

#step-4 #place_order {
    cursor: pointer !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

#step-4 .payment_box {
    display: block !important;
}

#step-4 .wc_payment_method input[type="radio"] {
    pointer-events: all !important;
}

#step-4 .woocommerce-checkout-payment {
    display: block !important;
}

/* Main Structure & Reset */
/* ============================================= */
.product-booking-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-booking-header h2 {
    font-size: 23px;
    font-weight: 600;
    color: #1164a1;
    margin-bottom: 8px;
}

.product-booking-header .product-price {
    font-size: 15px;
    color: #959c31;
    font-weight: 600;
}

/* ============================================= */
/* Step Navigation */
/* ============================================= */
.step-headers {
    display: flex;
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.step-header {
    flex: 1;
    text-align: center;
    padding: 12px 5px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    margin: 0 -1px -1px 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.step-header:first-child {
    border-radius: 5px 0 0 0;
}

.step-header:last-child {
    border-radius: 0 5px 0 0;
}

.step-header.active {
   /* background-color: #6bc6db;*/
	background-color: #56b9cf;
    color: #fff;
    border-color: #6bc6db;
    z-index: 2;
}

.step-header:hover:not(.active) {
    background-color: #f0f0f0;
}

/* ============================================= */
/* Step Content */
/* ============================================= */
.booking-step {
    display: none;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #6bc6db;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.booking-step.active {
    display: block;
}

/* ============================================= */
/* Form Sections */
/* ============================================= */
.rent-a-bike-options,
.bike-options,
.resource-options,
.deposit-options,
.booking-form {
    margin-bottom: 20px;
    padding: 0 15px;
}
select#selected_bike {
    margin-top: 8px;
}
.section-title {
    margin: 0 0 15px 0;
    font-weight: 500;
    font-size: 21px;
    color: #0073aa;
    font-family: 'Open Sans', sans-serif;
}

/* ============================================= */
/* Form Elements */
/* ============================================= */



.rent-a-bike-options, .bike-options, .resource-options, .deposit-options, .booking-form h4 {
    color: #1897e5;
}



.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #0073aa;
    font-size: 16px;
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="email"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

/* Date Inputs */
.date-inputs {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.date-inputs label {
    flex: 1;
}

/* Resource Options */
.resource-option {
    display: flex;
    margin-bottom: 10px;
    padding: 5px 10px 0px 10px;
    /* background-color: #f9f9f9; */
    border-radius: 4px;
}

.resource-option label {
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin-bottom: 0;
    cursor: pointer;
	color: #1e89cb;
    font-size: 14px;
}
span.fixed-price {
    color: #1475b1;
}

span.calculation-price {
    color: #1475b1;
}
span.per-day-price {
    margin-left: 25px;
}
span.calculation-info {
    color: #8bb11e;
    margin-left: 15px;
    font-size: 14px;
}

input.resource-days {
    width: 50px;
    height: 21px;
}
.resource-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    appearance: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    position: relative;
}

.resource-option input[type="checkbox"]:checked {
    background-color: #e56e00;
    border-color: #e56e00;
}

.resource-option input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

.resource-price {
    margin-left: auto;
    font-weight: 500;
    color: #0073aa;
}

.resource-days {
    width: 50px;
    padding: 5px;
    margin-left: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
}

/* deposit */

select#selected_deposit {
    margin-top: 8px;
}
/* ============================================= */
/* Buttons */
/* ============================================= */
.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button.alt {
    background-color: #199eef;
    color: white;
}

.button.alt:hover {
    background-color: #6bc6db;
}

.single_add_to_cart_button.button.alt {
    padding: 15px 35px;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 700;
}

/* ============================================= */
/* Total Price */
/* ============================================= */
.total-price-container {
    padding: 15px;
   /* background-color: #6bc6db;*/
	background-color: #56b9cf;
    border-radius: 0 0 5px 5px;
    color: white;
    margin-top: -1px;
    border: 1px solid #6bc6db;
}

.total-price {
    font-size: 20px;
    font-weight: 600;
    padding-top: 10px;
    border-top: 2px solid rgba(255,255,255,0.2);
    margin-top: 10px;
}

#dynamic-total-price {
    font-family: inherit;
}

/* ============================================= */
/* Datepicker Styles */
/* ============================================= */
.ui-datepicker {
    background: #fff;
    border: 1px solid #6bc6db;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999 !important;
}

.ui-datepicker-header {
    background: #6bc6db;
    color: white;
    border: none;
}

.ui-datepicker th {
    color: #0073aa;
    font-weight: 500;
}

.ui-state-default {
    border: 1px solid #f5f5f5;
    background: #f9f9f9;
    color: #333;
}

.ui-state-active {
    background: #6bc6db;
    color: white;
    border: 1px solid #4ab7d1;
}

.ui-state-highlight {
    background: #ffeb3b;
    color: #333;
}

/* ============================================= */
/* Responsive Styles */
/* ============================================= */
@media (max-width: 768px) {
    .step-headers {
        flex-direction: column;
    }
    
    .step-header {
        margin-bottom: 5px;
    }
    
    .date-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .resource-option {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resource-price,
    .resource-days {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* ============================================= */
/* Utility Classes */
/* ============================================= */
.error {
    border-color: #ff3860 !important;
    background-color: #fff6f7;
}

.error-message {
    color: #ff3860;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error + .error-message {
    display: block;
}

.hidden {
    display: none !important;
}