/* Checkout Page Styles */

/* Step Indicator */
.checkout-steps {
    margin: 40px 0;
    padding: 20px 0;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: center;
    flex: 1;
}

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

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.step-circle.active {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2);
}

.step-circle.completed {
    background: #27ae60;
    color: #fff;
}

.step-circle.inactive {
    background: #e0e0e0;
    color: #999;
}

.step-circle i {
    font-size: 24px;
}

.step-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-align: center;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
    margin-bottom: 30px;
}

.step-line.completed {
    background: #27ae60;
}

/* Checkout Actions */
.checkout-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.checkout-actions button {
    min-width: 180px;
}

/* Delivery Form */
.delivery-form-section {
    padding: 20px 0;
}

.delivery-form .form-group {
    margin-bottom: 20px;
}

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

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

.delivery-form input:focus,
.delivery-form textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.delivery-form input.error {
    border-color: #e74c3c;
}

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

.req {
    color: #e74c3c;
}

/* Payment Method */
.payment-method-section {
    padding: 20px 0;
}

.payment-option {
    margin: 20px 0;
}

.mad-label-radio {
    display: block;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mad-label-radio:hover {
    border-color: #e74c3c;
    background: #fff5f5;
}

input[type="radio"]:checked+.mad-label-radio {
    border-color: #e74c3c;
    background: #fff5f5;
}

.payment-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.payment-title i {
    color: #e74c3c;
    font-size: 24px;
}

.mad-label-radio span {
    color: #666;
    font-size: 14px;
}

/* Order Confirmation */
.order-confirmation-section {
    padding: 20px 0;
}

.confirmation-block {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.confirmation-block h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.confirmation-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
}

.confirmation-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.confirmation-item .item-details {
    flex: 1;
}

.confirmation-item h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.confirmation-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.confirmation-item .item-price {
    font-weight: 600;
    font-size: 16px;
    color: #e74c3c;
}

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

.detail-item {
    font-size: 14px;
}

.detail-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.payment-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
}

.payment-display i {
    color: #e74c3c;
    font-size: 24px;
}

.summary-table {
    width: 100%;
}

.summary-table td {
    padding: 10px 0;
    font-size: 14px;
}

.summary-table td:last-child {
    text-align: right;
}

.summary-table .total-row {
    border-top: 2px solid #ddd;
    padding-top: 15px;
}

.summary-table .total-row td {
    font-size: 18px;
    color: #e74c3c;
    padding-top: 15px;
}

/* Order Summary Sidebar */
.order-summary-sidebar {
    position: sticky;
    top: 20px;
}

/* Order Success */
.order-success {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    margin-bottom: 30px;
}

.success-icon i {
    font-size: 100px;
    color: #27ae60;
}

.order-success h2 {
    margin-bottom: 15px;
    color: #333;
}

.order-success p {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        gap: 20px;
    }

    .step-line {
        display: none;
    }

    .checkout-actions {
        flex-direction: column;
    }

    .checkout-actions button {
        width: 100%;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions a {
        width: 100%;
    }
}