.checkout-steps {
    display: flex;
    align-items: center;
    gap: 15px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step.active .step-number {
    background: white;
    color: #ff6b6b;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.step-divider {
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.3);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    padding: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.checkout-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.checkout-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2c3e50;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-method {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #ff6b6b;
}

.payment-method.active {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    color: #2e7d32;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: white;
    color: #2c3e50;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    border-color: #2c3e50;
}

.form-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    margin-top: 10px;
}

.order-summary {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-restaurant {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.restaurant-badge {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.summary-restaurant h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.summary-restaurant p {
    font-size: 0.85rem;
    color: #6c757d;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-quantity {
    font-weight: 600;
    color: #ff6b6b;
}

.item-name {
    color: #2c3e50;
}

.item-price {
    font-weight: 600;
    color: #2c3e50;
}

.summary-totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    color: #6c757d;
}

.total-final {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    padding-top: 12px;
    border-top: 2px solid #e9ecef;
}

.promo-code {
    display: flex;
    gap: 10px;
}

.promo-code input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
}

.btn-promo {
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-promo:hover {
    background: #e9ecef;
}

.confirmation-section {
    text-align: center;
}

.confirmation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
}

.confirmation-icon {
    font-size: 5rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.confirmation-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 0;
}

.confirmation-message {
    color: #6c757d;
    font-size: 1.1rem;
}

.order-number {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.order-number strong {
    font-size: 1.5rem;
    color: #ff6b6b;
}

.confirmation-details {
    color: #6c757d;
    line-height: 1.8;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: relative;
        top: 0;
    }

    .checkout-steps {
        display: none;
    }
}

@media (max-width: 768px) {
    .checkout-layout {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .form-actions {
        grid-template-columns: 1fr;
    }

    .confirmation-actions {
        flex-direction: column;
        width: 100%;
    }

    .confirmation-actions .btn-primary,
    .confirmation-actions .btn-secondary {
        width: 100%;
    }
}
