/**
 * Custom Checkout Page Styles
 * Matches the provided design
 */

/* Checkout Header */
.pge-checkout-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.pge-checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pge-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pge-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.pge-step.completed .pge-step-number {
    background: #27ae60;
    color: white;
}

.pge-step.active .pge-step-number {
    background: #0073aa;
    color: white;
}

.pge-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pge-step.completed .pge-step-label,
.pge-step.active .pge-step-label {
    color: #333;
}

.pge-step-arrow {
    font-size: 24px;
    color: #ccc;
    margin: 0 5px;
}

/* Coupon Section */
.pge-coupon-section {
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.pge-coupon-section p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.pge-show-coupon {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.pge-show-coupon:hover {
    text-decoration: underline;
}

/* Billing Section */
.woocommerce-billing-fields h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-billing-fields__field-wrapper {
    display: grid;
    gap: 15px;
}

.form-row label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Additional Information */
.woocommerce-additional-fields h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Order Review */
.pge-order-review-header {
    background: #f5f5f5;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.pge-order-review-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#order_review {
    background: white;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* Order Table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 20px;
}

.woocommerce-checkout-review-order-table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 12px 0;
    border-bottom: 2px solid #e0e0e0;
}

.woocommerce-checkout-review-order-table tbody td {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 600;
    color: #333;
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 700;
    color: #0073aa;
}

/* Cart Subtotal */
.cart-subtotal th,
.cart-subtotal td {
    padding: 12px 0;
    font-size: 15px;
}

.cart-subtotal th {
    font-weight: 600;
}

/* Shipping */
.woocommerce-shipping-totals {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.woocommerce-shipping-totals th {
    font-weight: 700;
    color: #333;
    padding-bottom: 10px;
}

.woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-shipping-methods li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.woocommerce-shipping-methods input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.woocommerce-shipping-methods label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-shipping-methods .woocommerce-Price-amount {
    font-weight: 700;
    color: #0073aa;
}

/* Order Total */
.order-total th,
.order-total td {
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
    border-top: 2px solid #e0e0e0;
}

.order-total .woocommerce-Price-amount {
    color: #e74c3c;
    font-size: 20px;
}

/* Payment Methods */
.woocommerce-checkout-payment {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.wc_payment_method {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.wc_payment_method:hover {
    border-color: #0073aa;
}

.wc_payment_method input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.wc_payment_method label {
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pge-payment-icon {
    display: inline-flex;
    align-items: center;
}

.pge-payment-icon i {
    font-size: 20px;
    color: #27ae60;
}

.pge-payment-icon img {
    height: 24px;
    width: auto;
}

.payment_box {
    background: #f5f5f5;
    padding: 15px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

/* Place Order Button */
#place_order {
    width: 100%;
    padding: 18px 30px;
    background: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#place_order:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .pge-checkout-steps {
        flex-direction: column;
        gap: 10px;
    }
    
    .pge-step-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
    
    .pge-step-label {
        font-size: 10px;
    }
    
    .woocommerce-checkout {
        display: flex;
        flex-direction: column;
    }
    
    #order_review {
        order: -1;
        margin-bottom: 30px;
    }
}

/* Success Message */
.woocommerce-message {
    background: #e7f5fe;
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #0073aa;
    font-weight: 600;
}

/* Error Message */
.woocommerce-error {
    background: #ffe7e7;
    border-left: 4px solid #e74c3c;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #e74c3c;
    font-weight: 600;
}

/* Loading State */
.blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.8) !important;
}

.blockUI.blockMsg {
    border: none !important;
    background: #0073aa !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}
