/* Multi-Step Checkout - Complete Redesign */

/* Checkout Loader */
#checkout-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.99);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#checkout-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 165, 116, 0.1);
    border-top: 4px solid #d4a574;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#checkout-loader p {
    color: #d4a574;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Main Container */
#multistep-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Step Progress Bar */
.step-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    padding: 0 50px;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: #3a3a3a;
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    cursor: default;
}

.step-item.completed {
    cursor: pointer;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 3px solid #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #666;
    margin-bottom: 12px;
    transition: all 0.4s ease;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #c89960 0%, #d4a574 100%);
    border-color: #d4a574;
    color: #1a1a1a;
    box-shadow: 0 0 25px rgba(212, 165, 116, 0.6);
    transform: scale(1.1);
}

.step-item.completed .step-number {
    background: #d4a574;
    border-color: #d4a574;
    color: #1a1a1a;
}

.step-item.completed .step-number::after {
    content: '✓';
    font-size: 24px;
}

.step-label {
    font-size: 13px;
    color: #666;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-item.active .step-label {
    color: #d4a574;
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #999;
}

/* Step Content */
.step-content-wrapper {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    min-height: 400px;
}

.step-panel {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-heading {
    color: #d4a574;
    font-size: 26px;
    margin-bottom: 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3a3a3a;
}

/* Form Fields */
.form-row {
    margin-bottom: 25px;
}

.form-row label {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-row label .required {
    color: #d4a574;
    margin-left: 3px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="date"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #666;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #d4a574;
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15);
}

.form-row select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23d4a574' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

/* Vehicle Select Highlight */
#booking_vehicle_field {
    background: rgba(212, 165, 116, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(212, 165, 116, 0.2);
    margin-top: 30px;
}

/* Step 3 - Summary */
.booking-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.summary-section {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 25px;
}

.summary-section h3 {
    color: #d4a574;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3a3a3a;
}

.summary-table {
    width: 100%;
}

.summary-table tr {
    border-bottom: 1px solid rgba(58, 58, 58, 0.5);
}

.summary-table tr:last-child {
    border-bottom: none;
}

.summary-table td {
    padding: 12px 0;
    color: #ccc;
    font-size: 14px;
}

.summary-table td:first-child {
    color: #888;
    width: 40%;
}

.summary-table td:last-child {
    color: #fff;
    font-weight: 500;
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.btn-step {
    flex: 1;
    padding: 18px 35px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-prev {
    background: rgba(58, 58, 58, 0.6);
    color: #fff;
    border: 2px solid #3a3a3a;
}

.btn-prev:hover {
    background: rgba(58, 58, 58, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-next {
    background: linear-gradient(135deg, #c89960 0%, #d4a574 100%);
    color: #1a1a1a;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5);
}

/* Place Order Button */
#place_order {
    width: 100%;
    padding: 20px 40px;
    background: linear-gradient(135deg, #c89960 0%, #d4a574 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 20px;
    height: unset;
}

#place_order:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.6);
}

/* Order Review in Step 3 */
#order_review {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

#order_review h3 {
    color: #d4a574;
    margin-bottom: 20px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #3a3a3a;
    color: #ccc;
}

.woocommerce-checkout-review-order-table thead th {
    color: #d4a574;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    color: #d4a574;
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid #d4a574;
}

/* Additional Fields (Notes) */
.woocommerce-additional-fields {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.woocommerce-additional-fields h3 {
    color: #d4a574;
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce-additional-fields textarea {
    min-height: 120px;
    resize: vertical;
}

/* Payment Methods */
.woocommerce-checkout-payment {
    background: rgba(20, 20, 20, 0.6);
    /* border: 1px solid #3a3a3a; */
    /* border-radius: 10px; */
    /* padding: 25px; */
    background: transparent !important;
}

.woocommerce-checkout-payment ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-checkout-payment .wc_payment_method {
    margin-bottom: 15px;
}

.woocommerce-checkout-payment label {
    color: #e0e0e0;
    font-weight: 500;
}

.woocommerce-checkout-payment .payment_box {
    background: rgba(30, 30, 30, 0.8);
    color: #ccc;
    padding: 15px;
    margin-top: 10px;
    border-radius: 6px;
}

/* Hide original billing fields wrapper */
.woocommerce-billing-fields > h3 {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .step-progress {
        padding: 0 20px;
    }
    
    .step-progress::before {
        left: 50px;
        right: 50px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step-content-wrapper {
        padding: 25px 20px;
    }
    
    .step-heading {
        font-size: 20px;
    }
    
    .booking-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-navigation {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .step-progress {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }
    
    .step-progress::before {
        display: none;
    }
    
    .step-item {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .step-number {
        margin-bottom: 0;
    }
    
    .step-label {
        text-align: left;
    }
}